Skip to content

Commit c9f6373

Browse files
Merge pull request #570 from oracle/release_2022-07-19
Releasing version 3.11.1
2 parents 4a846de + 1eec0a3 commit c9f6373

File tree

73 files changed

+7948
-25
lines changed

Some content is hidden

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

73 files changed

+7948
-25
lines changed

CHANGELOG.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,55 @@ 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.11.1 - 2022-07-19
10+
--------------------
11+
Added
12+
~~~~~
13+
* Support for 2 new global parameters to provide connection and read timeout value
14+
15+
* ``oci --connection-timeout --read-timeout``
16+
17+
* Support for Container Databases (CDBs) and Pluggable Databases (PDBs) discovery in the Stack Monitoring service
18+
19+
* ``oci stack-monitoring discovery-job create --compartment-id --discovery-details``
20+
21+
* Support for the Fusion Apps service
22+
23+
* ``oci fusion-apps``
24+
25+
* Support for the Oracle Process Automation service
26+
27+
* ``oci opa``
28+
29+
* Support for ingress routing tables to NAT Gateway and Internet Gateway in the VCN Routing service
30+
31+
* ``oci network nat-gateway create --route-table-id``
32+
* ``oci network nat-gateway update --route-table-id``
33+
* ``oci network internet-gateway create --route-table-id``
34+
* ``oci network internet-gateway update --route-table-id``
35+
36+
* Support for maintenance reboot due date extension on Virtual Machine instances in the core service
37+
38+
* ``oci compute instance-maintenance-reboot get``
39+
* ``oci compute instance update --time-maintenance-reboot-due``
40+
41+
* Support for Oracle Managed Access service
42+
43+
* ``oci oma``
44+
45+
* Support for grapePeriod for wallet rotation feature in the Autonomous Database service
46+
47+
* ``oci db autonomous-database-wallet rotate --grace-period``
48+
* ``oci db autonomous-database-wallet rotate-regional-wallet --grace-period``
49+
50+
* Support for the Media service
51+
52+
* ``oci media-services``
53+
54+
Changed
55+
~~~~~~~
56+
* Modified supported version for the following package: cryptography (>=3.2.1, <=37.0.2), pyOpenSSL (>=17.5.0, <=22.0.0)
57+
958
3.11.0 - 2022-07-12
1059
--------------------
1160
Added

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ certifi
88
cffi>=1.9.1
99
click==7.1.2
1010
coverage==4.5.2
11-
cryptography==3.3.2
11+
cryptography>=3.2.1,<=37.0.2
1212
httpsig-cffi==15.0.0
1313
Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.75.0
17+
oci==2.75.1
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0
2121
pyasn1==0.2.3
22-
pyOpenSSL==19.1.0
22+
pyOpenSSL>=17.5.0,<=22.0.0
2323
pycparser==2.20
2424
pyparsing==2.2.0
2525
pytest==3.2.3

services/core/src/oci_cli_compute/generated/compute_cli.py

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ def image_group():
113113
pass
114114

115115

