Skip to content

Commit a92e87c

Browse files
Releasing version 3.18.0
Releasing version 3.18.0
2 parents c3ffa92 + 19607bc commit a92e87c

File tree

18 files changed

+1057
-85
lines changed

18 files changed

+1057
-85
lines changed

CHANGELOG.rst

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,65 @@ 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.18.0 - 2022-09-27
10+
--------------------
11+
12+
Added
13+
~~~~~~~~
14+
15+
* Support for previous pagination in Resource Search service
16+
17+
* ``oci search resource structured-search --page $opc-previous-token``
18+
19+
* Support for Elastic Compute feature as part of database service
20+
21+
* ``oci db exadata-infrastructure generate-recommended-vm-cluster-network --db-servers``
22+
* ``oci db exadata-infrastructure update --additional-compute-count, --additional-compute-system-model``
23+
* ``oci db vm-cluster-network resize --action, --exadata-infrastructure-id, --vm-cluster-network-id, --vm-networks``
24+
25+
* Stack Monitoring service
26+
27+
* Support for new command
28+
29+
* ``oci stack-monitoring resource search-associated-resources``
30+
31+
* Support for new optional parameter
32+
33+
* ``oci stack-monitoring resource search --external-id``
34+
* ``oci stack-monitoring resource create --external-id``
35+
* ``oci stack-monitoring resource delete --is-delete-members``
36+
37+
* NoSQL service
38+
39+
* ``oci nosql query prepare``
40+
41+
* Added a new optional argument ``--is-get-query-plan``
42+
* Added the optional ``queryPlan`` property in the JSON response
43+
44+
* ``oci nosql table get``
45+
46+
* Added the properties ``isAsUuid`` and ``isGenerated`` to the ``Column`` JSON object that is included in the JSON response
47+
* Added the ``identity`` JSON object that is included in the the JSON response
48+
49+
* ``oci nosql table list-table-usage``
50+
51+
* Added the property ``maxShardSizeUsageInPercent`` in the JSON response
52+
53+
Changed
54+
~~~~~~~
55+
* [BREAKING] DNS service
56+
57+
* ``oci dns resolver-endpoint create --subnet-id --nsg-ids``
58+
59+
* Required parameter ``--subnet-id`` was added
60+
* Optional paramater ``--nsg-ids`` was added
61+
* Optional paramater ``--endpoint-type`` was removed
62+
63+
64+
* ``oci dns resolver-endpoint update``
65+
66+
* The optional paramater ``--nsg-ids`` was added
67+
968
3.17.0 - 2022-09-20
1069
--------------------
1170

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.83.0
17+
oci==2.84.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

scripts/install/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ The order of precedence in which this scripts applies input parameters is as fol
7777

7878
Checksums
7979
-----------
80-
install.sh 362a5a64fa67058464e286ec99e24e25d4540c3bb63d8ba7273ea4993a62fd53
81-
install.ps1 9ca1cd79b3309bdb4513a0a068228a67ac85c1438cbee6b4cb034af0f138a09b
82-
install.py 9b728733a2323cce3d9853fcb58339359642e2fb23a3ea3385d47ef9aa4fcfb3
80+
install.sh eff201279e7198101e8cbbe4cea2ca559732f3cd502e145354d7477d2a4621ce
81+
install.ps1 8dba598ded1718cfa2e52ca8785ece31d0b573868eaec9ad2af535d43797a70c
82+
install.py b4d5879f0294ff3344b0b2e131ad4dfd44971f70bdb6d077d6a433c2faa8eb5f

services/bds/src/oci_cli_bds/generated/bds_cli.py

