Autogenerated update (2020-06-06)

Update:
- androidpublisher_v3
- cloudtasks_v2
- content_v2
- content_v2_1
- storagetransfer_v1
- videointelligence_v1
- videointelligence_v1beta2
- videointelligence_v1p1beta1
- videointelligence_v1p2beta1
- videointelligence_v1p3beta1
This commit is contained in:
Google APIs 2020-06-06 00:38:16 +00:00
parent f0f8e3708d
commit f985ab7c4a
24 changed files with 586 additions and 20 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV3
VERSION = 'V3'
REVISION = '20200526'
REVISION = '20200602'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -847,6 +847,16 @@ module Google
# @return [String]
attr_accessor :purchase_type
# Whether or not the developer wants the specific subscription to be
# resubscribable. If the developer doesn't use PBL2.0, this value is ignored
# since the feature is only for developers using PBL2.0. This feature allows
# users to resubscribe to an expired subscription directly from the subscription
# center by clicking on a "Resubscribe" CTA under the entry for the expired
# subscription.
# Corresponds to the JSON property `resubscribeEligibility`
# @return [String]
attr_accessor :resubscribe_eligibility
# The stock-keeping-unit (SKU) of the product, unique within an app.
# Corresponds to the JSON property `sku`
# @return [String]
@ -884,6 +894,7 @@ module Google
@package_name = args[:package_name] if args.key?(:package_name)
@prices = args[:prices] if args.key?(:prices)
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
@resubscribe_eligibility = args[:resubscribe_eligibility] if args.key?(:resubscribe_eligibility)
@sku = args[:sku] if args.key?(:sku)
@status = args[:status] if args.key?(:status)
@subscription_period = args[:subscription_period] if args.key?(:subscription_period)

View File

