oci-cli 3.65.1__py3-none-any.whl → 3.66.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. oci_cli/bin/email.psm1 +23 -11
  2. oci_cli/cli_root.py +2 -2
  3. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/change-compartment.txt +133 -0
  4. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/create.txt +185 -0
  5. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/delete.txt +135 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/get.txt +93 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/update.txt +195 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform-collection/list-ai-data-platforms.txt +155 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform-collection.txt +15 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform.txt +28 -0
  11. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/cancel.txt +103 -0
  12. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/get.txt +91 -0
  13. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/list.txt +140 -0
  14. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-error/list.txt +131 -0
  15. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-error.txt +15 -0
  16. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-log-entry/list-work-request-logs.txt +131 -0
  17. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-log-entry.txt +15 -0
  18. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request.txt +23 -0
  19. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform.txt +44 -0
  20. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +8 -0
  21. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/delete.txt +5 -0
  22. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/list.txt +18 -0
  23. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/create.txt +2 -1
  24. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +2 -1
  25. oci_cli/help_text_producer/data_files/text/cmdref/db/system/change-cloud-db-system-subscription.txt +134 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +16 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +16 -0
  28. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +16 -0
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +16 -0
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/system/list-db-system-storage-performances.txt +3 -3
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +6 -0
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/system.txt +2 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +2 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/email/domain/add.txt +148 -0
  35. oci_cli/help_text_producer/data_files/text/cmdref/email/domain/change-compartment.txt +4 -0
  36. oci_cli/help_text_producer/data_files/text/cmdref/email/domain/delete.txt +4 -0
  37. oci_cli/help_text_producer/data_files/text/cmdref/email/domain/remove.txt +138 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/email/domain/update.txt +4 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/email/domain.txt +4 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/email/email-return-path/add.txt +150 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/email/email-return-path/delete.txt +4 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/email/email-return-path/remove.txt +140 -0
  43. oci_cli/help_text_producer/data_files/text/cmdref/email/email-return-path/update.txt +4 -0
  44. oci_cli/help_text_producer/data_files/text/cmdref/email/email-return-path.txt +4 -0
  45. oci_cli/help_text_producer/data_files/text/cmdref/email/sender/add.txt +151 -0
  46. oci_cli/help_text_producer/data_files/text/cmdref/email/sender/change-compartment.txt +4 -0
  47. oci_cli/help_text_producer/data_files/text/cmdref/email/sender/delete.txt +4 -0
  48. oci_cli/help_text_producer/data_files/text/cmdref/email/sender/remove.txt +141 -0
  49. oci_cli/help_text_producer/data_files/text/cmdref/email/sender/update.txt +4 -0
  50. oci_cli/help_text_producer/data_files/text/cmdref/email/sender.txt +4 -0
  51. oci_cli/help_text_producer/data_files/text/cmdref/email.txt +12 -0
  52. oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/create.txt +6 -5
  53. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list-errors.txt → list.txt} +5 -5
  54. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
  55. oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
  56. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
  57. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
  58. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry → work-request-log}/list.txt +19 -1
  59. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry.txt → work-request-log.txt} +2 -2
  60. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +2 -2
  61. oci_cli/help_text_producer/data_files/text/index.txt +2 -0
  62. oci_cli/help_text_producer/data_files/text/oci.txt +1 -1
  63. oci_cli/service_mapping.py +5 -0
  64. oci_cli/version.py +1 -1
  65. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/METADATA +2 -2
  66. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/RECORD +83 -51
  67. services/ai_data_platform/__init__.py +4 -0
  68. services/ai_data_platform/src/__init__.py +4 -0
  69. services/ai_data_platform/src/oci_cli_ai_data_platform/__init__.py +4 -0
  70. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/__init__.py +4 -0
  71. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/ai_data_platform_service_cli.py +14 -0
  72. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py +676 -0
  73. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/client_mappings.py +14 -0
  74. services/ai_data_platform/tests/__init__.py +4 -0
  75. services/database/src/oci_cli_database/database_cli_extended.py +3 -1
  76. services/database/src/oci_cli_database/generated/database_cli.py +170 -13
  77. services/email/src/oci_cli_email/generated/email_cli.py +422 -8
  78. services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +2 -2
  79. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/LICENSE.txt +0 -0
  80. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  81. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/WHEEL +0 -0
  82. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/entry_points.txt +0 -0
  83. {oci_cli-3.65.1.dist-info → oci_cli-3.66.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240831
5
+
6
+ import oci
7
+ from oci_cli.cli_clients import CLIENT_MAP
8
+ from oci_cli.cli_clients import MODULE_TO_TYPE_MAPPINGS
9
+ from oci.ai_data_platform import AiDataPlatformClient
10
+
11
+ MODULE_TO_TYPE_MAPPINGS["ai_data_platform"] = oci.ai_data_platform.models.ai_data_platform_type_mapping
12
+ if CLIENT_MAP.get("ai_data_platform") is None:
13
+ CLIENT_MAP["ai_data_platform"] = {}
14
+ CLIENT_MAP["ai_data_platform"]["ai_data_platform"] = AiDataPlatformClient
@@ -0,0 +1,4 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240831
@@ -3545,7 +3545,7 @@ def update_data_guard_association(ctx, from_json, wait_for_state, max_wait_secon
3545
3545
  @database_cli.autonomous_database_group.command(name=database_cli.delete_autonomous_database.name, help=database_cli.delete_autonomous_database.help)
3546
3546
  @click.pass_context
3547
3547
  @cli_util.wrap_exceptions
3548
- def delete_autonomous_database_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, opc_dry_run):
3548
+ def delete_autonomous_database_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, must_delete_associated_long_term_backups, opc_dry_run):
3549
3549
 
