Class: OCI::MarketplacePublisher::MarketplacePublisherClientCompositeOperations
- Inherits:
-
Object
- Object
- OCI::MarketplacePublisher::MarketplacePublisherClientCompositeOperations
- Defined in:
- lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb
Overview
This class provides a wrapper around MarketplacePublisherClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality
Instance Attribute Summary collapse
-
#service_client ⇒ OCI::MarketplacePublisher::MarketplacePublisherClient
readonly
The MarketplacePublisherClient used to communicate with the service_client.
Instance Method Summary collapse
-
#activate_term_version_and_wait_for_state(term_version_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#activate_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
-
#cascading_delete_listing_and_wait_for_state(listing_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#cascading_delete_listing and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#cascading_delete_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#cascading_delete_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#change_artifact_compartment_and_wait_for_state(artifact_id, change_artifact_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_artifact_compartment and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#change_listing_compartment_and_wait_for_state(listing_id, change_listing_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_listing_compartment and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#change_listing_revision_to_new_status_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_listing_revision_to_new_status and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
-
#change_term_compartment_and_wait_for_state(term_id, change_term_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_term_compartment and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#clone_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#clone_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#create_artifact_and_wait_for_state(create_artifact_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#create_listing_and_wait_for_state(create_listing_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing and then waits for the OCI::MarketplacePublisher::Models::Listing acted upon to enter the given state(s).
-
#create_listing_revision_and_wait_for_state(create_listing_revision_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
-
#create_listing_revision_attachment_and_wait_for_state(create_listing_revision_attachment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision_attachment and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
-
#create_listing_revision_note_and_wait_for_state(create_listing_revision_note_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision_note and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionNote acted upon to enter the given state(s).
-
#create_listing_revision_package_and_wait_for_state(create_listing_revision_package_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionPackage acted upon to enter the given state(s).
-
#create_term_and_wait_for_state(create_term_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_term and then waits for the OCI::MarketplacePublisher::Models::Term acted upon to enter the given state(s).
-
#create_term_version_and_wait_for_state(create_term_version_content, term_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
-
#delete_artifact_and_wait_for_state(artifact_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#delete_listing_and_wait_for_state(listing_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing and then waits for the OCI::MarketplacePublisher::Models::Listing acted upon to enter the given state(s).
-
#delete_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
-
#delete_listing_revision_attachment_and_wait_for_state(listing_revision_attachment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision_attachment and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
-
#delete_listing_revision_note_and_wait_for_state(listing_revision_note_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision_note and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionNote acted upon to enter the given state(s).
-
#delete_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionPackage acted upon to enter the given state(s).
-
#delete_term_and_wait_for_state(term_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_term and then waits for the OCI::MarketplacePublisher::Models::Term acted upon to enter the given state(s).
-
#delete_term_version_and_wait_for_state(term_version_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
-
#initialize(service_client = OCI::MarketplacePublisher::MarketplacePublisherClient.new) ⇒ MarketplacePublisherClientCompositeOperations
constructor
Initializes a new MarketplacePublisherClientCompositeOperations.
-
#mark_listing_revision_package_as_default_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#mark_listing_revision_package_as_default and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#publish_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#publish_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#publish_listing_revision_as_private_and_wait_for_state(publish_listing_revision_as_private_details, listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#publish_listing_revision_as_private and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#publish_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#publish_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#submit_listing_revision_for_review_and_wait_for_state(submit_listing_revision_for_review_details, listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#submit_listing_revision_for_review and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
-
#un_publish_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#un_publish_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#update_artifact_and_wait_for_state(artifact_id, update_artifact_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#update_listing_and_wait_for_state(listing_id, update_listing_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing and then waits for the OCI::MarketplacePublisher::Models::Listing acted upon to enter the given state(s).
-
#update_listing_revision_and_wait_for_state(listing_revision_id, update_listing_revision_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
-
#update_listing_revision_attachment_and_wait_for_state(listing_revision_attachment_id, update_listing_revision_attachment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_attachment and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
-
#update_listing_revision_attachment_content_and_wait_for_state(listing_revision_attachment_id, update_listing_revision_attachment_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_attachment_content and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
-
#update_listing_revision_icon_content_and_wait_for_state(listing_revision_id, update_listing_revision_icon_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_icon_content and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
-
#update_listing_revision_note_and_wait_for_state(listing_revision_note_id, update_listing_revision_note_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_note and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionNote acted upon to enter the given state(s).
-
#update_listing_revision_package_and_wait_for_state(listing_revision_package_id, update_listing_revision_package_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionPackage acted upon to enter the given state(s).
-
#update_term_and_wait_for_state(term_id, update_term_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_term and then waits for the OCI::MarketplacePublisher::Models::Term acted upon to enter the given state(s).
-
#update_term_version_and_wait_for_state(term_version_id, update_term_version_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
-
#update_term_version_content_and_wait_for_state(term_version_id, update_term_version_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_term_version_content and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
-
#validate_and_publish_artifact_and_wait_for_state(artifact_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#validate_and_publish_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
-
#withdraw_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#withdraw_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
Constructor Details
#initialize(service_client = OCI::MarketplacePublisher::MarketplacePublisherClient.new) ⇒ MarketplacePublisherClientCompositeOperations
Initializes a new MarketplacePublisherClientCompositeOperations
22 23 24 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 22 def initialize(service_client = OCI::MarketplacePublisher::MarketplacePublisherClient.new) @service_client = service_client end |
Instance Attribute Details
#service_client ⇒ OCI::MarketplacePublisher::MarketplacePublisherClient (readonly)
The OCI::MarketplacePublisher::MarketplacePublisherClient used to communicate with the service_client
16 17 18 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 16 def service_client @service_client end |
Instance Method Details
#activate_term_version_and_wait_for_state(term_version_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#activate_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 41 def activate_term_version_and_wait_for_state(term_version_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.activate_term_version(term_version_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_term_version(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#cascading_delete_listing_and_wait_for_state(listing_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#cascading_delete_listing and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 80 def cascading_delete_listing_and_wait_for_state(listing_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.cascading_delete_listing(listing_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#cascading_delete_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#cascading_delete_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 130 def cascading_delete_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.cascading_delete_listing_revision(listing_revision_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#change_artifact_compartment_and_wait_for_state(artifact_id, change_artifact_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_artifact_compartment and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 181 def change_artifact_compartment_and_wait_for_state(artifact_id, change_artifact_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.change_artifact_compartment(artifact_id, change_artifact_compartment_details, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#change_listing_compartment_and_wait_for_state(listing_id, change_listing_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_listing_compartment and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 232 def change_listing_compartment_and_wait_for_state(listing_id, change_listing_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.change_listing_compartment(listing_id, change_listing_compartment_details, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#change_listing_revision_to_new_status_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_listing_revision_to_new_status and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 282 def change_listing_revision_to_new_status_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.change_listing_revision_to_new_status(listing_revision_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#change_term_compartment_and_wait_for_state(term_id, change_term_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#change_term_compartment and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 322 def change_term_compartment_and_wait_for_state(term_id, change_term_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.change_term_compartment(term_id, change_term_compartment_details, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#clone_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#clone_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 372 def clone_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.clone_listing_revision(listing_revision_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_artifact_and_wait_for_state(create_artifact_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 422 def create_artifact_and_wait_for_state(create_artifact_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_artifact(create_artifact_details, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_listing_and_wait_for_state(create_listing_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing and then waits for the OCI::MarketplacePublisher::Models::Listing acted upon to enter the given state(s).
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 472 def create_listing_and_wait_for_state(create_listing_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_listing(create_listing_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_listing_revision_and_wait_for_state(create_listing_revision_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 511 def create_listing_revision_and_wait_for_state(create_listing_revision_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_listing_revision(create_listing_revision_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_listing_revision_attachment_and_wait_for_state(create_listing_revision_attachment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision_attachment and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 550 def (, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.(, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_listing_revision_note_and_wait_for_state(create_listing_revision_note_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision_note and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionNote acted upon to enter the given state(s).
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 589 def create_listing_revision_note_and_wait_for_state(create_listing_revision_note_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_listing_revision_note(create_listing_revision_note_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision_note(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_listing_revision_package_and_wait_for_state(create_listing_revision_package_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionPackage acted upon to enter the given state(s).
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 628 def create_listing_revision_package_and_wait_for_state(create_listing_revision_package_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_listing_revision_package(create_listing_revision_package_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision_package(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_term_and_wait_for_state(create_term_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_term and then waits for the OCI::MarketplacePublisher::Models::Term acted upon to enter the given state(s).
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 667 def create_term_and_wait_for_state(create_term_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_term(create_term_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_term(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#create_term_version_and_wait_for_state(create_term_version_content, term_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#create_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 707 def create_term_version_and_wait_for_state(create_term_version_content, term_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_term_version(create_term_version_content, term_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_term_version(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_artifact_and_wait_for_state(artifact_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 746 def delete_artifact_and_wait_for_state(artifact_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_artifact(artifact_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_listing_and_wait_for_state(listing_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing and then waits for the OCI::MarketplacePublisher::Models::Listing acted upon to enter the given state(s).
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 796 def delete_listing_and_wait_for_state(listing_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.get_listing(listing_id) operation_result = @service_client.delete_listing(listing_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 836 def delete_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.get_listing_revision(listing_revision_id) operation_result = @service_client.delete_listing_revision(listing_revision_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_listing_revision_attachment_and_wait_for_state(listing_revision_attachment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision_attachment and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 876 def (, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.() operation_result = @service_client.(, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_listing_revision_note_and_wait_for_state(listing_revision_note_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision_note and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionNote acted upon to enter the given state(s).
916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 916 def delete_listing_revision_note_and_wait_for_state(listing_revision_note_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.get_listing_revision_note(listing_revision_note_id) operation_result = @service_client.delete_listing_revision_note(listing_revision_note_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionPackage acted upon to enter the given state(s).
956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 956 def delete_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.get_listing_revision_package(listing_revision_package_id) operation_result = @service_client.delete_listing_revision_package(listing_revision_package_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_term_and_wait_for_state(term_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_term and then waits for the OCI::MarketplacePublisher::Models::Term acted upon to enter the given state(s).
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 996 def delete_term_and_wait_for_state(term_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.get_term(term_id) operation_result = @service_client.delete_term(term_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#delete_term_version_and_wait_for_state(term_version_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#delete_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1036 def delete_term_version_and_wait_for_state(term_version_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) initial_get_result = @service_client.get_term_version(term_version_id) operation_result = @service_client.delete_term_version(term_version_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) begin waiter_result = initial_get_result.wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200, succeed_on_not_found: true ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#mark_listing_revision_package_as_default_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#mark_listing_revision_package_as_default and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1076 def mark_listing_revision_package_as_default_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.mark_listing_revision_package_as_default(listing_revision_package_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#publish_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#publish_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1126 def publish_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.publish_listing_revision(listing_revision_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#publish_listing_revision_as_private_and_wait_for_state(publish_listing_revision_as_private_details, listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#publish_listing_revision_as_private and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1177 def publish_listing_revision_as_private_and_wait_for_state(publish_listing_revision_as_private_details, listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.publish_listing_revision_as_private(publish_listing_revision_as_private_details, listing_revision_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#publish_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#publish_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1227 def publish_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.publish_listing_revision_package(listing_revision_package_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#submit_listing_revision_for_review_and_wait_for_state(submit_listing_revision_for_review_details, listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#submit_listing_revision_for_review and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1278 def submit_listing_revision_for_review_and_wait_for_state(submit_listing_revision_for_review_details, listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.submit_listing_revision_for_review(submit_listing_revision_for_review_details, listing_revision_id, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#un_publish_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#un_publish_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1317 def un_publish_listing_revision_package_and_wait_for_state(listing_revision_package_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.un_publish_listing_revision_package(listing_revision_package_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_artifact_and_wait_for_state(artifact_id, update_artifact_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1368 def update_artifact_and_wait_for_state(artifact_id, update_artifact_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_artifact(artifact_id, update_artifact_details, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_and_wait_for_state(listing_id, update_listing_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing and then waits for the OCI::MarketplacePublisher::Models::Listing acted upon to enter the given state(s).
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1419 def update_listing_and_wait_for_state(listing_id, update_listing_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_listing(listing_id, update_listing_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_revision_and_wait_for_state(listing_revision_id, update_listing_revision_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1459 def update_listing_revision_and_wait_for_state(listing_revision_id, update_listing_revision_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_listing_revision(listing_revision_id, update_listing_revision_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_revision_attachment_and_wait_for_state(listing_revision_attachment_id, update_listing_revision_attachment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_attachment and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1499 def (, , wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.(, , base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_revision_attachment_content_and_wait_for_state(listing_revision_attachment_id, update_listing_revision_attachment_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_attachment_content and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionAttachment acted upon to enter the given state(s).
1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1539 def (, , wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.(, , base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_revision_icon_content_and_wait_for_state(listing_revision_id, update_listing_revision_icon_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_icon_content and then waits for the OCI::MarketplacePublisher::Models::ListingRevision acted upon to enter the given state(s).
1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1579 def update_listing_revision_icon_content_and_wait_for_state(listing_revision_id, update_listing_revision_icon_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_listing_revision_icon_content(listing_revision_id, update_listing_revision_icon_content, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_revision_note_and_wait_for_state(listing_revision_note_id, update_listing_revision_note_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_note and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionNote acted upon to enter the given state(s).
1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1619 def update_listing_revision_note_and_wait_for_state(listing_revision_note_id, update_listing_revision_note_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_listing_revision_note(listing_revision_note_id, update_listing_revision_note_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision_note(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_listing_revision_package_and_wait_for_state(listing_revision_package_id, update_listing_revision_package_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_listing_revision_package and then waits for the OCI::MarketplacePublisher::Models::ListingRevisionPackage acted upon to enter the given state(s).
1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1659 def update_listing_revision_package_and_wait_for_state(listing_revision_package_id, update_listing_revision_package_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_listing_revision_package(listing_revision_package_id, update_listing_revision_package_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_listing_revision_package(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_term_and_wait_for_state(term_id, update_term_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_term and then waits for the OCI::MarketplacePublisher::Models::Term acted upon to enter the given state(s).
1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1699 def update_term_and_wait_for_state(term_id, update_term_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_term(term_id, update_term_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_term(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_term_version_and_wait_for_state(term_version_id, update_term_version_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_term_version and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1739 def update_term_version_and_wait_for_state(term_version_id, update_term_version_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_term_version(term_version_id, update_term_version_details, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_term_version(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#update_term_version_content_and_wait_for_state(term_version_id, update_term_version_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#update_term_version_content and then waits for the OCI::MarketplacePublisher::Models::TermVersion acted upon to enter the given state(s).
1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1779 def update_term_version_content_and_wait_for_state(term_version_id, update_term_version_content, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_term_version_content(term_version_id, update_term_version_content, base_operation_opts) return operation_result if wait_for_states.empty? lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.data.id begin waiter_result = @service_client.get_term_version(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#validate_and_publish_artifact_and_wait_for_state(artifact_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#validate_and_publish_artifact and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1818 def validate_and_publish_artifact_and_wait_for_state(artifact_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.validate_and_publish_artifact(artifact_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |
#withdraw_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::MarketplacePublisher::MarketplacePublisherClient#withdraw_listing_revision and then waits for the OCI::MarketplacePublisher::Models::WorkRequest to enter the given state(s).
1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 |
# File 'lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb', line 1868 def withdraw_listing_revision_and_wait_for_state(listing_revision_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.withdraw_listing_revision(listing_revision_id, base_operation_opts) use_util = OCI::MarketplacePublisher::Util.respond_to?(:wait_on_work_request) return operation_result if wait_for_states.empty? && !use_util lowered_wait_for_states = wait_for_states.map(&:downcase) wait_for_resource_id = operation_result.headers['opc-work-request-id'] return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty? begin if use_util waiter_result = OCI::MarketplacePublisher::Util.wait_on_work_request( @service_client, wait_for_resource_id, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) else waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until( eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) }, max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30, max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200 ) end result_to_return = waiter_result return result_to_return rescue StandardError raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result]) end end |