Skip to content

Commit 59782ca

Browse files
Releasing version 3.49.3
Co-authored-by: Harsh Kumar <[email protected]>
1 parent e5d7e2c commit 59782ca

File tree

33 files changed

+19927
-10158
lines changed

33 files changed

+19927
-10158
lines changed

CHANGELOG.rst

Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,101 @@ All notable changes to this project will be documented in this file.
66

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

9+
3.49.3 - 2024-10-22
10+
--------------------
11+
Added
12+
~~~~~
13+
* Support for add and remove lock operations added to the following File Storage resources: [export, file-system, filesystem-snapshot, mount-target, outbound-connector, replication]
14+
15+
* ``oci fs export add --export-id <id> --lock [full|delete]``
16+
* ``oci fs file-system add --file-system-id <id> --lock [full|delete]``
17+
* ``oci fs filesystem-snapshot-policy add ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
18+
* ``oci fs filesystem-snapshot-policy add ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
19+
* ``oci fs mount-target add --mount-target-id <id> --lock [full|delete]``
20+
* ``oci fs outbound-connector add --outbound-connector-id <id> --lock [full|delete]``
21+
* ``oci fs replication add --replication-id <id> --lock [full|delete]``
22+
* ``oci fs export remove --export-id <id> --lock [full|delete]``
23+
* ``oci fs file-system remove --file-system-id <id> --lock [full|delete]``
24+
* ``oci fs filesystem-snapshot-policy remove ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
25+
* ``oci fs filesystem-snapshot-policy remove ----filesystem-snapshot-policy-id <id> --lock [full|delete]``
26+
* ``oci fs mount-target remove --mount-target-id <id> --lock [full|delete]``
27+
* ``oci fs outbound-connector remove --outbound-connector-id <id> --lock [full|delete]``
28+
* ``oci fs replication remove --replication-id <id> --lock [full|delete]``
29+
30+
* Support for new optional parameters in the Database Service
31+
32+
* ``oci db autonomous-database create --encryption-key``
33+
* ``oci db autonomous-database update --encryption-key``
34+
35+
* Support for returning generated token as part of response in Identity Domains Service
36+
37+
* ``oci identity-domains``
38+
39+
* Support for model backup retention and restore in Data Science Service
40+
41+
* ``oci data-science model create --backup-setting, --retention-setting``
42+
* ``oci data-science model update --backup-setting, --retention-setting``
43+
* ``oci data-science model restore-archived-model-artifact --model-id --restore-model-for-hours-specified``
44+
45+
* Support of Host Capacity Planning for Host IO metrics in Ops Insights Service
46+
47+
* ``oci opsi host-insights summarize-io-usage-trend --compartment-id --id --analysis-time-interval``
48+
49+
* Cloud Bridge Service
50+
51+
* Support of creating/updating Amazon Web Services asset-sources
52+
53+
* ``oci cloud-bridge discovery asset-source create --are-historical-metrics-collected --are-realtime-metrics-collected --is-cost-information-collected --aws-region``
54+
* ``oci cloud-bridge discovery asset-source update --is-cost-information-collected``
55+
56+
* Support of creating/updating Amazon Web Services EC2 and EBS assets
57+
58+
* ``oci cloud-bridge inventory asset create --aws-ec2 --aws-ec2-cost --attached-ebs-volumes-cost``
59+
* ``oci cloud-bridge inventory asset update --aws-ec2 --aws-ec2-cost --attached-ebs-volumes-cost``
60+
* ``oci cloud-bridge inventory asset create --aws-ebs``
61+
* ``oci cloud-bridge inventory asset update --aws-ebs``
62+
63+
* Support of listing the Amazon Web Services regions which are available for Discovery and Migration
64+
65+
* ``oci cloud-bridge discovery supported-cloud-regions list``
66+
67+
* Fleet Application Management Service
68+
69+
* Support for managing onboarding
70+
71+
* ``oci fleet-apps-management fleet-apps-management-admin onboarding get``
72+
* ``oci fleet-apps-management fleet-apps-management-admin onboarding enable-latest-policy``
73+
* ``oci fleet-apps-management fleet-apps-management-admin onboarding manage-settings``
74+
* ``oci fleet-apps-management fleet-apps-management-admin onboarding update``
75+
* ``oci fleet-apps-management fleet-apps-management-admin onboarding delete``
76+
77+
* Support for managing a runbook
78+
79+
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook create``
80+
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook publish``
81+
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook set-default``
82+
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook update``
83+
* ``oci fleet-apps-management fleet-apps-management-runbooks runbook delete``
84+
* ``oci fleet-apps-management fleet-apps-management-runbooks task-record create``
85+
* ``oci fleet-apps-management fleet-apps-management-runbooks task-record update``
86+
* ``oci fleet-apps-management fleet-apps-management-runbooks task-record delete``
87+
88+
* Support for detailed job activity and managing a scheduled job
89+
90+
* ``oci fleet-apps-management fleet-apps-management-operations resource-collection list-resources``
91+
* ``oci fleet-apps-management fleet-apps-management-operations step-collection list-steps``
92+
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job manage-job-execution``
93+
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job manage-job-execution-action-group-based-user-action-details``
94+
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job manage-job-execution-step-based-user-action-details``
95+
* ``oci fleet-apps-management fleet-apps-management-operations managed-entity-aggregation-collection summarize-managed-entity-counts``
96+
97+
* Support for new optional parameters
98+
99+
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-job-collection list-scheduler-jobs --sub-state``
100+
* ``oci fleet-apps-management fleet-apps-management-operations scheduler-definition-collection list-scheduler-definitions --runbook-id``
101+
* ``oci fleet-apps-management fleet-apps-management-maintenance-window maintenance-window-collection list-maintenance-windows --time-schedule-start-greater-than-or-equal-to``
102+
* ``oci fleet-apps-management fleet-credential-collection list-fleet-credentials --target``
103+
9104
3.49.2 - 2024-10-15
10105
--------------------
11106
Added
@@ -67,7 +162,7 @@ Added
67162
* Support for defining environment type for deployments in GoldenGate service
68163

