Skip to content

Commit 6268425

Browse files
authored
Releasing version 2.39.0
Releasing version 2.39.0
2 parents b4da675 + f48db38 commit 6268425

File tree

85 files changed

+1650
-82
lines changed

Some content is hidden

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

85 files changed

+1650
-82
lines changed

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ Change Log
33
All notable changes to this project will be documented in this file.
44

55
The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
6+
====================
7+
2.39.0 - 2021-06-01
8+
====================
9+
10+
Added
11+
-----
12+
* Support for configuration of autonomous database KMS keys in the Database service
13+
* Support for creating database software images with any supported RUs in the Database service
14+
* Support for creating database software images from an existing database home in the Database service
15+
* Support for listing all NSGs associated with a given VLAN in the Networking service
16+
* Support for a duration windows, task failure reasons, and next execution times on scheduled tasks in the Logging Analytics service
17+
* Support for calling Oracle Cloud Infrastructure services in the sa-vinhedo-1 region
18+
19+
Breaking
20+
-----
21+
* `compartment_id` is now optional in operation `list_network_security_groups` in the Networking service
22+
623
====================
724
2.38.4 - 2021-05-25
825
====================

docs/api/database.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Database
3737
oci.database.models.AutonomousDatabaseConnectionUrls
3838
oci.database.models.AutonomousDatabaseConsoleTokenDetails
3939
oci.database.models.AutonomousDatabaseDataguardAssociation
40+
oci.database.models.AutonomousDatabaseKeyHistoryEntry
4041
oci.database.models.AutonomousDatabaseManualRefreshDetails
4142
oci.database.models.AutonomousDatabaseStandbySummary
4243
oci.database.models.AutonomousDatabaseSummary
@@ -67,6 +68,7 @@ Database
6768
oci.database.models.CloudVmCluster
6869
oci.database.models.CloudVmClusterSummary
6970
oci.database.models.CompleteExternalBackupJobDetails
71+
oci.database.models.ConfigureAutonomousDatabaseVaultKeyDetails
7072
oci.database.models.ConsoleConnection
7173
oci.database.models.ConsoleConnectionSummary
7274
oci.database.models.CreateAutonomousContainerDatabaseDetails
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
AutonomousDatabaseKeyHistoryEntry
2+
=================================
3+
4+
.. currentmodule:: oci.database.models
5+
6+
.. autoclass:: AutonomousDatabaseKeyHistoryEntry
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ConfigureAutonomousDatabaseVaultKeyDetails
2+
==========================================
3+
4+
.. currentmodule:: oci.database.models
5+
6+
.. autoclass:: ConfigureAutonomousDatabaseVaultKeyDetails
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:

docs/api/log_analytics.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Log Analytics
5555
oci.log_analytics.models.ColumnName
5656
oci.log_analytics.models.ColumnNameCollection
5757
oci.log_analytics.models.CommandDescriptor
58+
oci.log_analytics.models.CompareCommandDescriptor
5859
oci.log_analytics.models.CreateAccelerationTaskDetails
5960
oci.log_analytics.models.CreateLogAnalyticsEmBridgeDetails
6061
oci.log_analytics.models.CreateLogAnalyticsEntityDetails
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CompareCommandDescriptor
2+
========================
3+
4+
.. currentmodule:: oci.log_analytics.models
5+
6+
.. autoclass:: CompareCommandDescriptor
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:

src/oci/core/virtual_network_client.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14462,16 +14462,22 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs)
1446214462
header_params=header_params,
1446314463
response_type="list[NetworkSecurityGroupVnic]")
1446414464

14465-
def list_network_security_groups(self, compartment_id, **kwargs):
14465+
def list_network_security_groups(self, **kwargs):
1446614466
"""
14467-
Lists the network security groups in the specified compartment.
14467+
Lists either the network security groups in the specified compartment, or those associated with the specified VLAN.
14468+
You must specify either a `vlanId` or a `compartmentId`, but not both. If you specify a `vlanId`, all other parameters are ignored.
1446814469

1446914470

14470-
:param str compartment_id: (required)
14471+
:param str compartment_id: (optional)
1447114472
The `OCID`__ of the compartment.
1447214473

1447314474
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1447414475

14476+
:param str vlan_id: (optional)
14477+
The `OCID`__ of the VLAN.
14478+
14479+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
14480+
1447514481
:param str vcn_id: (optional)
1447614482
The `OCID`__ of the VCN.
1447714483

@@ -14540,6 +14546,8 @@ def list_network_security_groups(self, compartment_id, **kwargs):
1454014546
# Don't accept unknown kwargs
1454114547
expected_kwargs = [
1454214548
"retry_strategy",
14549+
"compartment_id",
14550+
"vlan_id",
1454314551
"vcn_id",
1454414552
"limit",
1454514553
"page",
@@ -14575,7 +14583,8 @@ def list_network_security_groups(self, compartment_id, **kwargs):
1457514583
)
1457614584

1457714585
query_params = {
14578-
"compartmentId": compartment_id,
14586+
"compartmentId": kwargs.get("compartment_id", missing),
14587+
"vlanId": kwargs.get("vlan_id", missing),
1457914588
"vcnId": kwargs.get("vcn_id", missing),
1458014589
"limit": kwargs.get("limit", missing),
1458114590
"page": kwargs.get("page", missing),

src/oci/database/database_client.py

Lines changed: 113 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)