Essential Contacts V1 API - Class Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::ServiceStub (v0.4.1)

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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_contact

def delete_contact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_contact REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_contacts

def list_contacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::EssentialContacts::V1::ListContactsResponse

Baseline implementation for the list_contacts REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)