Skip to content

Commit 466f439

Browse files
authored
Releasing version 3.10.3
Releasing version 3.10.3
2 parents 4e72831 + 2932355 commit 466f439

File tree

84 files changed

+5426
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+5426
-124
lines changed

CHANGELOG.rst

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,65 @@ 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.10.3 - 2022-06-14
10+
--------------------
11+
Added
12+
~~~~~
13+
14+
* Support for clearing commands history with 'F7' in interactive mode
15+
16+
* ``oci -i``
17+
18+
* Support for the Web Application Acceleration (WAA) service
19+
20+
* ``oci waa``
21+
22+
* Support for the Governance Rules service
23+
24+
* ``oci governance-rules-control-plane governance-rule``
25+
26+
* Support for the OneSubscription service
27+
28+
* ``oci onesubscription``
29+
30+
* Support for quota resource locking in the Limits service
31+
32+
* ``oci limits quota addlock``
33+
* ``oci limits quota removelock``
34+
* ``oci limits quota create --locks``
35+
* ``oci limits quota delete --is-lock-override``
36+
37+
* Support for ``--wait-for-state`` for following command in the MySQL Database service
38+
39+
* ``oci mysql backup update``
40+
41+
* Support for time zone in Cloud Autonomous VM (CAVM) clusters in the Database service
42+
43+
* ``oci db cloud-autonomous-vm-cluster create --cluster-time-zone``
44+
45+
* Support for configuration options in the Application Performance Monitoring service
46+
47+
* ``oci apm-config config create-options``
48+
49+
* Support for MySQL connections in the Database Tools service
50+
51+
* ``oci dbtools connection``
52+
53+
* Support for resource locking in the Identity service
54+
55+
* ``oci iam tag-namespace add --tag-namespace-id $tag_namespace_id --type $lock_type``
56+
* ``oci iam tag-namespace remove --tag-namespace-id $tag_namespace_id --type $lock_type``
57+
* ``oci iam tag-default add --tag-default-id $tag_default_id --type $lock_type``
58+
* ``oci iam tag-default remove --tag-default-id $tag_default_id --type $lock_type``
59+
60+
Fixed
61+
~~~~~~~
62+
* Fixed bugs in the following commands in Rover service
63+
64+
* ``oci rover node add-workload``
65+
* ``oci rover node create``
66+
67+
968
3.10.2 - 2022-06-07
1069
--------------------
1170
Added

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.70.1
17+
oci==2.71.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

services/apm_config/src/oci_cli_config/config_cli_extended.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,23 @@
4444

4545
# Remove update from oci apm-config config
4646
config_cli.config_group.commands.pop(config_cli.update_config.name)
47+
48+
49+
# oci apm-config config create-config-create-options-details -> oci apm-config config create-options
50+
cli_util.rename_command(config_cli, config_cli.config_group, config_cli.create_config_create_options_details, "create-options")
51+
52+
53+
# oci apm-config config update-config-update-options-details -> oci apm-config config update-options
54+
cli_util.rename_command(config_cli, config_cli.config_group, config_cli.update_config_update_options_details, "update-options")
55+
56+
57+
# oci apm-config metric-group retrieve-namespace-metrics -> oci apm-config metric-group get-namespace-metrics
58+
cli_util.rename_command(config_cli, config_cli.metric_group_group, config_cli.retrieve_namespace_metrics, "get-namespace-metrics")
59+
60+
61+
# oci apm-config metric-group retrieve-namespaces -> oci apm-config metric-group get-namespaces
62+
cli_util.rename_command(config_cli, config_cli.metric_group_group, config_cli.retrieve_namespaces, "get-namespaces")
63+
64+
65+
# oci apm-config span-filter validate-span-filter-pattern -> oci apm-config span-filter validate-pattern
66+
cli_util.rename_command(config_cli, config_cli.span_filter_group, config_cli.validate_span_filter_pattern, "validate-pattern")

services/apm_config/src/oci_cli_config/generated/config_cli.py

Lines changed: 226 additions & 11 deletions
Large diffs are not rendered by default.

