You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/fusion_apps/src/oci_cli_fusion_applications/generated/fusionapplications_cli.py
+143Lines changed: 143 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -564,6 +564,62 @@ def create_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wa
564
564
cli_util.render_response(result, ctx)
565
565
566
566
567
+
@service_attachment_group.command(name=cli_util.override('fusion_apps.create_service_attachment.command_name', 'create'), help=u"""Attaches a service instance to the fusion pod. \n[Command Reference](createServiceAttachment)""")
568
+
@cli_util.option('--service-instance-type', required=True, help=u"""Type of the ServiceInstance being attached.""")
569
+
@cli_util.option('--service-instance-id', required=True, help=u"""The service instance OCID of the instance being attached""")
@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.""")
572
+
@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.""")
573
+
@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.""")
@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.""")
@@ -782,6 +838,63 @@ def delete_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wa
782
838
cli_util.render_response(result, ctx)
783
839
784
840
841
+
@service_attachment_group.command(name=cli_util.override('fusion_apps.delete_service_attachment.command_name', 'delete'), help=u"""Delete a service attachment by identifier \n[Command Reference](deleteServiceAttachment)""")
@cli_util.option('--service-attachment-id', required=True, help=u"""OCID of the Service Attachment""")
844
+
@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.""")
845
+
@cli_util.confirm_delete_option
846
+
@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.""")
847
+
@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.""")
848
+
@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.""")
# If we fail, we should show an error, but we should still provide the information to the customer
886
+
click.echo('Failed to wait until the work request entered the specified state. Please retrieve the work request to find its current state', file=sys.stderr)
887
+
cli_util.render_response(result, ctx)
888
+
sys.exit(2)
889
+
exceptException:
890
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
891
+
cli_util.render_response(result, ctx)
892
+
raise
893
+
else:
894
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
895
+
cli_util.render_response(result, ctx)
896
+
897
+
785
898
@data_masking_activity_group.command(name=cli_util.override('fusion_apps.get_data_masking_activity.command_name', 'get'), help=u"""Gets a DataMaskingActivity by identifier \n[Command Reference](getDataMaskingActivity)""")
@cli_util.option('--data-masking-activity-id', required=True, help=u"""Unique DataMasking run identifier.""")
@@ -1963,3 +2076,33 @@ def update_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wa
1963
2076
else:
1964
2077
click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
1965
2078
cli_util.render_response(result, ctx)
2079
+
2080
+
2081
+
@service_attachment_group.command(name=cli_util.override('fusion_apps.verify_service_attachment.command_name', 'verify'), help=u"""Verify whether a service instance can be attached to the fusion pod \n[Command Reference](verifyServiceAttachment)""")
2082
+
@cli_util.option('--service-instance-type', required=True, help=u"""Type of the ServiceInstance being attached.""")
2083
+
@cli_util.option('--service-instance-id', required=True, help=u"""The service instance OCID of the instance being attached""")
Copy file name to clipboardExpand all lines: src/oci_cli/version.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
3
3
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
0 commit comments