Cloud Commerce Producer V1BETA API - Class Google::Cloud::CommerceProducer::V1beta::CommerceTransaction::Rest::ServiceStub (v0.1.0)

Reference documentation and code samples for the Cloud Commerce Producer V1BETA API class Google::Cloud::CommerceProducer::V1beta::CommerceTransaction::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#cancel_private_offer

def cancel_private_offer(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer

Baseline implementation for the cancel_private_offer REST call

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

#create_private_offer

def create_private_offer(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer

Baseline implementation for the create_private_offer REST call

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

#create_private_offer_document

def create_private_offer_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument

Baseline implementation for the create_private_offer_document REST call

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

#delete_private_offer

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

Baseline implementation for the delete_private_offer REST call

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

#delete_private_offer_document

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

Baseline implementation for the delete_private_offer_document 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_private_offer

def get_private_offer(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer

Baseline implementation for the get_private_offer REST call

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

#get_private_offer_document

def get_private_offer_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument

Baseline implementation for the get_private_offer_document REST call

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

#get_service

def get_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::Service

Baseline implementation for the get_service REST call

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

#get_sku

def get_sku(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::Sku

Baseline implementation for the get_sku REST call

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

#get_sku_group

def get_sku_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::SkuGroup

Baseline implementation for the get_sku_group REST call

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

#get_standard_offer

def get_standard_offer(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::StandardOffer

Baseline implementation for the get_standard_offer REST call

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

#list_private_offer_documents

def list_private_offer_documents(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ListPrivateOfferDocumentsResponse

Baseline implementation for the list_private_offer_documents REST call

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

#list_private_offers

def list_private_offers(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ListPrivateOffersResponse

Baseline implementation for the list_private_offers REST call

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

#list_services

def list_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ListServicesResponse

Baseline implementation for the list_services REST call

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

#list_sku_groups

def list_sku_groups(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ListSkuGroupsResponse

Baseline implementation for the list_sku_groups REST call

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

#list_skus

def list_skus(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ListSkusResponse

Baseline implementation for the list_skus REST call

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

#list_standard_offers

def list_standard_offers(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ListStandardOffersResponse

Baseline implementation for the list_standard_offers 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)

#publish_private_offer

def publish_private_offer(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer

Baseline implementation for the publish_private_offer REST call

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

#resolve_amendment_target

def resolve_amendment_target(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::ResolveAmendmentTargetResponse

Baseline implementation for the resolve_amendment_target 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_private_offer

def update_private_offer(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer

Baseline implementation for the update_private_offer REST call

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

#update_private_offer_document

def update_private_offer_document(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument

Baseline implementation for the update_private_offer_document REST call

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