@@ -2001,6 +2001,108 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d
20012001 body=complete_external_backup_job_details,
20022002 response_type="ExternalBackupJob")
20032003
2004+ def configure_autonomous_database_vault_key(self, autonomous_database_id, configure_autonomous_database_vault_key_details, **kwargs):
2005+ """
2006+ Configures the Autonomous Database Vault service `key`__.
2007+
2008+ __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts
2009+
2010+
2011+ :param str autonomous_database_id: (required)
2012+ The database `OCID`__.
2013+
2014+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
2015+
2016+ :param oci.database.models.ConfigureAutonomousDatabaseVaultKeyDetails configure_autonomous_database_vault_key_details: (required)
2017+ Configuration details for the Autonomous Database Vault service `key`__.
2018+
2019+ __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts
2020+
2021+ :param str if_match: (optional)
2022+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
2023+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
2024+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
2025+
2026+ :param str opc_request_id: (optional)
2027+ Unique identifier for the request.
2028+
2029+ :param str opc_retry_token: (optional)
2030+ A token that uniquely identifies a request so it can be retried in case of a timeout or
2031+ server error without risk of executing that same action again. Retry tokens expire after 24
2032+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
2033+ has been deleted and purged from the system, then a retry of the original creation request
2034+ may be rejected).
2035+
2036+ :param obj retry_strategy: (optional)
2037+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2038+
2039+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
2040+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2041+
2042+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2043+
2044+ :return: A :class:`~oci.response.Response` object with data of type None
2045+ :rtype: :class:`~oci.response.Response`
2046+
2047+ :example:
2048+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/database/configure_autonomous_database_vault_key.py.html>`__ to see an example of how to use configure_autonomous_database_vault_key API.
2049+ """
2050+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/configureAutonomousDatabaseVaultKey"
2051+ method = "POST"
2052+
2053+ # Don't accept unknown kwargs
2054+ expected_kwargs = [
2055+ "retry_strategy",
2056+ "if_match",
2057+ "opc_request_id",
2058+ "opc_retry_token"
2059+ ]
2060+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2061+ if extra_kwargs:
2062+ raise ValueError(
2063+ "configure_autonomous_database_vault_key got unknown kwargs: {!r}".format(extra_kwargs))
2064+
2065+ path_params = {
2066+ "autonomousDatabaseId": autonomous_database_id
2067+ }
2068+
2069+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2070+
2071+ for (k, v) in six.iteritems(path_params):
2072+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2073+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
2074+
2075+ header_params = {
2076+ "accept": "application/json",
2077+ "content-type": "application/json",
2078+ "if-match": kwargs.get("if_match", missing),
2079+ "opc-request-id": kwargs.get("opc_request_id", missing),
2080+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
2081+ }
2082+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2083+
2084+ retry_strategy = self.retry_strategy
2085+ if kwargs.get('retry_strategy'):
2086+ retry_strategy = kwargs.get('retry_strategy')
2087+
2088+ if retry_strategy:
2089+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2090+ self.base_client.add_opc_retry_token_if_needed(header_params)
2091+ return retry_strategy.make_retrying_call(
2092+ self.base_client.call_api,
2093+ resource_path=resource_path,
2094+ method=method,
2095+ path_params=path_params,
2096+ header_params=header_params,
2097+ body=configure_autonomous_database_vault_key_details)
2098+ else:
2099+ return self.base_client.call_api(
2100+ resource_path=resource_path,
2101+ method=method,
2102+ path_params=path_params,
2103+ header_params=header_params,
2104+ body=configure_autonomous_database_vault_key_details)
2105+
20042106 def create_autonomous_container_database(self, create_autonomous_container_database_details, **kwargs):
20052107 """
20062108 Creates an Autonomous Container Database in the specified Autonomous Exadata Infrastructure.
@@ -11005,7 +11107,7 @@ def list_autonomous_database_clones(self, compartment_id, autonomous_database_id
1100511107 :param str lifecycle_state: (optional)
1100611108 A filter to return only resources that match the given lifecycle state exactly.
1100711109
11008- Allowed values are: "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"
11110+ Allowed values are: "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"
1100911111
1101011112 :param str sort_by: (optional)
1101111113 The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
@@ -11071,7 +11173,7 @@ def list_autonomous_database_clones(self, compartment_id, autonomous_database_id
1107111173 )
1107211174
1107311175 if 'lifecycle_state' in kwargs:
11074- lifecycle_state_allowed_values = ["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"]
11176+ lifecycle_state_allowed_values = ["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" ]
1107511177 if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1107611178 raise ValueError(
1107711179 "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -11260,7 +11362,7 @@ def list_autonomous_databases(self, compartment_id, **kwargs):
1126011362 :param str lifecycle_state: (optional)
1126111363 A filter to return only resources that match the given lifecycle state exactly.
1126211364
11263- Allowed values are: "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"
11365+ Allowed values are: "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"
1126411366
1126511367 :param str db_workload: (optional)
1126611368 A filter to return only autonomous database resources that match the specified workload type.
@@ -11349,7 +11451,7 @@ def list_autonomous_databases(self, compartment_id, **kwargs):
1134911451 )
1135011452
1135111453 if 'lifecycle_state' in kwargs:
11352- lifecycle_state_allowed_values = ["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"]
11454+ lifecycle_state_allowed_values = ["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" ]
1135311455 if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1135411456 raise ValueError(
1135511457 "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -14208,6 +14310,9 @@ def list_db_versions(self, compartment_id, **kwargs):
1420814310 :param bool is_upgrade_supported: (optional)
1420914311 If provided, filters the results to the set of database versions which are supported for Upgrade.
1421014312
14313+ :param bool is_database_software_image_supported: (optional)
14314+ If true, filters the results to the set of Oracle Database versions that are supported for OCI database software images.
14315+
1421114316 :param obj retry_strategy: (optional)
1421214317 A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1421314318
@@ -14233,7 +14338,8 @@ def list_db_versions(self, compartment_id, **kwargs):
1423314338 "db_system_shape",
1423414339 "db_system_id",
1423514340 "storage_management",
14236- "is_upgrade_supported"
14341+ "is_upgrade_supported",
14342+ "is_database_software_image_supported"
1423714343 ]
1423814344 extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1423914345 if extra_kwargs:
@@ -14254,7 +14360,8 @@ def list_db_versions(self, compartment_id, **kwargs):
1425414360 "dbSystemShape": kwargs.get("db_system_shape", missing),
1425514361 "dbSystemId": kwargs.get("db_system_id", missing),
1425614362 "storageManagement": kwargs.get("storage_management", missing),
14257- "isUpgradeSupported": kwargs.get("is_upgrade_supported", missing)
14363+ "isUpgradeSupported": kwargs.get("is_upgrade_supported", missing),
14364+ "isDatabaseSoftwareImageSupported": kwargs.get("is_database_software_image_supported", missing)
1425814365 }
1425914366 query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1426014367
0 commit comments