Class: OCI::Email::EmailClient
- Inherits:
-
Object
- Object
- OCI::Email::EmailClient
- Defined in:
- lib/oci/email/email_client.rb
Overview
Use the Email Delivery API to do the necessary set up to send high-volume and application-generated emails through the OCI Email Delivery service. For more information, see Overview of the Email Delivery Service.
Note: Write actions (POST, UPDATE, DELETE) may take several minutes to propagate and be reflected by the API. If a subsequent read request fails to reflect your changes, wait a few minutes and try again.
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#add_email_domain_lock(email_domain_id, add_lock_details, opts = {}) ⇒ Response
Adds a lock to a resource.
-
#add_email_ip_pool_lock(email_ip_pool_id, add_lock_details, opts = {}) ⇒ Response
Adds a lock to a resource.
-
#add_email_outbound_ip(add_email_outbound_ip_details, email_ip_pool_id, opts = {}) ⇒ Response
Add OutboundIps to EmailIpPool.
-
#add_return_path_lock(email_return_path_id, add_lock_details, opts = {}) ⇒ Response
Adds a lock to a resource.
-
#add_sender_lock(sender_id, add_lock_details, opts = {}) ⇒ Response
Adds a lock to a resource.
-
#change_email_domain_compartment(email_domain_id, change_email_domain_compartment_details, opts = {}) ⇒ Response
Moves an email domain into a different compartment.
-
#change_email_ip_pool_compartment(email_ip_pool_id, change_email_ip_pool_compartment_details, opts = {}) ⇒ Response
Moves a resource into a different compartment.
-
#change_sender_compartment(sender_id, change_sender_compartment_details, opts = {}) ⇒ Response
Moves a sender into a different compartment.
-
#create_dkim(create_dkim_details, opts = {}) ⇒ Response
Creates a new DKIM for an email domain.
-
#create_email_domain(create_email_domain_details, opts = {}) ⇒ Response
Creates a new email domain.
-
#create_email_ip_pool(create_email_ip_pool_details, opts = {}) ⇒ Response
Creates a new EmailIpPool.
-
#create_email_return_path(create_email_return_path_details, opts = {}) ⇒ Response
Creates a new email return path.
-
#create_sender(create_sender_details, opts = {}) ⇒ Response
Creates a sender for a tenancy in a given compartment.
-
#create_suppression(create_suppression_details, opts = {}) ⇒ Response
Adds recipient email addresses to the suppression list for a tenancy.
-
#delete_dkim(dkim_id, opts = {}) ⇒ Response
Deletes a DKIM.
-
#delete_email_domain(email_domain_id, opts = {}) ⇒ Response
Deletes an email domain.
-
#delete_email_ip_pool(email_ip_pool_id, opts = {}) ⇒ Response
Deletes an EmailIpPool resource by identifier.
-
#delete_email_return_path(email_return_path_id, opts = {}) ⇒ Response
Deletes an email return path.
-
#delete_sender(sender_id, opts = {}) ⇒ Response
Deletes an approved sender for a tenancy in a given compartment for a provided
senderId. -
#delete_suppression(suppression_id, opts = {}) ⇒ Response
Removes a suppressed recipient email address from the suppression list for a tenancy in a given compartment for a provided
suppressionId. -
#get_dkim(dkim_id, opts = {}) ⇒ Response
Retrieves the specified DKIM.
-
#get_email_configuration(compartment_id, opts = {}) ⇒ Response
Returns email configuration associated with the specified compartment.
-
#get_email_domain(email_domain_id, opts = {}) ⇒ Response
Retrieves the specified email domain.
-
#get_email_ip_pool(email_ip_pool_id, opts = {}) ⇒ Response
Retrieves the specified IpPool by identifier.
-
#get_email_return_path(email_return_path_id, opts = {}) ⇒ Response
Retrieves the specified email return path.
-
#get_sender(sender_id, opts = {}) ⇒ Response
Gets an approved sender for a given
senderId. -
#get_suppression(suppression_id, opts = {}) ⇒ Response
Gets the details of a suppressed recipient email address for a given
suppressionId. -
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the status of the work request with the given ID.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ EmailClient
constructor
Creates a new EmailClient.
-
#list_dkims(email_domain_id, opts = {}) ⇒ Response
Lists DKIMs for an email domain.
-
#list_email_domains(compartment_id, opts = {}) ⇒ Response
Lists email domains in the specified compartment.
-
#list_email_ip_pools(compartment_id, opts = {}) ⇒ Response
Returns a list of EmailIpPools.
-
#list_email_outbound_ips(compartment_id, opts = {}) ⇒ Response
Returns a list of all Outbound Public IPs assigned for a given tenant.
-
#list_email_return_paths(opts = {}) ⇒ Response
Lists email return paths in the specified compartment or emaildomain.
-
#list_senders(compartment_id, opts = {}) ⇒ Response
Gets a collection of approved sender email addresses and sender IDs.
-
#list_suppressions(compartment_id, opts = {}) ⇒ Response
Gets a list of suppressed recipient email addresses for a user.
-
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Return a (paginated) list of errors for a given work request.
-
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Return a (paginated) list of logs for a given work request.
-
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Lists the work requests in a compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#remove_email_domain_lock(email_domain_id, remove_lock_details, opts = {}) ⇒ Response
Remove a lock to a resource.
-
#remove_email_ip_pool_lock(email_ip_pool_id, remove_lock_details, opts = {}) ⇒ Response
Remove a lock to a resource.
-
#remove_email_outbound_ip(remove_email_outbound_ip_details, email_ip_pool_id, opts = {}) ⇒ Response
Remove OutboundIps from EmailIpPool.
-
#remove_return_path_lock(email_return_path_id, remove_lock_details, opts = {}) ⇒ Response
Remove a lock to a resource.
-
#remove_sender_lock(sender_id, remove_lock_details, opts = {}) ⇒ Response
Remove a lock to a resource.
-
#update_dkim(dkim_id, update_dkim_details, opts = {}) ⇒ Response
Modifies a DKIM.
-
#update_email_domain(email_domain_id, update_email_domain_details, opts = {}) ⇒ Response
Modifies an email domain.
-
#update_email_ip_pool(email_ip_pool_id, update_email_ip_pool_details, opts = {}) ⇒ Response
Updates the EmailIpPool.
-
#update_email_return_path(email_return_path_id, update_email_return_path_details, opts = {}) ⇒ Response
Modifies an email return path.
-
#update_sender(sender_id, update_sender_details, opts = {}) ⇒ Response
Replaces the set of tags for a sender with the tags provided.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ EmailClient
Creates a new EmailClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/oci/email/email_client.rb', line 59 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20170907' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "EmailClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
19 20 21 |
# File 'lib/oci/email/email_client.rb', line 19 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
23 24 25 |
# File 'lib/oci/email/email_client.rb', line 23 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
33 34 35 |
# File 'lib/oci/email/email_client.rb', line 33 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil, which means that an operation will not perform any retries
29 30 31 |
# File 'lib/oci/email/email_client.rb', line 29 def retry_config @retry_config end |
Instance Method Details
#add_email_domain_lock(email_domain_id, add_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_email_domain_lock API.
Adds a lock to a resource.
120 121 122 123 124 125 126 127 128 129 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 |
# File 'lib/oci/email/email_client.rb', line 120 def add_email_domain_lock(email_domain_id, add_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#add_email_domain_lock.' if logger raise "Missing the required parameter 'email_domain_id' when calling add_email_domain_lock." if email_domain_id.nil? raise "Missing the required parameter 'add_lock_details' when calling add_email_domain_lock." if add_lock_details.nil? raise "Parameter value for 'email_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(email_domain_id) path = '/emailDomains/{emailDomainId}/actions/addLock'.sub('{emailDomainId}', email_domain_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(add_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#add_email_domain_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailDomain' ) end # rubocop:enable Metrics/BlockLength end |
#add_email_ip_pool_lock(email_ip_pool_id, add_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_email_ip_pool_lock API.
Adds a lock to a resource.
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 213 214 215 216 217 218 219 |
# File 'lib/oci/email/email_client.rb', line 181 def add_email_ip_pool_lock(email_ip_pool_id, add_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#add_email_ip_pool_lock.' if logger raise "Missing the required parameter 'email_ip_pool_id' when calling add_email_ip_pool_lock." if email_ip_pool_id.nil? raise "Missing the required parameter 'add_lock_details' when calling add_email_ip_pool_lock." if add_lock_details.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}/actions/addLock'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(add_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#add_email_ip_pool_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#add_email_outbound_ip(add_email_outbound_ip_details, email_ip_pool_id, opts = {}) ⇒ Response
Click here to see an example of how to use add_email_outbound_ip API.
Add OutboundIps to EmailIpPool.
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/oci/email/email_client.rb', line 248 def add_email_outbound_ip(add_email_outbound_ip_details, email_ip_pool_id, opts = {}) logger.debug 'Calling operation EmailClient#add_email_outbound_ip.' if logger raise "Missing the required parameter 'add_email_outbound_ip_details' when calling add_email_outbound_ip." if add_email_outbound_ip_details.nil? raise "Missing the required parameter 'email_ip_pool_id' when calling add_email_outbound_ip." if email_ip_pool_id.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}/actions/addEmailOutboundIp'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_email_outbound_ip_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#add_email_outbound_ip') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#add_return_path_lock(email_return_path_id, add_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_return_path_lock API.
Adds a lock to a resource.
310 311 312 313 314 315 316 317 318 319 320 321 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 |
# File 'lib/oci/email/email_client.rb', line 310 def add_return_path_lock(email_return_path_id, add_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#add_return_path_lock.' if logger raise "Missing the required parameter 'email_return_path_id' when calling add_return_path_lock." if email_return_path_id.nil? raise "Missing the required parameter 'add_lock_details' when calling add_return_path_lock." if add_lock_details.nil? raise "Parameter value for 'email_return_path_id' must not be blank" if OCI::Internal::Util.blank_string?(email_return_path_id) path = '/emailReturnPaths/{emailReturnPathId}/actions/addLock'.sub('{emailReturnPathId}', email_return_path_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(add_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#add_return_path_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailReturnPath' ) end # rubocop:enable Metrics/BlockLength end |
#add_sender_lock(sender_id, add_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_sender_lock API.
Adds a lock to a resource.
371 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 404 405 406 407 408 409 |
# File 'lib/oci/email/email_client.rb', line 371 def add_sender_lock(sender_id, add_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#add_sender_lock.' if logger raise "Missing the required parameter 'sender_id' when calling add_sender_lock." if sender_id.nil? raise "Missing the required parameter 'add_lock_details' when calling add_sender_lock." if add_lock_details.nil? raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util.blank_string?(sender_id) path = '/senders/{senderId}/actions/addLock'.sub('{senderId}', sender_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(add_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#add_sender_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Sender' ) end # rubocop:enable Metrics/BlockLength end |
#change_email_domain_compartment(email_domain_id, change_email_domain_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_email_domain_compartment API.
Moves an email domain into a different compartment. When provided, If-Match is checked against ETag value of the resource. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
Note: All DKIM objects associated with this email domain will also be moved into the provided compartment.
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'lib/oci/email/email_client.rb', line 445 def change_email_domain_compartment(email_domain_id, change_email_domain_compartment_details, opts = {}) logger.debug 'Calling operation EmailClient#change_email_domain_compartment.' if logger raise "Missing the required parameter 'email_domain_id' when calling change_email_domain_compartment." if email_domain_id.nil? raise "Missing the required parameter 'change_email_domain_compartment_details' when calling change_email_domain_compartment." if change_email_domain_compartment_details.nil? raise "Parameter value for 'email_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(email_domain_id) path = '/emailDomains/{emailDomainId}/actions/changeCompartment'.sub('{emailDomainId}', email_domain_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_email_domain_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#change_email_domain_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_email_ip_pool_compartment(email_ip_pool_id, change_email_ip_pool_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_email_ip_pool_compartment API.
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
515 516 517 518 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 551 552 553 554 555 |
# File 'lib/oci/email/email_client.rb', line 515 def change_email_ip_pool_compartment(email_ip_pool_id, change_email_ip_pool_compartment_details, opts = {}) logger.debug 'Calling operation EmailClient#change_email_ip_pool_compartment.' if logger raise "Missing the required parameter 'email_ip_pool_id' when calling change_email_ip_pool_compartment." if email_ip_pool_id.nil? raise "Missing the required parameter 'change_email_ip_pool_compartment_details' when calling change_email_ip_pool_compartment." if change_email_ip_pool_compartment_details.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}/actions/changeCompartment'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_email_ip_pool_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#change_email_ip_pool_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sender_compartment(sender_id, change_sender_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sender_compartment API.
Moves a sender into a different compartment. When provided, If-Match is checked against ETag values of the resource.
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
# File 'lib/oci/email/email_client.rb', line 579 def change_sender_compartment(sender_id, change_sender_compartment_details, opts = {}) logger.debug 'Calling operation EmailClient#change_sender_compartment.' if logger raise "Missing the required parameter 'sender_id' when calling change_sender_compartment." if sender_id.nil? raise "Missing the required parameter 'change_sender_compartment_details' when calling change_sender_compartment." if change_sender_compartment_details.nil? raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util.blank_string?(sender_id) path = '/senders/{senderId}/actions/changeCompartment'.sub('{senderId}', sender_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(change_sender_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#change_sender_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_dkim(create_dkim_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_dkim API.
Creates a new DKIM for an email domain. This DKIM signs all approved senders in the tenancy that are in this email domain. Best security practices indicate to periodically rotate the DKIM that is doing the signing. When a second DKIM is applied, all senders seamlessly pick up the new key without interruption in signing.
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'lib/oci/email/email_client.rb', line 646 def create_dkim(create_dkim_details, opts = {}) logger.debug 'Calling operation EmailClient#create_dkim.' if logger raise "Missing the required parameter 'create_dkim_details' when calling create_dkim." if create_dkim_details.nil? path = '/dkims' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_dkim_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#create_dkim') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Dkim' ) end # rubocop:enable Metrics/BlockLength end |
#create_email_domain(create_email_domain_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_email_domain API.
Creates a new email domain. Avoid entering confidential information.
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'lib/oci/email/email_client.rb', line 707 def create_email_domain(create_email_domain_details, opts = {}) logger.debug 'Calling operation EmailClient#create_email_domain.' if logger raise "Missing the required parameter 'create_email_domain_details' when calling create_email_domain." if create_email_domain_details.nil? path = '/emailDomains' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_email_domain_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#create_email_domain') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailDomain' ) end # rubocop:enable Metrics/BlockLength end |
#create_email_ip_pool(create_email_ip_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_email_ip_pool API.
Creates a new EmailIpPool.
768 769 770 771 772 773 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/email/email_client.rb', line 768 def create_email_ip_pool(create_email_ip_pool_details, opts = {}) logger.debug 'Calling operation EmailClient#create_email_ip_pool.' if logger raise "Missing the required parameter 'create_email_ip_pool_details' when calling create_email_ip_pool." if create_email_ip_pool_details.nil? path = '/emailIpPools' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_email_ip_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#create_email_ip_pool') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#create_email_return_path(create_email_return_path_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_email_return_path API.
Creates a new email return path. Avoid entering confidential information.
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 856 857 858 859 860 861 862 863 864 865 866 |
# File 'lib/oci/email/email_client.rb', line 829 def create_email_return_path(create_email_return_path_details, opts = {}) logger.debug 'Calling operation EmailClient#create_email_return_path.' if logger raise "Missing the required parameter 'create_email_return_path_details' when calling create_email_return_path." if create_email_return_path_details.nil? path = '/emailReturnPaths' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_email_return_path_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#create_email_return_path') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailReturnPath' ) end # rubocop:enable Metrics/BlockLength end |
#create_sender(create_sender_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sender API.
Creates a sender for a tenancy in a given compartment.
884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 |
# File 'lib/oci/email/email_client.rb', line 884 def create_sender(create_sender_details, opts = {}) logger.debug 'Calling operation EmailClient#create_sender.' if logger raise "Missing the required parameter 'create_sender_details' when calling create_sender." if create_sender_details.nil? path = '/senders' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(create_sender_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#create_sender') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Sender' ) end # rubocop:enable Metrics/BlockLength end |
#create_suppression(create_suppression_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_suppression API.
Adds recipient email addresses to the suppression list for a tenancy. Addresses added to the suppression list via the API are denoted as "MANUAL" in the reason field. Note: All email addresses added to the suppression list are normalized to include only lowercase letters.
942 943 944 945 946 947 948 949 950 951 952 953 954 955 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/email/email_client.rb', line 942 def create_suppression(create_suppression_details, opts = {}) logger.debug 'Calling operation EmailClient#create_suppression.' if logger raise "Missing the required parameter 'create_suppression_details' when calling create_suppression." if create_suppression_details.nil? path = '/suppressions' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(create_suppression_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#create_suppression') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Suppression' ) end # rubocop:enable Metrics/BlockLength end |
#delete_dkim(dkim_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_dkim API.
Deletes a DKIM. If this key is currently the active key for the email domain, deleting the key will stop signing the domain's outgoing mail. DKIM keys are left in DELETING state for about a day to allow DKIM signatures on in-transit mail to be validated. Consider creating a new DKIM for this domain so the signing can be rotated to it instead of deletion.
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
# File 'lib/oci/email/email_client.rb', line 1005 def delete_dkim(dkim_id, opts = {}) logger.debug 'Calling operation EmailClient#delete_dkim.' if logger raise "Missing the required parameter 'dkim_id' when calling delete_dkim." if dkim_id.nil? raise "Parameter value for 'dkim_id' must not be blank" if OCI::Internal::Util.blank_string?(dkim_id) path = '/dkims/{dkimId}'.sub('{dkimId}', dkim_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#delete_dkim') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_email_domain(email_domain_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_email_domain API.
Deletes an email domain.
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 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 |
# File 'lib/oci/email/email_client.rb', line 1064 def delete_email_domain(email_domain_id, opts = {}) logger.debug 'Calling operation EmailClient#delete_email_domain.' if logger raise "Missing the required parameter 'email_domain_id' when calling delete_email_domain." if email_domain_id.nil? raise "Parameter value for 'email_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(email_domain_id) path = '/emailDomains/{emailDomainId}'.sub('{emailDomainId}', email_domain_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#delete_email_domain') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_email_ip_pool(email_ip_pool_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_email_ip_pool API.
Deletes an EmailIpPool resource by identifier
1124 1125 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 1158 1159 1160 1161 |
# File 'lib/oci/email/email_client.rb', line 1124 def delete_email_ip_pool(email_ip_pool_id, opts = {}) logger.debug 'Calling operation EmailClient#delete_email_ip_pool.' if logger raise "Missing the required parameter 'email_ip_pool_id' when calling delete_email_ip_pool." if email_ip_pool_id.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#delete_email_ip_pool') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_email_return_path(email_return_path_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_email_return_path API.
Deletes an email return path.
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 1214 1215 1216 1217 1218 1219 1220 1221 |
# File 'lib/oci/email/email_client.rb', line 1184 def delete_email_return_path(email_return_path_id, opts = {}) logger.debug 'Calling operation EmailClient#delete_email_return_path.' if logger raise "Missing the required parameter 'email_return_path_id' when calling delete_email_return_path." if email_return_path_id.nil? raise "Parameter value for 'email_return_path_id' must not be blank" if OCI::Internal::Util.blank_string?(email_return_path_id) path = '/emailReturnPaths/{emailReturnPathId}'.sub('{emailReturnPathId}', email_return_path_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#delete_email_return_path') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sender(sender_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sender API.
Deletes an approved sender for a tenancy in a given compartment for a provided senderId.
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 |
# File 'lib/oci/email/email_client.rb', line 1246 def delete_sender(sender_id, opts = {}) logger.debug 'Calling operation EmailClient#delete_sender.' if logger raise "Missing the required parameter 'sender_id' when calling delete_sender." if sender_id.nil? raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util.blank_string?(sender_id) path = '/senders/{senderId}'.sub('{senderId}', sender_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#delete_sender') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_suppression(suppression_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_suppression API.
Removes a suppressed recipient email address from the suppression list for a tenancy in a given compartment for a provided suppressionId.
1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 |
# File 'lib/oci/email/email_client.rb', line 1303 def delete_suppression(suppression_id, opts = {}) logger.debug 'Calling operation EmailClient#delete_suppression.' if logger raise "Missing the required parameter 'suppression_id' when calling delete_suppression." if suppression_id.nil? raise "Parameter value for 'suppression_id' must not be blank" if OCI::Internal::Util.blank_string?(suppression_id) path = '/suppressions/{suppressionId}'.sub('{suppressionId}', suppression_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#delete_suppression') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#get_dkim(dkim_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_dkim API.
Retrieves the specified DKIM.
1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 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 |
# File 'lib/oci/email/email_client.rb', line 1356 def get_dkim(dkim_id, opts = {}) logger.debug 'Calling operation EmailClient#get_dkim.' if logger raise "Missing the required parameter 'dkim_id' when calling get_dkim." if dkim_id.nil? raise "Parameter value for 'dkim_id' must not be blank" if OCI::Internal::Util.blank_string?(dkim_id) path = '/dkims/{dkimId}'.sub('{dkimId}', dkim_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_dkim') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Dkim' ) end # rubocop:enable Metrics/BlockLength end |
#get_email_configuration(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_email_configuration API.
Returns email configuration associated with the specified compartment.
1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 |
# File 'lib/oci/email/email_client.rb', line 1411 def get_email_configuration(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#get_email_configuration.' if logger raise "Missing the required parameter 'compartment_id' when calling get_email_configuration." if compartment_id.nil? path = '/configuration' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_email_configuration') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Configuration' ) end # rubocop:enable Metrics/BlockLength end |
#get_email_domain(email_domain_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_email_domain API.
Retrieves the specified email domain.
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 |
# File 'lib/oci/email/email_client.rb', line 1465 def get_email_domain(email_domain_id, opts = {}) logger.debug 'Calling operation EmailClient#get_email_domain.' if logger raise "Missing the required parameter 'email_domain_id' when calling get_email_domain." if email_domain_id.nil? raise "Parameter value for 'email_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(email_domain_id) path = '/emailDomains/{emailDomainId}'.sub('{emailDomainId}', email_domain_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_email_domain') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailDomain' ) end # rubocop:enable Metrics/BlockLength end |
#get_email_ip_pool(email_ip_pool_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_email_ip_pool API.
Retrieves the specified IpPool by identifier
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 |
# File 'lib/oci/email/email_client.rb', line 1519 def get_email_ip_pool(email_ip_pool_id, opts = {}) logger.debug 'Calling operation EmailClient#get_email_ip_pool.' if logger raise "Missing the required parameter 'email_ip_pool_id' when calling get_email_ip_pool." if email_ip_pool_id.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_email_ip_pool') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#get_email_return_path(email_return_path_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_email_return_path API.
Retrieves the specified email return path.
1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 |
# File 'lib/oci/email/email_client.rb', line 1573 def get_email_return_path(email_return_path_id, opts = {}) logger.debug 'Calling operation EmailClient#get_email_return_path.' if logger raise "Missing the required parameter 'email_return_path_id' when calling get_email_return_path." if email_return_path_id.nil? raise "Parameter value for 'email_return_path_id' must not be blank" if OCI::Internal::Util.blank_string?(email_return_path_id) path = '/emailReturnPaths/{emailReturnPathId}'.sub('{emailReturnPathId}', email_return_path_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_email_return_path') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailReturnPath' ) end # rubocop:enable Metrics/BlockLength end |
#get_sender(sender_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sender API.
Gets an approved sender for a given senderId.
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 |
# File 'lib/oci/email/email_client.rb', line 1627 def get_sender(sender_id, opts = {}) logger.debug 'Calling operation EmailClient#get_sender.' if logger raise "Missing the required parameter 'sender_id' when calling get_sender." if sender_id.nil? raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util.blank_string?(sender_id) path = '/senders/{senderId}'.sub('{senderId}', sender_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_sender') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Sender' ) end # rubocop:enable Metrics/BlockLength end |
#get_suppression(suppression_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_suppression API.
Gets the details of a suppressed recipient email address for a given suppressionId. Each suppression is given a unique OCID.
1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 |
# File 'lib/oci/email/email_client.rb', line 1683 def get_suppression(suppression_id, opts = {}) logger.debug 'Calling operation EmailClient#get_suppression.' if logger raise "Missing the required parameter 'suppression_id' when calling get_suppression." if suppression_id.nil? raise "Parameter value for 'suppression_id' must not be blank" if OCI::Internal::Util.blank_string?(suppression_id) path = '/suppressions/{suppressionId}'.sub('{suppressionId}', suppression_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_suppression') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Suppression' ) end # rubocop:enable Metrics/BlockLength end |
#get_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_work_request API.
Gets the status of the work request with the given ID.
1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 |
# File 'lib/oci/email/email_client.rb', line 1737 def get_work_request(work_request_id, opts = {}) logger.debug 'Calling operation EmailClient#get_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#get_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#list_dkims(email_domain_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_dkims API.
Lists DKIMs for an email domain.
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 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 |
# File 'lib/oci/email/email_client.rb', line 1817 def list_dkims(email_domain_id, opts = {}) logger.debug 'Calling operation EmailClient#list_dkims.' if logger raise "Missing the required parameter 'email_domain_id' when calling list_dkims." if email_domain_id.nil? if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end if opts[:lifecycle_state] && !OCI::Email::Models::Dkim::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Email::Models::Dkim::LIFECYCLE_STATE_ENUM.' end if opts[:sort_by] && !%w[TIMECREATED ID NAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, ID, NAME.' end path = '/dkims' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:emailDomainId] = email_domain_id query_params[:id] = opts[:id] if opts[:id] query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_dkims') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::DkimCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_email_domains(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_email_domains API.
Lists email domains in the specified compartment.
1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 |
# File 'lib/oci/email/email_client.rb', line 1915 def list_email_domains(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#list_email_domains.' if logger raise "Missing the required parameter 'compartment_id' when calling list_email_domains." if compartment_id.nil? if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end if opts[:lifecycle_state] && !OCI::Email::Models::EmailDomain::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Email::Models::EmailDomain::LIFECYCLE_STATE_ENUM.' end if opts[:sort_by] && !%w[TIMECREATED ID NAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, ID, NAME.' end path = '/emailDomains' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:id] = opts[:id] if opts[:id] query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_email_domains') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailDomainCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_email_ip_pools(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_email_ip_pools API.
Returns a list of EmailIpPools.
2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 |
# File 'lib/oci/email/email_client.rb', line 2011 def list_email_ip_pools(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#list_email_ip_pools.' if logger raise "Missing the required parameter 'compartment_id' when calling list_email_ip_pools." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::Email::Models::EmailIpPool::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Email::Models::EmailIpPool::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[TIMECREATED NAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, NAME.' end path = '/emailIpPools' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:id] = opts[:id] if opts[:id] query_params[:name] = opts[:name] if opts[:name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_email_ip_pools') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailIpPoolCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_email_outbound_ips(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_email_outbound_ips API.
Returns a list of all Outbound Public IPs assigned for a given tenant.
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 |
# File 'lib/oci/email/email_client.rb', line 2104 def list_email_outbound_ips(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#list_email_outbound_ips.' if logger raise "Missing the required parameter 'compartment_id' when calling list_email_outbound_ips." if compartment_id.nil? if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end if opts[:lifecycle_state] && !OCI::Email::Models::EmailOutboundIpSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Email::Models::EmailOutboundIpSummary::LIFECYCLE_STATE_ENUM.' end if opts[:assignment_state] && !OCI::Email::Models::EmailOutboundIpSummary::ASSIGNMENT_STATE_ENUM.include?(opts[:assignment_state]) raise 'Invalid value for "assignment_state", must be one of the values in OCI::Email::Models::EmailOutboundIpSummary::ASSIGNMENT_STATE_ENUM.' end if opts[:sort_by] && !%w[OUTBOUNDIP].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of OUTBOUNDIP.' end path = '/emailOutboundIps' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:outboundIp] = opts[:outbound_ip] if opts[:outbound_ip] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:assignmentState] = opts[:assignment_state] if opts[:assignment_state] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_email_outbound_ips') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailOutboundIpCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_email_return_paths(opts = {}) ⇒ Response
Click here to see an example of how to use list_email_return_paths API.
Lists email return paths in the specified compartment or emaildomain.
2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 |
# File 'lib/oci/email/email_client.rb', line 2208 def list_email_return_paths(opts = {}) logger.debug 'Calling operation EmailClient#list_email_return_paths.' if logger if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end if opts[:lifecycle_state] && !OCI::Email::Models::EmailReturnPath::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Email::Models::EmailReturnPath::LIFECYCLE_STATE_ENUM.' end if opts[:sort_by] && !%w[TIMECREATED ID NAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, ID, NAME.' end path = '/emailReturnPaths' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:parentResourceId] = opts[:parent_resource_id] if opts[:parent_resource_id] query_params[:id] = opts[:id] if opts[:id] query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_email_return_paths') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailReturnPathCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_senders(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_senders API.
Gets a collection of approved sender email addresses and sender IDs.
2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 |
# File 'lib/oci/email/email_client.rb', line 2302 def list_senders(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#list_senders.' if logger raise "Missing the required parameter 'compartment_id' when calling list_senders." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::Email::Models::Sender::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Email::Models::Sender::LIFECYCLE_STATE_ENUM.' end if opts[:sort_by] && !%w[TIMECREATED EMAILADDRESS].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, EMAILADDRESS.' end if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end path = '/senders' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:domain] = opts[:domain] if opts[:domain] query_params[:emailAddress] = opts[:email_address] if opts[:email_address] query_params[:emailIpPoolId] = opts[:email_ip_pool_id] if opts[:email_ip_pool_id] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_senders') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Email::Models::SenderSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_suppressions(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_suppressions API.
Gets a list of suppressed recipient email addresses for a user. The compartmentId for suppressions must be a tenancy OCID. The returned list is sorted by creation time in descending order.
2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 |
# File 'lib/oci/email/email_client.rb', line 2414 def list_suppressions(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#list_suppressions.' if logger raise "Missing the required parameter 'compartment_id' when calling list_suppressions." if compartment_id.nil? if opts[:sort_by] && !%w[TIMECREATED EMAILADDRESS].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, EMAILADDRESS.' end if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end path = '/suppressions' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:emailAddress] = opts[:email_address] if opts[:email_address] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_suppressions') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Email::Models::SuppressionSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_errors API.
Return a (paginated) list of errors for a given work request.
Allowed values are: timestamp
2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 |
# File 'lib/oci/email/email_client.rb', line 2497 def list_work_request_errors(work_request_id, opts = {}) logger.debug 'Calling operation EmailClient#list_work_request_errors.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil? if opts[:sort_by] && !%w[timestamp].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timestamp.' end if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_work_request_errors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::WorkRequestErrorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_logs API.
Return a (paginated) list of logs for a given work request.
Allowed values are: timestamp
2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 |
# File 'lib/oci/email/email_client.rb', line 2577 def list_work_request_logs(work_request_id, opts = {}) logger.debug 'Calling operation EmailClient#list_work_request_logs.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil? if opts[:sort_by] && !%w[timestamp].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timestamp.' end if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_work_request_logs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::WorkRequestLogEntryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_requests API.
Lists the work requests in a compartment.
Allowed values are: timeAccepted
2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 |
# File 'lib/oci/email/email_client.rb', line 2660 def list_work_requests(compartment_id, opts = {}) logger.debug 'Calling operation EmailClient#list_work_requests.' if logger raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil? if opts[:status] && !OCI::Email::Models::OPERATION_STATUS_ENUM.include?(opts[:status]) raise 'Invalid value for "status", must be one of the values in OCI::Email::Models::OPERATION_STATUS_ENUM.' end if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeAccepted.' end if opts[:sort_order] && !OCI::Email::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Email::Models::SORT_ORDER_ENUM.' end if opts[:operation_type] && !OCI::Email::Models::OPERATION_TYPE_ENUM.include?(opts[:operation_type]) raise 'Invalid value for "operation_type", must be one of the values in OCI::Email::Models::OPERATION_TYPE_ENUM.' end path = '/workRequests' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:status] = opts[:status] if opts[:status] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:operationType] = opts[:operation_type] if opts[:operation_type] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#list_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::WorkRequestSummaryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
98 99 100 |
# File 'lib/oci/email/email_client.rb', line 98 def logger @api_client.config.logger end |
#remove_email_domain_lock(email_domain_id, remove_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_email_domain_lock API.
Remove a lock to a resource.
2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 |
# File 'lib/oci/email/email_client.rb', line 2742 def remove_email_domain_lock(email_domain_id, remove_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#remove_email_domain_lock.' if logger raise "Missing the required parameter 'email_domain_id' when calling remove_email_domain_lock." if email_domain_id.nil? raise "Missing the required parameter 'remove_lock_details' when calling remove_email_domain_lock." if remove_lock_details.nil? raise "Parameter value for 'email_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(email_domain_id) path = '/emailDomains/{emailDomainId}/actions/removeLock'.sub('{emailDomainId}', email_domain_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(remove_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#remove_email_domain_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailDomain' ) end # rubocop:enable Metrics/BlockLength end |
#remove_email_ip_pool_lock(email_ip_pool_id, remove_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_email_ip_pool_lock API.
Remove a lock to a resource.
2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 |
# File 'lib/oci/email/email_client.rb', line 2803 def remove_email_ip_pool_lock(email_ip_pool_id, remove_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#remove_email_ip_pool_lock.' if logger raise "Missing the required parameter 'email_ip_pool_id' when calling remove_email_ip_pool_lock." if email_ip_pool_id.nil? raise "Missing the required parameter 'remove_lock_details' when calling remove_email_ip_pool_lock." if remove_lock_details.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}/actions/removeLock'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(remove_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#remove_email_ip_pool_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#remove_email_outbound_ip(remove_email_outbound_ip_details, email_ip_pool_id, opts = {}) ⇒ Response
Click here to see an example of how to use remove_email_outbound_ip API.
Remove OutboundIps from EmailIpPool.
2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 |
# File 'lib/oci/email/email_client.rb', line 2870 def remove_email_outbound_ip(remove_email_outbound_ip_details, email_ip_pool_id, opts = {}) logger.debug 'Calling operation EmailClient#remove_email_outbound_ip.' if logger raise "Missing the required parameter 'remove_email_outbound_ip_details' when calling remove_email_outbound_ip." if remove_email_outbound_ip_details.nil? raise "Missing the required parameter 'email_ip_pool_id' when calling remove_email_outbound_ip." if email_ip_pool_id.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}/actions/removeEmailOutboundIp'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(remove_email_outbound_ip_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#remove_email_outbound_ip') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#remove_return_path_lock(email_return_path_id, remove_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_return_path_lock API.
Remove a lock to a resource.
2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 |
# File 'lib/oci/email/email_client.rb', line 2932 def remove_return_path_lock(email_return_path_id, remove_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#remove_return_path_lock.' if logger raise "Missing the required parameter 'email_return_path_id' when calling remove_return_path_lock." if email_return_path_id.nil? raise "Missing the required parameter 'remove_lock_details' when calling remove_return_path_lock." if remove_lock_details.nil? raise "Parameter value for 'email_return_path_id' must not be blank" if OCI::Internal::Util.blank_string?(email_return_path_id) path = '/emailReturnPaths/{emailReturnPathId}/actions/removeLock'.sub('{emailReturnPathId}', email_return_path_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(remove_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#remove_return_path_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::EmailReturnPath' ) end # rubocop:enable Metrics/BlockLength end |
#remove_sender_lock(sender_id, remove_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_sender_lock API.
Remove a lock to a resource.
2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 |
# File 'lib/oci/email/email_client.rb', line 2993 def remove_sender_lock(sender_id, remove_lock_details, opts = {}) logger.debug 'Calling operation EmailClient#remove_sender_lock.' if logger raise "Missing the required parameter 'sender_id' when calling remove_sender_lock." if sender_id.nil? raise "Missing the required parameter 'remove_lock_details' when calling remove_sender_lock." if remove_lock_details.nil? raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util.blank_string?(sender_id) path = '/senders/{senderId}/actions/removeLock'.sub('{senderId}', sender_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(remove_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#remove_sender_lock') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Sender' ) end # rubocop:enable Metrics/BlockLength end |
#update_dkim(dkim_id, update_dkim_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_dkim API.
Modifies a DKIM.
3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 |
# File 'lib/oci/email/email_client.rb', line 3054 def update_dkim(dkim_id, update_dkim_details, opts = {}) logger.debug 'Calling operation EmailClient#update_dkim.' if logger raise "Missing the required parameter 'dkim_id' when calling update_dkim." if dkim_id.nil? raise "Missing the required parameter 'update_dkim_details' when calling update_dkim." if update_dkim_details.nil? raise "Parameter value for 'dkim_id' must not be blank" if OCI::Internal::Util.blank_string?(dkim_id) path = '/dkims/{dkimId}'.sub('{dkimId}', dkim_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_dkim_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#update_dkim') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_email_domain(email_domain_id, update_email_domain_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_email_domain API.
Modifies an email domain.
3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 |
# File 'lib/oci/email/email_client.rb', line 3115 def update_email_domain(email_domain_id, update_email_domain_details, opts = {}) logger.debug 'Calling operation EmailClient#update_email_domain.' if logger raise "Missing the required parameter 'email_domain_id' when calling update_email_domain." if email_domain_id.nil? raise "Missing the required parameter 'update_email_domain_details' when calling update_email_domain." if update_email_domain_details.nil? raise "Parameter value for 'email_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(email_domain_id) path = '/emailDomains/{emailDomainId}'.sub('{emailDomainId}', email_domain_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_email_domain_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#update_email_domain') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_email_ip_pool(email_ip_pool_id, update_email_ip_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_email_ip_pool API.
Updates the EmailIpPool
3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 |
# File 'lib/oci/email/email_client.rb', line 3177 def update_email_ip_pool(email_ip_pool_id, update_email_ip_pool_details, opts = {}) logger.debug 'Calling operation EmailClient#update_email_ip_pool.' if logger raise "Missing the required parameter 'email_ip_pool_id' when calling update_email_ip_pool." if email_ip_pool_id.nil? raise "Missing the required parameter 'update_email_ip_pool_details' when calling update_email_ip_pool." if update_email_ip_pool_details.nil? raise "Parameter value for 'email_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(email_ip_pool_id) path = '/emailIpPools/{emailIpPoolId}'.sub('{emailIpPoolId}', email_ip_pool_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_email_ip_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#update_email_ip_pool') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_email_return_path(email_return_path_id, update_email_return_path_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_email_return_path API.
Modifies an email return path.
3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 |
# File 'lib/oci/email/email_client.rb', line 3239 def update_email_return_path(email_return_path_id, update_email_return_path_details, opts = {}) logger.debug 'Calling operation EmailClient#update_email_return_path.' if logger raise "Missing the required parameter 'email_return_path_id' when calling update_email_return_path." if email_return_path_id.nil? raise "Missing the required parameter 'update_email_return_path_details' when calling update_email_return_path." if update_email_return_path_details.nil? raise "Parameter value for 'email_return_path_id' must not be blank" if OCI::Internal::Util.blank_string?(email_return_path_id) path = '/emailReturnPaths/{emailReturnPathId}'.sub('{emailReturnPathId}', email_return_path_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_email_return_path_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#update_email_return_path') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sender(sender_id, update_sender_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sender API.
Replaces the set of tags for a sender with the tags provided. If either freeform or defined tags are omitted, the tags for that set remain the same. Each set must include the full set of tags for the sender, partial updates are not permitted. For more information about tagging, see Resource Tags.
3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 |
# File 'lib/oci/email/email_client.rb', line 3305 def update_sender(sender_id, update_sender_details, opts = {}) logger.debug 'Calling operation EmailClient#update_sender.' if logger raise "Missing the required parameter 'sender_id' when calling update_sender." if sender_id.nil? raise "Missing the required parameter 'update_sender_details' when calling update_sender." if update_sender_details.nil? raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util.blank_string?(sender_id) path = '/senders/{senderId}'.sub('{senderId}', sender_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sender_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'EmailClient#update_sender') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Email::Models::Sender' ) end # rubocop:enable Metrics/BlockLength end |