3550
3550
  if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0:
3551
3551
  raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string')
@@ -3553,6 +3553,8 @@ def delete_autonomous_database_extended(ctx, from_json, wait_for_state, max_wait
3553
3553
  kwargs = {}
3554
3554
  if if_match is not None:
3555
3555
  kwargs['if_match'] = if_match
3556
+ if must_delete_associated_long_term_backups is not None:
3557
+ kwargs['must_delete_associated_long_term_backups'] = must_delete_associated_long_term_backups
3556
3558
  if opc_dry_run is not None:
3557
3559
  kwargs['opc_dry_run'] = opc_dry_run
3558
3560
  kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
@@ -1863,6 +1863,81 @@ def change_cloud_autonomous_vm_cluster_subscription(ctx, from_json, wait_for_sta
1863
1863
  cli_util.render_response(result, ctx)
1864
1864
 
1865
1865
 
1866
+ @db_system_group.command(name=cli_util.override('db.change_cloud_db_system_subscription.command_name', 'change-cloud-db-system-subscription'), help=u"""Associate a cloud DB system with a different subscription. \n[Command Reference](changeCloudDbSystemSubscription)""")
1867
+ @cli_util.option('--db-system-id', required=True, help=u"""The DB system [OCID].""")
1868
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
1869
+ @cli_util.option('--is-default', type=click.BOOL, help=u"""Indicates if the subscription is UCM or not.""")
1870
+ @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
1871
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
1872
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
1873
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
1874
+ @json_skeleton_utils.get_cli_json_input_option({})
1875
+ @cli_util.help_option
1876
+ @click.pass_context
1877
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1878
+ @cli_util.wrap_exceptions
1879
+ def change_cloud_db_system_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, subscription_id, is_default, if_match):
1880
+
1881
+ if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0:
1882
+ raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string')
1883
+
1884
+ kwargs = {}
1885
+ if if_match is not None:
1886
+ kwargs['if_match'] = if_match
1887
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1888
+
1889
+ _details = {}
1890
+
1891
+ if subscription_id is not None:
1892
+ _details['subscriptionId'] = subscription_id
1893
+
1894
+ if is_default is not None:
1895
+ _details['isDefault'] = is_default
1896
+
1897
+ client = cli_util.build_client('database', 'database', ctx)
1898
+ result = client.change_cloud_db_system_subscription(
1899
+ db_system_id=db_system_id,
1900
+ change_cloud_db_system_subscription_details=_details,
1901
+ **kwargs
1902
+ )
1903
+ work_request_client = cli_util.build_client('work_requests', 'work_request', ctx)
1904
+ if wait_for_state:
1905
+
1906
+ if hasattr(work_request_client, 'get_work_request') and callable(getattr(work_request_client, 'get_work_request')):
1907
+ try:
1908
+ wait_period_kwargs = {}
1909
+ if max_wait_seconds is not None:
1910
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1911
+ if wait_interval_seconds is not None:
1912
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1913
+ if 'opc-work-request-id' not in result.headers:
1914
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1915
+ cli_util.render_response(result, ctx)
1916
+ return
1917
+
1918
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1919
+ result = oci.wait_until(work_request_client, work_request_client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1920
+ if hasattr(result, "data") and hasattr(result.data, "resources") and len(result.data.resources) == 1:
1921
+ entity_type = result.data.resources[0].entity_type
1922
+ identifier = result.data.resources[0].identifier
1923
+ get_operation = 'get_' + entity_type
1924
+ if hasattr(client, get_operation) and callable(getattr(client, get_operation)):
1925
+ result = getattr(client, get_operation)(identifier)
1926
+
1927
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1928
+ # If we fail, we should show an error, but we should still provide the information to the customer
1929
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1930
+ cli_util.render_response(result, ctx)
1931
+ sys.exit(2)
1932
+ except Exception:
1933
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1934
+ cli_util.render_response(result, ctx)
1935
+ raise
1936
+ else:
1937
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1938
+ cli_util.render_response(result, ctx)
1939
+
1940
+
1866
1941
  @cloud_exadata_infrastructure_group.command(name=cli_util.override('db.change_cloud_exadata_infrastructure_compartment.command_name', 'change-compartment'), help=u"""Moves a cloud Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.For more information about moving resources to a different compartment, see [Moving Database Resources to a Different Compartment]. \n[Command Reference](changeCloudExadataInfrastructureCompartment)""")
1867
1942
  @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment.""")
1868
1943
  @cli_util.option('--cloud-exadata-infrastructure-id', required=True, help=u"""The cloud Exadata infrastructure [OCID].""")
@@ -6291,6 +6366,7 @@ This cannot be used in conjunction with adminPassword.""")
6291
6366
  @cli_util.option('--open-mode', type=custom_types.CliCaseInsensitiveChoice(["READ_ONLY", "READ_WRITE"]), help=u"""Indicates the Autonomous Database mode. The database can be opened in `READ_ONLY` or `READ_WRITE` mode.
6292
6367
 
6293
6368
  This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, or isFreeTier.""")
6369
+ @cli_util.option('--clone-type', type=custom_types.CliCaseInsensitiveChoice(["FULL", "METADATA", "PARTIAL"]), help=u"""The Autonomous Database clone type.""")
6294
6370
  @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
6295
6371
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
6296
6372
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
@@ -6300,7 +6376,7 @@ This cannot be updated in parallel with any of the following: cpuCoreCount, comp
6300
6376
  @click.pass_context
6301
6377
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'encryption-key': {'module': 'database', 'class': 'AutonomousDatabaseEncryptionKeyDetails'}, 'whitelisted-ips': {'module': 'database', 'class': 'list[string]'}, 'standby-whitelisted-ips': {'module': 'database', 'class': 'list[string]'}, '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))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'customer-contacts': {'module': 'database', 'class': 'list[CustomerContact]'}, 'resource-pool-summary': {'module': 'database', 'class': 'ResourcePoolSummary'}, 'scheduled-operations': {'module': 'database', 'class': 'list[ScheduledOperationDetails]'}, 'db-tools-details': {'module': 'database', 'class': 'list[DatabaseTool]'}}, output_type={'module': 'database', 'class': 'AutonomousDatabase'})
6302
6378
  @cli_util.wrap_exceptions
6303
- def create_autonomous_database_create_refreshable_autonomous_database_clone_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, source_id, subscription_id, character_set, ncharacter_set, db_name, cpu_core_count, backup_retention_period_in_days, compute_model, compute_count, ocpu_count, db_workload, data_storage_size_in_tbs, data_storage_size_in_gbs, is_free_tier, kms_key_id, vault_id, encryption_key, admin_password, display_name, license_model, byol_compute_count_limit, is_preview_version_with_service_terms_accepted, is_auto_scaling_enabled, is_dev_tier, is_dedicated, autonomous_container_database_id, in_memory_percentage, is_access_control_enabled, whitelisted_ips, are_primary_whitelisted_ips_used, standby_whitelisted_ips, is_data_guard_enabled, is_local_data_guard_enabled, subnet_id, nsg_ids, private_endpoint_label, freeform_tags, defined_tags, security_attributes, private_endpoint_ip, db_version, customer_contacts, is_mtls_connection_required, resource_pool_leader_id, resource_pool_summary, autonomous_maintenance_schedule_type, scheduled_operations, is_auto_scaling_for_storage_enabled, database_edition, db_tools_details, is_backup_retention_locked, secret_id, secret_version_number, refreshable_mode, auto_refresh_frequency_in_seconds, auto_refresh_point_lag_in_seconds, time_of_auto_refresh_start, open_mode, opc_dry_run):
6379
+ def create_autonomous_database_create_refreshable_autonomous_database_clone_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, source_id, subscription_id, character_set, ncharacter_set, db_name, cpu_core_count, backup_retention_period_in_days, compute_model, compute_count, ocpu_count, db_workload, data_storage_size_in_tbs, data_storage_size_in_gbs, is_free_tier, kms_key_id, vault_id, encryption_key, admin_password, display_name, license_model, byol_compute_count_limit, is_preview_version_with_service_terms_accepted, is_auto_scaling_enabled, is_dev_tier, is_dedicated, autonomous_container_database_id, in_memory_percentage, is_access_control_enabled, whitelisted_ips, are_primary_whitelisted_ips_used, standby_whitelisted_ips, is_data_guard_enabled, is_local_data_guard_enabled, subnet_id, nsg_ids, private_endpoint_label, freeform_tags, defined_tags, security_attributes, private_endpoint_ip, db_version, customer_contacts, is_mtls_connection_required, resource_pool_leader_id, resource_pool_summary, autonomous_maintenance_schedule_type, scheduled_operations, is_auto_scaling_for_storage_enabled, database_edition, db_tools_details, is_backup_retention_locked, secret_id, secret_version_number, refreshable_mode, auto_refresh_frequency_in_seconds, auto_refresh_point_lag_in_seconds, time_of_auto_refresh_start, open_mode, clone_type, opc_dry_run):
6304
6380
 
