Skip to content

Commit bdacb34

Browse files
authored
Releasing version 2.7.0
Releasing version 2.7.0
2 parents 362b146 + 5fcd4b5 commit bdacb34

36 files changed

+802
-327
lines changed

CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ 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.7.0 - 2019-11-26
8+
====================
9+
10+
Added
11+
-----
12+
* Support for maintenance windows on autonomous databases in the Database service
13+
* Support for getting the compute units (OCPUs) of an Exadata autonomous transaction processing - dedicated resource in the Database service
14+
15+
Breaking changes
16+
----
17+
* Create database home from VM_CLUSTER_BACKUP is removed from Database Service
18+
619
====================
720
2.6.5 - 2019-11-19
821
====================

docs/api/database.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ Database
7171
oci.database.models.CreateDbHomeWithDbSystemIdDetails
7272
oci.database.models.CreateDbHomeWithDbSystemIdFromBackupDetails
7373
oci.database.models.CreateDbHomeWithVmClusterIdDetails
74-
oci.database.models.CreateDbHomeWithVmClusterIdFromBackupDetails
7574
oci.database.models.CreateExadataInfrastructureDetails
7675
oci.database.models.CreateExternalBackupJobDetails
7776
oci.database.models.CreateNFSBackupDestinationDetails
@@ -115,6 +114,7 @@ Database
115114
oci.database.models.MaintenanceWindow
116115
oci.database.models.Month
117116
oci.database.models.NodeDetails
117+
oci.database.models.OCPUs
118118
oci.database.models.Patch
119119
oci.database.models.PatchDetails
120120
oci.database.models.PatchHistoryEntry
@@ -145,3 +145,4 @@ Database
145145
oci.database.models.VmClusterNetworkSummary
146146
oci.database.models.VmClusterSummary
147147
oci.database.models.VmNetworkDetails
148+
oci.database.models.WorkloadType
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
CreateDbHomeWithVmClusterIdFromBackupDetails
2-
============================================
1+
OCPUs
2+
=====
33

44
.. currentmodule:: oci.database.models
55

6-
.. autoclass:: CreateDbHomeWithVmClusterIdFromBackupDetails
6+
.. autoclass:: OCPUs
77
:show-inheritance:
88
:special-members: __init__
99
:members:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
WorkloadType
2+
============
3+
4+
.. currentmodule:: oci.database.models
5+
6+
.. autoclass:: WorkloadType
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:

src/oci/database/database_client.py