116+
@click.command(cli_util.override('compute.instance_maintenance_reboot_group.command_name', 'instance-maintenance-reboot'), cls=CommandGroupWithAlias, help="""The maximum possible date and time that a maintenance reboot can be extended.""")
117+
@cli_util.help_option_group
118+
def instance_maintenance_reboot_group():
119+
pass
120+
121+
116122
@click.command(cli_util.override('compute.shape_group.command_name', 'shape'), cls=CommandGroupWithAlias, help="""A compute instance shape that can be used in [LaunchInstance]. For more information, see [Overview of the Compute Service] and [Compute Shapes].""")
117123
@cli_util.help_option_group
118124
def shape_group():
@@ -224,6 +230,7 @@ def console_history_group():
224230
compute_root_group.add_command(compute_capacity_reservation_instance_shape_group)
225231
compute_root_group.add_command(dedicated_vm_host_group)
226232
compute_root_group.add_command(image_group)
233+
compute_root_group.add_command(instance_maintenance_reboot_group)
227234
compute_root_group.add_command(shape_group)
228235
compute_root_group.add_command(compute_image_capability_schema_group)
229236
compute_root_group.add_command(app_catalog_listing_resource_version_group)
@@ -2821,6 +2828,28 @@ def get_instance_console_connection(ctx, from_json, instance_console_connection_
28212828
cli_util.render_response(result, ctx)
28222829

28232830

2831+
@instance_maintenance_reboot_group.command(name=cli_util.override('compute.get_instance_maintenance_reboot.command_name', 'get'), help=u"""Gets the maximum possible date that a maintenance reboot can be extended. \n[Command Reference](getInstanceMaintenanceReboot)""")
2832+
@cli_util.option('--instance-id', required=True, help=u"""The [OCID] of the instance.""")
2833+
@json_skeleton_utils.get_cli_json_input_option({})
2834+
@cli_util.help_option
2835+
@click.pass_context
2836+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'core', 'class': 'InstanceMaintenanceReboot'})
2837+
@cli_util.wrap_exceptions
2838+
def get_instance_maintenance_reboot(ctx, from_json, instance_id):
2839+
2840+
if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0:
2841+
raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string')
2842+
2843+
kwargs = {}
2844+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
2845+
client = cli_util.build_client('core', 'compute', ctx)
2846+
result = client.get_instance_maintenance_reboot(
2847+
instance_id=instance_id,
2848+
**kwargs
2849+
)
2850+
cli_util.render_response(result, ctx)
2851+
2852+
28242853
@measured_boot_report_group.command(name=cli_util.override('compute.get_measured_boot_report.command_name', 'get'), help=u"""Gets the measured boot report for this shielded instance. \n[Command Reference](getMeasuredBootReport)""")
28252854
@cli_util.option('--instance-id', required=True, help=u"""The [OCID] of the instance.""")
28262855
@json_skeleton_utils.get_cli_json_input_option({})
@@ -7547,6 +7576,9 @@ def update_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i
75477576
Example: `FAULT-DOMAIN-1`""")
75487577
@cli_util.option('--launch-options', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
75497578
@cli_util.option('--availability-config', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
7579+
@cli_util.option('--time-maintenance-reboot-due', type=custom_types.CLI_DATETIME, help=u"""The date and time the instance is expected to be stopped and restarted, in the format defined by [RFC3339]. If the instance hasn't been rebooted after this date, Oracle reboots the instance within 24 hours of the time and date that maintenance is due. Regardless of how the instance is stopped, this flag is reset to empty as soon as the instance reaches Stopped state.
7580+
7581+
Example: `2018-05-25T21:10:29.600Z`""" + custom_types.CLI_DATETIME.VALID_DATETIME_CLI_HELP_MESSAGE)
75507582
@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.""")
75517583
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
75527584
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["MOVING", "PROVISIONING", "RUNNING", "STARTING", "STOPPING", "STOPPED", "CREATING_IMAGE", "TERMINATING", "TERMINATED"]), 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.""")
@@ -7557,7 +7589,7 @@ def update_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i
75577589
@click.pass_context
75587590
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'agent-config': {'module': 'core', 'class': 'UpdateInstanceAgentConfigDetails'}, 'metadata': {'module': 'core', 'class': 'dict(str, string)'}, 'extended-metadata': {'module': 'core', 'class': 'dict(str, object)'}, 'shape-config': {'module': 'core', 'class': 'UpdateInstanceShapeConfigDetails'}, 'instance-options': {'module': 'core', 'class': 'InstanceOptions'}, 'launch-options': {'module': 'core', 'class': 'UpdateLaunchOptions'}, 'availability-config': {'module': 'core', 'class': 'UpdateInstanceAvailabilityConfigDetails'}}, output_type={'module': 'core', 'class': 'Instance'})
75597591
@cli_util.wrap_exceptions
7560-
def update_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, capacity_reservation_id, defined_tags, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, instance_options, fault_domain, launch_options, availability_config, if_match):
7592+
def update_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, capacity_reservation_id, defined_tags, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, instance_options, fault_domain, launch_options, availability_config, time_maintenance_reboot_due, if_match):
75617593

75627594
if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0:
75637595
raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string')
@@ -7611,6 +7643,9 @@ def update_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wai
76117643
if availability_config is not None:
76127644
_details['availabilityConfig'] = cli_util.parse_json_parameter("availability_config", availability_config)
76137645

7646+
if time_maintenance_reboot_due is not None:
7647+
_details['timeMaintenanceRebootDue'] = time_maintenance_reboot_due
7648+
76147649
client = cli_util.build_client('core', 'compute', ctx)
76157650
result = client.update_instance(
76167651
instance_id=instance_id,

0 commit comments

Comments
 (0)