Essential Contacts V1 API - Class Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::ServiceStub (v1.0.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)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#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:, endpoint_template:, universe_domain:, 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)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#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)