Class: OCI::AnnouncementsService::AnnouncementClientCompositeOperations

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/announcements_service/announcement_client_composite_operations.rb

Overview

This class provides a wrapper around AnnouncementClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_client = OCI::AnnouncementsService::AnnouncementClient.new) ⇒ AnnouncementClientCompositeOperations

Initializes a new AnnouncementClientCompositeOperations

Parameters:

  • service_client (OCI::AnnouncementsService::AnnouncementClient) (defaults to: OCI::AnnouncementsService::AnnouncementClient.new)

    The client used to communicate with the service. Defaults to a new service client created via OCI::AnnouncementsService::AnnouncementClient#initialize with no arguments



19
20
21
# File 'lib/oci/announcements_service/announcement_client_composite_operations.rb', line 19

def initialize(service_client = OCI::AnnouncementsService::AnnouncementClient.new)
  @service_client = service_client
end

Instance Attribute Details

#service_clientOCI::AnnouncementsService::AnnouncementClient (readonly)

The OCI::AnnouncementsService::AnnouncementClient used to communicate with the service_client

Returns:

  • (OCI::AnnouncementsService::AnnouncementClient)


13
14
15
# File 'lib/oci/announcements_service/announcement_client_composite_operations.rb', line 13

def service_client
  @service_client
end