6305
6381
  kwargs = {}
6306
6382
  if opc_dry_run is not None:
@@ -6482,6 +6558,9 @@ def create_autonomous_database_create_refreshable_autonomous_database_clone_deta
6482
6558
  if open_mode is not None:
6483
6559
  _details['openMode'] = open_mode
6484
6560
 
6561
+ if clone_type is not None:
6562
+ _details['cloneType'] = clone_type
6563
+
6485
6564
  _details['source'] = 'CLONE_TO_REFRESHABLE'
6486
6565
 
6487
6566
  client = cli_util.build_client('database', 'database', ctx)
@@ -10815,7 +10894,7 @@ def create_cloud_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_
10815
10894
 
10816
10895
  Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
10817
10896
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
10818
- @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure.""")
10897
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
10819
10898
  @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
10820
10899
  @cli_util.option('--customer-contacts', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Customer contacts.
10821
10900
 
@@ -11387,6 +11466,8 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
11387
11466
  Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
11388
11467
  @cli_util.option('--database-defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
11389
11468
  @cli_util.option('--data-collection-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
11469
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
11470
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
11390
11471
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
11391
11472
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
11392
11473
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -11395,7 +11476,7 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
11395
11476
  @click.pass_context
11396
11477
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'source-encryption-key-location-details': {'module': 'database', 'class': 'EncryptionKeyLocationDetails'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'fault-domains': {'module': 'database', 'class': 'list[string]'}, 'db-system-freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'db-system-defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'db-system-security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'database-freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'database-defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}}, output_type={'module': 'database', 'class': 'DataGuardAssociation'})
11397
11478
  @cli_util.wrap_exceptions
11398
- def create_data_guard_association_create_data_guard_association_with_new_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, database_software_image_id, source_encryption_key_location_details, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix, display_name, availability_domain, shape, cpu_core_count, storage_volume_performance_mode, compute_model, compute_count, node_count, subnet_id, nsg_ids, backup_network_nsg_ids, hostname, domain, time_zone, fault_domains, private_ip, private_ip_v6, license_model, db_system_freeform_tags, db_system_defined_tags, db_system_security_attributes, database_freeform_tags, database_defined_tags, data_collection_options):
11479
+ def create_data_guard_association_create_data_guard_association_with_new_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, database_software_image_id, source_encryption_key_location_details, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix, display_name, availability_domain, shape, cpu_core_count, storage_volume_performance_mode, compute_model, compute_count, node_count, subnet_id, nsg_ids, backup_network_nsg_ids, hostname, domain, time_zone, fault_domains, private_ip, private_ip_v6, license_model, db_system_freeform_tags, db_system_defined_tags, db_system_security_attributes, database_freeform_tags, database_defined_tags, data_collection_options, cluster_placement_group_id, subscription_id):
11399
11480
 
11400
11481
  if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0:
11401
11482
  raise click.UsageError('Parameter --database-id cannot be whitespace or empty string')
@@ -11494,6 +11575,12 @@ def create_data_guard_association_create_data_guard_association_with_new_db_syst
11494
11575
  if data_collection_options is not None:
11495
11576
  _details['dataCollectionOptions'] = cli_util.parse_json_parameter("data_collection_options", data_collection_options)
11496
11577
 
11578
+ if cluster_placement_group_id is not None:
11579
+ _details['clusterPlacementGroupId'] = cluster_placement_group_id
11580
+
11581
+ if subscription_id is not None:
11582
+ _details['subscriptionId'] = subscription_id
11583
+
11497
11584
  _details['creationType'] = 'NewDbSystem'
11498
11585
 
11499
11586
  client = cli_util.build_client('database', 'database', ctx)
@@ -13229,7 +13316,7 @@ def create_exadb_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wa
13229
13316
  Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
13230
13317
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
13231
13318
  @cli_util.option('--exadata-infrastructure-id', help=u"""The [OCID] of the Exadata infrastructure.""")
13232
- @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure.""")
13319
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
13233
13320
  @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
