Class: Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1ComputeContactsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/essentialcontacts_v1/classes.rb,
lib/google/apis/essentialcontacts_v1/representations.rb,
lib/google/apis/essentialcontacts_v1/representations.rb

Overview

Response message for the ComputeContacts method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudEssentialcontactsV1ComputeContactsResponse

Returns a new instance of GoogleCloudEssentialcontactsV1ComputeContactsResponse.



44
45
46
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 44

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contactsArray<Google::Apis::EssentialcontactsV1::GoogleCloudEssentialcontactsV1Contact>

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources. Corresponds to the JSON property contacts



34
35
36
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 34

def contacts
  @contacts
end

#next_page_tokenString

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token and the rest of the parameters the same as the original request. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 42

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
# File 'lib/google/apis/essentialcontacts_v1/classes.rb', line 49

def update!(**args)
  @contacts = args[:contacts] if args.key?(:contacts)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end