69164
* ``oci goldengate deployment create --environment-type``
70-
* ``oci goldengate deployment update --environment-type`
165+
* ``oci goldengate deployment update --environment-type``
71166

72167
3.49.1 - 2024-10-10
73168
--------------------

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Jinja2>=3.1.4; python_version >= '3.7'
1515
jmespath==0.10.0
1616
ndg-httpsclient==0.4.2
1717
mock==2.0.0
18-
oci==2.136.0
18+
oci==2.137.0
1919
packaging==20.2
2020
pluggy==0.13.0
2121
py==1.11.0

services/cloud_bridge/src/oci_cli_discovery/discovery_cli_extended.py

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
help=u"""Endpoint for VMware asset discovery and replication in the form of ```https://<host>:<port>/sdk```""")
3838
@cli_util.option('--discovery-credentials', type=custom_types.CLI_COMPLEX_TYPE,
3939
help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
40+
@cli_util.option('--are-historical-metrics-collected', type=click.BOOL,
41+
help=u"""Flag indicating whether historical metrics are collected for assets, originating from this asset source.""")
42+
@cli_util.option('--are-realtime-metrics-collected', type=click.BOOL,
43+
help=u"""Flag indicating whether real-time metrics are collected for assets, originating from this asset source.""")
44+
@cli_util.option('--is-cost-information-collected', type=click.BOOL,
45+
help=u"""Flag indicating whether cost data collection is enabled for assets, originating from this asset source.""")
46+
@cli_util.option('--aws-region', help=u"""AWS region information, from where the resources are discovered.""")
47+
@cli_util.option('--aws-account-key', help=u"""The key of customer's aws account to be discovered/migrated.""")
4048
@discovery_cli.asset_source_group.command(
4149
name=cli_util.override('discovery.create_asset_source.command_name', 'create'),
4250
help=u"""Creates an asset source. \n[Command Reference](createAssetSource)""")
@@ -59,7 +67,8 @@
5967
@cli_util.wrap_exceptions
6068
def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id,
6169
environment_id, inventory_id, assets_compartment_id, vcenter_endpoint, discovery_credentials,
62-
display_name, discovery_schedule_id, freeform_tags, defined_tags, system_tags):
70+
are_historical_metrics_collected, are_realtime_metrics_collected, is_cost_information_collected,
71+
display_name, discovery_schedule_id, aws_region, aws_account_key, freeform_tags, defined_tags, system_tags):
6372
kwargs = {}
6473
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
6574

