oci-cli 3.63.0__py3-none-any.whl → 3.63.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci_cli/bin/devops.psm1 +5 -4
- oci_cli/bin/psql.psm1 +4 -4
- oci_cli/bin/vault.psm1 +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/add-lock.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/remove-lock.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/add-lock.txt +143 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/remove-lock.txt +138 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/add-lock.txt +150 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/remove-lock.txt +145 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/add-lock.txt +142 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/create.txt +18 -1
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/remove-lock.txt +137 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/update.txt +5 -1
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/add-lock.txt +144 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/list.txt +4 -2
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/remove-lock.txt +139 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/add-lock.txt +147 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/remove-lock.txt +142 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/add-lock.txt +146 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/remove-lock.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway.txt +28 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/change-compartment.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/create.txt +153 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/delete.txt +132 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/get.txt +94 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/update.txt +162 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance-collection/list-api-platform-instances.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance-collection.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request/list.txt +140 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-error/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-error.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-log-entry/list-work-request-logs.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-log-entry.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request.txt +21 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform.txt +42 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/create-agent.txt +153 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/create-macs-extension.txt +171 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/update-agent.txt +162 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/update-macs-extension.txt +174 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config-collection/list.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/match-agents-with-attribute-key/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/match-agents-with-attribute-key/update.txt +107 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/match-agents-with-attribute-key.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment/create-model-deployment-model-group-deployment-configuration-details.txt +215 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment/update-model-deployment-update-model-group-deployment-configuration-details.txt +235 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment-model-state/list.txt +167 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment-model-state.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/activate.txt +130 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/change-compartment.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create-model-group-artifact.txt +123 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create-model-group-clone-model-group-details.txt +139 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create-model-group-create-model-group-details.txt +197 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create.txt +132 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/deactivate.txt +130 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/delete.txt +134 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/get-model-group-artifact-content.txt +107 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/get.txt +97 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/head-model-group-artifact.txt +96 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/list-model-group-models.txt +171 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/list.txt +169 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/update.txt +180 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/change-compartment.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/create.txt +166 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/delete.txt +133 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/get.txt +95 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/list.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/update.txt +172 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history.txt +25 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group.txt +41 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/work-request/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/data-science.txt +54 -0
- oci_cli/help_text_producer/data_files/text/cmdref/devops/{protected-branch → protected-branch-collection}/list-protected-branches.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/devops/protected-branch-collection.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/devops/protected-branch.txt +0 -2
- oci_cli/help_text_producer/data_files/text/cmdref/devops.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-amazon-s3-connection.txt +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/{create-connection-create-iceberg-connection-details.txt → create-iceberg-connection.txt} +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-amazon-s3-connection.txt +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/{update-connection-update-iceberg-connection-details.txt → update-iceberg-connection.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/lustre-file-system.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/get-oob.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/import.txt +24 -0
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/list-oob.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/saved-search/get-oob.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/saved-search/list-oob.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list.txt → list-errors.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry → work-request-log}/list.txt +19 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry.txt → work-request-log.txt} +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/change-compartment.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/create.txt +21 -7
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/delete.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/get.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/update.txt +13 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration-collection/list-configurations.txt +9 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/default-configuration-collection/list-default-configurations.txt +9 -2
- oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +8 -8
- oci_cli/help_text_producer/data_files/text/cmdref/speech/voice/list.txt +6 -1
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/vault/secret/create-base64.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/vault/secret/update-base64.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/vault/secret/update.txt +11 -0
- oci_cli/help_text_producer/data_files/text/index.txt +2 -0
- oci_cli/service_mapping.py +5 -0
- oci_cli/version.py +1 -1
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/METADATA +2 -2
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/RECORD +187 -116
- services/ai_speech/src/oci_cli_ai_service_speech/generated/aiservicespeech_cli.py +5 -2
- services/api_platform/__init__.py +4 -0
- services/api_platform/src/__init__.py +4 -0
- services/api_platform/src/oci_cli_api_platform/__init__.py +4 -0
- services/api_platform/src/oci_cli_api_platform/generated/__init__.py +4 -0
- services/api_platform/src/oci_cli_api_platform/generated/apiplatform_cli.py +567 -0
- services/api_platform/src/oci_cli_api_platform/generated/client_mappings.py +14 -0
- services/api_platform/tests/__init__.py +4 -0
- services/apigateway/src/oci_cli_api_gateway/api_gateway_cli_extended.py +24 -0
- services/apigateway/src/oci_cli_api_gateway/generated/apigateway_cli.py +415 -19
- services/apigateway/src/oci_cli_deployment/apigateway_deployment_extended.py +8 -0
- services/apigateway/src/oci_cli_deployment/generated/deployment_cli.py +139 -6
- services/apigateway/src/oci_cli_gateway/apigateway_gateway_extended.py +9 -1
- services/apigateway/src/oci_cli_gateway/generated/gateway_cli.py +171 -20
- services/apigateway/src/oci_cli_subscribers/generated/subscribers_cli.py +139 -6
- services/apigateway/src/oci_cli_subscribers/subscribers_cli_extended.py +9 -0
- services/apigateway/src/oci_cli_usage_plans/generated/usageplans_cli.py +139 -6
- services/apigateway/src/oci_cli_usage_plans/usageplans_cli_extended.py +9 -0
- services/apm_config/src/oci_cli_config/config_cli_extended.py +16 -0
- services/apm_config/src/oci_cli_config/generated/config_cli.py +289 -3
- services/data_science/src/oci_cli_data_science/generated/datascience_cli.py +1477 -98
- services/devops/src/oci_cli_devops/devops_cli_extended.py +11 -11
- services/golden_gate/src/oci_cli_golden_gate/golden_gate_cli_extended.py +44 -0
- services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py +18 -6
- services/psql/src/oci_cli_postgresql/generated/postgresql_cli.py +38 -14
- services/vault/src/oci_cli_vaults/generated/vaults_cli.py +80 -40
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/LICENSE.txt +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/WHEEL +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/entry_points.txt +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/top_level.txt +0 -0
|
@@ -41,10 +41,72 @@ gateway_root_group.add_command(gateway_summary_group)
|
|
|
41
41
|
gateway_root_group.add_command(gateway_group)
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
@gateway_group.command(name=cli_util.override('gateway.add_gateway_lock.command_name', 'add'), help=u"""Adds a lock to a Gateway resource. \n[Command Reference](addGatewayLock)""")
|
|
45
|
+
@cli_util.option('--gateway-id', required=True, help=u"""The ocid of the gateway.""")
|
|
46
|
+
@cli_util.option('--type', required=True, type=custom_types.CliCaseInsensitiveChoice(["FULL", "DELETE"]), help=u"""Type of the lock.""")
|
|
47
|
+
@cli_util.option('--message', help=u"""A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.""")
|
|
48
|
+
@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.""")
|
|
49
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]), 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.""")
|
|
50
|
+
@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.""")
|
|
51
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
52
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
53
|
+
@cli_util.help_option
|
|
54
|
+
@click.pass_context
|
|
55
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
56
|
+
@cli_util.wrap_exceptions
|
|
57
|
+
def add_gateway_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, type, message, if_match):
|
|
58
|
+
|
|
59
|
+
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
60
|
+
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
61
|
+
|
|
62
|
+
kwargs = {}
|
|
63
|
+
if if_match is not None:
|
|
64
|
+
kwargs['if_match'] = if_match
|
|
65
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
66
|
+
|
|
67
|
+
_details = {}
|
|
68
|
+
_details['type'] = type
|
|
69
|
+
|
|
70
|
+
if message is not None:
|
|
71
|
+
_details['message'] = message
|
|
72
|
+
|
|
73
|
+
client = cli_util.build_client('apigateway', 'gateway', ctx)
|
|
74
|
+
result = client.add_gateway_lock(
|
|
75
|
+
gateway_id=gateway_id,
|
|
76
|
+
add_resource_lock_details=_details,
|
|
77
|
+
**kwargs
|
|
78
|
+
)
|
|
79
|
+
if wait_for_state:
|
|
80
|
+
|
|
81
|
+
if hasattr(client, 'get_gateway') and callable(getattr(client, 'get_gateway')):
|
|
82
|
+
try:
|
|
83
|
+
wait_period_kwargs = {}
|
|
84
|
+
if max_wait_seconds is not None:
|
|
85
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
86
|
+
if wait_interval_seconds is not None:
|
|
87
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
88
|
+
|
|
89
|
+
click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
90
|
+
result = oci.wait_until(client, client.get_gateway(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
|
|
91
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
92
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
93
|
+
click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
94
|
+
cli_util.render_response(result, ctx)
|
|
95
|
+
sys.exit(2)
|
|
96
|
+
except Exception:
|
|
97
|
+
click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
98
|
+
cli_util.render_response(result, ctx)
|
|
99
|
+
raise
|
|
100
|
+
else:
|
|
101
|
+
click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
|
|
102
|
+
cli_util.render_response(result, ctx)
|
|
103
|
+
|
|
104
|
+
|
|
44
105
|
@gateway_group.command(name=cli_util.override('gateway.change_gateway_compartment.command_name', 'change-compartment'), help=u"""Changes the gateway compartment. \n[Command Reference](changeGatewayCompartment)""")
|
|
45
106
|
@cli_util.option('--gateway-id', required=True, help=u"""The ocid of the gateway.""")
|
|
46
107
|
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment in which the resource is created.""")
|
|
47
108
|
@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.""")
|
|
109
|
+
@cli_util.option('--is-lock-override', type=click.BOOL, help=u"""Whether to override locks (if any exist).""")
|
|
48
110
|
@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.""")
|
|
49
111
|
@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.""")
|
|
50
112
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
@@ -53,7 +115,7 @@ gateway_root_group.add_command(gateway_group)
|
|
|
53
115
|
@click.pass_context
|
|
54
116
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
55
117
|
@cli_util.wrap_exceptions
|
|
56
|
-
def change_gateway_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, compartment_id, if_match):
|
|
118
|
+
def change_gateway_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, compartment_id, if_match, is_lock_override):
|
|
57
119
|
|
|
58
120
|
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
59
121
|
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
@@ -61,6 +123,8 @@ def change_gateway_compartment(ctx, from_json, wait_for_state, max_wait_seconds,
|
|
|
61
123
|
kwargs = {}
|
|
62
124
|
if if_match is not None:
|
|
63
125
|
kwargs['if_match'] = if_match
|
|
126
|
+
if is_lock_override is not None:
|
|
127
|
+
kwargs['is_lock_override'] = is_lock_override
|
|
64
128
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
65
129
|
|
|
66
130
|
_details = {}
|
|
@@ -114,8 +178,11 @@ Example: `PUBLIC` or `PRIVATE`""")
|
|
|
114
178
|
|
|
115
179
|
Example: `My new resource`""")
|
|
116
180
|
@cli_util.option('--network-security-group-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""An array of Network Security Groups OCIDs associated with this API Gateway.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
117
|
-
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource.""")
|
|
181
|
+
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource which can be empty string.""")
|
|
118
182
|
@cli_util.option('--response-cache-details', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
183
|
+
@cli_util.option('--locks', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Locks associated with this resource.
|
|
184
|
+
|
|
185
|
+
This option is a JSON list with items of type AddResourceLockDetails. For documentation on AddResourceLockDetails please see our API reference: https://docs.cloud.oracle.com/api/#/en/gateway/20190501/datatypes/AddResourceLockDetails.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
119
186
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
120
187
|
|
|
121
188
|
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -128,12 +195,12 @@ This option is a JSON list with items of type CaBundle. For documentation on Ca
|
|
|
128
195
|
@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.""")
|
|
129
196
|
@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.""")
|
|
130
197
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
131
|
-
@json_skeleton_utils.get_cli_json_input_option({'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'response-cache-details': {'module': 'apigateway', 'class': 'ResponseCacheDetails'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}})
|
|
198
|
+
@json_skeleton_utils.get_cli_json_input_option({'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'response-cache-details': {'module': 'apigateway', 'class': 'ResponseCacheDetails'}, 'locks': {'module': 'apigateway', 'class': 'list[AddResourceLockDetails]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}})
|
|
132
199
|
@cli_util.help_option
|
|
133
200
|
@click.pass_context
|
|
134
|
-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'response-cache-details': {'module': 'apigateway', 'class': 'ResponseCacheDetails'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
201
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'response-cache-details': {'module': 'apigateway', 'class': 'ResponseCacheDetails'}, 'locks': {'module': 'apigateway', 'class': 'list[AddResourceLockDetails]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
135
202
|
@cli_util.wrap_exceptions
|
|
136
|
-
def create_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, endpoint_type, subnet_id, display_name, network_security_group_ids, certificate_id, response_cache_details, freeform_tags, defined_tags, ca_bundles):
|
|
203
|
+
def create_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, endpoint_type, subnet_id, display_name, network_security_group_ids, certificate_id, response_cache_details, locks, freeform_tags, defined_tags, ca_bundles):
|
|
137
204
|
|
|
138
205
|
kwargs = {}
|
|
139
206
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
@@ -155,6 +222,9 @@ def create_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv
|
|
|
155
222
|
if response_cache_details is not None:
|
|
156
223
|
_details['responseCacheDetails'] = cli_util.parse_json_parameter("response_cache_details", response_cache_details)
|
|
157
224
|
|
|
225
|
+
if locks is not None:
|
|
226
|
+
_details['locks'] = cli_util.parse_json_parameter("locks", locks)
|
|
227
|
+
|
|
158
228
|
if freeform_tags is not None:
|
|
159
229
|
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
160
230
|
|
|
@@ -214,7 +284,10 @@ Example: `PUBLIC` or `PRIVATE`""")
|
|
|
214
284
|
|
|
215
285
|
Example: `My new resource`""")
|
|
216
286
|
@cli_util.option('--network-security-group-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""An array of Network Security Groups OCIDs associated with this API Gateway.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
217
|
-
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource.""")
|
|
287
|
+
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource which can be empty string.""")
|
|
288
|
+
@cli_util.option('--locks', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Locks associated with this resource.
|
|
289
|
+
|
|
290
|
+
This option is a JSON list with items of type AddResourceLockDetails. For documentation on AddResourceLockDetails please see our API reference: https://docs.cloud.oracle.com/api/#/en/gateway/20190501/datatypes/AddResourceLockDetails.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
218
291
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
219
292
|
|
|
220
293
|
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -232,12 +305,12 @@ This option is a JSON list with items of type CaBundle. For documentation on Ca
|
|
|
232
305
|
@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.""")
|
|
233
306
|
@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.""")
|
|
234
307
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
235
|
-
@json_skeleton_utils.get_cli_json_input_option({'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}, 'response-cache-details-servers': {'module': 'apigateway', 'class': 'list[ResponseCacheRespServer]'}})
|
|
308
|
+
@json_skeleton_utils.get_cli_json_input_option({'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'locks': {'module': 'apigateway', 'class': 'list[AddResourceLockDetails]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}, 'response-cache-details-servers': {'module': 'apigateway', 'class': 'list[ResponseCacheRespServer]'}})
|
|
236
309
|
@cli_util.help_option
|
|
237
310
|
@click.pass_context
|
|
238
|
-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}, 'response-cache-details-servers': {'module': 'apigateway', 'class': 'list[ResponseCacheRespServer]'}}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
311
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'locks': {'module': 'apigateway', 'class': 'list[AddResourceLockDetails]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}, 'response-cache-details-servers': {'module': 'apigateway', 'class': 'list[ResponseCacheRespServer]'}}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
239
312
|
@cli_util.wrap_exceptions
|
|
240
|
-
def create_gateway_external_resp_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, endpoint_type, subnet_id, response_cache_details_servers, response_cache_details_authentication_secret_id, response_cache_details_authentication_secret_version_number, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, response_cache_details_is_ssl_enabled, response_cache_details_is_ssl_verify_disabled, response_cache_details_connect_timeout_in_ms, response_cache_details_read_timeout_in_ms, response_cache_details_send_timeout_in_ms):
|
|
313
|
+
def create_gateway_external_resp_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, endpoint_type, subnet_id, response_cache_details_servers, response_cache_details_authentication_secret_id, response_cache_details_authentication_secret_version_number, display_name, network_security_group_ids, certificate_id, locks, freeform_tags, defined_tags, ca_bundles, response_cache_details_is_ssl_enabled, response_cache_details_is_ssl_verify_disabled, response_cache_details_connect_timeout_in_ms, response_cache_details_read_timeout_in_ms, response_cache_details_send_timeout_in_ms):
|
|
241
314
|
|
|
242
315
|
kwargs = {}
|
|
243
316
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
@@ -260,6 +333,9 @@ def create_gateway_external_resp_cache(ctx, from_json, wait_for_state, max_wait_
|
|
|
260
333
|
if certificate_id is not None:
|
|
261
334
|
_details['certificateId'] = certificate_id
|
|
262
335
|
|
|
336
|
+
if locks is not None:
|
|
337
|
+
_details['locks'] = cli_util.parse_json_parameter("locks", locks)
|
|
338
|
+
|
|
263
339
|
if freeform_tags is not None:
|
|
264
340
|
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
265
341
|
|
|
@@ -333,7 +409,10 @@ Example: `PUBLIC` or `PRIVATE`""")
|
|
|
333
409
|
|
|
334
410
|
Example: `My new resource`""")
|
|
335
411
|
@cli_util.option('--network-security-group-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""An array of Network Security Groups OCIDs associated with this API Gateway.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
336
|
-
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource.""")
|
|
412
|
+
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource which can be empty string.""")
|
|
413
|
+
@cli_util.option('--locks', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Locks associated with this resource.
|
|
414
|
+
|
|
415
|
+
This option is a JSON list with items of type AddResourceLockDetails. For documentation on AddResourceLockDetails please see our API reference: https://docs.cloud.oracle.com/api/#/en/gateway/20190501/datatypes/AddResourceLockDetails.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
337
416
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
338
417
|
|
|
339
418
|
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -346,12 +425,12 @@ This option is a JSON list with items of type CaBundle. For documentation on Ca
|
|
|
346
425
|
@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.""")
|
|
347
426
|
@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.""")
|
|
348
427
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
349
|
-
@json_skeleton_utils.get_cli_json_input_option({'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}})
|
|
428
|
+
@json_skeleton_utils.get_cli_json_input_option({'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'locks': {'module': 'apigateway', 'class': 'list[AddResourceLockDetails]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}})
|
|
350
429
|
@cli_util.help_option
|
|
351
430
|
@click.pass_context
|
|
352
|
-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
431
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'locks': {'module': 'apigateway', 'class': 'list[AddResourceLockDetails]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
353
432
|
@cli_util.wrap_exceptions
|
|
354
|
-
def create_gateway_no_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, endpoint_type, subnet_id, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles):
|
|
433
|
+
def create_gateway_no_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, endpoint_type, subnet_id, display_name, network_security_group_ids, certificate_id, locks, freeform_tags, defined_tags, ca_bundles):
|
|
355
434
|
|
|
356
435
|
kwargs = {}
|
|
357
436
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
@@ -371,6 +450,9 @@ def create_gateway_no_cache(ctx, from_json, wait_for_state, max_wait_seconds, wa
|
|
|
371
450
|
if certificate_id is not None:
|
|
372
451
|
_details['certificateId'] = certificate_id
|
|
373
452
|
|
|
453
|
+
if locks is not None:
|
|
454
|
+
_details['locks'] = cli_util.parse_json_parameter("locks", locks)
|
|
455
|
+
|
|
374
456
|
if freeform_tags is not None:
|
|
375
457
|
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
376
458
|
|
|
@@ -422,6 +504,7 @@ def create_gateway_no_cache(ctx, from_json, wait_for_state, max_wait_seconds, wa
|
|
|
422
504
|
@gateway_group.command(name=cli_util.override('gateway.delete_gateway.command_name', 'delete'), help=u"""Deletes the gateway with the given identifier. \n[Command Reference](deleteGateway)""")
|
|
423
505
|
@cli_util.option('--gateway-id', required=True, help=u"""The ocid of the gateway.""")
|
|
424
506
|
@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.""")
|
|
507
|
+
@cli_util.option('--is-lock-override', type=click.BOOL, help=u"""Whether to override locks (if any exist).""")
|
|
425
508
|
@cli_util.confirm_delete_option
|
|
426
509
|
@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.""")
|
|
427
510
|
@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.""")
|
|
@@ -431,7 +514,7 @@ def create_gateway_no_cache(ctx, from_json, wait_for_state, max_wait_seconds, wa
|
|
|
431
514
|
@click.pass_context
|
|
432
515
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
433
516
|
@cli_util.wrap_exceptions
|
|
434
|
-
def delete_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, if_match):
|
|
517
|
+
def delete_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, if_match, is_lock_override):
|
|
435
518
|
|
|
436
519
|
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
437
520
|
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
@@ -439,6 +522,8 @@ def delete_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv
|
|
|
439
522
|
kwargs = {}
|
|
440
523
|
if if_match is not None:
|
|
441
524
|
kwargs['if_match'] = if_match
|
|
525
|
+
if is_lock_override is not None:
|
|
526
|
+
kwargs['is_lock_override'] = is_lock_override
|
|
442
527
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
443
528
|
client = cli_util.build_client('apigateway', 'gateway', ctx)
|
|
444
529
|
result = client.delete_gateway(
|
|
@@ -566,13 +651,70 @@ def list_gateways(ctx, from_json, all_pages, page_size, compartment_id, certific
|
|
|
566
651
|
cli_util.render_response(result, ctx)
|
|
567
652
|
|
|
568
653
|
|
|
654
|
+
@gateway_group.command(name=cli_util.override('gateway.remove_gateway_lock.command_name', 'remove'), help=u"""Removes a lock from a Gateway resource. \n[Command Reference](removeGatewayLock)""")
|
|
655
|
+
@cli_util.option('--gateway-id', required=True, help=u"""The ocid of the gateway.""")
|
|
656
|
+
@cli_util.option('--type', required=True, type=custom_types.CliCaseInsensitiveChoice(["FULL", "DELETE"]), help=u"""Type of the lock.""")
|
|
657
|
+
@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.""")
|
|
658
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]), 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.""")
|
|
659
|
+
@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.""")
|
|
660
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
661
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
662
|
+
@cli_util.help_option
|
|
663
|
+
@click.pass_context
|
|
664
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'apigateway', 'class': 'Gateway'})
|
|
665
|
+
@cli_util.wrap_exceptions
|
|
666
|
+
def remove_gateway_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, type, if_match):
|
|
667
|
+
|
|
668
|
+
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
669
|
+
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
670
|
+
|
|
671
|
+
kwargs = {}
|
|
672
|
+
if if_match is not None:
|
|
673
|
+
kwargs['if_match'] = if_match
|
|
674
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
675
|
+
|
|
676
|
+
_details = {}
|
|
677
|
+
_details['type'] = type
|
|
678
|
+
|
|
679
|
+
client = cli_util.build_client('apigateway', 'gateway', ctx)
|
|
680
|
+
result = client.remove_gateway_lock(
|
|
681
|
+
gateway_id=gateway_id,
|
|
682
|
+
remove_resource_lock_details=_details,
|
|
683
|
+
**kwargs
|
|
684
|
+
)
|
|
685
|
+
if wait_for_state:
|
|
686
|
+
|
|
687
|
+
if hasattr(client, 'get_gateway') and callable(getattr(client, 'get_gateway')):
|
|
688
|
+
try:
|
|
689
|
+
wait_period_kwargs = {}
|
|
690
|
+
if max_wait_seconds is not None:
|
|
691
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
692
|
+
if wait_interval_seconds is not None:
|
|
693
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
694
|
+
|
|
695
|
+
click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
696
|
+
result = oci.wait_until(client, client.get_gateway(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
|
|
697
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
698
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
699
|
+
click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
700
|
+
cli_util.render_response(result, ctx)
|
|
701
|
+
sys.exit(2)
|
|
702
|
+
except Exception:
|
|
703
|
+
click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
704
|
+
cli_util.render_response(result, ctx)
|
|
705
|
+
raise
|
|
706
|
+
else:
|
|
707
|
+
click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
|
|
708
|
+
cli_util.render_response(result, ctx)
|
|
709
|
+
|
|
710
|
+
|
|
569
711
|
@gateway_group.command(name=cli_util.override('gateway.update_gateway.command_name', 'update'), help=u"""Updates the gateway with the given identifier. \n[Command Reference](updateGateway)""")
|
|
570
712
|
@cli_util.option('--gateway-id', required=True, help=u"""The ocid of the gateway.""")
|
|
571
713
|
@cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
|
572
714
|
|
|
573
715
|
Example: `My new resource`""")
|
|
574
716
|
@cli_util.option('--network-security-group-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""An array of Network Security Groups OCIDs associated with this API Gateway.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
575
|
-
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource.""")
|
|
717
|
+
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource which can be empty string.""")
|
|
576
718
|
@cli_util.option('--response-cache-details', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
577
719
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
578
720
|
|
|
@@ -584,6 +726,7 @@ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_comp
|
|
|
584
726
|
|
|
585
727
|
This option is a JSON list with items of type CaBundle. For documentation on CaBundle please see our API reference: https://docs.cloud.oracle.com/api/#/en/gateway/20190501/datatypes/CaBundle.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
586
728
|
@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.""")
|
|
729
|
+
@cli_util.option('--is-lock-override', type=click.BOOL, help=u"""Whether to override locks (if any exist).""")
|
|
587
730
|
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
588
731
|
@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.""")
|
|
589
732
|
@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.""")
|
|
@@ -593,7 +736,7 @@ This option is a JSON list with items of type CaBundle. For documentation on Ca
|
|
|
593
736
|
@click.pass_context
|
|
594
737
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'response-cache-details': {'module': 'apigateway', 'class': 'ResponseCacheDetails'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}})
|
|
595
738
|
@cli_util.wrap_exceptions
|
|
596
|
-
def update_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, display_name, network_security_group_ids, certificate_id, response_cache_details, freeform_tags, defined_tags, ca_bundles, if_match):
|
|
739
|
+
def update_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, display_name, network_security_group_ids, certificate_id, response_cache_details, freeform_tags, defined_tags, ca_bundles, if_match, is_lock_override):
|
|
597
740
|
|
|
598
741
|
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
599
742
|
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
@@ -605,6 +748,8 @@ def update_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait
|
|
|
605
748
|
kwargs = {}
|
|
606
749
|
if if_match is not None:
|
|
607
750
|
kwargs['if_match'] = if_match
|
|
751
|
+
if is_lock_override is not None:
|
|
752
|
+
kwargs['is_lock_override'] = is_lock_override
|
|
608
753
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
609
754
|
|
|
610
755
|
_details = {}
|
|
@@ -677,7 +822,7 @@ def update_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait
|
|
|
677
822
|
|
|
678
823
|
Example: `My new resource`""")
|
|
679
824
|
@cli_util.option('--network-security-group-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""An array of Network Security Groups OCIDs associated with this API Gateway.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
680
|
-
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource.""")
|
|
825
|
+
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource which can be empty string.""")
|
|
681
826
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
682
827
|
|
|
683
828
|
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -688,6 +833,7 @@ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_comp
|
|
|
688
833
|
|
|
689
834
|
This option is a JSON list with items of type CaBundle. For documentation on CaBundle please see our API reference: https://docs.cloud.oracle.com/api/#/en/gateway/20190501/datatypes/CaBundle.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
690
835
|
@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.""")
|
|
836
|
+
@cli_util.option('--is-lock-override', type=click.BOOL, help=u"""Whether to override locks (if any exist).""")
|
|
691
837
|
@cli_util.option('--response-cache-details-is-ssl-enabled', type=click.BOOL, help=u"""Defines if the connection should be over SSL.""")
|
|
692
838
|
@cli_util.option('--response-cache-details-is-ssl-verify-disabled', type=click.BOOL, help=u"""Defines whether or not to uphold SSL verification.""")
|
|
693
839
|
@cli_util.option('--response-cache-details-connect-timeout-in-ms', type=click.INT, help=u"""Defines the timeout for establishing a connection with the Response Cache.""")
|
|
@@ -702,7 +848,7 @@ This option is a JSON list with items of type CaBundle. For documentation on Ca
|
|
|
702
848
|
@click.pass_context
|
|
703
849
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}, 'response-cache-details-servers': {'module': 'apigateway', 'class': 'list[ResponseCacheRespServer]'}})
|
|
704
850
|
@cli_util.wrap_exceptions
|
|
705
|
-
def update_gateway_external_resp_cache(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, response_cache_details_servers, response_cache_details_authentication_secret_id, response_cache_details_authentication_secret_version_number, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, if_match, response_cache_details_is_ssl_enabled, response_cache_details_is_ssl_verify_disabled, response_cache_details_connect_timeout_in_ms, response_cache_details_read_timeout_in_ms, response_cache_details_send_timeout_in_ms):
|
|
851
|
+
def update_gateway_external_resp_cache(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, response_cache_details_servers, response_cache_details_authentication_secret_id, response_cache_details_authentication_secret_version_number, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, if_match, is_lock_override, response_cache_details_is_ssl_enabled, response_cache_details_is_ssl_verify_disabled, response_cache_details_connect_timeout_in_ms, response_cache_details_read_timeout_in_ms, response_cache_details_send_timeout_in_ms):
|
|
706
852
|
|
|
707
853
|
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
708
854
|
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
@@ -714,6 +860,8 @@ def update_gateway_external_resp_cache(ctx, from_json, force, wait_for_state, ma
|
|
|
714
860
|
kwargs = {}
|
|
715
861
|
if if_match is not None:
|
|
716
862
|
kwargs['if_match'] = if_match
|
|
863
|
+
if is_lock_override is not None:
|
|
864
|
+
kwargs['is_lock_override'] = is_lock_override
|
|
717
865
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
718
866
|
|
|
719
867
|
_details = {}
|
|
@@ -801,7 +949,7 @@ def update_gateway_external_resp_cache(ctx, from_json, force, wait_for_state, ma
|
|
|
801
949
|
|
|
802
950
|
Example: `My new resource`""")
|
|
803
951
|
@cli_util.option('--network-security-group-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""An array of Network Security Groups OCIDs associated with this API Gateway.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
804
|
-
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource.""")
|
|
952
|
+
@cli_util.option('--certificate-id', help=u"""The [OCID] of the resource which can be empty string.""")
|
|
805
953
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
806
954
|
|
|
807
955
|
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -812,6 +960,7 @@ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_comp
|
|
|
812
960
|
|
|
813
961
|
This option is a JSON list with items of type CaBundle. For documentation on CaBundle please see our API reference: https://docs.cloud.oracle.com/api/#/en/gateway/20190501/datatypes/CaBundle.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
814
962
|
@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.""")
|
|
963
|
+
@cli_util.option('--is-lock-override', type=click.BOOL, help=u"""Whether to override locks (if any exist).""")
|
|
815
964
|
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
816
965
|
@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.""")
|
|
817
966
|
@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.""")
|
|
@@ -821,7 +970,7 @@ This option is a JSON list with items of type CaBundle. For documentation on Ca
|
|
|
821
970
|
@click.pass_context
|
|
822
971
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'network-security-group-ids': {'module': 'apigateway', 'class': 'list[string]'}, 'freeform-tags': {'module': 'apigateway', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apigateway', 'class': 'dict(str, dict(str, object))'}, 'ca-bundles': {'module': 'apigateway', 'class': 'list[CaBundle]'}})
|
|
823
972
|
@cli_util.wrap_exceptions
|
|
824
|
-
def update_gateway_no_cache(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, if_match):
|
|
973
|
+
def update_gateway_no_cache(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, if_match, is_lock_override):
|
|
825
974
|
|
|
826
975
|
if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0:
|
|
827
976
|
raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string')
|
|
@@ -833,6 +982,8 @@ def update_gateway_no_cache(ctx, from_json, force, wait_for_state, max_wait_seco
|
|
|
833
982
|
kwargs = {}
|
|
834
983
|
if if_match is not None:
|
|
835
984
|
kwargs['if_match'] = if_match
|
|
985
|
+
if is_lock_override is not None:
|
|
986
|
+
kwargs['is_lock_override'] = is_lock_override
|
|
836
987
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
837
988
|
|
|
838
989
|
_details = {}
|