13234
13321
  @cli_util.option('--is-autoscale-enabled', type=click.BOOL, help=u"""Indicates if autoscale feature is enabled for the Database Storage Vault. The default value is `FALSE`.""")
13235
13322
  @cli_util.option('--autoscale-limit-in-gbs', type=click.INT, help=u"""Maximum limit storage size in gigabytes, that is applicable for the Database Storage Vault.""")
@@ -15165,6 +15252,7 @@ def delete_application_vip(ctx, from_json, wait_for_state, max_wait_seconds, wai
15165
15252
  @autonomous_database_group.command(name=cli_util.override('db.delete_autonomous_database.command_name', 'delete'), help=u"""Deletes the specified Autonomous Database. \n[Command Reference](deleteAutonomousDatabase)""")
15166
15253
  @cli_util.option('--autonomous-database-id', required=True, help=u"""The database [OCID].""")
15167
15254
  @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
15255
+ @cli_util.option('--must-delete-associated-long-term-backups', type=click.BOOL, help=u"""If set to true, terminating the Autonomous Database also deletes its associated long-term backups if the retention lock is not enabled.""")
15168
15256
  @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
15169
15257
  @cli_util.confirm_delete_option
15170
15258
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
@@ -15175,7 +15263,7 @@ def delete_application_vip(ctx, from_json, wait_for_state, max_wait_seconds, wai
15175
15263
  @click.pass_context
15176
15264
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
15177
15265
  @cli_util.wrap_exceptions
15178
- def delete_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, opc_dry_run):
15266
+ def delete_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, must_delete_associated_long_term_backups, opc_dry_run):
15179
15267
 
15180
15268
  if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0:
15181
15269
  raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string')
@@ -15183,6 +15271,8 @@ def delete_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds,
15183
15271
  kwargs = {}
15184
15272
  if if_match is not None:
15185
15273
  kwargs['if_match'] = if_match
15274
+ if must_delete_associated_long_term_backups is not None:
15275
+ kwargs['must_delete_associated_long_term_backups'] = must_delete_associated_long_term_backups
15186
15276
  if opc_dry_run is not None:
15187
15277
  kwargs['opc_dry_run'] = opc_dry_run
15188
15278
  kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
@@ -21301,9 +21391,12 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21301
21391
  @cli_util.option('--source', type=custom_types.CliCaseInsensitiveChoice(["NONE", "DB_BACKUP", "DATABASE", "DB_SYSTEM"]), help=u"""The source of the database: Use `NONE` for creating a new database. Use `DB_BACKUP` for creating a new database by restoring from a backup. Use `DATABASE` for creating a new database from an existing database, including archive redo log data. The default is `NONE`.""")
21302
21392
  @cli_util.option('--private-ip', help=u"""A private IP address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet.""")
21303
21393
  @cli_util.option('--private-ip-v6', help=u"""A private IPv6 address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value and the subnet is dual stack, Oracle automatically assigns a private IPv6 address from the subnet.""")