@@ -71,6 +80,17 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
7180
_details['assetsCompartmentId'] = assets_compartment_id
7281
_details['vcenterEndpoint'] = vcenter_endpoint
7382
_details['discoveryCredentials'] = cli_util.parse_json_parameter("discovery_credentials", discovery_credentials)
83+
_details['awsRegion'] = aws_region
84+
_details['awsAccountKey'] = aws_account_key
85+
86+
if are_historical_metrics_collected is not None:
87+
_details['areHistoricalMetricsCollected'] = are_historical_metrics_collected
88+
89+
if are_realtime_metrics_collected is not None:
90+
_details['areRealtimeMetricsCollected'] = are_realtime_metrics_collected
91+
92+
if is_cost_information_collected is not None:
93+
_details['isCostInformationCollected'] = is_cost_information_collected
7494

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

114+
if type.lower() == 'aws':
115+
if discovery_credentials is None or aws_region is None or aws_account_key is None:
116+
raise click.UsageError('If parameter --type is AWS, then parameters --discovery-credentials, '
117+
'--aws-region and --aws-account-key must be provided')
118+
94119
client = cli_util.build_client('cloud_bridge', 'discovery', ctx)
95120
result = client.create_asset_source(
96121
create_asset_source_details=_details,
@@ -143,6 +168,8 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
143168
help=u"""Flag indicating whether historical metrics are collected for assets, originating from this asset source.""")
144169
@cli_util.option('--are-realtime-metrics-collected', type=click.BOOL,
145170
help=u"""Flag indicating whether real-time metrics are collected for assets, originating from this asset source.""")
171+
@cli_util.option('--is-cost-information-collected', type=click.BOOL,
172+
help=u"""Flag indicating whether cost data collection is enabled for assets, originating from this asset source.""")
146173
@cli_util.option('--discovery-schedule-id',
147174
help=u"""The [OCID] of the discovery schedule that is going to be assigned to an asset source.""")
148175
@json_skeleton_utils.get_cli_json_input_option(
@@ -164,8 +191,8 @@ def create_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
164191
def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id,
165192
type, display_name, assets_compartment_id, freeform_tags, defined_tags, system_tags,
166193
vcenter_endpoint, discovery_credentials, replication_credentials,
167-
are_historical_metrics_collected, are_realtime_metrics_collected, discovery_schedule_id,
168-
if_match):
194+
are_historical_metrics_collected, are_realtime_metrics_collected, is_cost_information_collected,
195+
discovery_schedule_id, if_match):
169196
if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0:
170197
raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string')
171198
if not force:
@@ -213,6 +240,9 @@ def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds,
213240
if are_realtime_metrics_collected is not None:
214241
_details['areRealtimeMetricsCollected'] = are_realtime_metrics_collected
215242

243+
if is_cost_information_collected is not None:
244+
_details['isCostInformationCollected'] = is_cost_information_collected
245+
216246
if discovery_schedule_id is not None:
217247
_details['discoveryScheduleId'] = discovery_schedule_id
218248

@@ -253,3 +283,19 @@ def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds,
253283
else:
254284
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
255285
cli_util.render_response(result, ctx)
286+
287+
288+
# oci cloud-bridge discovery supported-cloud-region-summary list-supported-cloud-regions -> oci cloud-bridge discovery supported-cloud-region-summary list
289+
cli_util.rename_command(discovery_cli, discovery_cli.supported_cloud_region_summary_group, discovery_cli.list_supported_cloud_regions, "list")
290+
291+
292+
# oci cloud-bridge discovery supported-cloud-region-summary -> oci cloud-bridge discovery supported-cloud-regions
293+
cli_util.rename_command(discovery_cli, discovery_cli.discovery_root_group, discovery_cli.supported_cloud_region_summary_group, "supported-cloud-regions")
294+
295+
296+
# Remove create-asset-source-create-aws-asset-source-details from oci cloud-bridge discovery asset-source
297+
discovery_cli.asset_source_group.commands.pop(discovery_cli.create_asset_source_create_aws_asset_source_details.name)
298+
299+
300+
# Remove update-asset-source-update-aws-asset-source-details from oci cloud-bridge discovery asset-source
301+
discovery_cli.asset_source_group.commands.pop(discovery_cli.update_asset_source_update_aws_asset_source_details.name)

0 commit comments

Comments
 (0)