Reference documentation and code samples for the Essential Contacts V1 API class Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::ServiceStub.
REST service stub for the EssentialContactsService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#compute_contacts
def compute_contacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::EssentialContacts::V1::ComputeContactsResponse
Baseline implementation for the compute_contacts REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::ComputeContactsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EssentialContacts::V1::ComputeContactsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::EssentialContacts::V1::ComputeContactsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_contact
def create_contact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::EssentialContacts::V1::Contact
Baseline implementation for the create_contact REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::CreateContactRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EssentialContacts::V1::Contact)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::EssentialContacts::V1::Contact) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_contact
def delete_contact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_contact REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::DeleteContactRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_contact
def get_contact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::EssentialContacts::V1::Contact
Baseline implementation for the get_contact REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::GetContactRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EssentialContacts::V1::Contact)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::EssentialContacts::V1::Contact) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_contacts
def list_contacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::EssentialContacts::V1::ListContactsResponse
Baseline implementation for the list_contacts REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::ListContactsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EssentialContacts::V1::ListContactsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::EssentialContacts::V1::ListContactsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#send_test_message
def send_test_message(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the send_test_message REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::SendTestMessageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_contact
def update_contact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::EssentialContacts::V1::Contact
Baseline implementation for the update_contact REST call
- request_pb (::Google::Cloud::EssentialContacts::V1::UpdateContactRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EssentialContacts::V1::Contact)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::EssentialContacts::V1::Contact) — A result object deserialized from the server's reply
- (::ArgumentError)