21394
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
21395
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
21304
21396
  @cli_util.option('--data-collection-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21305
21397
  @cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.""")
21306
21398
  @cli_util.option('--compute-count', type=click.INT, help=u"""The number of compute servers for the DB system.""")
21399
+ @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
21307
21400
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "MIGRATED", "MAINTENANCE_IN_PROGRESS", "NEEDS_ATTENTION", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
21308
21401
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
21309
21402
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -21312,9 +21405,11 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21312
21405
  @click.pass_context
21313
21406
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'fault-domains': {'module': 'database', 'class': 'list[string]'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'db-system-options': {'module': 'database', 'class': 'DbSystemOptions'}, 'ssh-public-keys': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}}, output_type={'module': 'database', 'class': 'DbSystem'})
21314
21407
  @cli_util.wrap_exceptions
21315
- def launch_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, source, private_ip, private_ip_v6, data_collection_options, compute_model, compute_count):
21408
+ def launch_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, source, private_ip, private_ip_v6, cluster_placement_group_id, subscription_id, data_collection_options, compute_model, compute_count, opc_dry_run):
21316
21409
 
21317
21410
  kwargs = {}
21411
+ if opc_dry_run is not None:
21412
+ kwargs['opc_dry_run'] = opc_dry_run
21318
21413
 
21319
21414
  _details = {}
21320
21415
  _details['compartmentId'] = compartment_id
@@ -21393,6 +21488,12 @@ def launch_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte
21393
21488
  if private_ip_v6 is not None:
21394
21489
  _details['privateIpV6'] = private_ip_v6
21395
21490
 
21491
+ if cluster_placement_group_id is not None:
21492
+ _details['clusterPlacementGroupId'] = cluster_placement_group_id
21493
+
21494
+ if subscription_id is not None:
21495
+ _details['subscriptionId'] = subscription_id
21496
+
21396
21497
  if data_collection_options is not None:
21397
21498
  _details['dataCollectionOptions'] = cli_util.parse_json_parameter("data_collection_options", data_collection_options)
21398
21499
 
@@ -21498,12 +21599,15 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21498
21599
  @cli_util.option('--security-attributes', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags]. Example: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21499
21600
  @cli_util.option('--private-ip', help=u"""A private IP address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet.""")
21500
21601
  @cli_util.option('--private-ip-v6', help=u"""A private IPv6 address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value and the subnet is dual stack, Oracle automatically assigns a private IPv6 address from the subnet.""")
21602
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
21603
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
21501
21604
  @cli_util.option('--data-collection-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21502
21605
  @cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.""")
21503
21606
  @cli_util.option('--compute-count', type=click.INT, help=u"""The number of compute servers for the DB system.""")
21504
21607
  @cli_util.option('--disk-redundancy', type=custom_types.CliCaseInsensitiveChoice(["HIGH", "NORMAL"]), help=u"""The type of redundancy configured for the DB system. Normal is 2-way redundancy, recommended for test and development systems. High is 3-way redundancy, recommended for production systems.""")
21505
21608
  @cli_util.option('--license-model', type=custom_types.CliCaseInsensitiveChoice(["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"]), help=u"""The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.""")
21506
21609
  @cli_util.option('--maintenance-window-details', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21610
+ @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
21507
21611
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "MIGRATED", "MAINTENANCE_IN_PROGRESS", "NEEDS_ATTENTION", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
21508
21612
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
21509
21613
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -21512,9 +21616,11 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21512
21616
  @click.pass_context
21513
21617
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'fault-domains': {'module': 'database', 'class': 'list[string]'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'db-system-options': {'module': 'database', 'class': 'DbSystemOptions'}, 'ssh-public-keys': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}, 'db-home': {'module': 'database', 'class': 'CreateDbHomeDetails'}, 'maintenance-window-details': {'module': 'database', 'class': 'MaintenanceWindow'}}, output_type={'module': 'database', 'class': 'DbSystem'})
21514
21618
  @cli_util.wrap_exceptions
21515
- def launch_db_system_launch_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, db_home, database_edition, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, data_collection_options, compute_model, compute_count, disk_redundancy, license_model, maintenance_window_details):
21619
+ def launch_db_system_launch_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, db_home, database_edition, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, cluster_placement_group_id, subscription_id, data_collection_options, compute_model, compute_count, disk_redundancy, license_model, maintenance_window_details, opc_dry_run):
21516
21620
 
21517
21621
  kwargs = {}
21622
+ if opc_dry_run is not None:
21623
+ kwargs['opc_dry_run'] = opc_dry_run
21518
21624
 
21519
21625
  _details = {}
21520
21626
  _details['compartmentId'] = compartment_id
