Class: OCI::FusionApps::FusionApplicationsClientCompositeOperations
- Inherits:
-
Object
- Object
- OCI::FusionApps::FusionApplicationsClientCompositeOperations
- Defined in:
- lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb
Overview
This class provides a wrapper around FusionApplicationsClient 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::FusionApps::FusionApplicationsClient
readonly
The FusionApplicationsClient used to communicate with the service_client.
Instance Method Summary collapse
-
#change_fusion_environment_compartment_and_wait_for_state(fusion_environment_id, change_fusion_environment_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#change_fusion_environment_compartment and then waits for the Models::WorkRequest to enter the given state(s).
-
#change_fusion_environment_family_compartment_and_wait_for_state(fusion_environment_family_id, change_fusion_environment_family_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#change_fusion_environment_family_compartment and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_data_masking_activity_and_wait_for_state(fusion_environment_id, create_data_masking_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_data_masking_activity and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, create_email_subdomain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_email_subdomain and then waits for the Models::EmailSubdomain acted upon to enter the given state(s).
-
#create_fusion_environment_admin_user_and_wait_for_state(create_fusion_environment_admin_user_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_fusion_environment_admin_user and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_fusion_environment_and_wait_for_state(create_fusion_environment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_fusion_environment and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_fusion_environment_family_and_wait_for_state(create_fusion_environment_family_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_fusion_environment_family and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_marketing_brand_and_wait_for_state(fusion_environment_id, create_marketing_brand_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_marketing_brand and then waits for the Models::MarketingBrand acted upon to enter the given state(s).
-
#create_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, create_microsite_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_microsite and then waits for the Models::Microsite acted upon to enter the given state(s).
-
#create_refresh_activity_and_wait_for_state(fusion_environment_id, create_refresh_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_refresh_activity and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_service_attachment_and_wait_for_state(create_service_attachment_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_service_attachment and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_vanity_domain_activity_and_wait_for_state(create_vanity_domain_activity_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_vanity_domain_activity and then waits for the Models::WorkRequest to enter the given state(s).
-
#create_vanity_domain_and_wait_for_state(create_vanity_domain_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_vanity_domain and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_email_subdomain and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_fusion_environment_admin_user_and_wait_for_state(admin_username, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_fusion_environment_admin_user and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_fusion_environment_and_wait_for_state(fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_fusion_environment and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_fusion_environment_family_and_wait_for_state(fusion_environment_family_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_fusion_environment_family and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_marketing_brand_and_wait_for_state(fusion_environment_id, marketing_brand_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_marketing_brand and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_microsite and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_refresh_activity_and_wait_for_state(fusion_environment_id, refresh_activity_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_refresh_activity and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_service_attachment_and_wait_for_state(fusion_environment_id, service_attachment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_service_attachment and then waits for the Models::WorkRequest to enter the given state(s).
-
#delete_vanity_domain_activity_and_wait_for_state(fusion_environment_id, vanity_domain_activity_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_vanity_domain_activity and then waits for the Models::WorkRequest to enter the given state(s).
-
#initialize(service_client = OCI::FusionApps::FusionApplicationsClient.new) ⇒ FusionApplicationsClientCompositeOperations
constructor
Initializes a new FusionApplicationsClientCompositeOperations.
-
#initiate_extract_and_wait_for_state(fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#initiate_extract and then waits for the Models::WorkRequest to enter the given state(s).
-
#reset_fusion_environment_password_and_wait_for_state(reset_fusion_environment_password_details, fusion_environment_id, admin_username, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#reset_fusion_environment_password and then waits for the Models::WorkRequest to enter the given state(s).
-
#submit_vanity_domain_validation_and_wait_for_state(vanity_domain_id, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#submit_vanity_domain_validation and then waits for the Models::WorkRequest to enter the given state(s).
-
#update_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, update_email_subdomain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_email_subdomain and then waits for the Models::EmailSubdomain acted upon to enter the given state(s).
-
#update_fusion_environment_and_wait_for_state(fusion_environment_id, update_fusion_environment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_fusion_environment and then waits for the Models::WorkRequest to enter the given state(s).
-
#update_fusion_environment_family_and_wait_for_state(fusion_environment_family_id, update_fusion_environment_family_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_fusion_environment_family and then waits for the Models::WorkRequest to enter the given state(s).
-
#update_marketing_brand_and_wait_for_state(fusion_environment_id, marketing_brand_id, update_marketing_brand_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_marketing_brand and then waits for the Models::MarketingBrand acted upon to enter the given state(s).
-
#update_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, update_microsite_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_microsite and then waits for the Models::Microsite acted upon to enter the given state(s).
-
#update_refresh_activity_and_wait_for_state(fusion_environment_id, refresh_activity_id, update_refresh_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_refresh_activity and then waits for the Models::RefreshActivity acted upon to enter the given state(s).
-
#update_vanity_domain_activity_and_wait_for_state(fusion_environment_id, vanity_domain_activity_id, update_vanity_domain_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_vanity_domain_activity and then waits for the Models::WorkRequest to enter the given state(s).
-
#update_vanity_domain_and_wait_for_state(fusion_environment_id, vanity_domain_id, update_vanity_domain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_vanity_domain and then waits for the Models::WorkRequest to enter the given state(s).
-
#upload_vanity_domain_certificate_and_wait_for_state(upload_vanity_domain_certificate_details, vanity_domain_id, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#upload_vanity_domain_certificate and then waits for the Models::WorkRequest to enter the given state(s).
-
#validate_and_configure_email_subdomain_certificate_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#validate_and_configure_email_subdomain_certificate and then waits for the Models::WorkRequest to enter the given state(s).
-
#validate_and_configure_email_subdomain_dns_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#validate_and_configure_email_subdomain_dns and then waits for the Models::WorkRequest to enter the given state(s).
-
#validate_and_configure_microsite_dns_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#validate_and_configure_microsite_dns and then waits for the Models::WorkRequest to enter the given state(s).
Constructor Details
#initialize(service_client = OCI::FusionApps::FusionApplicationsClient.new) ⇒ FusionApplicationsClientCompositeOperations
Initializes a new FusionApplicationsClientCompositeOperations
22 23 24 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 22 def initialize(service_client = OCI::FusionApps::FusionApplicationsClient.new) @service_client = service_client end |
Instance Attribute Details
#service_client ⇒ OCI::FusionApps::FusionApplicationsClient (readonly)
The OCI::FusionApps::FusionApplicationsClient used to communicate with the service_client
16 17 18 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 16 def service_client @service_client end |
Instance Method Details
#change_fusion_environment_compartment_and_wait_for_state(fusion_environment_id, change_fusion_environment_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#change_fusion_environment_compartment and then waits for the Models::WorkRequest to enter the given state(s).
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 42 def change_fusion_environment_compartment_and_wait_for_state(fusion_environment_id, change_fusion_environment_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.change_fusion_environment_compartment(fusion_environment_id, change_fusion_environment_compartment_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_family_compartment_and_wait_for_state(fusion_environment_family_id, change_fusion_environment_family_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#change_fusion_environment_family_compartment and then waits for the Models::WorkRequest to enter the given state(s).
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 93 def change_fusion_environment_family_compartment_and_wait_for_state(fusion_environment_family_id, change_fusion_environment_family_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.change_fusion_environment_family_compartment(fusion_environment_family_id, change_fusion_environment_family_compartment_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_data_masking_activity_and_wait_for_state(fusion_environment_id, create_data_masking_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_data_masking_activity and then waits for the Models::WorkRequest to enter the given state(s).
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 144 def create_data_masking_activity_and_wait_for_state(fusion_environment_id, create_data_masking_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_data_masking_activity(fusion_environment_id, create_data_masking_activity_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, create_email_subdomain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_email_subdomain and then waits for the Models::EmailSubdomain acted upon to enter the given state(s).
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 196 def create_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, create_email_subdomain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_email_subdomain(fusion_environment_id, marketing_brand_id, create_email_subdomain_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_email_subdomain(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_fusion_environment_admin_user_and_wait_for_state(create_fusion_environment_admin_user_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_fusion_environment_admin_user and then waits for the Models::WorkRequest to enter the given state(s).
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 286 def create_fusion_environment_admin_user_and_wait_for_state(create_fusion_environment_admin_user_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_fusion_environment_admin_user(create_fusion_environment_admin_user_details, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_and_wait_for_state(create_fusion_environment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_fusion_environment and then waits for the Models::WorkRequest to enter the given state(s).
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 264 265 266 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 235 def create_fusion_environment_and_wait_for_state(create_fusion_environment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_fusion_environment(create_fusion_environment_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_family_and_wait_for_state(create_fusion_environment_family_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_fusion_environment_family and then waits for the Models::WorkRequest to enter the given state(s).
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 336 def create_fusion_environment_family_and_wait_for_state(create_fusion_environment_family_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_fusion_environment_family(create_fusion_environment_family_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_marketing_brand_and_wait_for_state(fusion_environment_id, create_marketing_brand_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_marketing_brand and then waits for the Models::MarketingBrand acted upon to enter the given state(s).
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 387 def create_marketing_brand_and_wait_for_state(fusion_environment_id, create_marketing_brand_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_marketing_brand(fusion_environment_id, create_marketing_brand_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_marketing_brand(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_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, create_microsite_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_microsite and then waits for the Models::Microsite acted upon to enter the given state(s).
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 428 def create_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, create_microsite_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_microsite(fusion_environment_id, marketing_brand_id, create_microsite_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_microsite(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_refresh_activity_and_wait_for_state(fusion_environment_id, create_refresh_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_refresh_activity and then waits for the Models::WorkRequest to enter the given state(s).
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 468 def create_refresh_activity_and_wait_for_state(fusion_environment_id, create_refresh_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_refresh_activity(fusion_environment_id, create_refresh_activity_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_service_attachment_and_wait_for_state(create_service_attachment_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_service_attachment and then waits for the Models::WorkRequest to enter the given state(s).
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 519 def (, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.(, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_vanity_domain_activity_and_wait_for_state(create_vanity_domain_activity_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_vanity_domain_activity and then waits for the Models::WorkRequest to enter the given state(s).
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 621 def create_vanity_domain_activity_and_wait_for_state(create_vanity_domain_activity_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_vanity_domain_activity(create_vanity_domain_activity_details, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_vanity_domain_and_wait_for_state(create_vanity_domain_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#create_vanity_domain and then waits for the Models::WorkRequest to enter the given state(s).
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 570 def create_vanity_domain_and_wait_for_state(create_vanity_domain_details, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.create_vanity_domain(create_vanity_domain_details, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_email_subdomain and then waits for the Models::WorkRequest to enter the given state(s).
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 673 def delete_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_email_subdomain(fusion_environment_id, marketing_brand_id, email_subdomain_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_admin_user_and_wait_for_state(admin_username, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_fusion_environment_admin_user and then waits for the Models::WorkRequest to enter the given state(s).
774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 774 def delete_fusion_environment_admin_user_and_wait_for_state(admin_username, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_fusion_environment_admin_user(admin_username, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_and_wait_for_state(fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_fusion_environment and then waits for the Models::WorkRequest to enter the given state(s).
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 723 def delete_fusion_environment_and_wait_for_state(fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_fusion_environment(fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_family_and_wait_for_state(fusion_environment_family_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_fusion_environment_family and then waits for the Models::WorkRequest to enter the given state(s).
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 824 def delete_fusion_environment_family_and_wait_for_state(fusion_environment_family_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_fusion_environment_family(fusion_environment_family_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_marketing_brand_and_wait_for_state(fusion_environment_id, marketing_brand_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_marketing_brand and then waits for the Models::WorkRequest to enter the given state(s).
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 875 def delete_marketing_brand_and_wait_for_state(fusion_environment_id, marketing_brand_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_marketing_brand(fusion_environment_id, marketing_brand_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_microsite and then waits for the Models::WorkRequest to enter the given state(s).
927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 927 def delete_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_microsite(fusion_environment_id, marketing_brand_id, microsite_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_refresh_activity_and_wait_for_state(fusion_environment_id, refresh_activity_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_refresh_activity and then waits for the Models::WorkRequest to enter the given state(s).
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 978 def delete_refresh_activity_and_wait_for_state(fusion_environment_id, refresh_activity_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_refresh_activity(fusion_environment_id, refresh_activity_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_service_attachment_and_wait_for_state(fusion_environment_id, service_attachment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_service_attachment and then waits for the Models::WorkRequest to enter the given state(s).
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1029 def (fusion_environment_id, , wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.(fusion_environment_id, , base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_vanity_domain_activity_and_wait_for_state(fusion_environment_id, vanity_domain_activity_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#delete_vanity_domain_activity and then waits for the Models::WorkRequest to enter the given state(s).
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 1108 1109 1110 1111 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1080 def delete_vanity_domain_activity_and_wait_for_state(fusion_environment_id, vanity_domain_activity_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.delete_vanity_domain_activity(fusion_environment_id, vanity_domain_activity_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |
#initiate_extract_and_wait_for_state(fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#initiate_extract and then waits for the Models::WorkRequest to enter the given state(s).
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 1158 1159 1160 1161 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1130 def initiate_extract_and_wait_for_state(fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.initiate_extract(fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |
#reset_fusion_environment_password_and_wait_for_state(reset_fusion_environment_password_details, fusion_environment_id, admin_username, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#reset_fusion_environment_password and then waits for the Models::WorkRequest to enter the given state(s).
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 1209 1210 1211 1212 1213 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1182 def reset_fusion_environment_password_and_wait_for_state(reset_fusion_environment_password_details, fusion_environment_id, admin_username, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.reset_fusion_environment_password(reset_fusion_environment_password_details, fusion_environment_id, admin_username, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_vanity_domain_validation_and_wait_for_state(vanity_domain_id, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#submit_vanity_domain_validation and then waits for the Models::WorkRequest to enter the given state(s).
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 1259 1260 1261 1262 1263 1264 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1233 def submit_vanity_domain_validation_and_wait_for_state(vanity_domain_id, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.submit_vanity_domain_validation(vanity_domain_id, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, update_email_subdomain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_email_subdomain and then waits for the Models::EmailSubdomain acted upon to enter the given state(s).
1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1286 def update_email_subdomain_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, update_email_subdomain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_email_subdomain(fusion_environment_id, marketing_brand_id, email_subdomain_id, update_email_subdomain_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_email_subdomain(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_fusion_environment_and_wait_for_state(fusion_environment_id, update_fusion_environment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_fusion_environment and then waits for the Models::WorkRequest to enter the given state(s).
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1326 def update_fusion_environment_and_wait_for_state(fusion_environment_id, update_fusion_environment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_fusion_environment(fusion_environment_id, update_fusion_environment_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_fusion_environment_family_and_wait_for_state(fusion_environment_family_id, update_fusion_environment_family_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_fusion_environment_family and then waits for the Models::WorkRequest to enter the given state(s).
1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1377 def update_fusion_environment_family_and_wait_for_state(fusion_environment_family_id, update_fusion_environment_family_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_fusion_environment_family(fusion_environment_family_id, update_fusion_environment_family_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_marketing_brand_and_wait_for_state(fusion_environment_id, marketing_brand_id, update_marketing_brand_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_marketing_brand and then waits for the Models::MarketingBrand acted upon to enter the given state(s).
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1429 def update_marketing_brand_and_wait_for_state(fusion_environment_id, marketing_brand_id, update_marketing_brand_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_marketing_brand(fusion_environment_id, marketing_brand_id, update_marketing_brand_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_marketing_brand(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_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, update_microsite_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_microsite and then waits for the Models::Microsite acted upon to enter the given state(s).
1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1471 def update_microsite_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, update_microsite_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_microsite(fusion_environment_id, marketing_brand_id, microsite_id, update_microsite_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_microsite(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_refresh_activity_and_wait_for_state(fusion_environment_id, refresh_activity_id, update_refresh_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_refresh_activity and then waits for the Models::RefreshActivity acted upon to enter the given state(s).
1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1512 def update_refresh_activity_and_wait_for_state(fusion_environment_id, refresh_activity_id, update_refresh_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_refresh_activity(fusion_environment_id, refresh_activity_id, update_refresh_activity_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_refresh_activity(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_vanity_domain_activity_and_wait_for_state(fusion_environment_id, vanity_domain_activity_id, update_vanity_domain_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_vanity_domain_activity and then waits for the Models::WorkRequest to enter the given state(s).
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1605 def update_vanity_domain_activity_and_wait_for_state(fusion_environment_id, vanity_domain_activity_id, update_vanity_domain_activity_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_vanity_domain_activity(fusion_environment_id, vanity_domain_activity_id, update_vanity_domain_activity_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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_vanity_domain_and_wait_for_state(fusion_environment_id, vanity_domain_id, update_vanity_domain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#update_vanity_domain and then waits for the Models::WorkRequest to enter the given state(s).
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1553 def update_vanity_domain_and_wait_for_state(fusion_environment_id, vanity_domain_id, update_vanity_domain_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.update_vanity_domain(fusion_environment_id, vanity_domain_id, update_vanity_domain_details, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |
#upload_vanity_domain_certificate_and_wait_for_state(upload_vanity_domain_certificate_details, vanity_domain_id, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#upload_vanity_domain_certificate and then waits for the Models::WorkRequest to enter the given state(s).
1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1657 def upload_vanity_domain_certificate_and_wait_for_state(upload_vanity_domain_certificate_details, vanity_domain_id, fusion_environment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.upload_vanity_domain_certificate(upload_vanity_domain_certificate_details, vanity_domain_id, fusion_environment_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |
#validate_and_configure_email_subdomain_certificate_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#validate_and_configure_email_subdomain_certificate and then waits for the Models::WorkRequest to enter the given state(s).
1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1709 def validate_and_configure_email_subdomain_certificate_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.validate_and_configure_email_subdomain_certificate(fusion_environment_id, marketing_brand_id, email_subdomain_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |
#validate_and_configure_email_subdomain_dns_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#validate_and_configure_email_subdomain_dns and then waits for the Models::WorkRequest to enter the given state(s).
1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1761 def validate_and_configure_email_subdomain_dns_and_wait_for_state(fusion_environment_id, marketing_brand_id, email_subdomain_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.validate_and_configure_email_subdomain_dns(fusion_environment_id, marketing_brand_id, email_subdomain_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |
#validate_and_configure_microsite_dns_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) ⇒ OCI::Response
Calls OCI::FusionApps::FusionApplicationsClient#validate_and_configure_microsite_dns and then waits for the Models::WorkRequest to enter the given state(s).
1813 1814 1815 1816 1817 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 |
# File 'lib/oci/fusion_apps/fusion_applications_client_composite_operations.rb', line 1813 def validate_and_configure_microsite_dns_and_wait_for_state(fusion_environment_id, marketing_brand_id, microsite_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {}) operation_result = @service_client.validate_and_configure_microsite_dns(fusion_environment_id, marketing_brand_id, microsite_id, base_operation_opts) use_util = OCI::FusionApps::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::FusionApps::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 |