Skip to content

Commit c0eaa9f

Browse files
karthik-k-kamathHamadaGabrIbrahimharshkumar-devKanvipasrichalealex262
committed
Releasing version 3.15.1
Co-authored-by: Hamada Ibrahim <[email protected]> Co-authored-by: Harsh Kumar <[email protected]> Co-authored-by: Kanvi Pasricha <[email protected]> Co-authored-by: Alex Le <[email protected]> Co-authored-by: Nupur Gupta <[email protected]> Co-authored-by: Mandy Tsai <[email protected]> Co-authored-by: Vishwas Bhat <[email protected]>
1 parent e00abf3 commit c0eaa9f

File tree

15 files changed

+340
-75
lines changed

15 files changed

+340
-75
lines changed

CHANGELOG.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,57 @@ All notable changes to this project will be documented in this file.
66

77
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.
88

9+
3.15.1 - 2022-08-23
10+
--------------------
11+
12+
Added
13+
~~~~~
14+
* Support for support rewards redemption summaries in the Usage service
15+
16+
* ``oci usage redemption-summary list-redemption-summaries``
17+
18+
* Support for parent tenancy of an organization to view child tenancy categories, recommendations, and resource actions in the Optimizer service
19+
20+
* ``oci optimizer category-summary list``
21+
* ``oci optimizer recommendation-summary list``
22+
* ``oci optimizer resource-action-summary list``
23+
24+
* Support for File filter in the DevOps service
25+
26+
* ``oci devops trigger create-bitbucket-cloud-trigger``
27+
* ``oci devops trigger create-github-trigger``
28+
* ``oci devops trigger create-gitlab-trigger``
29+
* ``oci devops trigger update-bitbucket-cloud-trigger``
30+
* ``oci devops trigger update-github-trigger``
31+
* ``oci devops trigger update-gitlab-trigger``
32+
33+
* Added additional support for Configuration variables to MDS in the MySQL Service
34+
35+
* ``oci mysql configuration create --init-variables``
36+
37+
* Database service
38+
39+
* Support for allowing choosing prior versions for Infrastructure Maintenance for ExaCC
40+
41+
* ``oci db infrastructure-target-version get``
42+
43+
* Support for new optional parameters
44+
45+
* ``oci db maintenance-run update --target-db-server-version --target-storage-server-version``
46+
47+
Changed
48+
~~~~~
49+
* Optimizer service
50+
51+
* The parameter --category-id is now optional in the below command
52+
53+
* ``oci optimizer recommendation-summary list``
54+
55+
* The parameter --recommendation-id is now optional in the below commands
56+
57+
* ``oci optimizer resource-action-summary filter-resource-actions``
58+
* ``oci optimizer resource-action-summary list``
59+
960
3.15.0 - 2022-08-16
1061
--------------------
1162
Added

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.79.0
17+
oci==2.80.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

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

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ def vm_cluster_network_group():
183183
pass
184184

185185