@@ -21592,6 +21698,12 @@ def launch_db_system_launch_db_system_details(ctx, from_json, wait_for_state, ma
21592
21698
  if private_ip_v6 is not None:
21593
21699
  _details['privateIpV6'] = private_ip_v6
21594
21700
 
21701
+ if cluster_placement_group_id is not None:
21702
+ _details['clusterPlacementGroupId'] = cluster_placement_group_id
21703
+
21704
+ if subscription_id is not None:
21705
+ _details['subscriptionId'] = subscription_id
21706
+
21595
21707
  if data_collection_options is not None:
21596
21708
  _details['dataCollectionOptions'] = cli_util.parse_json_parameter("data_collection_options", data_collection_options)
21597
21709
 
@@ -21708,10 +21820,13 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21708
21820
  @cli_util.option('--security-attributes', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags]. Example: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21709
21821
  @cli_util.option('--private-ip', help=u"""A private IP address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet.""")
21710
21822
  @cli_util.option('--private-ip-v6', help=u"""A private IPv6 address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value and the subnet is dual stack, Oracle automatically assigns a private IPv6 address from the subnet.""")
21823
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
21824
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
21711
21825
  @cli_util.option('--data-collection-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21712
21826
  @cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.""")
21713
21827
  @cli_util.option('--compute-count', type=click.INT, help=u"""The number of compute servers for the DB system.""")
21714
21828
  @cli_util.option('--license-model', type=custom_types.CliCaseInsensitiveChoice(["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"]), help=u"""The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.""")
21829
+ @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
21715
21830
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "MIGRATED", "MAINTENANCE_IN_PROGRESS", "NEEDS_ATTENTION", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
21716
21831
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
21717
21832
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -21720,9 +21835,11 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21720
21835
  @click.pass_context
21721
21836
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'fault-domains': {'module': 'database', 'class': 'list[string]'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'db-system-options': {'module': 'database', 'class': 'DbSystemOptions'}, 'ssh-public-keys': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}, 'db-home': {'module': 'database', 'class': 'CreateDbHomeFromDbSystemDetails'}}, output_type={'module': 'database', 'class': 'DbSystem'})
21722
21837
  @cli_util.wrap_exceptions
21723
- def launch_db_system_launch_db_system_from_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, source_db_system_id, db_home, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, data_collection_options, compute_model, compute_count, license_model):
21838
+ def launch_db_system_launch_db_system_from_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, source_db_system_id, db_home, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, cluster_placement_group_id, subscription_id, data_collection_options, compute_model, compute_count, license_model, opc_dry_run):
21724
21839
 
21725
21840
  kwargs = {}
21841
+ if opc_dry_run is not None:
21842
+ kwargs['opc_dry_run'] = opc_dry_run
21726
21843
 
21727
21844
  _details = {}
21728
21845
  _details['compartmentId'] = compartment_id
@@ -21800,6 +21917,12 @@ def launch_db_system_launch_db_system_from_db_system_details(ctx, from_json, wai
21800
21917
  if private_ip_v6 is not None:
21801
21918
  _details['privateIpV6'] = private_ip_v6
21802
21919
 
21920
+ if cluster_placement_group_id is not None:
21921
+ _details['clusterPlacementGroupId'] = cluster_placement_group_id
21922
+
21923
+ if subscription_id is not None:
21924
+ _details['subscriptionId'] = subscription_id
21925
+
21803
21926
  if data_collection_options is not None:
21804
21927
  _details['dataCollectionOptions'] = cli_util.parse_json_parameter("data_collection_options", data_collection_options)
21805
21928
 
@@ -21910,11 +22033,14 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21910
22033
  @cli_util.option('--security-attributes', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags]. Example: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21911
22034
  @cli_util.option('--private-ip', help=u"""A private IP address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet.""")
21912
22035
  @cli_util.option('--private-ip-v6', help=u"""A private IPv6 address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value and the subnet is dual stack, Oracle automatically assigns a private IPv6 address from the subnet.""")
22036
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
22037
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
21913
22038
  @cli_util.option('--data-collection-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
21914
22039
  @cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.""")
21915
22040
  @cli_util.option('--compute-count', type=click.INT, help=u"""The number of compute servers for the DB system.""")
21916
22041
  @cli_util.option('--disk-redundancy', type=custom_types.CliCaseInsensitiveChoice(["HIGH", "NORMAL"]), help=u"""The type of redundancy configured for the DB system. NORMAL 2-way redundancy, recommended for test and development systems. HIGH is 3-way redundancy, recommended for production systems.""")
21917
22042
  @cli_util.option('--license-model', type=custom_types.CliCaseInsensitiveChoice(["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"]), help=u"""The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.""")
22043
+ @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
21918
22044
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "MIGRATED", "MAINTENANCE_IN_PROGRESS", "NEEDS_ATTENTION", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
21919
22045
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
21920
22046
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -21923,9 +22049,11 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
21923
22049
  @click.pass_context
21924
22050
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'fault-domains': {'module': 'database', 'class': 'list[string]'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'db-system-options': {'module': 'database', 'class': 'DbSystemOptions'}, 'ssh-public-keys': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}, 'db-home': {'module': 'database', 'class': 'CreateDbHomeFromDatabaseDetails'}}, output_type={'module': 'database', 'class': 'DbSystem'})
21925
22051
  @cli_util.wrap_exceptions
21926
- def launch_db_system_launch_db_system_from_database_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, db_home, database_edition, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, data_collection_options, compute_model, compute_count, disk_redundancy, license_model):
22052
+ def launch_db_system_launch_db_system_from_database_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, db_home, database_edition, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, cluster_placement_group_id, subscription_id, data_collection_options, compute_model, compute_count, disk_redundancy, license_model, opc_dry_run):
21927
22053
 
21928
22054
  kwargs = {}
22055
+ if opc_dry_run is not None:
22056
+ kwargs['opc_dry_run'] = opc_dry_run
21929
22057
 
21930
22058
  _details = {}
21931
22059
  _details['compartmentId'] = compartment_id
