class Google::Shopping::Merchant::Promotions::V1::PromotionsService::Rest::ServiceStub
def self.transcode_insert_promotion_request request_pb
-
(Array(String, [String, nil], Hash{String => String}))
-
Parameters:
-
request_pb
(::Google::Shopping::Merchant::Promotions::V1::InsertPromotionRequest
) --
Other tags:
- Private: -
def self.transcode_insert_promotion_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/promotions/v1/{parent}/promotions:insert", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end