Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SipTrunks::Rest::ServiceStub (v1.13.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SipTrunks::Rest::ServiceStub.

REST service stub for the SipTrunks service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_sip_trunk

def create_sip_trunk(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::SipTrunk

Baseline implementation for the create_sip_trunk REST call

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

#delete_sip_trunk

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

Baseline implementation for the delete_sip_trunk 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_sip_trunk

def get_sip_trunk(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::SipTrunk

Baseline implementation for the get_sip_trunk REST call

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

#list_sip_trunks

def list_sip_trunks(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListSipTrunksResponse

Baseline implementation for the list_sip_trunks REST call

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

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_sip_trunk

def update_sip_trunk(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::SipTrunk

Baseline implementation for the update_sip_trunk REST call

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