@@ -22003,6 +22131,12 @@ def launch_db_system_launch_db_system_from_database_details(ctx, from_json, wait
22003
22131
  if private_ip_v6 is not None:
22004
22132
  _details['privateIpV6'] = private_ip_v6
22005
22133
 
22134
+ if cluster_placement_group_id is not None:
22135
+ _details['clusterPlacementGroupId'] = cluster_placement_group_id
22136
+
22137
+ if subscription_id is not None:
22138
+ _details['subscriptionId'] = subscription_id
22139
+
22006
22140
  if data_collection_options is not None:
22007
22141
  _details['dataCollectionOptions'] = cli_util.parse_json_parameter("data_collection_options", data_collection_options)
22008
22142
 
@@ -22116,11 +22250,14 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
22116
22250
  @cli_util.option('--security-attributes', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags]. Example: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
22117
22251
  @cli_util.option('--private-ip', help=u"""A private IP address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet.""")
22118
22252
  @cli_util.option('--private-ip-v6', help=u"""A private IPv6 address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value and the subnet is dual stack, Oracle automatically assigns a private IPv6 address from the subnet.""")
22253
+ @cli_util.option('--cluster-placement-group-id', help=u"""The [OCID] of the cluster placement group of the Exadata Infrastructure or Db System.""")
22254
+ @cli_util.option('--subscription-id', help=u"""The [OCID] of the subscription with which resource needs to be associated with.""")
22119
22255
  @cli_util.option('--data-collection-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
22120
22256
  @cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.""")
22121
22257
  @cli_util.option('--compute-count', type=click.INT, help=u"""The number of compute servers for the DB system.""")
22122
22258
  @cli_util.option('--disk-redundancy', type=custom_types.CliCaseInsensitiveChoice(["HIGH", "NORMAL"]), help=u"""The type of redundancy configured for the DB system. NORMAL 2-way redundancy, recommended for test and development systems. HIGH is 3-way redundancy, recommended for production systems.""")
22123
22259
  @cli_util.option('--license-model', type=custom_types.CliCaseInsensitiveChoice(["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"]), help=u"""The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.""")
22260
+ @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
22124
22261
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "MIGRATED", "MAINTENANCE_IN_PROGRESS", "NEEDS_ATTENTION", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
22125
22262
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
22126
22263
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -22129,9 +22266,11 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
22129
22266
  @click.pass_context
22130
22267
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'fault-domains': {'module': 'database', 'class': 'list[string]'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'db-system-options': {'module': 'database', 'class': 'DbSystemOptions'}, 'ssh-public-keys': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}, 'db-home': {'module': 'database', 'class': 'CreateDbHomeFromBackupDetails'}}, output_type={'module': 'database', 'class': 'DbSystem'})
22131
22268
  @cli_util.wrap_exceptions
22132
- def launch_db_system_launch_db_system_from_backup_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, db_home, database_edition, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, data_collection_options, compute_model, compute_count, disk_redundancy, license_model):
22269
+ def launch_db_system_launch_db_system_from_backup_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, subnet_id, shape, ssh_public_keys, hostname, db_home, database_edition, fault_domains, display_name, backup_subnet_id, nsg_ids, backup_network_nsg_ids, time_zone, db_system_options, storage_volume_performance_mode, sparse_diskgroup, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, kms_key_id, kms_key_version_id, node_count, freeform_tags, defined_tags, security_attributes, private_ip, private_ip_v6, cluster_placement_group_id, subscription_id, data_collection_options, compute_model, compute_count, disk_redundancy, license_model, opc_dry_run):
22133
22270
 
22134
22271
  kwargs = {}
22272
+ if opc_dry_run is not None:
22273
+ kwargs['opc_dry_run'] = opc_dry_run
22135
22274
 
22136
22275
  _details = {}
22137
22276
  _details['compartmentId'] = compartment_id
@@ -22209,6 +22348,12 @@ def launch_db_system_launch_db_system_from_backup_details(ctx, from_json, wait_f
22209
22348
  if private_ip_v6 is not None:
22210
22349
  _details['privateIpV6'] = private_ip_v6
22211
22350
 
22351
+ if cluster_placement_group_id is not None:
22352
+ _details['clusterPlacementGroupId'] = cluster_placement_group_id
22353
+
22354
+ if subscription_id is not None:
22355
+ _details['subscriptionId'] = subscription_id
22356
+
22212
22357
  if data_collection_options is not None:
22213
22358
  _details['dataCollectionOptions'] = cli_util.parse_json_parameter("data_collection_options", data_collection_options)
22214
22359
 
@@ -22586,6 +22731,9 @@ def list_autonomous_container_databases(ctx, from_json, all_pages, page_size, co
22586
22731
  @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING"]), help=u"""A filter to return only resources that match the given lifecycle state exactly.""")
22587
22732
  @cli_util.option('--display-name', help=u"""A filter to return only resources that match the entire display name given. The match is not case sensitive.""")
22588
22733
  @cli_util.option('--type', help=u"""A filter to return only backups that matches with the given type of Backup.""")
22734
+ @cli_util.option('--backup-destination-id', help=u"""A filter to return only resources that have the given backup destination id.""")
22735
+ @cli_util.option('--key-store-id', help=u"""A filter to return only resources that have the given key store id.""")
22736
+ @cli_util.option('--infrastructure-type', type=custom_types.CliCaseInsensitiveChoice(["CLOUD", "CLOUD_AT_CUSTOMER"]), help=u"""A filter to return only resources that match the given Infrastructure Type.""")
22589
22737
  @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
22590
22738
  @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
22591
22739
  @json_skeleton_utils.get_cli_json_input_option({})
@@ -22593,7 +22741,7 @@ def list_autonomous_container_databases(ctx, from_json, all_pages, page_size, co
22593
22741
  @click.pass_context
22594
22742
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database', 'class': 'list[AutonomousDatabaseBackupSummary]'})
22595
22743
  @cli_util.wrap_exceptions
22596
- def list_autonomous_database_backups(ctx, from_json, all_pages, page_size, autonomous_database_id, compartment_id, limit, page, sort_by, sort_order, lifecycle_state, display_name, type):
22744
+ def list_autonomous_database_backups(ctx, from_json, all_pages, page_size, autonomous_database_id, compartment_id, limit, page, sort_by, sort_order, lifecycle_state, display_name, type, backup_destination_id, key_store_id, infrastructure_type):
22597
22745
 
22598
22746
  if all_pages and limit:
22599
22747
  raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
@@ -22617,6 +22765,12 @@ def list_autonomous_database_backups(ctx, from_json, all_pages, page_size, auton
22617
22765
  kwargs['display_name'] = display_name
22618
22766
  if type is not None:
22619
22767
  kwargs['type'] = type
22768
+ if backup_destination_id is not None:
22769
+ kwargs['backup_destination_id'] = backup_destination_id
22770
+ if key_store_id is not None:
22771
+ kwargs['key_store_id'] = key_store_id
22772
+ if infrastructure_type is not None:
22773
+ kwargs['infrastructure_type'] = infrastructure_type
22620
22774
  kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
22621
22775
  client = cli_util.build_client('database', 'database', ctx)
22622
22776
  if all_pages:
@@ -24799,7 +24953,7 @@ def list_db_system_shapes(ctx, from_json, all_pages, page_size, compartment_id,
24799
24953
  @db_system_group.command(name=cli_util.override('db.list_db_system_storage_performances.command_name', 'list-db-system-storage-performances'), help=u"""Gets a list of possible expected storage performance parameters of a VMDB System based on Configuration. \n[Command Reference](listDbSystemStoragePerformances)""")
24800
24954
  @cli_util.option('--storage-management', required=True, type=custom_types.CliCaseInsensitiveChoice(["ASM", "LVM"]), help=u"""The DB system storage management option. Used to list database versions available for that storage manager. Valid values are `ASM` and `LVM`. * ASM specifies Oracle Automatic Storage Management * LVM specifies logical volume manager, sometimes called logical disk manager.""")
24801
24955
  @cli_util.option('--shape-type', help=u"""Optional. Filters the performance results by shape type.""")
24802
- @cli_util.option('--database-edition', type=custom_types.CliCaseInsensitiveChoice(["STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME", "ENTERPRISE_EDITION_DEVELOPER"]), help=u"""The database edition of quota (STANDARD_EDITION/ENTERPRISE_EDITION/ENTERPRISE_EDITION_HIGH_PERFORMANCE/ENTERPRISE_EDITION_EXTREME/ENTERPRISE_EDITION_DEVELOPER)""")
24956
+ @cli_util.option('--database-edition', type=custom_types.CliCaseInsensitiveChoice(["STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", "ENTERPRISE_EDITION_DEVELOPER"]), help=u"""The database edition of quota (STANDARD_EDITION/ENTERPRISE_EDITION/ENTERPRISE_EDITION_HIGH_PERFORMANCE/ENTERPRISE_EDITION_EXTREME_PERFORMANCE/ENTERPRISE_EDITION_DEVELOPER)""")
24803
24957
  @cli_util.option('--compartment-id', help=u"""The compartment [OCID].""")
24804
24958
  @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results.""")
24805
24959
  @json_skeleton_utils.get_cli_json_input_option({})
@@ -34969,6 +35123,7 @@ To get a list of shapes, use the [ListDbSystemShapes] operation.""")
34969
35123
  @cli_util.option('--compute-model', type=custom_types.CliCaseInsensitiveChoice(["ECPU", "OCPU"]), help=u"""The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.""")
34970
35124
  @cli_util.option('--compute-count', type=click.INT, help=u"""The number of compute servers for the DB system.""")
34971
35125
  @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
35126
+ @cli_util.option('--opc-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not actually creating or updating a resource and is used only to perform validation on the submitted data.""")
34972
35127
  @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
