Autogenerated update (2017-12-13)
Update: - cloudbuild_v1 - content_v2 - content_v2sandbox - serviceconsumermanagement_v1 - toolresults_v1beta3 - youtubereporting_v1
This commit is contained in:
1 parent
8495ec3043
commit
5451b7230d
20 files changed
+1966
-47
No files matched your search
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-builder/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171128'
|
||||
REVISION = '20171212'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -165,6 +165,17 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :timeout
|
||||
|
||||
# Stores timing information for phases of the build.
|
||||
# Valid keys are:
|
||||
# - BUILD: time to execute all build steps
|
||||
# - PUSH: time to push all specified images.
|
||||
# - FETCHSOURCE: time to fetch source.
|
||||
# If the build does not specify source, or does not specify images,
|
||||
# these keys will not be included.
|
||||
# Corresponds to the JSON property `timing`
|
||||
# @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
|
||||
attr_accessor :timing
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -191,6 +202,7 @@ module Google
|
||||
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
||||
@tags = args[:tags] if args.key?(:tags)
|
||||
@timeout = args[:timeout] if args.key?(:timeout)
|
||||
@timing = args[:timing] if args.key?(:timing)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -343,6 +355,11 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :secret_env
|
||||
|
||||
# Stores start and end times for a build execution phase.
|
||||
# Corresponds to the JSON property `timing`
|
||||
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
||||
attr_accessor :timing
|
||||
|
||||
# List of volumes to mount into the build step.
|
||||
# Each volume will be created as an empty volume prior to execution of the
|
||||
# build step. Upon completion of the build, volumes and their contents will
|
||||
@@ -375,6 +392,7 @@ module Google
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
||||
@timing = args[:timing] if args.key?(:timing)
|
||||
@volumes = args[:volumes] if args.key?(:volumes)
|
||||
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
||||
end
|
||||
@@ -475,6 +493,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Stores start and end times for a build execution phase.
|
||||
# Corresponds to the JSON property `pushTiming`
|
||||
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
||||
attr_accessor :push_timing
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -483,6 +506,7 @@ module Google
|
||||
def update!(**args)
|
||||
@digest = args[:digest] if args.key?(:digest)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@push_timing = args[:push_timing] if args.key?(:push_timing)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1041,6 +1065,31 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Stores start and end times for a build execution phase.
|
||||
class TimeSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# End of time span.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Start of time span.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Volume describes a Docker container volume which is mounted into build steps
|
||||
# in order to persist files across build step execution.
|
||||
class Volume
|
||||
|
||||
@@ -160,6 +160,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TimeSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Volume
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -195,6 +201,8 @@ module Google
|
||||
hash :substitutions, as: 'substitutions'
|
||||
collection :tags, as: 'tags'
|
||||
property :timeout, as: 'timeout'
|
||||
hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -228,6 +236,8 @@ module Google
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
collection :secret_env, as: 'secretEnv'
|
||||
property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
||||
|
||||
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation
|
||||
|
||||
collection :wait_for, as: 'waitFor'
|
||||
@@ -255,6 +265,8 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :digest, as: 'digest'
|
||||
property :name, as: 'name'
|
||||
property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -405,6 +417,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class TimeSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Volume
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20171124'
|
||||
REVISION = '20171207'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
||||
@@ -2729,6 +2729,11 @@ module Google
|
||||
class OrderLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Annotations that are attached to the line item.
|
||||
# Corresponds to the JSON property `annotations`
|
||||
# @return [Array<Google::Apis::ContentV2::OrderMerchantProvidedAnnotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# Cancellations of the line item.
|
||||
# Corresponds to the JSON property `cancellations`
|
||||
# @return [Array<Google::Apis::ContentV2::OrderCancellation>]
|
||||
@@ -2807,6 +2812,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@cancellations = args[:cancellations] if args.key?(:cancellations)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@@ -3055,6 +3061,33 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderMerchantProvidedAnnotation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Key for additional merchant provided (as key-value pairs) annotation about the
|
||||
# line item.
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# Value for additional merchant provided (as key-value pairs) annotation about
|
||||
# the line item.
|
||||
# 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 OrderPaymentMethod
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -3760,11 +3793,21 @@ module Google
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
|
||||
attr_accessor :return_line_item
|
||||
|
||||
# Required for setLineItemMetadata method.
|
||||
# Corresponds to the JSON property `setLineItemMetadata`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata]
|
||||
attr_accessor :set_line_item_metadata
|
||||
|
||||
# Required for shipLineItems method.
|
||||
# Corresponds to the JSON property `shipLineItems`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems]
|
||||
attr_accessor :ship_line_items
|
||||
|
||||
# Required for updateLineItemShippingDate method.
|
||||
# Corresponds to the JSON property `updateLineItemShippingDetails`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails]
|
||||
attr_accessor :update_line_item_shipping_details
|
||||
|
||||
# Required for updateShipment method.
|
||||
# Corresponds to the JSON property `updateShipment`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment]
|
||||
@@ -3786,7 +3829,9 @@ module Google
|
||||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@refund = args[:refund] if args.key?(:refund)
|
||||
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
||||
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
|
||||
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
||||
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
|
||||
@update_shipment = args[:update_shipment] if args.key?(:update_shipment)
|
||||
end
|
||||
end
|
||||
@@ -3970,6 +4015,39 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `annotations`
|
||||
# @return [Array<Google::Apis::ContentV2::OrderMerchantProvidedAnnotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to set metadata. 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryShipLineItems
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4048,6 +4126,47 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `deliverByDate`
|
||||
# @return [String]
|
||||
attr_accessor :deliver_by_date
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to set metadata. 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
|
||||
|
||||
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `shipByDate`
|
||||
# @return [String]
|
||||
attr_accessor :ship_by_date
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4394,6 +4513,71 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `annotations`
|
||||
# @return [Array<Google::Apis::ContentV2::OrderMerchantProvidedAnnotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# 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 ID of the product to set metadata. 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersSetLineItemMetadataResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersSetLineItemMetadataResponse".
|
||||
# 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 OrdersShipLineItemsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4472,6 +4656,79 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersUpdateLineItemShippingDetailsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `deliverByDate`
|
||||
# @return [String]
|
||||
attr_accessor :deliver_by_date
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# 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 ID of the product to set metadata. 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
|
||||
|
||||
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `shipByDate`
|
||||
# @return [String]
|
||||
attr_accessor :ship_by_date
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersUpdateLineItemShippingDetailsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersUpdateLineItemShippingDetailsResponse".
|
||||
# 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 OrdersUpdateMerchantOrderIdRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -466,6 +466,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderMerchantProvidedAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderPaymentMethod
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -598,6 +604,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryShipLineItems
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -610,6 +622,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -670,6 +688,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersShipLineItemsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -682,6 +712,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersUpdateMerchantOrderIdRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1736,6 +1778,8 @@ module Google
|
||||
class OrderLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation::Representation
|
||||
|
||||
collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2::OrderCancellation, decorator: Google::Apis::ContentV2::OrderCancellation::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
@@ -1820,6 +1864,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrderMerchantProvidedAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderPaymentMethod
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2013,8 +2065,12 @@ module Google
|
||||
|
||||
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
||||
|
||||
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
|
||||
|
||||
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
||||
|
||||
property :update_line_item_shipping_details, as: 'updateLineItemShippingDetails', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails::Representation
|
||||
|
||||
property :update_shipment, as: 'updateShipment', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment::Representation
|
||||
|
||||
end
|
||||
@@ -2070,6 +2126,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryShipLineItems
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2092,6 +2158,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deliver_by_date, as: 'deliverByDate'
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :ship_by_date, as: 'shipByDate'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2195,6 +2271,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersShipLineItemsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2217,6 +2312,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deliver_by_date, as: 'deliverByDate'
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :ship_by_date, as: 'shipByDate'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersUpdateMerchantOrderIdRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -1779,6 +1779,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets (overrides) merchant provided annotations on the line item.
|
||||
# @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.
|
||||
# @param [Google::Apis::ContentV2::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse]
|
||||
#
|
||||
# @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 setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataRequest::Representation
|
||||
command.request_object = orders_set_line_item_metadata_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse
|
||||
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
|
||||
|
||||
# Marks line item(s) as shipped.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
@@ -1821,6 +1863,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates ship by and delivery by dates for a line item.
|
||||
# @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.
|
||||
# @param [Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse]
|
||||
#
|
||||
# @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 updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsRequest::Representation
|
||||
command.request_object = orders_update_line_item_shipping_details_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse
|
||||
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
|
||||
|
||||
# Updates the merchant order ID for a given order.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2sandbox
|
||||
VERSION = 'V2sandbox'
|
||||
REVISION = '20171124'
|
||||
REVISION = '20171207'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
||||
@@ -399,6 +399,11 @@ module Google
|
||||
class OrderLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Annotations that are attached to the line item.
|
||||
# Corresponds to the JSON property `annotations`
|
||||
# @return [Array<Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# Cancellations of the line item.
|
||||
# Corresponds to the JSON property `cancellations`
|
||||
# @return [Array<Google::Apis::ContentV2sandbox::OrderCancellation>]
|
||||
@@ -477,6 +482,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@cancellations = args[:cancellations] if args.key?(:cancellations)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@@ -725,6 +731,33 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrderMerchantProvidedAnnotation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Key for additional merchant provided (as key-value pairs) annotation about the
|
||||
# line item.
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# Value for additional merchant provided (as key-value pairs) annotation about
|
||||
# the line item.
|
||||
# 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 OrderPaymentMethod
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1430,11 +1463,21 @@ module Google
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem]
|
||||
attr_accessor :return_line_item
|
||||
|
||||
# Required for setLineItemMetadata method.
|
||||
# Corresponds to the JSON property `setLineItemMetadata`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata]
|
||||
attr_accessor :set_line_item_metadata
|
||||
|
||||
# Required for shipLineItems method.
|
||||
# Corresponds to the JSON property `shipLineItems`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems]
|
||||
attr_accessor :ship_line_items
|
||||
|
||||
# Required for updateLineItemShippingDate method.
|
||||
# Corresponds to the JSON property `updateLineItemShippingDetails`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails]
|
||||
attr_accessor :update_line_item_shipping_details
|
||||
|
||||
# Required for updateShipment method.
|
||||
# Corresponds to the JSON property `updateShipment`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment]
|
||||
@@ -1456,7 +1499,9 @@ module Google
|
||||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@refund = args[:refund] if args.key?(:refund)
|
||||
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
||||
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
|
||||
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
||||
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
|
||||
@update_shipment = args[:update_shipment] if args.key?(:update_shipment)
|
||||
end
|
||||
end
|
||||
@@ -1640,6 +1685,39 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `annotations`
|
||||
# @return [Array<Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to set metadata. 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryShipLineItems
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1718,6 +1796,47 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `deliverByDate`
|
||||
# @return [String]
|
||||
attr_accessor :deliver_by_date
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to set metadata. 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
|
||||
|
||||
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `shipByDate`
|
||||
# @return [String]
|
||||
attr_accessor :ship_by_date
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2064,6 +2183,71 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `annotations`
|
||||
# @return [Array<Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# 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 ID of the product to set metadata. 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersSetLineItemMetadataResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersSetLineItemMetadataResponse".
|
||||
# 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 OrdersShipLineItemsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2142,6 +2326,79 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersUpdateLineItemShippingDetailsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `deliverByDate`
|
||||
# @return [String]
|
||||
attr_accessor :deliver_by_date
|
||||
|
||||
# The ID of the line item to set metadata. Either lineItemId or productId is
|
||||
# required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# 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 ID of the product to set metadata. 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
|
||||
|
||||
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
|
||||
# date is updated.
|
||||
# Corresponds to the JSON property `shipByDate`
|
||||
# @return [String]
|
||||
attr_accessor :ship_by_date
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersUpdateLineItemShippingDetailsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersUpdateLineItemShippingDetailsResponse".
|
||||
# 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 OrdersUpdateMerchantOrderIdRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -100,6 +100,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderMerchantProvidedAnnotation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderPaymentMethod
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -232,6 +238,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryShipLineItems
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -244,6 +256,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -304,6 +322,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersShipLineItemsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -316,6 +346,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersUpdateMerchantOrderIdRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -477,6 +519,8 @@ module Google
|
||||
class OrderLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation::Representation
|
||||
|
||||
collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2sandbox::OrderCancellation, decorator: Google::Apis::ContentV2sandbox::OrderCancellation::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
@@ -561,6 +605,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrderMerchantProvidedAnnotation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class OrderPaymentMethod
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -754,8 +806,12 @@ module Google
|
||||
|
||||
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
||||
|
||||
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
|
||||
|
||||
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
||||
|
||||
property :update_line_item_shipping_details, as: 'updateLineItemShippingDetails', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails::Representation
|
||||
|
||||
property :update_shipment, as: 'updateShipment', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment::Representation
|
||||
|
||||
end
|
||||
@@ -811,6 +867,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryShipLineItems
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -833,6 +899,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deliver_by_date, as: 'deliverByDate'
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :ship_by_date, as: 'shipByDate'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -936,6 +1012,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersShipLineItemsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -958,6 +1053,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deliver_by_date, as: 'deliverByDate'
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :ship_by_date, as: 'shipByDate'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersUpdateLineItemShippingDetailsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersUpdateMerchantOrderIdRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -570,6 +570,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets (overrides) merchant provided annotations on the line item.
|
||||
# @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.
|
||||
# @param [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse]
|
||||
#
|
||||
# @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 setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
|
||||
command.request_representation = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataRequest::Representation
|
||||
command.request_object = orders_set_line_item_metadata_request_object
|
||||
command.response_representation = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse
|
||||
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
|
||||
|
||||
# Marks line item(s) as shipped.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
@@ -612,6 +654,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates ship by and delivery by dates for a line item.
|
||||
# @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.
|
||||
# @param [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse]
|
||||
#
|
||||
# @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 updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
|
||||
command.request_representation = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsRequest::Representation
|
||||
command.request_object = orders_update_line_item_shipping_details_request_object
|
||||
command.response_representation = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse
|
||||
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
|
||||
|
||||
# Updates the merchant order ID for a given order.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
||||
module ServiceconsumermanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171113'
|
||||
REVISION = '20171212'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -3834,7 +3834,8 @@ module Google
|
||||
class UsageRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# True, if the method allows unregistered calls; false otherwise.
|
||||
# If true, the selected method allows unregistered calls, e.g. calls
|
||||
# that don't identify any user or application.
|
||||
# Corresponds to the JSON property `allowUnregisteredCalls`
|
||||
# @return [Boolean]
|
||||
attr_accessor :allow_unregistered_calls
|
||||
@@ -3847,10 +3848,10 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :selector
|
||||
|
||||
# True, if the method should skip service control. If so, no control plane
|
||||
# feature (like quota and billing) will be enabled.
|
||||
# This flag is used by ESP to allow some Endpoints customers to bypass
|
||||
# Google internal checks.
|
||||
# If true, the selected method should skip service control and the control
|
||||
# plane features, such as quota and billing, will not be available.
|
||||
# This flag is used by Google Cloud Endpoints to bypass checks for internal
|
||||
# methods, such as service health check methods.
|
||||
# Corresponds to the JSON property `skipServiceControl`
|
||||
# @return [Boolean]
|
||||
attr_accessor :skip_service_control
|
||||
|
||||
@@ -136,6 +136,8 @@ module Google
|
||||
# create the requested Photo.
|
||||
# * google.rpc.Code.NOT_FOUND if the requested
|
||||
# Photo does not exist.
|
||||
# * google.rpc.Code.UNAVAILABLE if the requested
|
||||
# Photo is still being indexed.
|
||||
# @param [String] photo_id
|
||||
# Required. ID of the Photo.
|
||||
# @param [String] view
|
||||
@@ -230,6 +232,8 @@ module Google
|
||||
# create the requested photo.
|
||||
# * google.rpc.Code.INVALID_ARGUMENT if the request is malformed.
|
||||
# * google.rpc.Code.NOT_FOUND if the requested photo does not exist.
|
||||
# * google.rpc.Code.UNAVAILABLE if the requested
|
||||
# Photo is still being indexed.
|
||||
# @param [String] id
|
||||
# Required. A unique identifier for a photo.
|
||||
# @param [Google::Apis::StreetviewpublishV1::Photo] photo_object
|
||||
@@ -435,6 +439,8 @@ module Google
|
||||
|
||||
# Lists all the Photos that belong to
|
||||
# the user.
|
||||
# <aside class="note"><b>Note:</b> Recently created photos that are still
|
||||
# being indexed are not returned in the response.</aside>
|
||||
# @param [String] filter
|
||||
# The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
|
||||
# The only filter supported at the moment is `placeId`.
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://firebase.google.com/docs/test-lab/
|
||||
module ToolresultsV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20171205'
|
||||
REVISION = '20171211'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
||||
module YoutubereportingV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170425'
|
||||
REVISION = '20171211'
|
||||
|
||||
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
||||
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
||||
|
||||
@@ -41,6 +41,582 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataBlobstore2Info
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `blobGeneration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :blob_generation
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `blobId`
|
||||
# @return [String]
|
||||
attr_accessor :blob_id
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `downloadReadHandle`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :download_read_handle
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `readToken`
|
||||
# @return [String]
|
||||
attr_accessor :read_token
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `uploadMetadataContainer`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :upload_metadata_container
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@blob_generation = args[:blob_generation] if args.key?(:blob_generation)
|
||||
@blob_id = args[:blob_id] if args.key?(:blob_id)
|
||||
@download_read_handle = args[:download_read_handle] if args.key?(:download_read_handle)
|
||||
@read_token = args[:read_token] if args.key?(:read_token)
|
||||
@upload_metadata_container = args[:upload_metadata_container] if args.key?(:upload_metadata_container)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataCompositeMedia
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `blobRef`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :blob_ref
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `blobstore2Info`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataBlobstore2Info]
|
||||
attr_accessor :blobstore2_info
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `cosmoBinaryReference`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :cosmo_binary_reference
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `crc32cHash`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :crc32c_hash
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `inline`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :inline
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `length`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :length
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `md5Hash`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :md5_hash
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectId`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataObjectId]
|
||||
attr_accessor :object_id_prop
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `path`
|
||||
# @return [String]
|
||||
attr_accessor :path
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `referenceType`
|
||||
# @return [String]
|
||||
attr_accessor :reference_type
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `sha1Hash`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :sha1_hash
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@blob_ref = args[:blob_ref] if args.key?(:blob_ref)
|
||||
@blobstore2_info = args[:blobstore2_info] if args.key?(:blobstore2_info)
|
||||
@cosmo_binary_reference = args[:cosmo_binary_reference] if args.key?(:cosmo_binary_reference)
|
||||
@crc32c_hash = args[:crc32c_hash] if args.key?(:crc32c_hash)
|
||||
@inline = args[:inline] if args.key?(:inline)
|
||||
@length = args[:length] if args.key?(:length)
|
||||
@md5_hash = args[:md5_hash] if args.key?(:md5_hash)
|
||||
@object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
|
||||
@path = args[:path] if args.key?(:path)
|
||||
@reference_type = args[:reference_type] if args.key?(:reference_type)
|
||||
@sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataContentTypeInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `bestGuess`
|
||||
# @return [String]
|
||||
attr_accessor :best_guess
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `fromBytes`
|
||||
# @return [String]
|
||||
attr_accessor :from_bytes
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `fromFileName`
|
||||
# @return [String]
|
||||
attr_accessor :from_file_name
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `fromHeader`
|
||||
# @return [String]
|
||||
attr_accessor :from_header
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `fromUrlPath`
|
||||
# @return [String]
|
||||
attr_accessor :from_url_path
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@best_guess = args[:best_guess] if args.key?(:best_guess)
|
||||
@from_bytes = args[:from_bytes] if args.key?(:from_bytes)
|
||||
@from_file_name = args[:from_file_name] if args.key?(:from_file_name)
|
||||
@from_header = args[:from_header] if args.key?(:from_header)
|
||||
@from_url_path = args[:from_url_path] if args.key?(:from_url_path)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataDiffChecksumsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `checksumsLocation`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataCompositeMedia]
|
||||
attr_accessor :checksums_location
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `chunkSizeBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :chunk_size_bytes
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectLocation`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataCompositeMedia]
|
||||
attr_accessor :object_location
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectSizeBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :object_size_bytes
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectVersion`
|
||||
# @return [String]
|
||||
attr_accessor :object_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@checksums_location = args[:checksums_location] if args.key?(:checksums_location)
|
||||
@chunk_size_bytes = args[:chunk_size_bytes] if args.key?(:chunk_size_bytes)
|
||||
@object_location = args[:object_location] if args.key?(:object_location)
|
||||
@object_size_bytes = args[:object_size_bytes] if args.key?(:object_size_bytes)
|
||||
@object_version = args[:object_version] if args.key?(:object_version)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataDiffDownloadResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectLocation`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataCompositeMedia]
|
||||
attr_accessor :object_location
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@object_location = args[:object_location] if args.key?(:object_location)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataDiffUploadRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `checksumsInfo`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataCompositeMedia]
|
||||
attr_accessor :checksums_info
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectInfo`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataCompositeMedia]
|
||||
attr_accessor :object_info
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectVersion`
|
||||
# @return [String]
|
||||
attr_accessor :object_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@checksums_info = args[:checksums_info] if args.key?(:checksums_info)
|
||||
@object_info = args[:object_info] if args.key?(:object_info)
|
||||
@object_version = args[:object_version] if args.key?(:object_version)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataDiffUploadResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectVersion`
|
||||
# @return [String]
|
||||
attr_accessor :object_version
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `originalObject`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataCompositeMedia]
|
||||
attr_accessor :original_object
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@object_version = args[:object_version] if args.key?(:object_version)
|
||||
@original_object = args[:original_object] if args.key?(:original_object)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataDiffVersionResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectSizeBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :object_size_bytes
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectVersion`
|
||||
# @return [String]
|
||||
attr_accessor :object_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@object_size_bytes = args[:object_size_bytes] if args.key?(:object_size_bytes)
|
||||
@object_version = args[:object_version] if args.key?(:object_version)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataDownloadParameters
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `allowGzipCompression`
|
||||
# @return [Boolean]
|
||||
attr_accessor :allow_gzip_compression
|
||||
alias_method :allow_gzip_compression?, :allow_gzip_compression
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `ignoreRange`
|
||||
# @return [Boolean]
|
||||
attr_accessor :ignore_range
|
||||
alias_method :ignore_range?, :ignore_range
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@allow_gzip_compression = args[:allow_gzip_compression] if args.key?(:allow_gzip_compression)
|
||||
@ignore_range = args[:ignore_range] if args.key?(:ignore_range)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataMedia
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `algorithm`
|
||||
# @return [String]
|
||||
attr_accessor :algorithm
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `bigstoreObjectRef`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :bigstore_object_ref
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `blobRef`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :blob_ref
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `blobstore2Info`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataBlobstore2Info]
|
||||
attr_accessor :blobstore2_info
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `compositeMedia`
|
||||
# @return [Array<Google::Apis::YoutubereportingV1::GdataCompositeMedia>]
|
||||
attr_accessor :composite_media
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `contentType`
|
||||
# @return [String]
|
||||
attr_accessor :content_type
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `contentTypeInfo`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataContentTypeInfo]
|
||||
attr_accessor :content_type_info
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `cosmoBinaryReference`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :cosmo_binary_reference
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `crc32cHash`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :crc32c_hash
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `diffChecksumsResponse`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataDiffChecksumsResponse]
|
||||
attr_accessor :diff_checksums_response
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `diffDownloadResponse`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataDiffDownloadResponse]
|
||||
attr_accessor :diff_download_response
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `diffUploadRequest`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataDiffUploadRequest]
|
||||
attr_accessor :diff_upload_request
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `diffUploadResponse`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataDiffUploadResponse]
|
||||
attr_accessor :diff_upload_response
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `diffVersionResponse`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataDiffVersionResponse]
|
||||
attr_accessor :diff_version_response
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `downloadParameters`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataDownloadParameters]
|
||||
attr_accessor :download_parameters
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `filename`
|
||||
# @return [String]
|
||||
attr_accessor :filename
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `hash`
|
||||
# @return [String]
|
||||
attr_accessor :hash_prop
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `hashVerified`
|
||||
# @return [Boolean]
|
||||
attr_accessor :hash_verified
|
||||
alias_method :hash_verified?, :hash_verified
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `inline`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :inline
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `isPotentialRetry`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_potential_retry
|
||||
alias_method :is_potential_retry?, :is_potential_retry
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `length`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :length
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `md5Hash`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :md5_hash
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `mediaId`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :media_id
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectId`
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataObjectId]
|
||||
attr_accessor :object_id_prop
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `path`
|
||||
# @return [String]
|
||||
attr_accessor :path
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `referenceType`
|
||||
# @return [String]
|
||||
attr_accessor :reference_type
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `sha1Hash`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :sha1_hash
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `sha256Hash`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :sha256_hash
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :timestamp
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `token`
|
||||
# @return [String]
|
||||
attr_accessor :token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
||||
@bigstore_object_ref = args[:bigstore_object_ref] if args.key?(:bigstore_object_ref)
|
||||
@blob_ref = args[:blob_ref] if args.key?(:blob_ref)
|
||||
@blobstore2_info = args[:blobstore2_info] if args.key?(:blobstore2_info)
|
||||
@composite_media = args[:composite_media] if args.key?(:composite_media)
|
||||
@content_type = args[:content_type] if args.key?(:content_type)
|
||||
@content_type_info = args[:content_type_info] if args.key?(:content_type_info)
|
||||
@cosmo_binary_reference = args[:cosmo_binary_reference] if args.key?(:cosmo_binary_reference)
|
||||
@crc32c_hash = args[:crc32c_hash] if args.key?(:crc32c_hash)
|
||||
@diff_checksums_response = args[:diff_checksums_response] if args.key?(:diff_checksums_response)
|
||||
@diff_download_response = args[:diff_download_response] if args.key?(:diff_download_response)
|
||||
@diff_upload_request = args[:diff_upload_request] if args.key?(:diff_upload_request)
|
||||
@diff_upload_response = args[:diff_upload_response] if args.key?(:diff_upload_response)
|
||||
@diff_version_response = args[:diff_version_response] if args.key?(:diff_version_response)
|
||||
@download_parameters = args[:download_parameters] if args.key?(:download_parameters)
|
||||
@filename = args[:filename] if args.key?(:filename)
|
||||
@hash_prop = args[:hash_prop] if args.key?(:hash_prop)
|
||||
@hash_verified = args[:hash_verified] if args.key?(:hash_verified)
|
||||
@inline = args[:inline] if args.key?(:inline)
|
||||
@is_potential_retry = args[:is_potential_retry] if args.key?(:is_potential_retry)
|
||||
@length = args[:length] if args.key?(:length)
|
||||
@md5_hash = args[:md5_hash] if args.key?(:md5_hash)
|
||||
@media_id = args[:media_id] if args.key?(:media_id)
|
||||
@object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
|
||||
@path = args[:path] if args.key?(:path)
|
||||
@reference_type = args[:reference_type] if args.key?(:reference_type)
|
||||
@sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
|
||||
@sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
@token = args[:token] if args.key?(:token)
|
||||
end
|
||||
end
|
||||
|
||||
# gdata
|
||||
class GdataObjectId
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `bucketName`
|
||||
# @return [String]
|
||||
attr_accessor :bucket_name
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `generation`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :generation
|
||||
|
||||
# gdata
|
||||
# Corresponds to the JSON property `objectName`
|
||||
# @return [String]
|
||||
attr_accessor :object_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
||||
@generation = args[:generation] if args.key?(:generation)
|
||||
@object_name = args[:object_name] if args.key?(:object_name)
|
||||
end
|
||||
end
|
||||
|
||||
# A job creating reports of a specific type.
|
||||
class Job
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -181,25 +757,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Media resource.
|
||||
class Media
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the media resource.
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
attr_accessor :resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
# A report's metadata including the URL from which the report itself can be
|
||||
# downloaded.
|
||||
class Report
|
||||
|
||||
@@ -28,6 +28,72 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataBlobstore2Info
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataCompositeMedia
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataContentTypeInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataDiffChecksumsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataDiffDownloadResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataDiffUploadRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataDiffUploadResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataDiffVersionResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataDownloadParameters
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataMedia
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GdataObjectId
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Job
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -52,12 +118,6 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Media
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Report
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -76,6 +136,159 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GdataBlobstore2Info
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :blob_generation, :numeric_string => true, as: 'blobGeneration'
|
||||
property :blob_id, as: 'blobId'
|
||||
property :download_read_handle, :base64 => true, as: 'downloadReadHandle'
|
||||
property :read_token, as: 'readToken'
|
||||
property :upload_metadata_container, :base64 => true, as: 'uploadMetadataContainer'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataCompositeMedia
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :blob_ref, :base64 => true, as: 'blobRef'
|
||||
property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::YoutubereportingV1::GdataBlobstore2Info, decorator: Google::Apis::YoutubereportingV1::GdataBlobstore2Info::Representation
|
||||
|
||||
property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
|
||||
property :crc32c_hash, as: 'crc32cHash'
|
||||
property :inline, :base64 => true, as: 'inline'
|
||||
property :length, :numeric_string => true, as: 'length'
|
||||
property :md5_hash, :base64 => true, as: 'md5Hash'
|
||||
property :object_id_prop, as: 'objectId', class: Google::Apis::YoutubereportingV1::GdataObjectId, decorator: Google::Apis::YoutubereportingV1::GdataObjectId::Representation
|
||||
|
||||
property :path, as: 'path'
|
||||
property :reference_type, as: 'referenceType'
|
||||
property :sha1_hash, :base64 => true, as: 'sha1Hash'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataContentTypeInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :best_guess, as: 'bestGuess'
|
||||
property :from_bytes, as: 'fromBytes'
|
||||
property :from_file_name, as: 'fromFileName'
|
||||
property :from_header, as: 'fromHeader'
|
||||
property :from_url_path, as: 'fromUrlPath'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataDiffChecksumsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :checksums_location, as: 'checksumsLocation', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
property :chunk_size_bytes, :numeric_string => true, as: 'chunkSizeBytes'
|
||||
property :object_location, as: 'objectLocation', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
|
||||
property :object_version, as: 'objectVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataDiffDownloadResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :object_location, as: 'objectLocation', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GdataDiffUploadRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :checksums_info, as: 'checksumsInfo', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
property :object_info, as: 'objectInfo', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
property :object_version, as: 'objectVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataDiffUploadResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :object_version, as: 'objectVersion'
|
||||
property :original_object, as: 'originalObject', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GdataDiffVersionResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
|
||||
property :object_version, as: 'objectVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataDownloadParameters
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :allow_gzip_compression, as: 'allowGzipCompression'
|
||||
property :ignore_range, as: 'ignoreRange'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataMedia
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :algorithm, as: 'algorithm'
|
||||
property :bigstore_object_ref, :base64 => true, as: 'bigstoreObjectRef'
|
||||
property :blob_ref, :base64 => true, as: 'blobRef'
|
||||
property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::YoutubereportingV1::GdataBlobstore2Info, decorator: Google::Apis::YoutubereportingV1::GdataBlobstore2Info::Representation
|
||||
|
||||
collection :composite_media, as: 'compositeMedia', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
||||
|
||||
property :content_type, as: 'contentType'
|
||||
property :content_type_info, as: 'contentTypeInfo', class: Google::Apis::YoutubereportingV1::GdataContentTypeInfo, decorator: Google::Apis::YoutubereportingV1::GdataContentTypeInfo::Representation
|
||||
|
||||
property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
|
||||
property :crc32c_hash, as: 'crc32cHash'
|
||||
property :diff_checksums_response, as: 'diffChecksumsResponse', class: Google::Apis::YoutubereportingV1::GdataDiffChecksumsResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffChecksumsResponse::Representation
|
||||
|
||||
property :diff_download_response, as: 'diffDownloadResponse', class: Google::Apis::YoutubereportingV1::GdataDiffDownloadResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffDownloadResponse::Representation
|
||||
|
||||
property :diff_upload_request, as: 'diffUploadRequest', class: Google::Apis::YoutubereportingV1::GdataDiffUploadRequest, decorator: Google::Apis::YoutubereportingV1::GdataDiffUploadRequest::Representation
|
||||
|
||||
property :diff_upload_response, as: 'diffUploadResponse', class: Google::Apis::YoutubereportingV1::GdataDiffUploadResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffUploadResponse::Representation
|
||||
|
||||
property :diff_version_response, as: 'diffVersionResponse', class: Google::Apis::YoutubereportingV1::GdataDiffVersionResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffVersionResponse::Representation
|
||||
|
||||
property :download_parameters, as: 'downloadParameters', class: Google::Apis::YoutubereportingV1::GdataDownloadParameters, decorator: Google::Apis::YoutubereportingV1::GdataDownloadParameters::Representation
|
||||
|
||||
property :filename, as: 'filename'
|
||||
property :hash_prop, as: 'hash'
|
||||
property :hash_verified, as: 'hashVerified'
|
||||
property :inline, :base64 => true, as: 'inline'
|
||||
property :is_potential_retry, as: 'isPotentialRetry'
|
||||
property :length, :numeric_string => true, as: 'length'
|
||||
property :md5_hash, :base64 => true, as: 'md5Hash'
|
||||
property :media_id, :base64 => true, as: 'mediaId'
|
||||
property :object_id_prop, as: 'objectId', class: Google::Apis::YoutubereportingV1::GdataObjectId, decorator: Google::Apis::YoutubereportingV1::GdataObjectId::Representation
|
||||
|
||||
property :path, as: 'path'
|
||||
property :reference_type, as: 'referenceType'
|
||||
property :sha1_hash, :base64 => true, as: 'sha1Hash'
|
||||
property :sha256_hash, :base64 => true, as: 'sha256Hash'
|
||||
property :timestamp, :numeric_string => true, as: 'timestamp'
|
||||
property :token, as: 'token'
|
||||
end
|
||||
end
|
||||
|
||||
class GdataObjectId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bucket_name, as: 'bucketName'
|
||||
property :generation, :numeric_string => true, as: 'generation'
|
||||
property :object_name, as: 'objectName'
|
||||
end
|
||||
end
|
||||
|
||||
class Job
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -115,13 +328,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Media
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class Report
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -305,10 +305,10 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
|
||||
# @yieldparam result [Google::Apis::YoutubereportingV1::GdataMedia] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::YoutubereportingV1::Media]
|
||||
# @return [Google::Apis::YoutubereportingV1::GdataMedia]
|
||||
#
|
||||
# @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
|
||||
@@ -320,8 +320,8 @@ module Google
|
||||
command = make_download_command(:get, 'v1/media/{+resourceName}', options)
|
||||
command.download_dest = download_dest
|
||||
end
|
||||
command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
|
||||
command.response_class = Google::Apis::YoutubereportingV1::Media
|
||||
command.response_representation = Google::Apis::YoutubereportingV1::GdataMedia::Representation
|
||||
command.response_class = Google::Apis::YoutubereportingV1::GdataMedia
|
||||
command.params['resourceName'] = resource_name unless resource_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
|
||||
Reference in new issue
Block a user