Skip to content

Commit 09364b9

Browse files
KanvipasrichaHamadaGabrIbrahimharshkumar-devlealex262Nupur Gupta
committed
Releasing version 3.28.0
Co-authored-by: Hamada Ibrahim <[email protected]> Co-authored-by: Harsh Kumar <[email protected]> Co-authored-by: Kanvi Pasricha <[email protected]> Co-authored-by: Alex Le <[email protected]> Co-authored-by: Nupur Gupta <[email protected]> Co-authored-by: Karthik Kamath <[email protected]> Co-authored-by: Mandy Tsai <[email protected]> Co-authored-by: Pankaj Joshi <[email protected]> Co-authored-by: Anup Singh <[email protected]>
1 parent 1e1329d commit 09364b9

File tree

11 files changed

+196
-162
lines changed

11 files changed

+196
-162
lines changed

CHANGELOG.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,49 @@ 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.28.0 - 2023-05-23
10+
--------------------
11+
Added
12+
~~~~~
13+
* Logging Management service
14+
15+
* New optional parameter for CRI-O parser
16+
17+
* ``oci logging service list --service-stage``
18+
19+
* Added new CRI-O parser in the option ``--service-configuration``
20+
21+
* [BREAKING] Commands removed
22+
23+
* ``oci logging log-included-search get``
24+
* ``oci logging log-included-search list``
25+
26+
* Database Service
27+
28+
* Added availability domain information in get VM cluster and Exadata Infrastructure.
29+
30+
* ``oci db vm-cluster get --vm-cluster-id``
31+
* ``oci db exadata-infrastructure get --exadata-infrastructure-id``
32+
33+
* Support for new optional parameter dbservers in the autonomous database dedicated service
34+
35+
* ``oci db cloud-autonomous-vm-cluster create --dbservers``
36+
37+
38+
* DNS service
39+
40+
* Support for secondary egress zones API operations
41+
42+
* ``oci dns zone create --compartment-id --name --zone-type --external-downstreams ``
43+
44+
* Support to create zone from zone-file
45+
46+
* ``oci dns zone create-zone-from-zone-file --compartment-id --create-zone-from-zone-file-details``
47+
48+
* Support for new optional parameter external-downstream in zone-update
49+
50+
* ``oci dns zone update --external-downstreams``
51+
952
3.27.1 - 2023-05-16
1053
--------------------
1154
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.102.0
17+
oci==2.103.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

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

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,12 @@ def autonomous_container_database_dataguard_association_group():
322322
pass
323323

324324