34973
35128
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", "MIGRATED", "MAINTENANCE_IN_PROGRESS", "NEEDS_ATTENTION", "UPGRADING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
34974
35129
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
@@ -34978,7 +35133,7 @@ To get a list of shapes, use the [ListDbSystemShapes] operation.""")
34978
35133
  @click.pass_context
34979
35134
  @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'version-parameterconflict': {'module': 'database', 'class': 'PatchDetails'}, 'ssh-public-keys': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'backup-network-nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'maintenance-window-details': {'module': 'database', 'class': 'MaintenanceWindow'}, 'data-collection-options': {'module': 'database', 'class': 'DataCollectionOptions'}}, output_type={'module': 'database', 'class': 'DbSystem'})
34980
35135
  @cli_util.wrap_exceptions
34981
- def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, cpu_core_count, version_parameterconflict, ssh_public_keys, data_storage_size_in_gbs, reco_storage_size_in_gbs, freeform_tags, defined_tags, security_attributes, shape, nsg_ids, backup_network_nsg_ids, license_model, maintenance_window_details, data_collection_options, compute_model, compute_count, if_match):
35136
+ def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, cpu_core_count, version_parameterconflict, ssh_public_keys, data_storage_size_in_gbs, reco_storage_size_in_gbs, freeform_tags, defined_tags, security_attributes, shape, nsg_ids, backup_network_nsg_ids, license_model, maintenance_window_details, data_collection_options, compute_model, compute_count, if_match, opc_dry_run):
34982
35137
 
34983
35138
  if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0:
34984
35139
  raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string')
@@ -34990,6 +35145,8 @@ def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wa
34990
35145
  kwargs = {}
34991
35146
  if if_match is not None:
34992
35147
  kwargs['if_match'] = if_match
35148
+ if opc_dry_run is not None:
35149
+ kwargs['opc_dry_run'] = opc_dry_run
34993
35150
 
34994
35151
  _details = {}
34995
35152