186+
@click.command(cli_util.override('db.infrastructure_target_version_group.command_name', 'infrastructure-target-version'), cls=CommandGroupWithAlias, help="""Infrastructure target version details.""")
187+
@cli_util.help_option_group
188+
def infrastructure_target_version_group():
189+
pass
190+
191+
186192
@click.command(cli_util.override('db.backup_destination_summary_group.command_name', 'backup-destination-summary'), cls=CommandGroupWithAlias, help="""Backup destination details, including the list of databases using the backup destination.""")
187193
@cli_util.help_option_group
188194
def backup_destination_summary_group():
@@ -405,6 +411,7 @@ def vm_cluster_update_group():
405411
db_root_group.add_command(ocp_us_group)
406412
db_root_group.add_command(patch_history_entry_group)
407413
db_root_group.add_command(vm_cluster_network_group)
414+
db_root_group.add_command(infrastructure_target_version_group)
408415
db_root_group.add_command(backup_destination_summary_group)
409416
db_root_group.add_command(db_node_group)
410417
db_root_group.add_command(console_connection_group)
@@ -10681,6 +10688,31 @@ def get_external_pluggable_database(ctx, from_json, external_pluggable_database_
1068110688
cli_util.render_response(result, ctx)
1068210689

1068310690

10691+
@infrastructure_target_version_group.command(name=cli_util.override('db.get_infrastructure_target_versions.command_name', 'get'), help=u"""Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. Applies to Exadata Cloud@Customer and Exadata Cloud instances only. \n[Command Reference](getInfrastructureTargetVersions)""")
10692+
@cli_util.option('--compartment-id', required=True, help=u"""The compartment [OCID].""")
10693+
@cli_util.option('--target-resource-id', help=u"""The target resource ID.""")
10694+
@cli_util.option('--target-resource-type', type=custom_types.CliCaseInsensitiveChoice(["AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE", "AUTONOMOUS_VM_CLUSTER", "AUTONOMOUS_DATABASE"]), help=u"""The type of the target resource.""")
10695+
@json_skeleton_utils.get_cli_json_input_option({})
10696+
@cli_util.help_option
10697+
@click.pass_context
10698+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database', 'class': 'InfrastructureTargetVersion'})
10699+
@cli_util.wrap_exceptions
10700+
def get_infrastructure_target_versions(ctx, from_json, compartment_id, target_resource_id, target_resource_type):
10701+
10702+
kwargs = {}
10703+
if target_resource_id is not None:
10704+
kwargs['target_resource_id'] = target_resource_id
10705+
if target_resource_type is not None:
10706+
kwargs['target_resource_type'] = target_resource_type
10707+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
10708+
client = cli_util.build_client('database', 'database', ctx)
10709+
result = client.get_infrastructure_target_versions(
10710+
compartment_id=compartment_id,
10711+
**kwargs
10712+
)
10713+
cli_util.render_response(result, ctx)
10714+
10715+
1068410716
@key_store_group.command(name=cli_util.override('db.get_key_store.command_name', 'get'), help=u"""Gets information about the specified key store. \n[Command Reference](getKeyStore)""")
1068510717
@cli_util.option('--key-store-id', required=True, help=u"""The [OCID] of the key store.""")
1068610718
@json_skeleton_utils.get_cli_json_input_option({})
@@ -19294,6 +19326,8 @@ def update_key_store_key_store_type_from_oracle_key_vault_details(ctx, from_json
1929419326
@cli_util.option('--custom-action-timeout-in-mins', type=click.INT, help=u"""Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes from 15 to 120.""")
1929519327
@cli_util.option('--current-custom-action-timeout-in-mins', type=click.INT, help=u"""The current custom action timeout between the current database servers during waiting state in addition to custom action timeout, from 0 (zero) to 30 minutes.""")
1929619328
@cli_util.option('--is-resume-patching', type=click.BOOL, help=u"""If true, then the patching is resumed and the next component will be patched immediately.""")
19329+
@cli_util.option('--target-db-server-version', help=u"""The target database server system software version for the patching operation.""")
19330+
@cli_util.option('--target-storage-server-version', help=u"""The target storage cell system software version for the patching operation.""")
1929719331
@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.""")
1929819332
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", "UPDATING", "DELETING", "DELETED", "CANCELED"]), 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.""")
1929919333
@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.""")
@@ -19303,7 +19337,7 @@ def update_key_store_key_store_type_from_oracle_key_vault_details(ctx, from_json
1930319337
@click.pass_context
1930419338
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database', 'class': 'MaintenanceRun'})
1930519339
@cli_util.wrap_exceptions
19306-
def update_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_run_id, is_enabled, time_scheduled, is_patch_now_enabled, patch_id, patching_mode, is_custom_action_timeout_enabled, custom_action_timeout_in_mins, current_custom_action_timeout_in_mins, is_resume_patching, if_match):
19340+
def update_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_run_id, is_enabled, time_scheduled, is_patch_now_enabled, patch_id, patching_mode, is_custom_action_timeout_enabled, custom_action_timeout_in_mins, current_custom_action_timeout_in_mins, is_resume_patching, target_db_server_version, target_storage_server_version, if_match):
1930719341

1930819342
if isinstance(maintenance_run_id, six.string_types) and len(maintenance_run_id.strip()) == 0:
1930919343
raise click.UsageError('Parameter --maintenance-run-id cannot be whitespace or empty string')
@@ -19341,6 +19375,12 @@ def update_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, wai
1934119375
if is_resume_patching is not None:
1934219376
_details['isResumePatching'] = is_resume_patching
1934319377

19378+
if target_db_server_version is not None:
19379+
_details['targetDbServerVersion'] = target_db_server_version
19380+
19381+
if target_storage_server_version is not None:
19382+
_details['targetStorageServerVersion'] = target_storage_server_version
19383+
1934419384
client = cli_util.build_client('database', 'database', ctx)
1934519385
result = client.update_maintenance_run(
1934619386
maintenance_run_id=maintenance_run_id,

0 commit comments

Comments
 (0)