services/database/src/oci_cli_database/generated/database_cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4242,6 +4242,7 @@ def create_backup_destination_create_recovery_appliance_backup_destination_detai
42424242
@cli_util.option('--display-name', required=True, help=u"""The user-friendly name for the cloud Autonomous VM cluster. The name does not need to be unique.""")
42434243
@cli_util.option('--cloud-exadata-infrastructure-id', required=True, help=u"""The [OCID] of the cloud Exadata infrastructure.""")
42444244
@cli_util.option('--description', help=u"""User defined description of the cloud Autonomous VM cluster.""")
4245+
@cli_util.option('--cluster-time-zone', help=u"""The time zone to use for the Cloud Autonomous VM cluster. For details, see [DB System Time Zones].""")
42454246
@cli_util.option('--license-model', type=custom_types.CliCaseInsensitiveChoice(["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"]), help=u"""The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. License Included allows you to subscribe to new Oracle Database software licenses and the Database service. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure], this attribute must be null because the attribute is already set at the Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure], if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`.""")
42464247
@cli_util.option('--nsg-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The list of [OCIDs] for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see [Security Rules]. **NsgIds restrictions:** - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
42474248
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
@@ -4256,7 +4257,7 @@ def create_backup_destination_create_recovery_appliance_backup_destination_detai
42564257
@click.pass_context
42574258
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'database', 'class': 'CloudAutonomousVmCluster'})
42584259
@cli_util.wrap_exceptions
4259-
def create_cloud_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, subnet_id, display_name, cloud_exadata_infrastructure_id, description, license_model, nsg_ids, freeform_tags, defined_tags):
4260+
def create_cloud_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, subnet_id, display_name, cloud_exadata_infrastructure_id, description, cluster_time_zone, license_model, nsg_ids, freeform_tags, defined_tags):
42604261

42614262
kwargs = {}
42624263
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
@@ -4270,6 +4271,9 @@ def create_cloud_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_
42704271
if description is not None:
42714272
_details['description'] = description
42724273

4274+
if cluster_time_zone is not None:
4275+
_details['clusterTimeZone'] = cluster_time_zone
4276+
42734277
if license_model is not None:
42744278
_details['licenseModel'] = license_model
42754279

services/database_tools/src/oci_cli_database_tools/databasetools_cli_extended.py

Lines changed: 80 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
@cli_util.copy_params_from_generated_command(databasetools_cli.change_database_tools_connection_compartment, params_to_exclude=['database_tools_connection_id'])
5454
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.change_database_tools_connection_compartment.name, help=databasetools_cli.change_database_tools_connection_compartment.help)
55-
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection. [required]""")
55+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection.""")
5656
@click.pass_context
5757
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
5858
@cli_util.wrap_exceptions
@@ -66,7 +66,7 @@ def change_database_tools_connection_compartment_extended(ctx, **kwargs):
6666

6767
@cli_util.copy_params_from_generated_command(databasetools_cli.delete_database_tools_connection, params_to_exclude=['database_tools_connection_id'])
6868
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.delete_database_tools_connection.name, help=databasetools_cli.delete_database_tools_connection.help)
69-
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection. [required]""")
69+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection.""")
7070
@click.pass_context
7171
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
7272
@cli_util.wrap_exceptions
@@ -80,7 +80,7 @@ def delete_database_tools_connection_extended(ctx, **kwargs):
8080

8181
@cli_util.copy_params_from_generated_command(databasetools_cli.get_database_tools_connection, params_to_exclude=['database_tools_connection_id'])
8282
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.get_database_tools_connection.name, help=databasetools_cli.get_database_tools_connection.help)
83-
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection. [required]""")
83+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection.""")
8484
@click.pass_context
8585
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database_tools', 'class': 'DatabaseToolsConnection'})
8686
@cli_util.wrap_exceptions
@@ -94,8 +94,8 @@ def get_database_tools_connection_extended(ctx, **kwargs):
9494

