Regen APIs
This commit is contained in:
1 parent
372488e45b
commit
26173baf69
46 files changed
+2343
-42
No files matched your search
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/adsense/management/
|
||||
module AdsenseV1_4
|
||||
VERSION = 'V1_4'
|
||||
REVISION = '20160803'
|
||||
REVISION = '20160809'
|
||||
|
||||
# View and manage your AdSense data
|
||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/adsense/host/
|
||||
module AdsensehostV4_1
|
||||
VERSION = 'V4_1'
|
||||
REVISION = '20160803'
|
||||
REVISION = '20160809'
|
||||
|
||||
# View and manage your AdSense host data and associated accounts
|
||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/analytics/
|
||||
module AnalyticsV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160726'
|
||||
REVISION = '20160805'
|
||||
|
||||
# View and manage your Google Analytics data
|
||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||
|
||||
@@ -3187,6 +3187,133 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for an Analytics Remarketing Include Conditions.
|
||||
class IncludeConditions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The look-back window lets you specify a time frame for evaluating the behavior
|
||||
# that qualifies users for your audience. For example, if your filters include
|
||||
# users from Central Asia, and Transactions Greater than 2, and you set the look-
|
||||
# back window to 14 days, then any user from Central Asia whose cumulative
|
||||
# transactions exceed 2 during the last 14 days is added to the audience.
|
||||
# Corresponds to the JSON property `daysToLookBack`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :days_to_look_back
|
||||
|
||||
# Boolean indicating whether this segment is a smart list. https://support.
|
||||
# google.com/analytics/answer/4628577
|
||||
# Corresponds to the JSON property `isSmartList`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_smart_list
|
||||
alias_method :is_smart_list?, :is_smart_list
|
||||
|
||||
# Resource type for include conditions.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Number of days a user remains in the audience. Use any integer from 1-540. In
|
||||
# remarketing audiences for search ads, membership duration is truncated to 180
|
||||
# days.
|
||||
# Corresponds to the JSON property `membershipDurationDays`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :membership_duration_days
|
||||
|
||||
# The segment condition that will cause a user to be added to an audience.
|
||||
# Corresponds to the JSON property `segment`
|
||||
# @return [String]
|
||||
attr_accessor :segment
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@days_to_look_back = args[:days_to_look_back] if args.key?(:days_to_look_back)
|
||||
@is_smart_list = args[:is_smart_list] if args.key?(:is_smart_list)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@membership_duration_days = args[:membership_duration_days] if args.key?(:membership_duration_days)
|
||||
@segment = args[:segment] if args.key?(:segment)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for an Analytics Remarketing Audience Foreign Link.
|
||||
class LinkedForeignAccount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Account ID to which this linked foreign account belongs.
|
||||
# Corresponds to the JSON property `accountId`
|
||||
# @return [String]
|
||||
attr_accessor :account_id
|
||||
|
||||
# Boolean indicating whether this is eligible for search.
|
||||
# Corresponds to the JSON property `eligibleForSearch`
|
||||
# @return [Boolean]
|
||||
attr_accessor :eligible_for_search
|
||||
alias_method :eligible_for_search?, :eligible_for_search
|
||||
|
||||
# Entity ad account link ID.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Internal ID for the web property to which this linked foreign account belongs.
|
||||
# Corresponds to the JSON property `internalWebPropertyId`
|
||||
# @return [String]
|
||||
attr_accessor :internal_web_property_id
|
||||
|
||||
# Resource type for linked foreign account.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The foreign account ID. For example the an AdWords `linkedAccountId` has the
|
||||
# following format XXX-XXX-XXXX.
|
||||
# Corresponds to the JSON property `linkedAccountId`
|
||||
# @return [String]
|
||||
attr_accessor :linked_account_id
|
||||
|
||||
# Remarketing audience ID to which this linked foreign account belongs.
|
||||
# Corresponds to the JSON property `remarketingAudienceId`
|
||||
# @return [String]
|
||||
attr_accessor :remarketing_audience_id
|
||||
|
||||
# The status of this foreign account link.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# The type of the foreign account. For example `ADWORDS_LINKS`.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Web property ID of the form UA-XXXXX-YY to which this linked foreign account
|
||||
# belongs.
|
||||
# Corresponds to the JSON property `webPropertyId`
|
||||
# @return [String]
|
||||
attr_accessor :web_property_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@eligible_for_search = args[:eligible_for_search] if args.key?(:eligible_for_search)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
|
||||
@remarketing_audience_id = args[:remarketing_audience_id] if args.key?(:remarketing_audience_id)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@web_property_id = args[:web_property_id] if args.key?(:web_property_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Multi-Channel Funnels data for a given view (profile).
|
||||
class McfData
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4267,6 +4394,246 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for an Analytics remarketing audience.
|
||||
class RemarketingAudience
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Account ID to which this remarketing audience belongs.
|
||||
# Corresponds to the JSON property `accountId`
|
||||
# @return [String]
|
||||
attr_accessor :account_id
|
||||
|
||||
# The simple audience definition that will cause a user to be added to an
|
||||
# audience.
|
||||
# Corresponds to the JSON property `audienceDefinition`
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition]
|
||||
attr_accessor :audience_definition
|
||||
|
||||
# The type of audience, either SIMPLE or STATE_BASED.
|
||||
# Corresponds to the JSON property `audienceType`
|
||||
# @return [String]
|
||||
attr_accessor :audience_type
|
||||
|
||||
# Time this remarketing audience was created.
|
||||
# Corresponds to the JSON property `created`
|
||||
# @return [DateTime]
|
||||
attr_accessor :created
|
||||
|
||||
# The description of this remarketing audience.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Remarketing Audience ID.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Internal ID for the web property to which this remarketing audience belongs.
|
||||
# Corresponds to the JSON property `internalWebPropertyId`
|
||||
# @return [String]
|
||||
attr_accessor :internal_web_property_id
|
||||
|
||||
# Collection type.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The linked ad accounts associated with this remarketing audience. A
|
||||
# remarketing audience can have only one linkedAdAccount currently.
|
||||
# Corresponds to the JSON property `linkedAdAccounts`
|
||||
# @return [Array<Google::Apis::AnalyticsV3::LinkedForeignAccount>]
|
||||
attr_accessor :linked_ad_accounts
|
||||
|
||||
# The views (profiles) that this remarketing audience is linked to.
|
||||
# Corresponds to the JSON property `linkedViews`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :linked_views
|
||||
|
||||
# The name of this remarketing audience.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A state based audience definition that will cause a user to be added or
|
||||
# removed from an audience.
|
||||
# Corresponds to the JSON property `stateBasedAudienceDefinition`
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition]
|
||||
attr_accessor :state_based_audience_definition
|
||||
|
||||
# Time this remarketing audience was last modified.
|
||||
# Corresponds to the JSON property `updated`
|
||||
# @return [DateTime]
|
||||
attr_accessor :updated
|
||||
|
||||
# Web property ID of the form UA-XXXXX-YY to which this remarketing audience
|
||||
# belongs.
|
||||
# Corresponds to the JSON property `webPropertyId`
|
||||
# @return [String]
|
||||
attr_accessor :web_property_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@audience_definition = args[:audience_definition] if args.key?(:audience_definition)
|
||||
@audience_type = args[:audience_type] if args.key?(:audience_type)
|
||||
@created = args[:created] if args.key?(:created)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@linked_ad_accounts = args[:linked_ad_accounts] if args.key?(:linked_ad_accounts)
|
||||
@linked_views = args[:linked_views] if args.key?(:linked_views)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@state_based_audience_definition = args[:state_based_audience_definition] if args.key?(:state_based_audience_definition)
|
||||
@updated = args[:updated] if args.key?(:updated)
|
||||
@web_property_id = args[:web_property_id] if args.key?(:web_property_id)
|
||||
end
|
||||
|
||||
# The simple audience definition that will cause a user to be added to an
|
||||
# audience.
|
||||
class AudienceDefinition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# JSON template for an Analytics Remarketing Include Conditions.
|
||||
# Corresponds to the JSON property `includeConditions`
|
||||
# @return [Google::Apis::AnalyticsV3::IncludeConditions]
|
||||
attr_accessor :include_conditions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@include_conditions = args[:include_conditions] if args.key?(:include_conditions)
|
||||
end
|
||||
end
|
||||
|
||||
# A state based audience definition that will cause a user to be added or
|
||||
# removed from an audience.
|
||||
class StateBasedAudienceDefinition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Defines the conditions to exclude users from the audience.
|
||||
# Corresponds to the JSON property `excludeConditions`
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions]
|
||||
attr_accessor :exclude_conditions
|
||||
|
||||
# JSON template for an Analytics Remarketing Include Conditions.
|
||||
# Corresponds to the JSON property `includeConditions`
|
||||
# @return [Google::Apis::AnalyticsV3::IncludeConditions]
|
||||
attr_accessor :include_conditions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@exclude_conditions = args[:exclude_conditions] if args.key?(:exclude_conditions)
|
||||
@include_conditions = args[:include_conditions] if args.key?(:include_conditions)
|
||||
end
|
||||
|
||||
# Defines the conditions to exclude users from the audience.
|
||||
class ExcludeConditions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether to make the exclusion TEMPORARY or PERMANENT.
|
||||
# Corresponds to the JSON property `exclusionDuration`
|
||||
# @return [String]
|
||||
attr_accessor :exclusion_duration
|
||||
|
||||
# The segment condition that will cause a user to be removed from an audience.
|
||||
# Corresponds to the JSON property `segment`
|
||||
# @return [String]
|
||||
attr_accessor :segment
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
|
||||
@segment = args[:segment] if args.key?(:segment)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# A remarketing audience collection lists Analytics remarketing audiences to
|
||||
# which the user has access. Each resource in the collection corresponds to a
|
||||
# single Analytics remarketing audience.
|
||||
class RemarketingAudiences
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of remarketing audiences.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::AnalyticsV3::RemarketingAudience>]
|
||||
attr_accessor :items
|
||||
|
||||
# The maximum number of resources the response can contain, regardless of the
|
||||
# actual number of resources returned. Its value ranges from 1 to 1000 with a
|
||||
# value of 1000 by default, or otherwise specified by the max-results query
|
||||
# parameter.
|
||||
# Corresponds to the JSON property `itemsPerPage`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :items_per_page
|
||||
|
||||
# Collection type.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Link to next page for this remarketing audience collection.
|
||||
# Corresponds to the JSON property `nextLink`
|
||||
# @return [String]
|
||||
attr_accessor :next_link
|
||||
|
||||
# Link to previous page for this view (profile) collection.
|
||||
# Corresponds to the JSON property `previousLink`
|
||||
# @return [String]
|
||||
attr_accessor :previous_link
|
||||
|
||||
# The starting index of the resources, which is 1 by default or otherwise
|
||||
# specified by the start-index query parameter.
|
||||
# Corresponds to the JSON property `startIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :start_index
|
||||
|
||||
# The total number of results for the query, regardless of the number of results
|
||||
# in the response.
|
||||
# Corresponds to the JSON property `totalResults`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_results
|
||||
|
||||
# Email ID of the authenticated user
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@items_per_page = args[:items_per_page] if args.key?(:items_per_page)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_link = args[:next_link] if args.key?(:next_link)
|
||||
@previous_link = args[:previous_link] if args.key?(:previous_link)
|
||||
@start_index = args[:start_index] if args.key?(:start_index)
|
||||
@total_results = args[:total_results] if args.key?(:total_results)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for an Analytics segment.
|
||||
class Segment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -376,6 +376,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IncludeConditions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinkedForeignAccount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class McfData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -490,6 +502,36 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemarketingAudience
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class AudienceDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StateBasedAudienceDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class ExcludeConditions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemarketingAudiences
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Segment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1366,6 +1408,33 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class IncludeConditions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :days_to_look_back, as: 'daysToLookBack'
|
||||
property :is_smart_list, as: 'isSmartList'
|
||||
property :kind, as: 'kind'
|
||||
property :membership_duration_days, as: 'membershipDurationDays'
|
||||
property :segment, as: 'segment'
|
||||
end
|
||||
end
|
||||
|
||||
class LinkedForeignAccount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :eligible_for_search, as: 'eligibleForSearch'
|
||||
property :id, as: 'id'
|
||||
property :internal_web_property_id, as: 'internalWebPropertyId'
|
||||
property :kind, as: 'kind'
|
||||
property :linked_account_id, as: 'linkedAccountId'
|
||||
property :remarketing_audience_id, as: 'remarketingAudienceId'
|
||||
property :status, as: 'status'
|
||||
property :type, as: 'type'
|
||||
property :web_property_id, as: 'webPropertyId'
|
||||
end
|
||||
end
|
||||
|
||||
class McfData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1633,6 +1702,72 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RemarketingAudience
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :audience_definition, as: 'audienceDefinition', class: Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::AudienceDefinition::Representation
|
||||
|
||||
property :audience_type, as: 'audienceType'
|
||||
property :created, as: 'created', type: DateTime
|
||||
|
||||
property :description, as: 'description'
|
||||
property :id, as: 'id'
|
||||
property :internal_web_property_id, as: 'internalWebPropertyId'
|
||||
property :kind, as: 'kind'
|
||||
collection :linked_ad_accounts, as: 'linkedAdAccounts', class: Google::Apis::AnalyticsV3::LinkedForeignAccount, decorator: Google::Apis::AnalyticsV3::LinkedForeignAccount::Representation
|
||||
|
||||
collection :linked_views, as: 'linkedViews'
|
||||
property :name, as: 'name'
|
||||
property :state_based_audience_definition, as: 'stateBasedAudienceDefinition', class: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::Representation
|
||||
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :web_property_id, as: 'webPropertyId'
|
||||
end
|
||||
|
||||
class AudienceDefinition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :include_conditions, as: 'includeConditions', class: Google::Apis::AnalyticsV3::IncludeConditions, decorator: Google::Apis::AnalyticsV3::IncludeConditions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class StateBasedAudienceDefinition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :exclude_conditions, as: 'excludeConditions', class: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::StateBasedAudienceDefinition::ExcludeConditions::Representation
|
||||
|
||||
property :include_conditions, as: 'includeConditions', class: Google::Apis::AnalyticsV3::IncludeConditions, decorator: Google::Apis::AnalyticsV3::IncludeConditions::Representation
|
||||
|
||||
end
|
||||
|
||||
class ExcludeConditions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :exclusion_duration, as: 'exclusionDuration'
|
||||
property :segment, as: 'segment'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class RemarketingAudiences
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :items, as: 'items', class: Google::Apis::AnalyticsV3::RemarketingAudience, decorator: Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
|
||||
property :items_per_page, as: 'itemsPerPage'
|
||||
property :kind, as: 'kind'
|
||||
property :next_link, as: 'nextLink'
|
||||
property :previous_link, as: 'previousLink'
|
||||
property :start_index, as: 'startIndex'
|
||||
property :total_results, as: 'totalResults'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class Segment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -2450,6 +2450,224 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets remarketing audiences to which the user has access.
|
||||
# @param [String] account_id
|
||||
# Account ID for the remarketing audience to retrieve.
|
||||
# @param [String] web_property_id
|
||||
# Web property ID for the remarketing audience to retrieve.
|
||||
# @param [String] remarketing_audience_id
|
||||
# The ID to retrieve the Remarketing Audience for.
|
||||
# @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::AnalyticsV3::RemarketingAudience] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
|
||||
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||
command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_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
|
||||
|
||||
# Creates a new remarketing audiences.
|
||||
# @param [String] account_id
|
||||
# Account ID to create the remarketing audience for.
|
||||
# @param [String] web_property_id
|
||||
# Web property ID to create the remarketing audience for.
|
||||
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_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::AnalyticsV3::RemarketingAudience] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
||||
#
|
||||
# @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 insert_management_remarketing_audience(account_id, web_property_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
|
||||
command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.request_object = remarketing_audience_object
|
||||
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['webPropertyId'] = web_property_id unless web_property_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
|
||||
|
||||
# Lists remarketing audiences to which the user has access.
|
||||
# @param [String] account_id
|
||||
# Account ID for the remarketing audience to retrieve.
|
||||
# @param [String] web_property_id
|
||||
# Web property ID for the remarketing audience to retrieve.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of remarketing audiences to include in this response.
|
||||
# @param [Fixnum] start_index
|
||||
# An index of the first entity to retrieve. Use this parameter as a pagination
|
||||
# mechanism along with the max-results parameter.
|
||||
# @param [String] type
|
||||
# @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::AnalyticsV3::RemarketingAudiences] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudiences]
|
||||
#
|
||||
# @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 list_management_remarketing_audiences(account_id, web_property_id, max_results: nil, start_index: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
|
||||
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudiences::Representation
|
||||
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudiences
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||
command.query['max-results'] = max_results unless max_results.nil?
|
||||
command.query['start-index'] = start_index unless start_index.nil?
|
||||
command.query['type'] = type unless type.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 an existing remarketing audiences. This method supports patch
|
||||
# semantics.
|
||||
# @param [String] account_id
|
||||
# Account ID for the remarketing audience to update.
|
||||
# @param [String] web_property_id
|
||||
# Web property ID for the remarketing audience to update.
|
||||
# @param [String] remarketing_audience_id
|
||||
# Remarketing audience ID of the remarketing audience to update.
|
||||
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_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::AnalyticsV3::RemarketingAudience] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
||||
#
|
||||
# @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 patch_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
|
||||
command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.request_object = remarketing_audience_object
|
||||
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||
command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_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 an existing remarketing audiences.
|
||||
# @param [String] account_id
|
||||
# Account ID for the remarketing audience to update.
|
||||
# @param [String] web_property_id
|
||||
# Web property ID for the remarketing audience to update.
|
||||
# @param [String] remarketing_audience_id
|
||||
# Remarketing audience ID of the remarketing audience to update.
|
||||
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_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::AnalyticsV3::RemarketingAudience] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AnalyticsV3::RemarketingAudience]
|
||||
#
|
||||
# @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 update_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
|
||||
command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.request_object = remarketing_audience_object
|
||||
command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
|
||||
command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||
command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_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
|
||||
|
||||
# Lists segments to which the user has access.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of segments to include in this response.
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||
module AnalyticsreportingV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20160714'
|
||||
REVISION = '20160809'
|
||||
|
||||
# View your Google Analytics data
|
||||
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
||||
|
||||
@@ -992,13 +992,14 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of dimensions to show as pivot columns. A Pivot can have a maximum
|
||||
# of 4 dimensions.
|
||||
# of 4 dimensions. Pivot dimensions are part of the restriction on the
|
||||
# total number of dimensions allowed in the request.
|
||||
# Corresponds to the JSON property `dimensions`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::Dimension>]
|
||||
attr_accessor :dimensions
|
||||
|
||||
# The pivot metrics. Pivot metrics are part of the
|
||||
# restriction on total number of metrics in the request.
|
||||
# restriction on total number of metrics allowed in the request.
|
||||
# Corresponds to the JSON property `metrics`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::Metric>]
|
||||
attr_accessor :metrics
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/android/work/play/emm-api
|
||||
module AndroidenterpriseV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160727'
|
||||
REVISION = '20160803'
|
||||
|
||||
# Manage corporate Android devices
|
||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160722'
|
||||
REVISION = '20160809'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/games/services/web/api/states
|
||||
module AppstateV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160805'
|
||||
|
||||
# View and manage your data for this application
|
||||
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160729'
|
||||
REVISION = '20160804'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||
module CalendarV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160807'
|
||||
|
||||
# Manage your calendars
|
||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-builder/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160808'
|
||||
REVISION = '20160811'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -18,24 +18,21 @@ require 'google/apis/clouddebugger_v2/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Cloud Debugger API
|
||||
# Stackdriver Debugger API
|
||||
#
|
||||
# Examines the call stack and variables of a running application without
|
||||
# stopping or slowing it down.
|
||||
#
|
||||
# @see https://cloud.google.com/tools/cloud-debugger
|
||||
# @see http://cloud.google.com/debugger
|
||||
module ClouddebuggerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160602'
|
||||
REVISION = '20160810'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Manage cloud debugger
|
||||
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||
|
||||
# Manage active breakpoints in cloud debugger
|
||||
AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
||||
module Google
|
||||
module Apis
|
||||
module ClouddebuggerV2
|
||||
# Google Cloud Debugger API
|
||||
# Stackdriver Debugger API
|
||||
#
|
||||
# Examines the call stack and variables of a running application without
|
||||
# stopping or slowing it down.
|
||||
@@ -31,7 +31,7 @@ module Google
|
||||
# Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
|
||||
# service = Clouddebugger::CloudDebuggerService.new
|
||||
#
|
||||
# @see https://cloud.google.com/tools/cloud-debugger
|
||||
# @see http://cloud.google.com/debugger
|
||||
class CloudDebuggerService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160728'
|
||||
REVISION = '20160808'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
||||
@@ -1513,6 +1513,93 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class CarrierRate
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Carrier service, such as "UPS" or "Fedex". The list of supported carriers can
|
||||
# be retrieved via the getSupportedCarriers method. Required.
|
||||
# Corresponds to the JSON property `carrierName`
|
||||
# @return [String]
|
||||
attr_accessor :carrier_name
|
||||
|
||||
# Carrier service, such as "ground" or "2 days". The list of supported services
|
||||
# for a carrier can be retrieved via the getSupportedCarriers method. Required.
|
||||
# Corresponds to the JSON property `carrierService`
|
||||
# @return [String]
|
||||
attr_accessor :carrier_service
|
||||
|
||||
# Additive shipping rate modifier. Can be negative. For example ` "value": "1", "
|
||||
# currency" : "USD" ` adds $1 to the rate, ` "value": "-3", "currency" : "USD" `
|
||||
# removes $3 from the rate. Optional.
|
||||
# Corresponds to the JSON property `flatAdjustment`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :flat_adjustment
|
||||
|
||||
# Name of the carrier rate. Must be unique per rate group. Required.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Shipping origin for this carrier rate. Required.
|
||||
# Corresponds to the JSON property `originPostalCode`
|
||||
# @return [String]
|
||||
attr_accessor :origin_postal_code
|
||||
|
||||
# Multiplicative shipping rate modifier as a number in decimal notation. Can be
|
||||
# negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the
|
||||
# rate by 3%. Optional.
|
||||
# Corresponds to the JSON property `percentageAdjustment`
|
||||
# @return [String]
|
||||
attr_accessor :percentage_adjustment
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
|
||||
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
|
||||
@flat_adjustment = args[:flat_adjustment] if args.key?(:flat_adjustment)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
||||
@percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class CarriersCarrier
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The CLDR country code of the carrier (e.g., "US"). Always present.
|
||||
# Corresponds to the JSON property `country`
|
||||
# @return [String]
|
||||
attr_accessor :country
|
||||
|
||||
# The name of the carrier (e.g., "UPS"). Always present.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A list of supported services (e.g., "ground") for that carrier. Contains at
|
||||
# least one service.
|
||||
# Corresponds to the JSON property `services`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@country = args[:country] if args.key?(:country)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
end
|
||||
end
|
||||
|
||||
# Datafeed data.
|
||||
class Datafeed
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2130,6 +2217,34 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DeliveryTime
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Maximum number of business days that is spent in transit. 0 means same day
|
||||
# delivery, 1 means next day delivery. Must be greater than or equal to
|
||||
# minTransitTimeInDays. Required.
|
||||
# Corresponds to the JSON property `maxTransitTimeInDays`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_transit_time_in_days
|
||||
|
||||
# Minimum number of business days that is spent in transit. 0 means same day
|
||||
# delivery, 1 means next day delivery. Required.
|
||||
# Corresponds to the JSON property `minTransitTimeInDays`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :min_transit_time_in_days
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
|
||||
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
|
||||
end
|
||||
end
|
||||
|
||||
# An error returned by the API.
|
||||
class Error
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2192,6 +2307,63 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
||||
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
||||
class Headers
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of location ID sets. Must be non-empty. Can only be set if all other
|
||||
# fields are not set.
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Array<Google::Apis::ContentV2::LocationIdSet>]
|
||||
attr_accessor :locations
|
||||
|
||||
# A list of inclusive number of items upper bounds. The last value can be "
|
||||
# infinity". For example ["10", "50", "infinity"] represents the headers "<= 10
|
||||
# items", " 50 items". Must be non-empty. Can only be set if all other fields
|
||||
# are not set.
|
||||
# Corresponds to the JSON property `numberOfItems`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :number_of_items
|
||||
|
||||
# A list of postal group names. The last value can be "all other locations".
|
||||
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
|
||||
# groups must match the delivery country of the service. Must be non-empty. Can
|
||||
# only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `postalCodeGroupNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :postal_code_group_names
|
||||
|
||||
# be "infinity". For example [`"value": "10", "currency": "USD"`, `"value": "500"
|
||||
# , "currency": "USD"`, `"value": "infinity", "currency": "USD"`] represents the
|
||||
# headers "<= $10", " $500". All prices within a service must have the same
|
||||
# currency. Must be non-empty. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `prices`
|
||||
# @return [Array<Google::Apis::ContentV2::Price>]
|
||||
attr_accessor :prices
|
||||
|
||||
# be "infinity". For example [`"value": "10", "unit": "kg"`, `"value": "50", "
|
||||
# unit": "kg"`, `"value": "infinity", "unit": "kg"`] represents the headers "<=
|
||||
# 10kg", " 50kg". All weights within a service must have the same unit. Must be
|
||||
# non-empty. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `weights`
|
||||
# @return [Array<Google::Apis::ContentV2::Weight>]
|
||||
attr_accessor :weights
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@number_of_items = args[:number_of_items] if args.key?(:number_of_items)
|
||||
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
|
||||
@prices = args[:prices] if args.key?(:prices)
|
||||
@weights = args[:weights] if args.key?(:weights)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Installment
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2495,6 +2667,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LocationIdSet
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A non-empty list of location IDs. They must all be of the same location type (
|
||||
# e.g., state).
|
||||
# Corresponds to the JSON property `locationIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :location_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@location_ids = args[:location_ids] if args.key?(:location_ids)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LoyaltyPoints
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4534,6 +4726,71 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PostalCodeGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The CLDR territory code of the country the postal code group applies to.
|
||||
# Required.
|
||||
# Corresponds to the JSON property `country`
|
||||
# @return [String]
|
||||
attr_accessor :country
|
||||
|
||||
# The name of the postal code group, referred to in headers. Required.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A range of postal codes. Required.
|
||||
# Corresponds to the JSON property `postalCodeRanges`
|
||||
# @return [Array<Google::Apis::ContentV2::PostalCodeRange>]
|
||||
attr_accessor :postal_code_ranges
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@country = args[:country] if args.key?(:country)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PostalCodeRange
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A postal code or a pattern of the form prefix* denoting the inclusive lower
|
||||
# bound of the range defining the area. Examples values: "94108", "9410*", "9*".
|
||||
# Required.
|
||||
# Corresponds to the JSON property `postalCodeRangeBegin`
|
||||
# @return [String]
|
||||
attr_accessor :postal_code_range_begin
|
||||
|
||||
# A postal code or a pattern of the form prefix* denoting the inclusive upper
|
||||
# bound of the range defining the area. It must have the same length as
|
||||
# postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
|
||||
# postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
|
||||
# pattern then postalCodeRangeEnd must be a pattern with the same prefix length.
|
||||
# Optional: if not set, then the area is defined as being all the postal codes
|
||||
# matching postalCodeRangeBegin.
|
||||
# Corresponds to the JSON property `postalCodeRangeEnd`
|
||||
# @return [String]
|
||||
attr_accessor :postal_code_range_end
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin)
|
||||
@postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Price
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -5834,6 +6091,387 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class RateGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of shipping labels defining the products to which this rate group
|
||||
# applies to. This is a disjunction: only one of the labels has to match for the
|
||||
# rate group to apply. May only be empty for the last rate group of a service.
|
||||
# Required.
|
||||
# Corresponds to the JSON property `applicableShippingLabels`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :applicable_shipping_labels
|
||||
|
||||
# A list of carrier rates that can be referred to by mainTable or singleValue.
|
||||
# Corresponds to the JSON property `carrierRates`
|
||||
# @return [Array<Google::Apis::ContentV2::CarrierRate>]
|
||||
attr_accessor :carrier_rates
|
||||
|
||||
# A table defining the rate group, when singleValue is not expressive enough.
|
||||
# Can only be set if singleValue is not set.
|
||||
# Corresponds to the JSON property `mainTable`
|
||||
# @return [Google::Apis::ContentV2::Table]
|
||||
attr_accessor :main_table
|
||||
|
||||
# The single value of a rate group or the value of a rate group table's cell.
|
||||
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
||||
# subtableName must be set.
|
||||
# Corresponds to the JSON property `singleValue`
|
||||
# @return [Google::Apis::ContentV2::Value]
|
||||
attr_accessor :single_value
|
||||
|
||||
# A list of subtables referred to by mainTable. Can only be set if mainTable is
|
||||
# set.
|
||||
# Corresponds to the JSON property `subtables`
|
||||
# @return [Array<Google::Apis::ContentV2::Table>]
|
||||
attr_accessor :subtables
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels)
|
||||
@carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
|
||||
@main_table = args[:main_table] if args.key?(:main_table)
|
||||
@single_value = args[:single_value] if args.key?(:single_value)
|
||||
@subtables = args[:subtables] if args.key?(:subtables)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Row
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of cells that constitute the row. Must have the same length as
|
||||
# columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
|
||||
# tables. Required.
|
||||
# Corresponds to the JSON property `cells`
|
||||
# @return [Array<Google::Apis::ContentV2::Value>]
|
||||
attr_accessor :cells
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cells = args[:cells] if args.key?(:cells)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Service
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A boolean exposing the active status of the shipping service. Required.
|
||||
# Corresponds to the JSON property `active`
|
||||
# @return [Boolean]
|
||||
attr_accessor :active
|
||||
alias_method :active?, :active
|
||||
|
||||
# The CLDR code of the currency to which this service applies. Must match that
|
||||
# of the prices in rate groups.
|
||||
# Corresponds to the JSON property `currency`
|
||||
# @return [String]
|
||||
attr_accessor :currency
|
||||
|
||||
# The CLDR territory code of the country to which the service applies. Required.
|
||||
# Corresponds to the JSON property `deliveryCountry`
|
||||
# @return [String]
|
||||
attr_accessor :delivery_country
|
||||
|
||||
# Time spent in various aspects from order to the delivery of the product.
|
||||
# Required.
|
||||
# Corresponds to the JSON property `deliveryTime`
|
||||
# @return [Google::Apis::ContentV2::DeliveryTime]
|
||||
attr_accessor :delivery_time
|
||||
|
||||
# Free-form name of the service. Must be unique within target account. Required.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Shipping rate group definitions. Only the last one is allowed to have an empty
|
||||
# applicableShippingLabels, which means "everything else". The other
|
||||
# applicableShippingLabels must not overlap.
|
||||
# Corresponds to the JSON property `rateGroups`
|
||||
# @return [Array<Google::Apis::ContentV2::RateGroup>]
|
||||
attr_accessor :rate_groups
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@active = args[:active] if args.key?(:active)
|
||||
@currency = args[:currency] if args.key?(:currency)
|
||||
@delivery_country = args[:delivery_country] if args.key?(:delivery_country)
|
||||
@delivery_time = args[:delivery_time] if args.key?(:delivery_time)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@rate_groups = args[:rate_groups] if args.key?(:rate_groups)
|
||||
end
|
||||
end
|
||||
|
||||
# The merchant account's shipping settings.
|
||||
class ShippingSettings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the account to which these account shipping settings belong. Ignored
|
||||
# upon update, always present in get request responses.
|
||||
# Corresponds to the JSON property `accountId`
|
||||
# @return [String]
|
||||
attr_accessor :account_id
|
||||
|
||||
# A list of postal code groups that can be referred to in services. Optional.
|
||||
# Corresponds to the JSON property `postalCodeGroups`
|
||||
# @return [Array<Google::Apis::ContentV2::PostalCodeGroup>]
|
||||
attr_accessor :postal_code_groups
|
||||
|
||||
# The target account's list of services. Optional.
|
||||
# Corresponds to the JSON property `services`
|
||||
# @return [Array<Google::Apis::ContentV2::Service>]
|
||||
attr_accessor :services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsCustomBatchRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The request entries to be processed in the batch.
|
||||
# Corresponds to the JSON property `entries`
|
||||
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry>]
|
||||
attr_accessor :entries
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@entries = args[:entries] if args.key?(:entries)
|
||||
end
|
||||
end
|
||||
|
||||
# A batch entry encoding a single non-batch accountshipping request.
|
||||
class ShippingsettingsCustomBatchRequestEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the account for which to get/update account shipping settings.
|
||||
# Corresponds to the JSON property `accountId`
|
||||
# @return [String]
|
||||
attr_accessor :account_id
|
||||
|
||||
# An entry ID, unique within the batch request.
|
||||
# Corresponds to the JSON property `batchId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :batch_id
|
||||
|
||||
# The ID of the managing account.
|
||||
# Corresponds to the JSON property `merchantId`
|
||||
# @return [String]
|
||||
attr_accessor :merchant_id
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `method`
|
||||
# @return [String]
|
||||
attr_accessor :method_prop
|
||||
|
||||
# The merchant account's shipping settings.
|
||||
# Corresponds to the JSON property `shippingSettings`
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
attr_accessor :shipping_settings
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
||||
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
||||
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsCustomBatchResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The result of the execution of the batch requests.
|
||||
# Corresponds to the JSON property `entries`
|
||||
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry>]
|
||||
attr_accessor :entries
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsCustomBatchResponse".
|
||||
# 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)
|
||||
@entries = args[:entries] if args.key?(:entries)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
# A batch entry encoding a single non-batch shipping settings response.
|
||||
class ShippingsettingsCustomBatchResponseEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the request entry to which this entry responds.
|
||||
# Corresponds to the JSON property `batchId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :batch_id
|
||||
|
||||
# A list of errors returned by a failed batch entry.
|
||||
# Corresponds to the JSON property `errors`
|
||||
# @return [Google::Apis::ContentV2::Errors]
|
||||
attr_accessor :errors
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsCustomBatchResponseEntry".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The merchant account's shipping settings.
|
||||
# Corresponds to the JSON property `shippingSettings`
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
attr_accessor :shipping_settings
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@errors = args[:errors] if args.key?(:errors)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsGetSupportedCarriersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of supported carriers. May be empty.
|
||||
# Corresponds to the JSON property `carriers`
|
||||
# @return [Array<Google::Apis::ContentV2::CarriersCarrier>]
|
||||
attr_accessor :carriers
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsGetSupportedCarriersResponse".
|
||||
# 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)
|
||||
@carriers = args[:carriers] if args.key?(:carriers)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsListResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The token for the retrieval of the next page of shipping settings.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<Google::Apis::ContentV2::ShippingSettings>]
|
||||
attr_accessor :resources
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Table
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
||||
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
||||
# Corresponds to the JSON property `columnHeaders`
|
||||
# @return [Google::Apis::ContentV2::Headers]
|
||||
attr_accessor :column_headers
|
||||
|
||||
# Name of the table. Required for subtables, ignored for the main table.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
||||
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
||||
# Corresponds to the JSON property `rowHeaders`
|
||||
# @return [Google::Apis::ContentV2::Headers]
|
||||
attr_accessor :row_headers
|
||||
|
||||
# The list of rows that constitute the table. Must have the same length as
|
||||
# rowHeaders. Required.
|
||||
# Corresponds to the JSON property `rows`
|
||||
# @return [Array<Google::Apis::ContentV2::Row>]
|
||||
attr_accessor :rows
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@column_headers = args[:column_headers] if args.key?(:column_headers)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@row_headers = args[:row_headers] if args.key?(:row_headers)
|
||||
@rows = args[:rows] if args.key?(:rows)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TestOrder
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6117,6 +6755,56 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The single value of a rate group or the value of a rate group table's cell.
|
||||
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
||||
# subtableName must be set.
|
||||
class Value
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of a carrier rate referring to a carrier rate defined in the same
|
||||
# rate group. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `carrierRateName`
|
||||
# @return [String]
|
||||
attr_accessor :carrier_rate_name
|
||||
|
||||
# A flat rate. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `flatRate`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :flat_rate
|
||||
|
||||
# If true, then the product can't ship. Must be true when set, can only be set
|
||||
# if all other fields are not set.
|
||||
# Corresponds to the JSON property `noShipping`
|
||||
# @return [Boolean]
|
||||
attr_accessor :no_shipping
|
||||
alias_method :no_shipping?, :no_shipping
|
||||
|
||||
# A percentage of the price represented as a number in decimal notation (e.g., "
|
||||
# 5.4"). Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `pricePercentage`
|
||||
# @return [String]
|
||||
attr_accessor :price_percentage
|
||||
|
||||
# The name of a subtable. Can only be set in table cells (i.e., not for single
|
||||
# values), and only if all other fields are not set.
|
||||
# Corresponds to the JSON property `subtableName`
|
||||
# @return [String]
|
||||
attr_accessor :subtable_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name)
|
||||
@flat_rate = args[:flat_rate] if args.key?(:flat_rate)
|
||||
@no_shipping = args[:no_shipping] if args.key?(:no_shipping)
|
||||
@price_percentage = args[:price_percentage] if args.key?(:price_percentage)
|
||||
@subtable_name = args[:subtable_name] if args.key?(:subtable_name)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Weight
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -262,6 +262,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CarrierRate
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CarriersCarrier
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Datafeed
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -358,6 +370,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeliveryTime
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -370,6 +388,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Headers
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Installment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -418,6 +442,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LocationIdSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LoyaltyPoints
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -724,6 +754,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PostalCodeGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PostalCodeRange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Price
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -874,6 +916,72 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RateGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Row
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Service
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingSettings
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequestEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponseEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsGetSupportedCarriersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Table
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestOrder
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -904,6 +1012,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Value
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Weight
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1343,6 +1457,28 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CarrierRate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :carrier_name, as: 'carrierName'
|
||||
property :carrier_service, as: 'carrierService'
|
||||
property :flat_adjustment, as: 'flatAdjustment', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :origin_postal_code, as: 'originPostalCode'
|
||||
property :percentage_adjustment, as: 'percentageAdjustment'
|
||||
end
|
||||
end
|
||||
|
||||
class CarriersCarrier
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :country, as: 'country'
|
||||
property :name, as: 'name'
|
||||
collection :services, as: 'services'
|
||||
end
|
||||
end
|
||||
|
||||
class Datafeed
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1519,6 +1655,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class DeliveryTime
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
|
||||
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
|
||||
end
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1538,6 +1682,20 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Headers
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::ContentV2::LocationIdSet, decorator: Google::Apis::ContentV2::LocationIdSet::Representation
|
||||
|
||||
collection :number_of_items, as: 'numberOfItems'
|
||||
collection :postal_code_group_names, as: 'postalCodeGroupNames'
|
||||
collection :prices, as: 'prices', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
collection :weights, as: 'weights', class: Google::Apis::ContentV2::Weight, decorator: Google::Apis::ContentV2::Weight::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Installment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1630,6 +1788,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LocationIdSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :location_ids, as: 'locationIds'
|
||||
end
|
||||
end
|
||||
|
||||
class LoyaltyPoints
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2202,6 +2367,24 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class PostalCodeGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :country, as: 'country'
|
||||
property :name, as: 'name'
|
||||
collection :postal_code_ranges, as: 'postalCodeRanges', class: Google::Apis::ContentV2::PostalCodeRange, decorator: Google::Apis::ContentV2::PostalCodeRange::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PostalCodeRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :postal_code_range_begin, as: 'postalCodeRangeBegin'
|
||||
property :postal_code_range_end, as: 'postalCodeRangeEnd'
|
||||
end
|
||||
end
|
||||
|
||||
class Price
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2539,6 +2722,127 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RateGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :applicable_shipping_labels, as: 'applicableShippingLabels'
|
||||
collection :carrier_rates, as: 'carrierRates', class: Google::Apis::ContentV2::CarrierRate, decorator: Google::Apis::ContentV2::CarrierRate::Representation
|
||||
|
||||
property :main_table, as: 'mainTable', class: Google::Apis::ContentV2::Table, decorator: Google::Apis::ContentV2::Table::Representation
|
||||
|
||||
property :single_value, as: 'singleValue', class: Google::Apis::ContentV2::Value, decorator: Google::Apis::ContentV2::Value::Representation
|
||||
|
||||
collection :subtables, as: 'subtables', class: Google::Apis::ContentV2::Table, decorator: Google::Apis::ContentV2::Table::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Row
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :cells, as: 'cells', class: Google::Apis::ContentV2::Value, decorator: Google::Apis::ContentV2::Value::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Service
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :active, as: 'active'
|
||||
property :currency, as: 'currency'
|
||||
property :delivery_country, as: 'deliveryCountry'
|
||||
property :delivery_time, as: 'deliveryTime', class: Google::Apis::ContentV2::DeliveryTime, decorator: Google::Apis::ContentV2::DeliveryTime::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
collection :rate_groups, as: 'rateGroups', class: Google::Apis::ContentV2::RateGroup, decorator: Google::Apis::ContentV2::RateGroup::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingSettings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
collection :postal_code_groups, as: 'postalCodeGroups', class: Google::Apis::ContentV2::PostalCodeGroup, decorator: Google::Apis::ContentV2::PostalCodeGroup::Representation
|
||||
|
||||
collection :services, as: 'services', class: Google::Apis::ContentV2::Service, decorator: Google::Apis::ContentV2::Service::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequestEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :batch_id, as: 'batchId'
|
||||
property :merchant_id, as: 'merchantId'
|
||||
property :method_prop, as: 'method'
|
||||
property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponseEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :batch_id, as: 'batchId'
|
||||
property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsGetSupportedCarriersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :carriers, as: 'carriers', class: Google::Apis::ContentV2::CarriersCarrier, decorator: Google::Apis::ContentV2::CarriersCarrier::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :resources, as: 'resources', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Table
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :column_headers, as: 'columnHeaders', class: Google::Apis::ContentV2::Headers, decorator: Google::Apis::ContentV2::Headers::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :row_headers, as: 'rowHeaders', class: Google::Apis::ContentV2::Headers, decorator: Google::Apis::ContentV2::Headers::Representation
|
||||
|
||||
collection :rows, as: 'rows', class: Google::Apis::ContentV2::Row, decorator: Google::Apis::ContentV2::Row::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TestOrder
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2616,6 +2920,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Value
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :carrier_rate_name, as: 'carrierRateName'
|
||||
property :flat_rate, as: 'flatRate', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :no_shipping, as: 'noShipping'
|
||||
property :price_percentage, as: 'pricePercentage'
|
||||
property :subtable_name, as: 'subtableName'
|
||||
end
|
||||
end
|
||||
|
||||
class Weight
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -2324,6 +2324,250 @@ module Google
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves and updates the shipping settings of multiple accounts in a single
|
||||
# request.
|
||||
# @param [Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @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::ShippingsettingsCustomBatchResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse]
|
||||
#
|
||||
# @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 custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'shippingsettings/batch', options)
|
||||
command.request_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest::Representation
|
||||
command.request_object = shippingsettings_custom_batch_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse
|
||||
command.query['dryRun'] = dry_run unless dry_run.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
|
||||
|
||||
# Retrieves the shipping settings of the account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account for which to get/update shipping settings.
|
||||
# @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::ShippingSettings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_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
|
||||
|
||||
# Retrieves supported carriers and carrier services for an account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the account for which to retrieve the supported carriers.
|
||||
# @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::ShippingsettingsGetSupportedCarriersResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse]
|
||||
#
|
||||
# @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 getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_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
|
||||
|
||||
# Lists the shipping settings of the sub-accounts in your Merchant Center
|
||||
# account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of shipping settings to return in the response, used for
|
||||
# paging.
|
||||
# @param [String] page_token
|
||||
# The token returned by the previous request.
|
||||
# @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::ShippingsettingsListResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingsettingsListResponse]
|
||||
#
|
||||
# @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 list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingsettingsListResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingsettingsListResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.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 shipping settings of the account. This method supports patch
|
||||
# semantics.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account for which to get/update shipping settings.
|
||||
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @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::ShippingSettings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
#
|
||||
# @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 patch_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{merchantId}/shippingsettings/{accountId}', options)
|
||||
command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.request_object = shipping_settings_object
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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 shipping settings of the account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account for which to get/update shipping settings.
|
||||
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @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::ShippingSettings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
#
|
||||
# @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 update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
|
||||
command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.request_object = shipping_settings_object
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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
|
||||
|
||||
protected
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20160706'
|
||||
REVISION = '20160802'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -378,6 +378,16 @@ module Google
|
||||
# @return [Google::Apis::DatastoreV1beta3::Entity]
|
||||
attr_accessor :entity
|
||||
|
||||
# The version of the entity, a strictly positive number that monotonically
|
||||
# increases with changes to the entity.
|
||||
# This field is set for `FULL` entity results.
|
||||
# For missing entities in
|
||||
# `LookupResponse`, this is the version of the snapshot that was used to look
|
||||
# up the entity, and it is always set except for eventually consistent reads.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -386,6 +396,7 @@ module Google
|
||||
def update!(**args)
|
||||
@cursor = args[:cursor] if args.key?(:cursor)
|
||||
@entity = args[:entity] if args.key?(:entity)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -525,6 +536,17 @@ module Google
|
||||
class QueryResultBatch
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The version number of the snapshot this batch was returned from.
|
||||
# This applies to the range of results from the query's `start_cursor` (or
|
||||
# the beginning of the query if no cursor was given) to this batch's
|
||||
# `end_cursor` (not the query's `end_cursor`).
|
||||
# In a single transaction, subsequent query result batches for the same query
|
||||
# can have a greater snapshot version number. Each batch's snapshot version
|
||||
# is valid for all preceding batches.
|
||||
# Corresponds to the JSON property `snapshotVersion`
|
||||
# @return [String]
|
||||
attr_accessor :snapshot_version
|
||||
|
||||
# A cursor that points to the position after the last result in the batch.
|
||||
# Corresponds to the JSON property `endCursor`
|
||||
# @return [String]
|
||||
@@ -562,6 +584,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
||||
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
||||
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
||||
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
||||
@@ -740,6 +763,13 @@ module Google
|
||||
class MutationResult
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether a conflict was detected for this mutation. Always false when a
|
||||
# conflict detection strategy field is not set in the mutation.
|
||||
# Corresponds to the JSON property `conflictDetected`
|
||||
# @return [Boolean]
|
||||
attr_accessor :conflict_detected
|
||||
alias_method :conflict_detected?, :conflict_detected
|
||||
|
||||
# A unique identifier for an entity.
|
||||
# If a key's partition ID or any of its path kinds or names are
|
||||
# reserved/read-only, the key is reserved/read-only.
|
||||
@@ -748,13 +778,24 @@ module Google
|
||||
# @return [Google::Apis::DatastoreV1beta3::Key]
|
||||
attr_accessor :key
|
||||
|
||||
# The version of the entity on the server after processing the mutation. If
|
||||
# the mutation doesn't change anything on the server, then the version will
|
||||
# be the version of the current entity or, if no entity is present, a version
|
||||
# that is strictly greater than the version of any previous entity and less
|
||||
# than the version of any possible future entity.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1015,6 +1056,12 @@ module Google
|
||||
# @return [Google::Apis::DatastoreV1beta3::Entity]
|
||||
attr_accessor :update
|
||||
|
||||
# The version of the entity that this mutation is being applied to. If this
|
||||
# does not match the current version on the server, the mutation conflicts.
|
||||
# Corresponds to the JSON property `baseVersion`
|
||||
# @return [String]
|
||||
attr_accessor :base_version
|
||||
|
||||
# A Datastore data object.
|
||||
# An entity is limited to 1 megabyte when stored. That _roughly_
|
||||
# corresponds to a limit of 1 megabyte for the serialized form of this
|
||||
@@ -1039,6 +1086,7 @@ module Google
|
||||
def update!(**args)
|
||||
@insert = args[:insert] if args.key?(:insert)
|
||||
@update = args[:update] if args.key?(:update)
|
||||
@base_version = args[:base_version] if args.key?(:base_version)
|
||||
@upsert = args[:upsert] if args.key?(:upsert)
|
||||
@delete = args[:delete] if args.key?(:delete)
|
||||
end
|
||||
|
||||
@@ -309,6 +309,7 @@ module Google
|
||||
property :cursor, :base64 => true, as: 'cursor'
|
||||
property :entity, as: 'entity', class: Google::Apis::DatastoreV1beta3::Entity, decorator: Google::Apis::DatastoreV1beta3::Entity::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -357,6 +358,7 @@ module Google
|
||||
class QueryResultBatch
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :snapshot_version, as: 'snapshotVersion'
|
||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
|
||||
property :entity_result_type, as: 'entityResultType'
|
||||
@@ -426,8 +428,10 @@ module Google
|
||||
class MutationResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :conflict_detected, as: 'conflictDetected'
|
||||
property :key, as: 'key', class: Google::Apis::DatastoreV1beta3::Key, decorator: Google::Apis::DatastoreV1beta3::Key::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -506,6 +510,7 @@ module Google
|
||||
|
||||
property :update, as: 'update', class: Google::Apis::DatastoreV1beta3::Entity, decorator: Google::Apis::DatastoreV1beta3::Entity::Representation
|
||||
|
||||
property :base_version, as: 'baseVersion'
|
||||
property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1beta3::Entity, decorator: Google::Apis::DatastoreV1beta3::Entity::Representation
|
||||
|
||||
property :delete, as: 'delete', class: Google::Apis::DatastoreV1beta3::Key, decorator: Google::Apis::DatastoreV1beta3::Key::Representation
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/doubleclick-search/
|
||||
module DoubleclicksearchV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160727'
|
||||
REVISION = '20160803'
|
||||
|
||||
# View and manage your advertising data in DoubleClick Search
|
||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160801'
|
||||
REVISION = '20160805'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/drive/
|
||||
module DriveV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160801'
|
||||
REVISION = '20160805'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/games/services
|
||||
module GamesConfigurationV1configuration
|
||||
VERSION = 'V1configuration'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160805'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/games/services
|
||||
module GamesManagementV1management
|
||||
VERSION = 'V1management'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160805'
|
||||
|
||||
# Share your Google+ profile information and view and manage your game activity
|
||||
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/games/services/
|
||||
module GamesV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160805'
|
||||
|
||||
# View and manage its own configuration data in your Google Drive
|
||||
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/genomics/
|
||||
module GenomicsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160803'
|
||||
REVISION = '20160809'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
@@ -531,6 +531,17 @@ module Google
|
||||
# @return [Array<Google::Apis::GenomicsV1::Annotation>]
|
||||
attr_accessor :annotations
|
||||
|
||||
# A unique request ID which enables the server to detect duplicated requests. If
|
||||
# provided, duplicated requests will result in the same response; if not
|
||||
# provided, duplicated requests may result in duplicated data. For a given
|
||||
# annotation set, callers should not reuse `request_id`s when writing different
|
||||
# batches of annotations - behavior in this case is undefined. A common approach
|
||||
# is to use a UUID. For batch jobs where worker crashes are a possibility,
|
||||
# consider using some unique variant of a worker or run ID.
|
||||
# Corresponds to the JSON property `requestId`
|
||||
# @return [String]
|
||||
attr_accessor :request_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -538,6 +549,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@annotations = args[:annotations] if args.key?(:annotations)
|
||||
@request_id = args[:request_id] if args.key?(:request_id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -624,6 +624,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation
|
||||
|
||||
property :request_id, as: 'requestId'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/gmail/api/
|
||||
module GmailV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160803'
|
||||
REVISION = '20160711'
|
||||
|
||||
# View and manage your mail
|
||||
AUTH_SCOPE = 'https://mail.google.com/'
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/monitoring/api/
|
||||
module MonitoringV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160804'
|
||||
REVISION = '20160810'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -809,7 +809,8 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. A concise name for the monitored resource type that might be
|
||||
# displayed in user interfaces. For example, "Google Cloud SQL Database&
|
||||
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
||||
# any article or other determiners. For example, "Google Cloud SQL Database&
|
||||
# quot;.
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/accounts/docs/OAuth2
|
||||
module Oauth2V2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160729'
|
||||
REVISION = '20160804'
|
||||
|
||||
# Know the list of people in your circles, your age range, and language
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/speed/docs/insights/v2/getting-started
|
||||
module PagespeedonlineV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160615'
|
||||
REVISION = '20160811'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/+/domains/
|
||||
module PlusDomainsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160810'
|
||||
|
||||
# View your circles and the people and pages in them
|
||||
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/+/api/
|
||||
module PlusV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160810'
|
||||
|
||||
# Know the list of people in your circles, your age range, and language
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/sheets/
|
||||
module SheetsV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20160804'
|
||||
REVISION = '20160811'
|
||||
|
||||
# View the files in your Google Drive
|
||||
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/storage/docs/json_api/
|
||||
module StorageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160727'
|
||||
REVISION = '20160802'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -41,6 +41,12 @@ module Google
|
||||
# @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
|
||||
attr_accessor :default_object_acl
|
||||
|
||||
# Encryption configuration used by default for newly inserted objects, when no
|
||||
# encryption config is specified.
|
||||
# Corresponds to the JSON property `encryption`
|
||||
# @return [Google::Apis::StorageV1::Bucket::Encryption]
|
||||
attr_accessor :encryption
|
||||
|
||||
# HTTP 1.1 Entity tag for the bucket.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
@@ -139,6 +145,7 @@ module Google
|
||||
@acl = args[:acl] if args.key?(:acl)
|
||||
@cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
|
||||
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
|
||||
@encryption = args[:encryption] if args.key?(:encryption)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@@ -199,6 +206,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Encryption configuration used by default for newly inserted objects, when no
|
||||
# encryption config is specified.
|
||||
class Encryption
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `default_kms_key_name`
|
||||
# @return [String]
|
||||
attr_accessor :default_kms_key_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
|
||||
end
|
||||
end
|
||||
|
||||
# The bucket's lifecycle configuration. See lifecycle management for more
|
||||
# information.
|
||||
class Lifecycle
|
||||
@@ -829,6 +856,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Cloud KMS Key used to encrypt this object, if the object is encrypted by such
|
||||
# a key.
|
||||
# Corresponds to the JSON property `kmsKeyName`
|
||||
# @return [String]
|
||||
attr_accessor :kms_key_name
|
||||
|
||||
# MD5 hash of the data; encoded using base64. For more information about using
|
||||
# the MD5 hash, see Hashes and ETags: Best Practices.
|
||||
# Corresponds to the JSON property `md5Hash`
|
||||
@@ -914,6 +947,7 @@ module Google
|
||||
@generation = args[:generation] if args.key?(:generation)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
||||
@md5_hash = args[:md5_hash] if args.key?(:md5_hash)
|
||||
@media_link = args[:media_link] if args.key?(:media_link)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
|
||||
@@ -31,6 +31,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Encryption
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Lifecycle
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -187,6 +193,8 @@ module Google
|
||||
|
||||
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
|
||||
|
||||
property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
|
||||
|
||||
property :etag, as: 'etag'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
@@ -222,6 +230,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Encryption
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :default_kms_key_name, as: 'default_kms_key_name'
|
||||
end
|
||||
end
|
||||
|
||||
class Lifecycle
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -398,6 +413,7 @@ module Google
|
||||
property :generation, as: 'generation'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :kms_key_name, as: 'kmsKeyName'
|
||||
property :md5_hash, as: 'md5Hash'
|
||||
property :media_link, as: 'mediaLink'
|
||||
hash :metadata, as: 'metadata'
|
||||
|
||||
@@ -1154,6 +1154,10 @@ module Google
|
||||
# @param [String] if_metageneration_match
|
||||
# Makes the operation conditional on whether the object's current metageneration
|
||||
# matches the given value.
|
||||
# @param [String] kms_key_name
|
||||
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
|
||||
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
||||
# object. Overrides the object metadata's kms_key_name value, if any.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -1177,7 +1181,7 @@ module Google
|
||||
# @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 compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||
if download_dest.nil?
|
||||
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
||||
else
|
||||
@@ -1193,6 +1197,7 @@ module Google
|
||||
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
|
||||
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
||||
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
||||
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.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?
|
||||
@@ -1449,6 +1454,10 @@ module Google
|
||||
# @param [String] if_metageneration_not_match
|
||||
# Makes the operation conditional on whether the object's current metageneration
|
||||
# does not match the given value.
|
||||
# @param [String] kms_key_name
|
||||
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
|
||||
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
||||
# object. Overrides the object metadata's kms_key_name value, if any.
|
||||
# @param [String] name
|
||||
# Name of the object. Required when the object metadata is not otherwise
|
||||
# provided. Overrides the object metadata's name value, if any. For information
|
||||
@@ -1484,7 +1493,7 @@ module Google
|
||||
# @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 insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||
def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, kms_key_name: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||
if upload_source.nil?
|
||||
command = make_simple_command(:post, 'b/{bucket}/o', options)
|
||||
else
|
||||
@@ -1502,6 +1511,7 @@ module Google
|
||||
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
||||
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
||||
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
||||
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
|
||||
command.query['name'] = name unless name.nil?
|
||||
command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
|
||||
command.query['projection'] = projection unless projection.nil?
|
||||
@@ -1656,6 +1666,10 @@ module Google
|
||||
# about how to URL encode object names to be path safe, see Encoding URI Path
|
||||
# Parts.
|
||||
# @param [Google::Apis::StorageV1::Object] object_object
|
||||
# @param [String] destination_kms_key_name
|
||||
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
|
||||
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
||||
# object. Overrides the object metadata's kms_key_name value, if any.
|
||||
# @param [String] destination_predefined_acl
|
||||
# Apply a predefined set of access controls to the destination object.
|
||||
# @param [String] if_generation_match
|
||||
@@ -1722,7 +1736,7 @@ module Google
|
||||
# @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 rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
|
||||
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
||||
command.request_object = object_object
|
||||
@@ -1732,6 +1746,7 @@ module Google
|
||||
command.params['sourceObject'] = source_object unless source_object.nil?
|
||||
command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
|
||||
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
||||
command.query['destinationKmsKeyName'] = destination_kms_key_name unless destination_kms_key_name.nil?
|
||||
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
|
||||
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
||||
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/youtube/partner/
|
||||
module YoutubePartnerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160802'
|
||||
REVISION = '20160809'
|
||||
|
||||
# View and manage your assets and associated content on YouTube
|
||||
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
||||
|
||||
Reference in new issue
Block a user