325+
@click.command(cli_util.override('db.exadata_infrastructure_un_allocated_resources_group.command_name', 'exadata-infrastructure-un-allocated-resources'), cls=CommandGroupWithAlias, help="""Un allocated resources details of the Exadata Cloud@Customer infrastructure. Applies to Exadata Cloud@Customer instances only.""")
326+
@cli_util.help_option_group
327+
def exadata_infrastructure_un_allocated_resources_group():
328+
pass
329+
330+
325331
@click.command(cli_util.override('db.db_system_group.command_name', 'db-system'), cls=CommandGroupWithAlias, help="""""")
326332
@cli_util.help_option_group
327333
def db_system_group():
@@ -451,6 +457,7 @@ def autonomous_virtual_machine_group():
451457
db_root_group.add_command(external_backup_job_group)
452458
db_root_group.add_command(autonomous_database_character_sets_group)
453459
db_root_group.add_command(autonomous_container_database_dataguard_association_group)
460+
db_root_group.add_command(exadata_infrastructure_un_allocated_resources_group)
454461
db_root_group.add_command(db_system_group)
455462
db_root_group.add_command(autonomous_vm_cluster_group)
456463
db_root_group.add_command(key_store_group)
@@ -2481,7 +2488,7 @@ def create_application_vip(ctx, from_json, wait_for_state, max_wait_seconds, wai
24812488
@cli_util.option('--display-name', required=True, help=u"""The display name for the Autonomous Container Database.""")
24822489
@cli_util.option('--patch-model', required=True, type=custom_types.CliCaseInsensitiveChoice(["RELEASE_UPDATES", "RELEASE_UPDATE_REVISIONS"]), help=u"""Database Patch model preference.""")
24832490
@cli_util.option('--db-unique-name', help=u"""**Deprecated.** The `DB_UNIQUE_NAME` value is set by Oracle Cloud Infrastructure. Do not specify a value for this parameter. Specifying a value for this field will cause Terraform operations to fail.""")
2484-
@cli_util.option('--db-name', help=u"""The database name for the Autonomous Container Database. The name must be unique within the Cloud Autonomous VM Cluster, must start with an alphabetic character and followed by 1 to 7 alphanumeric characters.""")
2491+
@cli_util.option('--db-name', help=u"""The Database name for the Autonomous Container Database. The name must be unique within the Cloud Autonomous VM Cluster, starting with an alphabetic character, followed by 1 to 7 alphanumeric characters.""")
24852492
@cli_util.option('--service-level-agreement-type', type=custom_types.CliCaseInsensitiveChoice(["STANDARD", "AUTONOMOUS_DATAGUARD"]), help=u"""The service level agreement type of the Autonomous Container Database. The default is STANDARD. For an autonomous dataguard Autonomous Container Database, the specified Autonomous Exadata Infrastructure must be associated with a remote Autonomous Exadata Infrastructure.""")
24862493
@cli_util.option('--autonomous-exadata-infrastructure-id', help=u"""**No longer used.** This parameter is no longer used for Autonomous Database on dedicated Exadata infrasture. Specify a `cloudAutonomousVmClusterId` instead. Using this parameter will cause the operation to fail.""")
24872494
@cli_util.option('--db-version', help=u"""The base version for the Autonomous Container Database.""")
@@ -5017,7 +5024,7 @@ def create_autonomous_database_backup(ctx, from_json, wait_for_state, max_wait_s
50175024
@cli_util.option('--total-container-databases', type=click.INT, help=u"""The total number of Autonomous Container Databases that can be created.""")
50185025
@cli_util.option('--cpu-core-count-per-node', type=click.INT, help=u"""The number of CPU cores to enable per VM cluster node.""")
50195026
@cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model of the Autonomous VM Cluster. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure] for more details.""")
5020-
@cli_util.option('--memory-per-oracle-compute-unit-in-gbs', type=click.INT, help=u"""The amount of memory (in GBs) to be enabled per each CPU core.""")
5027+
@cli_util.option('--memory-per-oracle-compute-unit-in-gbs', type=click.INT, help=u"""The amount of memory (in GBs) to be enabled per OCPU or ECPU. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure] for more details.""")
50215028
@cli_util.option('--autonomous-data-storage-size-in-tbs', help=u"""The data disk group size to be allocated for Autonomous Databases, in TBs.""")
50225029
@cli_util.option('--maintenance-window-details', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
50235030
@cli_util.option('--db-servers', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The list of [OCIDs] of the Db servers.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -5382,7 +5389,7 @@ def create_backup_destination_create_recovery_appliance_backup_destination_detai
53825389
@cli_util.option('--description', help=u"""User defined description of the cloud Autonomous VM cluster.""")
53835390
@cli_util.option('--total-container-databases', type=click.INT, help=u"""The total number of Autonomous Container Databases that can be created.""")
53845391
@cli_util.option('--cpu-core-count-per-node', type=click.INT, help=u"""The number of CPU cores to be enabled per VM cluster node.""")
5385-
@cli_util.option('--memory-per-oracle-compute-unit-in-gbs', type=click.INT, help=u"""The amount of memory (in GBs) to be enabled per each CPU core.""")
5392+
@cli_util.option('--memory-per-oracle-compute-unit-in-gbs', type=click.INT, help=u"""The amount of memory (in GBs) to be enabled per OCPU or ECPU. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure] for more details.""")
53865393
@cli_util.option('--autonomous-data-storage-size-in-tbs', help=u"""The data disk group size to be allocated for Autonomous Databases, in TBs.""")
53875394
@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].""")
53885395
@cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model of the Cloud Autonomous VM Cluster. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure] for more details.""")
@@ -11695,17 +11702,20 @@ def get_cloud_exadata_infrastructure(ctx, from_json, cloud_exadata_infrastructur
1169511702

1169611703
@cloud_exadata_infrastructure_unallocated_resources_group.command(name=cli_util.override('db.get_cloud_exadata_infrastructure_unallocated_resources.command_name', 'get'), help=u"""Gets unallocated resources information for the specified Cloud Exadata infrastructure. \n[Command Reference](getCloudExadataInfrastructureUnallocatedResources)""")
1169711704
@cli_util.option('--cloud-exadata-infrastructure-id', required=True, help=u"""The cloud Exadata infrastructure [OCID].""")
11698-
@json_skeleton_utils.get_cli_json_input_option({})
11705+
@cli_util.option('--db-servers', multiple=True, help=u"""The list of [OCIDs] of the Db servers.""")
11706+
@json_skeleton_utils.get_cli_json_input_option({'db-servers': {'module': 'database', 'class': 'list[string]'}})
1169911707
@cli_util.help_option
1170011708
@click.pass_context
11701-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database', 'class': 'CloudExadataInfrastructureUnallocatedResources'})
11709+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'db-servers': {'module': 'database', 'class': 'list[string]'}}, output_type={'module': 'database', 'class': 'CloudExadataInfrastructureUnallocatedResources'})
1170211710
@cli_util.wrap_exceptions
11703-
def get_cloud_exadata_infrastructure_unallocated_resources(ctx, from_json, cloud_exadata_infrastructure_id):
11711+
def get_cloud_exadata_infrastructure_unallocated_resources(ctx, from_json, cloud_exadata_infrastructure_id, db_servers):
1170411712

1170511713
if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0:
1170611714
raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string')
1170711715

1170811716
kwargs = {}
11717+
if db_servers is not None and len(db_servers) > 0:
11718+
kwargs['db_servers'] = db_servers
1170911719
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1171011720
client = cli_util.build_client('database', 'database', ctx)
1171111721
result = client.get_cloud_exadata_infrastructure_unallocated_resources(
@@ -12203,6 +12213,31 @@ def get_exadata_infrastructure_ocpus(ctx, from_json, autonomous_exadata_infrastr
1220312213
cli_util.render_response(result, ctx)
1220412214

1220512215

12216+
@exadata_infrastructure_un_allocated_resources_group.command(name=cli_util.override('db.get_exadata_infrastructure_un_allocated_resources.command_name', 'get'), help=u"""Gets un allocated resources information for the specified Exadata infrastructure. Applies to Exadata Cloud@Customer instances only. \n[Command Reference](getExadataInfrastructureUnAllocatedResources)""")
12217+
@cli_util.option('--exadata-infrastructure-id', required=True, help=u"""The Exadata infrastructure [OCID].""")
12218+
@cli_util.option('--db-servers', multiple=True, help=u"""The list of [OCIDs] of the Db servers.""")
12219+
@json_skeleton_utils.get_cli_json_input_option({'db-servers': {'module': 'database', 'class': 'list[string]'}})
12220+
@cli_util.help_option
12221+
@click.pass_context
12222+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'db-servers': {'module': 'database', 'class': 'list[string]'}}, output_type={'module': 'database', 'class': 'ExadataInfrastructureUnAllocatedResources'})
12223+
@cli_util.wrap_exceptions
12224+
def get_exadata_infrastructure_un_allocated_resources(ctx, from_json, exadata_infrastructure_id, db_servers):
12225+
12226+
if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0:
12227+
raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string')
12228+
12229+
kwargs = {}
12230+
if db_servers is not None and len(db_servers) > 0:
12231+
kwargs['db_servers'] = db_servers
12232+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
12233+
client = cli_util.build_client('database', 'database', ctx)
12234+
result = client.get_exadata_infrastructure_un_allocated_resources(
12235+
exadata_infrastructure_id=exadata_infrastructure_id,
12236+
**kwargs
12237+
)
12238+
cli_util.render_response(result, ctx)
12239+
12240+
1220612241
@db_system_group.command(name=cli_util.override('db.get_exadata_iorm_config.command_name', 'get-exadata-iorm-config'), help=u"""Gets the IORM configuration settings for the specified cloud Exadata DB system. All Exadata service instances have default IORM settings.
1220712242