9595
@cli_util.copy_params_from_generated_command(databasetools_cli.update_database_tools_connection_update_database_tools_connection_oracle_database_details, params_to_exclude=['database_tools_connection_id', 'user_password'])
9696
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.update_database_tools_connection_update_database_tools_connection_oracle_database_details.name, help=databasetools_cli.update_database_tools_connection_update_database_tools_connection_oracle_database_details.help)
97-
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection. [required]""")
98-
@cli_util.option('--user-password-secret-id', help="""The [OCID] of the secret containing the user password. [required]""")
97+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection.""")
98+
@cli_util.option('--user-password-secret-id', help="""The [OCID] of the secret containing the user password.""")
9999
@click.pass_context
100100
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'database_tools', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'related-resource': {'module': 'database_tools', 'class': 'UpdateDatabaseToolsRelatedResourceDetails'}, 'user-password': {'module': 'database_tools', 'class': 'DatabaseToolsUserPasswordDetails'}, 'advanced-properties': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'key-stores': {'module': 'database_tools', 'class': 'list[DatabaseToolsKeyStoreDetails]'}})
101101
@cli_util.wrap_exceptions
@@ -120,7 +120,7 @@ def update_database_tools_connection_update_database_tools_connection_oracle_dat
120120

121121
@cli_util.copy_params_from_generated_command(databasetools_cli.create_database_tools_connection_create_database_tools_connection_oracle_database_details, params_to_exclude=['user_password'])
122122
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.create_database_tools_connection_create_database_tools_connection_oracle_database_details.name, help=databasetools_cli.create_database_tools_connection_create_database_tools_connection_oracle_database_details.help)
123-
@cli_util.option('--user-password-secret-id', help="""The [OCID] of the secret containing the user password. [required]""")
123+
@cli_util.option('--user-password-secret-id', required=True, help="""The [OCID] of the secret containing the user password.""")
124124
@click.pass_context
125125
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'database_tools', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'related-resource': {'module': 'database_tools', 'class': 'CreateDatabaseToolsRelatedResourceDetails'}, 'user-password': {'module': 'database_tools', 'class': 'DatabaseToolsUserPasswordDetails'}, 'advanced-properties': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'key-stores': {'module': 'database_tools', 'class': 'list[DatabaseToolsKeyStoreDetails]'}})
126126
@cli_util.wrap_exceptions
@@ -141,7 +141,7 @@ def create_database_tools_connection_create_database_tools_connection_oracle_dat
141141

142142
@cli_util.copy_params_from_generated_command(databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_oracle_database_details, params_to_exclude=['database_tools_connection_id'])
143143
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_oracle_database_details.name, help=databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_oracle_database_details.help)
144-
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection. [required]""")
144+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a DatabaseToolsConnection.""")
145145
@click.pass_context
146146
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database_tools', 'class': 'ValidateDatabaseToolsConnectionResult'})
147147
@cli_util.wrap_exceptions
@@ -221,3 +221,76 @@ def update_database_tools_private_endpoint_extended(ctx, **kwargs):
221221
kwargs.pop('private_endpoint_id')
222222

