Skip to content

Commit

Permalink
Releasing version 3.49.3
Browse files Browse the repository at this point in the history
Releasing version 3.49.3
  • Loading branch information
oci-dex-release-bot authored Oct 22, 2024
2 parents e5d7e2c + 59782ca commit 40b5ec9
Show file tree
Hide file tree
Showing 33 changed files with 19,927 additions and 10,158 deletions.
97 changes: 96 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,101 @@ All notable changes to this project will be documented in this file.

The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.

3.49.3 - 2024-10-22
--------------------
Added
~~~~~
* Support for add and remove lock operations added to the following File Storage resources: [export, file-system, filesystem-snapshot, mount-target, outbound-connector, replication]

* ``oci fs export add --export-id <id> --lock [full|delete]``
* ``oci fs file-system add --file-system-id <id> --lock [full|delete]``
* ``oci fs filesystem-snapshot-policy add ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
* ``oci fs filesystem-snapshot-policy add ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
* ``oci fs mount-target add --mount-target-id <id> --lock [full|delete]``
* ``oci fs outbound-connector add --outbound-connector-id <id> --lock [full|delete]``
* ``oci fs replication add --replication-id <id> --lock [full|delete]``
* ``oci fs export remove --export-id <id> --lock [full|delete]``
* ``oci fs file-system remove --file-system-id <id> --lock [full|delete]``
* ``oci fs filesystem-snapshot-policy remove ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
* ``oci fs filesystem-snapshot-policy remove ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
* ``oci fs mount-target remove --mount-target-id <id> --lock [full|delete]``
* ``oci fs outbound-connector remove --outbound-connector-id <id> --lock [full|delete]``
* ``oci fs replication remove --replication-id <id> --lock [full|delete]``

* Support for new optional parameters in the Database Service

* ``oci db autonomous-database create --encryption-key``
* ``oci db autonomous-database update --encryption-key``

* Support for returning generated token as part of response in Identity Domains Service

* ``oci identity-domains``

* Support for model backup retention and restore in Data Science Service

* ``oci data-science model create --backup-setting, --retention-setting``
* ``oci data-science model update --backup-setting, --retention-setting``
* ``oci data-science model restore-archived-model-artifact --model-id --restore-model-for-hours-specified``

* Support of Host Capacity Planning for Host IO metrics in Ops Insights Service

* ``oci opsi host-insights summarize-io-usage-trend --compartment-id --id --analysis-time-interval``

* Cloud Bridge Service

* Support of creating/updating Amazon Web Services asset-sources

* ``oci cloud-bridge discovery asset-source create --are-historical-metrics-collected --are-realtime-metrics-collected --is-cost-information-collected --aws-region``
* ``oci cloud-bridge discovery asset-source update --is-cost-information-collected``

* Support of creating/updating Amazon Web Services EC2 and EBS assets

* ``oci cloud-bridge inventory asset create --aws-ec2 --aws-ec2-cost --attached-ebs-volumes-cost``
* ``oci cloud-bridge inventory asset update --aws-ec2 --aws-ec2-cost --attached-ebs-volumes-cost``
* ``oci cloud-bridge inventory asset create --aws-ebs``
* ``oci cloud-bridge inventory asset update --aws-ebs``

* Support of listing the Amazon Web Services regions which are available for Discovery and Migration

* ``oci cloud-bridge discovery supported-cloud-regions list``

* Fleet Application Management Service

* Support for managing onboarding

* ``oci fleet-apps-management fleet-apps-management-admin onboarding get``
* ``oci fleet-apps-management fleet-apps-management-admin onboarding enable-latest-policy``
* ``oci fleet-apps-management fleet-apps-management-admin onboarding manage-settings``
* ``oci fleet-apps-management fleet-apps-management-admin onboarding update``
* ``oci fleet-apps-management fleet-apps-management-admin onboarding delete``

* Support for managing a runbook