@ -682,6 +682,7 @@ module Google
hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
property :purchase_type, as: 'purchaseType'
property :resubscribe_eligibility, as: 'resubscribeEligibility'
property :sku, as: 'sku'
property :status, as: 'status'
property :subscription_period, as: 'subscriptionPeriod'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2
VERSION = 'V2'
REVISION = '20200513'
REVISION = '20200529'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -47,8 +47,9 @@ module Google
# The AppEngineRouting used to construct the URL that the task is
# delivered to can be set at the queue-level or task-level:
# * If app_engine_routing_override is set on the
# queue, this value is used for all
# tasks in the queue, no matter what the setting is for the task-level
# queue, this value
# is used for all tasks in the queue, no matter what the setting is for the
# task-level
# app_engine_routing.
# The `url` that the task will be sent to is:
# * `url =` host `+`
@ -1553,8 +1554,9 @@ module Google
# The AppEngineRouting used to construct the URL that the task is
# delivered to can be set at the queue-level or task-level:
# * If app_engine_routing_override is set on the
# queue, this value is used for all
# tasks in the queue, no matter what the setting is for the task-level
# queue, this value
# is used for all tasks in the queue, no matter what the setting is for the
# task-level
# app_engine_routing.
# The `url` that the task will be sent to is:
# * `url =` host `+`

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20200526'
REVISION = '20200529'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -7392,6 +7392,7 @@ module Google
# Acceptable values are:
# - "`delivered`"
# - "`undeliverable`"
# - "`readyForPickup`"
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -8387,6 +8388,7 @@ module Google
# Acceptable values are:
# - "`delivered`"
# - "`undeliverable`"
# - "`readyForPickup`"
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2_1
VERSION = 'V2_1'
REVISION = '20200526'
REVISION = '20200529'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -4012,6 +4012,11 @@ module Google
attr_accessor :acknowledged
alias_method :acknowledged?, :acknowledged
# List of key-value pairs that are attached to a given order.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::ContentV2_1::OrderOrderAnnotation>]
attr_accessor :annotations
# The billing address.
# Corresponds to the JSON property `billingAddress`
# @return [Google::Apis::ContentV2_1::OrderAddress]
@ -4160,6 +4165,7 @@ module Google
# Update properties of this object
def update!(**args)
@acknowledged = args[:acknowledged] if args.key?(:acknowledged)
@annotations = args[:annotations] if args.key?(:annotations)
@billing_address = args[:billing_address] if args.key?(:billing_address)
@customer = args[:customer] if args.key?(:customer)
@delivery_details = args[:delivery_details] if args.key?(:delivery_details)
@ -4830,6 +4836,12 @@ module Google
# @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod]
attr_accessor :method_prop
# The promised time in minutes in which the order will be ready for pickup. This
# only applies to buy-online-pickup-in-store same-day order.
# Corresponds to the JSON property `pickupPromiseInMinutes`
# @return [Fixnum]
attr_accessor :pickup_promise_in_minutes
# Required. The ship by date, in ISO 8601 format.
# Corresponds to the JSON property `shipByDate`
# @return [String]
@ -4852,6 +4864,7 @@ module Google
def update!(**args)
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@pickup_promise_in_minutes = args[:pickup_promise_in_minutes] if args.key?(:pickup_promise_in_minutes)
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
@type = args[:type] if args.key?(:type)
end
@ -4922,6 +4935,31 @@ module Google
end
end
#
class OrderOrderAnnotation
include Google::Apis::Core::Hashable
# Key for additional google provided (as key-value pairs) annotation.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Value for additional google provided (as key-value pairs) annotation.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
#
class OrderPickupDetails
include Google::Apis::Core::Hashable
@ -4943,6 +4981,17 @@ module Google
# @return [String]
attr_accessor :location_id
# The pickup type of this order.
# Acceptable values are:
# - "`merchantStore`"
# - "`merchantStoreCurbside`"
# - "`merchantStoreLocker`"
# - "`thirdPartyPickupPoint`"
# - "`thirdPartyLocker`"
# Corresponds to the JSON property `pickupType`
# @return [String]
attr_accessor :pickup_type
def initialize(**args)
update!(**args)
end
@ -4952,6 +5001,7 @@ module Google
@address = args[:address] if args.key?(:address)
@collectors = args[:collectors] if args.key?(:collectors)
@location_id = args[:location_id] if args.key?(:location_id)
@pickup_type = args[:pickup_type] if args.key?(:pickup_type)
end
end
@ -6588,6 +6638,84 @@ module Google
end
end
#
class OrdersCustomBatchRequestEntryRefundItemItem
include Google::Apis::Core::Hashable
# The amount that is refunded. In case of multiple refunds,
# - If the quantity of refunded items changed, this should contain the total
# refund per item.
# - If the quantity of the refunded items remained the same, this should be the
# newly refunded amount.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2_1::MonetaryAmount]
attr_accessor :amount
# If true, the full item will be refunded. If this is true, amount should not be
# provided and will be ignored.
# Corresponds to the JSON property `fullRefund`
# @return [Boolean]
attr_accessor :full_refund
alias_method :full_refund?, :full_refund
# The ID of the line item. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product. This is the REST ID used in the products service.
# Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The number of products that are refunded.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@full_refund = args[:full_refund] if args.key?(:full_refund)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
end
end
#
class OrdersCustomBatchRequestEntryRefundItemShipping
include Google::Apis::Core::Hashable
# The amount that is refunded. If this is not the first refund for the shipment,
# this should be the newly refunded amount.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :amount
# If set to true, all shipping costs for the order will be refunded. If this is
# true, amount should not be provided and will be ignored.
# Corresponds to the JSON property `fullRefund`
# @return [Boolean]
attr_accessor :full_refund
alias_method :full_refund?, :full_refund
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@full_refund = args[:full_refund] if args.key?(:full_refund)
end
end
#
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
include Google::Apis::Core::Hashable
@ -6813,6 +6941,173 @@ module Google
end
end
#
class OrdersRefundItemRequest
include Google::Apis::Core::Hashable
# The items that are refunded. Either Item or Shipping must be provided in the
# request.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem>]
attr_accessor :items
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The reason for the refund.
# Acceptable values are:
# - "`shippingCostAdjustment`"
# - "`priceAdjustment`"
# - "`taxAdjustment`"
# - "`feeAdjustment`"
# - "`courtesyAdjustment`"
# - "`adjustment`"
# - "`customerCancelled`"
# - "`noInventory`"
# - "`productNotAsDescribed`"
# - "`undeliverableShippingAddress`"
# - "`wrongProductShipped`"
# - "`lateShipmentCredit`"
# - "`deliveredLateByCarrier`"
# - "`productArrivedDamaged`"
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
# The refund on shipping. Optional, but either Item or Shipping must be provided
# in the request.
# Corresponds to the JSON property `shipping`
# @return [Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping]
attr_accessor :shipping
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
@shipping = args[:shipping] if args.key?(:shipping)
end
end
#
class OrdersRefundItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Acceptable values are:
# - "`duplicate`"
# - "`executed`"
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersRefundItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrdersRefundOrderRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. If this is not the first refund for the order,
# this should be the newly refunded amount.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2_1::MonetaryAmount]
attr_accessor :amount
# If true, the full order will be refunded, including shipping. If this is true,
# amount should not be provided and will be ignored.
# Corresponds to the JSON property `fullRefund`
# @return [Boolean]
attr_accessor :full_refund
alias_method :full_refund?, :full_refund
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The reason for the refund.
# Acceptable values are:
# - "`courtesyAdjustment`"
# - "`other`"
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@full_refund = args[:full_refund] if args.key?(:full_refund)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersRefundOrderResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Acceptable values are:
# - "`duplicate`"
# - "`executed`"
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersRefundOrderResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrdersRejectReturnLineItemRequest
include Google::Apis::Core::Hashable
@ -7292,11 +7587,24 @@ module Google
# @return [String]
attr_accessor :delivery_date
# Date after which the pickup will expire, in ISO 8601 format. Required only
# when order is buy-online-pickup-in-store(BOPIS) and `status` is `ready for
# pickup`.
# Corresponds to the JSON property `lastPickupDate`
# @return [String]
attr_accessor :last_pickup_date
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# Date on which the shipment has been ready for pickup, in ISO 8601 format.
# Optional and can be provided only if `status` is `ready for pickup`.
# Corresponds to the JSON property `readyPickupDate`
# @return [String]
attr_accessor :ready_pickup_date
# The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -7306,6 +7614,7 @@ module Google
# Acceptable values are:
# - "`delivered`"
# - "`undeliverable`"
# - "`readyForPickup`"
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -7315,6 +7624,12 @@ module Google
# @return [String]
attr_accessor :tracking_id
# Date on which the shipment has been undeliverable, in ISO 8601 format.
# Optional and can be provided only if `status` is `undeliverable`.
# Corresponds to the JSON property `undeliveredDate`
# @return [String]
attr_accessor :undelivered_date
def initialize(**args)
update!(**args)
end
@ -7323,10 +7638,13 @@ module Google
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
@last_pickup_date = args[:last_pickup_date] if args.key?(:last_pickup_date)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@ready_pickup_date = args[:ready_pickup_date] if args.key?(:ready_pickup_date)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@status = args[:status] if args.key?(:status)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@undelivered_date = args[:undelivered_date] if args.key?(:undelivered_date)
end
end