223223
ctx.invoke(databasetools_cli.update_database_tools_private_endpoint, **kwargs)
224+
225+
226+
# oci dbtools connection create-database-tools-connection-create-database-tools-connection-my-sql-details -> oci dbtools connection create-mysql-database
227+
cli_util.rename_command(databasetools_cli, databasetools_cli.database_tools_connection_group, databasetools_cli.create_database_tools_connection_create_database_tools_connection_my_sql_details, "create-mysql-database")
228+
229+
230+
# oci dbtools connection update-database-tools-connection-update-database-tools-connection-my-sql-details -> oci dbtools connection update-mysql-database
231+
cli_util.rename_command(databasetools_cli, databasetools_cli.database_tools_connection_group, databasetools_cli.update_database_tools_connection_update_database_tools_connection_my_sql_details, "update-mysql-database")
232+
233+
234+
# oci dbtools connection validate-database-tools-connection-validate-database-tools-connection-my-sql-details -> oci dbtools connection validate-mysql-database
235+
cli_util.rename_command(databasetools_cli, databasetools_cli.database_tools_connection_group, databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_my_sql_details, "validate-mysql-database")
236+
237+
238+
@cli_util.copy_params_from_generated_command(databasetools_cli.create_database_tools_connection_create_database_tools_connection_my_sql_details, params_to_exclude=['user_password'])
239+
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.create_database_tools_connection_create_database_tools_connection_my_sql_details.name, help=databasetools_cli.create_database_tools_connection_create_database_tools_connection_my_sql_details.help)
240+
@cli_util.option('--user-password-secret-id', required=True, help="""The [OCID] of the secret containing the user password.""")
241+
@click.pass_context
242+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'database_tools', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'related-resource': {'module': 'database_tools', 'class': 'CreateDatabaseToolsRelatedResourceDetails'}, 'user-password': {'module': 'database_tools', 'class': 'DatabaseToolsUserPasswordDetails'}, 'advanced-properties': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'key-stores': {'module': 'database_tools', 'class': 'list[DatabaseToolsKeyStoreDetails]'}})
243+
@cli_util.wrap_exceptions
244+
def create_database_tools_connection_create_database_tools_connection_my_sql_details_extended(ctx, **kwargs):
245+
# Flattening of user_password complex parameter
246+
if kwargs['user_password_secret_id']:
247+
user_password = {
248+
'value-type': 'SECRETID',
249+
'secret-id': kwargs['user_password_secret_id']
250+
}
251+
252+
kwargs['user_password'] = json.dumps(user_password)
253+
254+
kwargs.pop('user_password_secret_id', None)
255+
256+
ctx.invoke(databasetools_cli.create_database_tools_connection_create_database_tools_connection_my_sql_details, **kwargs)
257+
258+
259+
@cli_util.copy_params_from_generated_command(databasetools_cli.update_database_tools_connection_update_database_tools_connection_my_sql_details, params_to_exclude=['database_tools_connection_id'])
260+
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.update_database_tools_connection_update_database_tools_connection_my_sql_details.name, help=databasetools_cli.update_database_tools_connection_update_database_tools_connection_my_sql_details.help)
261+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a Database Tools connection.""")
262+
@cli_util.option('--user-password-secret-id', help="""The [OCID] of the secret containing the user password.""")
263+
@click.pass_context
264+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'database_tools', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'related-resource': {'module': 'database_tools', 'class': 'UpdateDatabaseToolsRelatedResourceMySqlDetails'}, 'user-password': {'module': 'database_tools', 'class': 'DatabaseToolsUserPasswordDetails'}, 'advanced-properties': {'module': 'database_tools', 'class': 'dict(str, string)'}, 'key-stores': {'module': 'database_tools', 'class': 'list[DatabaseToolsKeyStoreMySqlDetails]'}})
265+
@cli_util.wrap_exceptions
266+
def update_database_tools_connection_update_database_tools_connection_my_sql_details_extended(ctx, **kwargs):
267+
if 'connection_id' in kwargs:
268+
kwargs['database_tools_connection_id'] = kwargs['connection_id']
269+
kwargs.pop('connection_id')
270+
271+
# Flattening of user_password complex parameter
272+
if kwargs['user_password_secret_id']:
273+
user_password = {
274+
'value-type': 'SECRETID',
275+
'secret-id': kwargs['user_password_secret_id']
276+
}
277+
278+
kwargs['user_password'] = json.dumps(user_password)
279+
280+
kwargs.pop('user_password_secret_id', None)
281+
282+
ctx.invoke(databasetools_cli.update_database_tools_connection_update_database_tools_connection_my_sql_details, **kwargs)
283+
284+
285+
@cli_util.copy_params_from_generated_command(databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_my_sql_details, params_to_exclude=['database_tools_connection_id'])
286+
@databasetools_cli.database_tools_connection_group.command(name=databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_my_sql_details.name, help=databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_my_sql_details.help)
287+
@cli_util.option('--connection-id', required=True, help=u"""The [OCID] of a Database Tools connection.""")
288+
@click.pass_context
289+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database_tools', 'class': 'ValidateDatabaseToolsConnectionResult'})
290+
@cli_util.wrap_exceptions
291+
def validate_database_tools_connection_validate_database_tools_connection_my_sql_details_extended(ctx, **kwargs):
292+
if 'connection_id' in kwargs:
293+
kwargs['database_tools_connection_id'] = kwargs['connection_id']
294+
kwargs.pop('connection_id')
295+
296+
ctx.invoke(databasetools_cli.validate_database_tools_connection_validate_database_tools_connection_my_sql_details, **kwargs)

0 commit comments

Comments
 (0)