class Google::Shopping::Merchant::Accounts::V1beta::ShippingSettingsService::Rest::ServiceStub

def insert_shipping_settings request_pb, options = nil

Returns:
  • (::Google::Shopping::Merchant::Accounts::V1beta::ShippingSettings) -

Other tags:
    Yieldparam: operation -
    Yieldparam: result -

Other tags:
    Yield: - Access the result along with the TransportOperation object

Parameters:
  • options (::Gapic::CallOptions) --
  • request_pb (::Google::Shopping::Merchant::Accounts::V1beta::InsertShippingSettingsRequest) --
def insert_shipping_settings request_pb, options = nil
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
  verb, uri, query_string_params, body = ServiceStub.transcode_insert_shipping_settings_request request_pb
  query_string_params = if query_string_params.any?
                          query_string_params.to_h { |p| p.split "=", 2 }
                        else
                          {}
                        end
  response = @client_stub.make_http_request(
    verb,
    uri:     uri,
    body:    body || "",
    params:  query_string_params,
    options: options
  )
  operation = ::Gapic::Rest::TransportOperation.new response
  result = ::Google::Shopping::Merchant::Accounts::V1beta::ShippingSettings.decode_json response.body, ignore_unknown_fields: true
  yield result, operation if block_given?
  result
end