View File

@ -748,6 +748,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrderOrderAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderPickupDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1000,6 +1006,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryRefundItemItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryRefundItemShipping
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1036,6 +1054,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRefundItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRefundItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRefundOrderRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRefundOrderResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRejectReturnLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2825,6 +2867,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :acknowledged, as: 'acknowledged'
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2_1::OrderOrderAnnotation, decorator: Google::Apis::ContentV2_1::OrderOrderAnnotation::Representation
property :billing_address, as: 'billingAddress', class: Google::Apis::ContentV2_1::OrderAddress, decorator: Google::Apis::ContentV2_1::OrderAddress::Representation
property :customer, as: 'customer', class: Google::Apis::ContentV2_1::OrderCustomer, decorator: Google::Apis::ContentV2_1::OrderCustomer::Representation
@ -3023,6 +3067,7 @@ module Google
property :deliver_by_date, as: 'deliverByDate'
property :method_prop, as: 'method', class: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod, decorator: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod::Representation
property :pickup_promise_in_minutes, as: 'pickupPromiseInMinutes'
property :ship_by_date, as: 'shipByDate'
property :type, as: 'type'
end
@ -3046,6 +3091,14 @@ module Google
end
end
class OrderOrderAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class OrderPickupDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3054,6 +3107,7 @@ module Google
collection :collectors, as: 'collectors', class: Google::Apis::ContentV2_1::OrderPickupDetailsCollector, decorator: Google::Apis::ContentV2_1::OrderPickupDetailsCollector::Representation
property :location_id, as: 'locationId'
property :pickup_type, as: 'pickupType'
end
end
@ -3462,6 +3516,27 @@ module Google
end
end
class OrdersCustomBatchRequestEntryRefundItemItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2_1::MonetaryAmount, decorator: Google::Apis::ContentV2_1::MonetaryAmount::Representation
property :full_refund, as: 'fullRefund'
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
end
end
class OrdersCustomBatchRequestEntryRefundItemShipping
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :full_refund, as: 'fullRefund'
end
end
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3523,6 +3598,47 @@ module Google
end
end
class OrdersRefundItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem, decorator: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem::Representation
property :operation_id, as: 'operationId'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
property :shipping, as: 'shipping', class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping, decorator: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping::Representation
end
end
class OrdersRefundItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersRefundOrderRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2_1::MonetaryAmount, decorator: Google::Apis::ContentV2_1::MonetaryAmount::Representation
property :full_refund, as: 'fullRefund'
property :operation_id, as: 'operationId'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersRefundOrderResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersRejectReturnLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3646,10 +3762,13 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :carrier, as: 'carrier'
property :delivery_date, as: 'deliveryDate'
property :last_pickup_date, as: 'lastPickupDate'
property :operation_id, as: 'operationId'
property :ready_pickup_date, as: 'readyPickupDate'
property :shipment_id, as: 'shipmentId'
property :status, as: 'status'
property :tracking_id, as: 'trackingId'
property :undelivered_date, as: 'undeliveredDate'
end
end