1220812243
**Note:** Deprecated for Exadata Cloud Service systems. Use the [new resource model APIs] instead.
@@ -18272,7 +18307,7 @@ def rotate_autonomous_database_encryption_key(ctx, from_json, wait_for_state, ma
1827218307

1827318308

1827418309
@autonomous_vm_cluster_group.command(name=cli_util.override('db.rotate_autonomous_vm_cluster_ords_certs.command_name', 'rotate-autonomous-vm-cluster-ords-certs'), help=u"""Rotates the Oracle REST Data Services (ORDS) certificates for Autonomous Exadata VM cluster. \n[Command Reference](rotateAutonomousVmClusterOrdsCerts)""")
18275-
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate.""")
18310+
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM to use Oracle-managed certificates. Specify BYOC when you want to bring your own certificate.""")
1827618311
@cli_util.option('--autonomous-vm-cluster-id', required=True, help=u"""The autonomous VM cluster [OCID].""")
1827718312
@cli_util.option('--certificate-id', help=u"""The [OCID] of the certificate to use.""")
1827818313
@cli_util.option('--certificate-authority-id', help=u"""The [OCID] of the certificate authority.""")
@@ -18349,7 +18384,7 @@ def rotate_autonomous_vm_cluster_ords_certs(ctx, from_json, wait_for_state, max_
1834918384

1835018385

1835118386
@autonomous_vm_cluster_group.command(name=cli_util.override('db.rotate_autonomous_vm_cluster_ssl_certs.command_name', 'rotate-autonomous-vm-cluster-ssl-certs'), help=u"""Rotates the SSL certificates for Autonomous Exadata VM cluster. \n[Command Reference](rotateAutonomousVmClusterSslCerts)""")
18352-
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate.""")
18387+
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM to use Oracle-managed certificates. Specify BYOC when you want to bring your own certificate.""")
1835318388
@cli_util.option('--autonomous-vm-cluster-id', required=True, help=u"""The autonomous VM cluster [OCID].""")
1835418389
@cli_util.option('--certificate-id', help=u"""The [OCID] of the certificate to use.""")
1835518390
@cli_util.option('--certificate-authority-id', help=u"""The [OCID] of the certificate authority.""")
@@ -18427,7 +18462,7 @@ def rotate_autonomous_vm_cluster_ssl_certs(ctx, from_json, wait_for_state, max_w
1842718462

1842818463
@cloud_autonomous_vm_cluster_group.command(name=cli_util.override('db.rotate_cloud_autonomous_vm_cluster_ords_certs.command_name', 'rotate-cloud-autonomous-vm-cluster-ords-certs'), help=u"""Rotates the Oracle REST Data Services (ORDS) certificates for a cloud Autonomous Exadata VM cluster. \n[Command Reference](rotateCloudAutonomousVmClusterOrdsCerts)""")
1842918464
@cli_util.option('--cloud-autonomous-vm-cluster-id', required=True, help=u"""The Cloud VM cluster [OCID].""")
18430-
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate.""")
18465+
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM to use Oracle-managed certificates. Specify BYOC when you want to bring your own certificate.""")
1843118466
@cli_util.option('--certificate-id', help=u"""The [OCID] of the certificate to use.""")
1843218467
@cli_util.option('--certificate-authority-id', help=u"""The [OCID] of the certificate authority.""")
1843318468
@cli_util.option('--ca-bundle-id', help=u"""The [OCID] of the certificate bundle.""")
@@ -18504,7 +18539,7 @@ def rotate_cloud_autonomous_vm_cluster_ords_certs(ctx, from_json, wait_for_state
1850418539

1850518540
@cloud_autonomous_vm_cluster_group.command(name=cli_util.override('db.rotate_cloud_autonomous_vm_cluster_ssl_certs.command_name', 'rotate-cloud-autonomous-vm-cluster-ssl-certs'), help=u"""Rotates the SSL certficates for a cloud Autonomous Exadata VM cluster. \n[Command Reference](rotateCloudAutonomousVmClusterSslCerts)""")
1850618541
@cli_util.option('--cloud-autonomous-vm-cluster-id', required=True, help=u"""The Cloud VM cluster [OCID].""")
18507-
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate.""")
18542+
@cli_util.option('--certificate-generation-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SYSTEM", "BYOC"]), help=u"""Specify SYSTEM to use Oracle-managed certificates. Specify BYOC when you want to bring your own certificate.""")
1850818543
@cli_util.option('--certificate-id', help=u"""The [OCID] of the certificate to use.""")
1850918544
@cli_util.option('--certificate-authority-id', help=u"""The [OCID] of the certificate authority.""")
1851018545
@cli_util.option('--ca-bundle-id', help=u"""The [OCID] of the certificate bundle.""")

services/dns/src/oci_cli_dns/dns_cli_extended.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def zone():
4242
@option('--compartment-id', required=True, help="""The OCID of the compartment the resource belongs to.""")
4343
@option('--zone-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["PRIMARY", "SECONDARY"]), help=u"""The type of the zone. Must be either `PRIMARY` or `SECONDARY`.""")
4444
@click.pass_context
45-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'dns', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dns', 'class': 'dict(str, dict(str, object))'}, 'external-masters': {'module': 'dns', 'class': 'list[ExternalMaster]'}}, output_type={'module': 'dns', 'class': 'Zone'})
45+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'dns', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dns', 'class': 'dict(str, dict(str, object))'}, 'external-masters': {'module': 'dns', 'class': 'list[ExternalMaster]'}, 'external-downstreams': {'module': 'dns', 'class': 'list[ExternalDownstream]'}}, output_type={'module': 'dns', 'class': 'Zone'})
4646
@cli_util.wrap_exceptions
4747
def create_zone(ctx, **kwargs):
4848
ctx.invoke(dns_cli.create_zone_create_zone_details, **kwargs)

0 commit comments

Comments
 (0)