* ``oci fleet-apps-management fleet-apps-management-runbooks runbook create``
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook publish``
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook set-default``
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook update``
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook delete``
* ``oci fleet-apps-management fleet-apps-management-runbooks task-record create``
* ``oci fleet-apps-management fleet-apps-management-runbooks task-record update``
* ``oci fleet-apps-management fleet-apps-management-runbooks task-record delete``

* Support for detailed job activity and managing a scheduled job

* ``oci fleet-apps-management fleet-apps-management-operations resource-collection list-resources``
* ``oci fleet-apps-management fleet-apps-management-operations step-collection list-steps``
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job manage-job-execution``
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job manage-job-execution-action-group-based-user-action-details``
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job manage-job-execution-step-based-user-action-details``
* ``oci fleet-apps-management fleet-apps-management-operations managed-entity-aggregation-collection summarize-managed-entity-counts``

* Support for new optional parameters

* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job-collection list-scheduler-jobs --sub-state``
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-definition-collection list-scheduler-definitions --runbook-id``
* ``oci fleet-apps-management fleet-apps-management-maintenance-window maintenance-window-collection list-maintenance-windows --time-schedule-start-greater-than-or-equal-to``
* ``oci fleet-apps-management fleet-credential-collection list-fleet-credentials --target``

3.49.2 - 2024-10-15
--------------------
Added
Expand Down Expand Up @@ -67,7 +162,7 @@ Added
* Support for defining environment type for deployments in GoldenGate service

* ``oci goldengate deployment create --environment-type``
* ``oci goldengate deployment update --environment-type`
* ``oci goldengate deployment update --environment-type``

3.49.1 - 2024-10-10
--------------------
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Jinja2>=3.1.4; python_version >= '3.7'
jmespath==0.10.0
ndg-httpsclient==0.4.2
mock==2.0.0
oci==2.136.0
oci==2.137.0
packaging==20.2
pluggy==0.13.0
py==1.11.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
help=u"""Endpoint for VMware asset discovery and replication in the form of ```https://<host>:<port>/sdk```""")
@cli_util.option('--discovery-credentials', type=custom_types.CLI_COMPLEX_TYPE,
help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@cli_util.option('--are-historical-metrics-collected', type=click.BOOL,
help=u"""Flag indicating whether historical metrics are collected for assets, originating from this asset source.""")
@cli_util.option('--are-realtime-metrics-collected', type=click.BOOL,
help=u"""Flag indicating whether real-time metrics are collected for assets, originating from this asset source.""")
@cli_util.option('--is-cost-information-collected', type=click.BOOL,
help=u"""Flag indicating whether cost data collection is enabled for assets, originating from this asset source.""")
@cli_util.option('--aws-region', help=u"""AWS region information, from where the resources are discovered.""")
@cli_util.option('--aws-account-key', help=u"""The key of customer's aws account to be discovered/migrated.""")
@discovery_cli.asset_source_group.command(
name=cli_util.override('discovery.create_asset_source.command_name', 'create'),
help=u"""Creates an asset source. \n[Command Reference](createAssetSource)""")
Expand All @@ -59,7 +67,8 @@
@cli_util.wrap_exceptions
def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id,
environment_id, inventory_id, assets_compartment_id, vcenter_endpoint, discovery_credentials,
display_name, discovery_schedule_id, freeform_tags, defined_tags, system_tags):
are_historical_metrics_collected, are_realtime_metrics_collected, is_cost_information_collected,
display_name, discovery_schedule_id, aws_region, aws_account_key, freeform_tags, defined_tags, system_tags):
kwargs = {}
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])

Expand All @@ -71,6 +80,17 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
_details['assetsCompartmentId'] = assets_compartment_id
_details['vcenterEndpoint'] = vcenter_endpoint
_details['discoveryCredentials'] = cli_util.parse_json_parameter("discovery_credentials", discovery_credentials)
_details['awsRegion'] = aws_region
_details['awsAccountKey'] = aws_account_key