View File

@ -2463,6 +2463,86 @@ module Google
execute_or_queue_command(command, &block)
end
# Issues a partial or total refund for items and shipment.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order to refund.
# @param [Google::Apis::ContentV2_1::OrdersRefundItemRequest] orders_refund_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2_1::OrdersRefundItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2_1::OrdersRefundItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', options)
command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation
command.request_object = orders_refund_item_request_object
command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation
command.response_class = Google::Apis::ContentV2_1::OrdersRefundItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Issues a partial or total refund for an order.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order to refund.
# @param [Google::Apis::ContentV2_1::OrdersRefundOrderRequest] orders_refund_order_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2_1::OrdersRefundOrderResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2_1::OrdersRefundOrderResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', options)
command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation
command.request_object = orders_refund_order_request_object
command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation
command.response_class = Google::Apis::ContentV2_1::OrdersRefundOrderResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Rejects return on an line item.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/storage-transfer/docs
module StoragetransferV1
VERSION = 'V1'
REVISION = '20200316'
REVISION = '20200605'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -582,7 +582,8 @@ module Google
# @return [Google::Apis::StoragetransferV1::Status]
attr_accessor :error
# Represents the transfer operation object.
# Represents the transfer operation object. To request a TransferOperation
# object, use transferOperations.get.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1
VERSION = 'V1'
REVISION = '20200423'
REVISION = '20200602'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5264,7 +5264,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# Google Cloud Storage(GCS) URI that stores annotation results of one
# Google Cloud Storage URI that stores annotation results of one
# streaming session in JSON format.
# It is the annotation_result_storage_directory
# from the request followed by '/cloud_project_number-session_id'.

View File

@ -153,6 +153,38 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VideointelligenceV1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VideointelligenceV1::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_corpura_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::VideointelligenceV1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::VideointelligenceV1::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1beta2
VERSION = 'V1beta2'
REVISION = '20200423'
REVISION = '20200602'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5264,7 +5264,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# Google Cloud Storage(GCS) URI that stores annotation results of one
# Google Cloud Storage URI that stores annotation results of one
# streaming session in JSON format.
# It is the annotation_result_storage_directory
# from the request followed by '/cloud_project_number-session_id'.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200423'
REVISION = '20200602'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5264,7 +5264,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# Google Cloud Storage(GCS) URI that stores annotation results of one
# Google Cloud Storage URI that stores annotation results of one
# streaming session in JSON format.
# It is the annotation_result_storage_directory
# from the request followed by '/cloud_project_number-session_id'.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20200423'
REVISION = '20200602'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5264,7 +5264,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# Google Cloud Storage(GCS) URI that stores annotation results of one
# Google Cloud Storage URI that stores annotation results of one
# streaming session in JSON format.
# It is the annotation_result_storage_directory
# from the request followed by '/cloud_project_number-session_id'.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p3beta1
VERSION = 'V1p3beta1'
REVISION = '20200423'
REVISION = '20200602'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5252,7 +5252,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# Google Cloud Storage(GCS) URI that stores annotation results of one
# Google Cloud Storage URI that stores annotation results of one
# streaming session in JSON format.
# It is the annotation_result_storage_directory
# from the request followed by '/cloud_project_number-session_id'.