Lines changed: 85 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,7 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
26962696
def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwargs):
26972697
"""
26982698
Asynchronously deregisters Data Safe for this Autonomous Database.
2699-
Asynchronously deregisters Data Safe for this Autonomous Database.
2699+
Asynchronously deregisters this Autonomous Database with Data Safe.
27002700
27012701
27022702
:param str autonomous_database_id: (required)
@@ -4696,6 +4696,80 @@ def get_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs):
46964696
header_params=header_params,
46974697
response_type="ExadataInfrastructure")
46984698

4699+
def get_exadata_infrastructure_ocpus(self, autonomous_exadata_infrastructure_id, **kwargs):
4700+
"""
4701+
Gets details of the available and consumed OCPUs for the specified Autonomous Exadata Infrastructure instance.
4702+
4703+
4704+
:param str autonomous_exadata_infrastructure_id: (required)
4705+
The Autonomous Exadata Infrastructure `OCID`__.
4706+
4707+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4708+
4709+
:param str opc_request_id: (optional)
4710+
Unique identifier for the request.
4711+
4712+
:param obj retry_strategy: (optional)
4713+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
4714+
4715+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
4716+
is also available. The specifics of the default retry strategy are described `here <https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/sdk_behaviors/retries.html>`__.
4717+
4718+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
4719+
4720+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.OCPUs`
4721+
:rtype: :class:`~oci.response.Response`
4722+
"""
4723+
resource_path = "/autonomousExadataInfrastructures/{autonomousExadataInfrastructureId}/ocpus"
4724+
method = "GET"
4725+
4726+
# Don't accept unknown kwargs
4727+
expected_kwargs = [
4728+
"retry_strategy",
4729+
"opc_request_id"
4730+
]
4731+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4732+
if extra_kwargs:
4733+
raise ValueError(
4734+
"get_exadata_infrastructure_ocpus got unknown kwargs: {!r}".format(extra_kwargs))
4735+
4736+
path_params = {
4737+
"autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id
4738+
}
4739+
4740+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
4741+
4742+
for (k, v) in six.iteritems(path_params):
4743+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
4744+
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
4745+
4746+
header_params = {
4747+
"accept": "application/json",
4748+
"content-type": "application/json",
4749+
"opc-request-id": kwargs.get("opc_request_id", missing)
4750+
}
4751+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
4752+
4753+
retry_strategy = self.retry_strategy
4754+
if kwargs.get('retry_strategy'):
4755+
retry_strategy = kwargs.get('retry_strategy')
4756+
4757+
if retry_strategy:
4758+
return retry_strategy.make_retrying_call(
4759+
self.base_client.call_api,
4760+
resource_path=resource_path,
4761+
method=method,
4762+
path_params=path_params,
4763+
header_params=header_params,
4764+
response_type="OCPUs")
4765+
else:
4766+
return self.base_client.call_api(
4767+
resource_path=resource_path,
4768+
method=method,
4769+
path_params=path_params,
4770+
header_params=header_params,
4771+
response_type="OCPUs")
4772+
46994773
def get_exadata_iorm_config(self, db_system_id, **kwargs):
47004774
"""
47014775
Gets `IORM` Setting for the requested Exadata DB System.
@@ -6773,7 +6847,7 @@ def list_db_homes(self, compartment_id, **kwargs):
67736847
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
67746848
67756849
:param str db_system_id: (optional)
6776-
The `OCID`__ of the DB system.
6850+
The DB system `OCID`__. If provided, filters the results to the set of database versions which are supported for the DB system.
67776851
67786852
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
67796853
@@ -6908,7 +6982,7 @@ def list_db_nodes(self, compartment_id, **kwargs):
69086982
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
69096983
69106984
:param str db_system_id: (optional)
6911-
The `OCID`__ of the DB system.
6985+
The DB system `OCID`__. If provided, filters the results to the set of database versions which are supported for the DB system.
69126986
69136987
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
69146988
@@ -7733,7 +7807,7 @@ def list_maintenance_runs(self, compartment_id, **kwargs):
77337807
:param str target_resource_type: (optional)
77347808
The type of the target resource.
77357809
7736-
Allowed values are: "AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE"
7810+
Allowed values are: "AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", "EXADATA_DB_SYSTEM"
77377811
77387812
:param str maintenance_type: (optional)
77397813
The maintenance type.
@@ -7761,7 +7835,7 @@ def list_maintenance_runs(self, compartment_id, **kwargs):
77617835
:param str lifecycle_state: (optional)
77627836
A filter to return only resources that match the given lifecycle state exactly.
77637837
7764-
Allowed values are: "SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED"
7838+
Allowed values are: "SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", "UPDATING"
77657839
77667840
:param str availability_domain: (optional)
77677841
A filter to return only resources that match the given availability domain exactly.
@@ -7799,7 +7873,7 @@ def list_maintenance_runs(self, compartment_id, **kwargs):
77997873
"list_maintenance_runs got unknown kwargs: {!r}".format(extra_kwargs))
78007874

78017875
if 'target_resource_type' in kwargs:
7802-
target_resource_type_allowed_values = ["AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE"]
7876+
target_resource_type_allowed_values = ["AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", "EXADATA_DB_SYSTEM"]
78037877
if kwargs['target_resource_type'] not in target_resource_type_allowed_values:
78047878
raise ValueError(
78057879
"Invalid value for `target_resource_type`, must be one of {0}".format(target_resource_type_allowed_values)
@@ -7827,7 +7901,7 @@ def list_maintenance_runs(self, compartment_id, **kwargs):
78277901
)
78287902

78297903
if 'lifecycle_state' in kwargs:
7830-
lifecycle_state_allowed_values = ["SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED"]
7904+
lifecycle_state_allowed_values = ["SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", "UPDATING"]
78317905
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
78327906
raise ValueError(
78337907
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -8151,7 +8225,7 @@ def list_vm_clusters(self, compartment_id, **kwargs):
81518225
def register_autonomous_database_data_safe(self, autonomous_database_id, **kwargs):
81528226
"""
81538227
Asynchronously registers this Autonomous Database with Data Safe.
8154-
Asynchronously registers Data Safe with this Autonomous Database.
8228+
Asynchronously registers this Autonomous Database with Data Safe.
81558229
81568230
81578231
:param str autonomous_database_id: (required)
@@ -9269,7 +9343,7 @@ def terminate_db_system(self, db_system_id, **kwargs):
92699343
def update_autonomous_container_database(self, autonomous_container_database_id, update_autonomous_container_database_details, **kwargs):
92709344
"""
92719345
UpdateAutonomousContainerDatabase
9272-
Updates the properties of an Autonomous Container Database, such as the CPU core count and storage size.
9346+
Updates the properties of an Autonomous Container Database, such as the OCPU core count and storage size.
92739347
92749348
92759349
:param str autonomous_container_database_id: (required)
@@ -9432,8 +9506,8 @@ def update_autonomous_data_warehouse(self, autonomous_data_warehouse_id, update_
94329506

94339507
def update_autonomous_database(self, autonomous_database_id, update_autonomous_database_details, **kwargs):
94349508
"""
9435-
Updates the specified Autonomous Database with new CPU core count and size.
9436-
Updates the specified Autonomous Database with a new CPU core count and size.
9509+
Updates the specified Autonomous Database with new OCPU core count and size.
9510+
Updates one or more attributes of the specified Autonomous Database. See the UpdateAutonomousDatabaseDetails resource for a full list of attributes that can be updated.
94379511
94389512
94399513
:param str autonomous_database_id: (required)

src/oci/database/models/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
from .create_db_home_with_db_system_id_details import CreateDbHomeWithDbSystemIdDetails
5757
from .create_db_home_with_db_system_id_from_backup_details import CreateDbHomeWithDbSystemIdFromBackupDetails
5858
from .create_db_home_with_vm_cluster_id_details import CreateDbHomeWithVmClusterIdDetails
59-
from .create_db_home_with_vm_cluster_id_from_backup_details import CreateDbHomeWithVmClusterIdFromBackupDetails
6059
from .create_exadata_infrastructure_details import CreateExadataInfrastructureDetails
6160
from .create_external_backup_job_details import CreateExternalBackupJobDetails
6261
from .create_nfs_backup_destination_details import CreateNFSBackupDestinationDetails
@@ -100,6 +99,7 @@
10099
from .maintenance_window import MaintenanceWindow
101100
from .month import Month
102101
from .node_details import NodeDetails
102+
from .ocp_us import OCPUs
103103
from .patch import Patch
104104
from .patch_details import PatchDetails
105105
from .patch_history_entry import PatchHistoryEntry
@@ -130,6 +130,7 @@
130130
from .vm_cluster_network_summary import VmClusterNetworkSummary
131131
from .vm_cluster_summary import VmClusterSummary
132132
from .vm_network_details import VmNetworkDetails
133+
from .workload_type import WorkloadType
133134

134135
# Maps type names to classes for database services.
135136
database_type_mapping = {
@@ -186,7 +187,6 @@
186187
"CreateDbHomeWithDbSystemIdDetails": CreateDbHomeWithDbSystemIdDetails,
187188
"CreateDbHomeWithDbSystemIdFromBackupDetails": CreateDbHomeWithDbSystemIdFromBackupDetails,
188189
"CreateDbHomeWithVmClusterIdDetails": CreateDbHomeWithVmClusterIdDetails,
189-
"CreateDbHomeWithVmClusterIdFromBackupDetails": CreateDbHomeWithVmClusterIdFromBackupDetails,
190190
"CreateExadataInfrastructureDetails": CreateExadataInfrastructureDetails,
191191
"CreateExternalBackupJobDetails": CreateExternalBackupJobDetails,
192192
"CreateNFSBackupDestinationDetails": CreateNFSBackupDestinationDetails,
@@ -230,6 +230,7 @@
230230
"MaintenanceWindow": MaintenanceWindow,
231231
"Month": Month,
232232
"NodeDetails": NodeDetails,
233+
"OCPUs": OCPUs,
233234
"Patch": Patch,
234235
"PatchDetails": PatchDetails,
235236
"PatchHistoryEntry": PatchHistoryEntry,
@@ -259,5 +260,6 @@
259260
"VmClusterNetworkDetails": VmClusterNetworkDetails,
260261
"VmClusterNetworkSummary": VmClusterNetworkSummary,
261262
"VmClusterSummary": VmClusterSummary,
262-
"VmNetworkDetails": VmNetworkDetails
263+
"VmNetworkDetails": VmNetworkDetails,
264+
"WorkloadType": WorkloadType
263265
}

src/oci/database/models/autonomous_container_database.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def lifecycle_details(self, lifecycle_details):
380380
def time_created(self):
381381
"""
382382
Gets the time_created of this AutonomousContainerDatabase.
383-
The date and time the Autonomous was created.
383+
The date and time the Autonomous Container Database was created.
384384
385385
386386
:return: The time_created of this AutonomousContainerDatabase.
@@ -392,7 +392,7 @@ def time_created(self):
392392
def time_created(self, time_created):
393393
"""
394394
Sets the time_created of this AutonomousContainerDatabase.
395-
The date and time the Autonomous was created.
395+
The date and time the Autonomous Container Database was created.
396396
397397
398398
:param time_created: The time_created of this AutonomousContainerDatabase.
@@ -404,7 +404,7 @@ def time_created(self, time_created):
404404
def patch_model(self):
405405
"""
406406
**[Required]** Gets the patch_model of this AutonomousContainerDatabase.
407-
Database Patch model preference.
407+
Database patch model preference.
408408
409409
Allowed values for this property are: "RELEASE_UPDATES", "RELEASE_UPDATE_REVISIONS", 'UNKNOWN_ENUM_VALUE'.
410410
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -419,7 +419,7 @@ def patch_model(self):
419419
def patch_model(self, patch_model):
420420
"""
421421
Sets the patch_model of this AutonomousContainerDatabase.
422-
Database Patch model preference.
422+
Database patch model preference.
423423
424424
425425
:param patch_model: The patch_model of this AutonomousContainerDatabase.

src/oci/database/models/autonomous_container_database_summary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def lifecycle_details(self, lifecycle_details):
380380
def time_created(self):
381381
"""
382382
Gets the time_created of this AutonomousContainerDatabaseSummary.
383-
The date and time the Autonomous was created.
383+
The date and time the Autonomous Container Database was created.
384384
385385
386386
:return: The time_created of this AutonomousContainerDatabaseSummary.
@@ -392,7 +392,7 @@ def time_created(self):
392392
def time_created(self, time_created):
393393
"""
394394
Sets the time_created of this AutonomousContainerDatabaseSummary.
395-
The date and time the Autonomous was created.
395+
The date and time the Autonomous Container Database was created.
396396
397397
398398
:param time_created: The time_created of this AutonomousContainerDatabaseSummary.
@@ -404,7 +404,7 @@ def time_created(self, time_created):
404404
def patch_model(self):
405405
"""
406406
**[Required]** Gets the patch_model of this AutonomousContainerDatabaseSummary.
407-
Database Patch model preference.
407+
Database patch model preference.
408408
409409
Allowed values for this property are: "RELEASE_UPDATES", "RELEASE_UPDATE_REVISIONS", 'UNKNOWN_ENUM_VALUE'.
410410
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -419,7 +419,7 @@ def patch_model(self):
419419
def patch_model(self, patch_model):
420420
"""
421421
Sets the patch_model of this AutonomousContainerDatabaseSummary.
422-
Database Patch model preference.
422+
Database patch model preference.
423423
424424
425425
:param patch_model: The patch_model of this AutonomousContainerDatabaseSummary.

0 commit comments

Comments
 (0)