if are_historical_metrics_collected is not None:
_details['areHistoricalMetricsCollected'] = are_historical_metrics_collected

if are_realtime_metrics_collected is not None:
_details['areRealtimeMetricsCollected'] = are_realtime_metrics_collected

if is_cost_information_collected is not None:
_details['isCostInformationCollected'] = is_cost_information_collected

if display_name is not None:
_details['displayName'] = display_name
Expand All @@ -91,6 +111,11 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
if discovery_credentials is None or vcenter_endpoint is None:
raise click.UsageError('If parameter --type is VMWARE, then parameters --discovery-credentials and --vcenter-endpoint must be provided')

if type.lower() == 'aws':
if discovery_credentials is None or aws_region is None or aws_account_key is None:
raise click.UsageError('If parameter --type is AWS, then parameters --discovery-credentials, '
'--aws-region and --aws-account-key must be provided')

client = cli_util.build_client('cloud_bridge', 'discovery', ctx)
result = client.create_asset_source(
create_asset_source_details=_details,
Expand Down Expand Up @@ -143,6 +168,8 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
help=u"""Flag indicating whether historical metrics are collected for assets, originating from this asset source.""")
@cli_util.option('--are-realtime-metrics-collected', type=click.BOOL,
help=u"""Flag indicating whether real-time metrics are collected for assets, originating from this asset source.""")
@cli_util.option('--is-cost-information-collected', type=click.BOOL,
help=u"""Flag indicating whether cost data collection is enabled for assets, originating from this asset source.""")
@cli_util.option('--discovery-schedule-id',
help=u"""The [OCID] of the discovery schedule that is going to be assigned to an asset source.""")
@json_skeleton_utils.get_cli_json_input_option(
Expand All @@ -164,8 +191,8 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id,
type, display_name, assets_compartment_id, freeform_tags, defined_tags, system_tags,
vcenter_endpoint, discovery_credentials, replication_credentials,
are_historical_metrics_collected, are_realtime_metrics_collected, discovery_schedule_id,
if_match):
are_historical_metrics_collected, are_realtime_metrics_collected, is_cost_information_collected,
discovery_schedule_id, if_match):
if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0:
raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string')
if not force:
Expand Down Expand Up @@ -213,6 +240,9 @@ def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds,
if are_realtime_metrics_collected is not None:
_details['areRealtimeMetricsCollected'] = are_realtime_metrics_collected

if is_cost_information_collected is not None:
_details['isCostInformationCollected'] = is_cost_information_collected

if discovery_schedule_id is not None:
_details['discoveryScheduleId'] = discovery_schedule_id

Expand Down Expand Up @@ -253,3 +283,19 @@ def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds,
else:
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
cli_util.render_response(result, ctx)


# oci cloud-bridge discovery supported-cloud-region-summary list-supported-cloud-regions -> oci cloud-bridge discovery supported-cloud-region-summary list
cli_util.rename_command(discovery_cli, discovery_cli.supported_cloud_region_summary_group, discovery_cli.list_supported_cloud_regions, "list")


# oci cloud-bridge discovery supported-cloud-region-summary -> oci cloud-bridge discovery supported-cloud-regions
cli_util.rename_command(discovery_cli, discovery_cli.discovery_root_group, discovery_cli.supported_cloud_region_summary_group, "supported-cloud-regions")


# Remove create-asset-source-create-aws-asset-source-details from oci cloud-bridge discovery asset-source
discovery_cli.asset_source_group.commands.pop(discovery_cli.create_asset_source_create_aws_asset_source_details.name)


# Remove update-asset-source-update-aws-asset-source-details from oci cloud-bridge discovery asset-source
discovery_cli.asset_source_group.commands.pop(discovery_cli.update_asset_source_update_aws_asset_source_details.name)
Loading

0 comments on commit 40b5ec9

Please sign in to comment.