Lines changed: 119 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ def list_bds_api_keys(ctx, from_json, all_pages, page_size, bds_instance_id, lif
15431543

15441544
@bds_instance_group.command(name=cli_util.override('bds.list_bds_instances.command_name', 'list'), help=u"""Returns a list of all Big Data Service clusters in a compartment. \n[Command Reference](listBdsInstances)""")
15451545
@cli_util.option('--compartment-id', required=True, help=u"""The OCID of the compartment.""")
1546-
@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "SUSPENDING", "SUSPENDED", "RESUMING", "DELETING", "DELETED", "FAILED"]), help=u"""The state of the cluster.""")
1546+
@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "SUSPENDING", "SUSPENDED", "RESUMING", "DELETING", "DELETED", "FAILED", "INACTIVE"]), help=u"""The state of the cluster.""")
15471547
@cli_util.option('--page', help=u"""The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.""")
15481548
@cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
15491549
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.""")
@@ -2197,6 +2197,124 @@ def restart_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval
21972197
cli_util.render_response(result, ctx)
21982198

21992199

2200+
@bds_instance_group.command(name=cli_util.override('bds.start_bds_instance.command_name', 'start'), help=u"""Starts the BDS cluster that was stopped earlier. \n[Command Reference](startBdsInstance)""")
2201+
@cli_util.option('--bds-instance-id', required=True, help=u"""The OCID of the cluster.""")
2202+
@cli_util.option('--cluster-admin-password', required=True, help=u"""Base-64 encoded password for the cluster admin user.""")
2203+
@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.""")
2204+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain 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.""")
2205+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
2206+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request to see if it has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
2207+
@json_skeleton_utils.get_cli_json_input_option({})
2208+
@cli_util.help_option
2209+
@click.pass_context
2210+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
2211+
@cli_util.wrap_exceptions
2212+
def start_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, if_match):
2213+
2214+
if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0:
2215+
raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string')
2216+
2217+
kwargs = {}
2218+
if if_match is not None:
2219+
kwargs['if_match'] = if_match
2220+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
2221+
2222+
_details = {}
2223+
_details['clusterAdminPassword'] = cluster_admin_password
2224+
2225+
client = cli_util.build_client('bds', 'bds', ctx)
2226+
result = client.start_bds_instance(
2227+
bds_instance_id=bds_instance_id,
2228+
start_bds_instance_details=_details,
2229+
**kwargs
2230+
)
2231+
if wait_for_state:
2232+
2233+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
2234+
try:
2235+
wait_period_kwargs = {}
2236+
if max_wait_seconds is not None:
2237+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
2238+
if wait_interval_seconds is not None:
2239+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
2240+
2241+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
2242+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
2243+
except oci.exceptions.MaximumWaitTimeExceeded as e:
2244+
# If we fail, we should show an error, but we should still provide the information to the customer
2245+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
2246+
cli_util.render_response(result, ctx)
2247+
sys.exit(2)
2248+
except Exception:
2249+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
2250+
cli_util.render_response(result, ctx)
2251+
raise
2252+
else:
2253+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
2254+
cli_util.render_response(result, ctx)
2255+
2256+
2257+
@bds_instance_group.command(name=cli_util.override('bds.stop_bds_instance.command_name', 'stop'), help=u"""Stops the BDS cluster that can be started at later point of time. \n[Command Reference](stopBdsInstance)""")
2258+
@cli_util.option('--bds-instance-id', required=True, help=u"""The OCID of the cluster.""")
2259+
@cli_util.option('--cluster-admin-password', required=True, help=u"""Base-64 encoded password for the cluster admin user.""")
2260+
@cli_util.option('--is-force-stop-jobs', type=click.BOOL, help=u"""Boolean indicating whether to force stop jobs while stopping cluster. Defaults to false.""")
2261+
@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.""")
2262+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain 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.""")
2263+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
2264+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request to see if it has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
2265+
@json_skeleton_utils.get_cli_json_input_option({})
2266+
@cli_util.help_option
2267+
@click.pass_context
2268+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
2269+
@cli_util.wrap_exceptions
2270+
def stop_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, is_force_stop_jobs, if_match):
2271+
2272+
if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0:
2273+
raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string')
2274+
2275+
kwargs = {}
2276+
if if_match is not None:
2277+
kwargs['if_match'] = if_match
2278+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
2279+
2280+
_details = {}
2281+
_details['clusterAdminPassword'] = cluster_admin_password
2282+
2283+
if is_force_stop_jobs is not None:
2284+
_details['isForceStopJobs'] = is_force_stop_jobs
2285+
2286+
client = cli_util.build_client('bds', 'bds', ctx)
2287+
result = client.stop_bds_instance(
2288+
bds_instance_id=bds_instance_id,
2289+
stop_bds_instance_details=_details,
2290+
**kwargs
2291+
)
2292+
if wait_for_state:
2293+
2294+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
2295+
try:
2296+
wait_period_kwargs = {}
2297+
if max_wait_seconds is not None:
2298+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
2299+
if wait_interval_seconds is not None:
2300+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
2301+
2302+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
2303+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
2304+
except oci.exceptions.MaximumWaitTimeExceeded as e:
2305+
# If we fail, we should show an error, but we should still provide the information to the customer
2306+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
2307+
cli_util.render_response(result, ctx)
2308+
sys.exit(2)
2309+
except Exception:
2310+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
2311+
cli_util.render_response(result, ctx)
2312+
raise
2313+
else:
2314+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
2315+
cli_util.render_response(result, ctx)
2316+
2317+
22002318
@bds_metastore_configuration_group.command(name=cli_util.override('bds.test_bds_metastore_configuration.command_name', 'test'), help=u"""Test specified metastore configuration. \n[Command Reference](testBdsMetastoreConfiguration)""")
22012319
@cli_util.option('--bds-instance-id', required=True, help=u"""The OCID of the cluster.""")
22022320
@cli_util.option('--metastore-config-id', required=True, help=u"""The metastore configuration ID""")

services/cloud_bridge/src/oci_cli_ocb_agent_svc/ocbagentsvc_cli_extended.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
ocbagentsvc_cli.agent_dependency_group.add_command(ocbagentsvc_cli.list_agent_dependencies)
2121
cli_util.rename_command(ocbagentsvc_cli, ocbagentsvc_cli.agent_dependency_group, ocbagentsvc_cli.list_agent_dependencies, "list")
2222

23-
cli_util.rename_command(ocbagentsvc_cli, ocbagentsvc_cli.agent_dependency_collection_group, ocbagentsvc_cli.list_agent_dependencies, "list")
24-
25-
# oci cloud-bridge ocb-agent-svc environment-collection list-environments -> oci cloud-bridge ocb-agent-svc environment-collection list
26-
cli_util.rename_command(ocbagentsvc_cli, ocbagentsvc_cli.environment_collection_group, ocbagentsvc_cli.list_environments, "list")
27-
28-
cli_util.rename_command(ocbagentsvc_cli, ocbagentsvc_cli.ocb_agent_svc_root_group, ocbagentsvc_cli.environment_collection_group, "environment")
23+
# oci cloud-bridge ocb-agent-svc environment-collection list-environments -> oci cloud-bridge ocb-agent-svc environment list
24+
ocbagentsvc_cli.ocb_agent_svc_root_group.commands.pop(ocbagentsvc_cli.environment_collection_group.name)
25+
ocbagentsvc_cli.environment_group.add_command(ocbagentsvc_cli.list_environments)
26+
cli_util.rename_command(ocbagentsvc_cli, ocbagentsvc_cli.environment_group, ocbagentsvc_cli.list_environments, "list")
2927

3028
cli_util.rename_command(ocbagentsvc_cli, ocbagentsvc_cli.ocb_agent_svc_root_group, ocbagentsvc_cli.appliance_image_collection_group, "appliance-image")

0 commit comments

Comments
 (0)