generated/google/apis/content_v2/classes.rb in google-api-client-0.14.3 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.14.4

- old
+ new

@@ -76,10 +76,19 @@ # The merchant's website. # Corresponds to the JSON property `websiteUrl` # @return [String] attr_accessor :website_url + # List of linked YouTube channels that are active or pending approval. To create + # a new link request, add a new link with status active to the list. It will + # remain in a pending state until approved or rejected in the YT Creator Studio + # interface. To delete an active link, or to cancel a link request, remove it + # from the list. + # Corresponds to the JSON property `youtubeChannelLinks` + # @return [Array<Google::Apis::ContentV2::AccountYouTubeChannelLink>] + attr_accessor :youtube_channel_links + def initialize(**args) update!(**args) end # Update properties of this object @@ -91,10 +100,11 @@ @name = args[:name] if args.key?(:name) @reviews_url = args[:reviews_url] if args.key?(:reviews_url) @seller_id = args[:seller_id] if args.key?(:seller_id) @users = args[:users] if args.key?(:users) @website_url = args[:website_url] if args.key?(:website_url) + @youtube_channel_links = args[:youtube_channel_links] if args.key?(:youtube_channel_links) end end # class AccountAdwordsLink @@ -466,10 +476,43 @@ @email_address = args[:email_address] if args.key?(:email_address) end end # + class AccountYouTubeChannelLink + include Google::Apis::Core::Hashable + + # Channel ID. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + # Status of the link between this Merchant Center account and the YouTube + # channel. Upon retrieval, it represents the actual status of the link and can + # be either active if it was approved in YT Creator Studio or pending if it's + # pending approval. Upon insertion, it represents the intended status of the + # link. Re-uploading a link with status active when it's still pending or with + # status pending when it's already active will have no effect: the status will + # remain unchanged. Re-uploading a link with deprecated status inactive is + # equivalent to not submitting the link at all and will delete the link if it + # was active or cancel the link request if it was pending. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @status = args[:status] if args.key?(:status) + end + end + + # class AccountsAuthInfoResponse include Google::Apis::Core::Hashable # The account identifiers corresponding to the authenticated user. # - For an individual account: only the merchant ID is defined @@ -1091,12 +1134,12 @@ # data feed. # Corresponds to the JSON property `attributeLanguage` # @return [String] attr_accessor :attribute_language - # The two-letter ISO 639-1 language of the items in the feed. Must be a valid - # language for targetCountry. + # [DEPRECATED] Please use target.language instead. The two-letter ISO 639-1 + # language of the items in the feed. Must be a valid language for targetCountry. # Corresponds to the JSON property `contentLanguage` # @return [String] attr_accessor :content_language # The type of data feed. For product inventory feeds, only feeds for local @@ -1126,12 +1169,12 @@ # The ID of the data feed. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # The list of intended destinations (corresponds to checked check boxes in - # Merchant Center). + # [DEPRECATED] Please use target.includedDestination instead. The list of + # intended destinations (corresponds to checked check boxes in Merchant Center). # Corresponds to the JSON property `intendedDestinations` # @return [Array<String>] attr_accessor :intended_destinations # Identifies what kind of resource this is. Value: the fixed string "content# @@ -1143,16 +1186,22 @@ # A descriptive name of the data feed. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The country where the items in the feed will be included in the search index, - # represented as a CLDR territory code. + # [DEPRECATED] Please use target.country instead. The country where the items in + # the feed will be included in the search index, represented as a CLDR territory + # code. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country + # The targets this feed should apply to (country, language, destinations). + # Corresponds to the JSON property `targets` + # @return [Array<Google::Apis::ContentV2::DatafeedTarget>] + attr_accessor :targets + def initialize(**args) update!(**args) end # Update properties of this object @@ -1166,10 +1215,11 @@ @id = args[:id] if args.key?(:id) @intended_destinations = args[:intended_destinations] if args.key?(:intended_destinations) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @target_country = args[:target_country] if args.key?(:target_country) + @targets = args[:targets] if args.key?(:targets) end end # The required fields vary based on the frequency of fetching. For a monthly # fetch schedule, day_of_month and hour are required. For a weekly fetch @@ -1283,10 +1333,16 @@ # The status of a datafeed, i.e., the result of the last retrieval of the # datafeed computed asynchronously when the feed processing is finished. class DatafeedStatus include Google::Apis::Core::Hashable + # The country for which the status is reported, represented as a CLDR territory + # code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + # The ID of the feed for which the status is reported. # Corresponds to the JSON property `datafeedId` # @return [Fixnum] attr_accessor :datafeed_id @@ -1309,10 +1365,15 @@ # datafeedStatus". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # The two-letter ISO 639-1 language for which the status is reported. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + # The last date at which the feed was uploaded. # Corresponds to the JSON property `lastUploadDate` # @return [String] attr_accessor :last_upload_date @@ -1330,15 +1391,17 @@ update!(**args) end # Update properties of this object def update!(**args) + @country = args[:country] if args.key?(:country) @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) @errors = args[:errors] if args.key?(:errors) @items_total = args[:items_total] if args.key?(:items_total) @items_valid = args[:items_valid] if args.key?(:items_valid) @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date) @processing_status = args[:processing_status] if args.key?(:processing_status) @warnings = args[:warnings] if args.key?(:warnings) end end @@ -1410,10 +1473,52 @@ @value = args[:value] if args.key?(:value) end end # + class DatafeedTarget + include Google::Apis::Core::Hashable + + # The country where the items in the feed will be included in the search index, + # represented as a CLDR territory code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The list of destinations to exclude for this target (corresponds to unchecked + # check boxes in Merchant Center). + # Corresponds to the JSON property `excludedDestinations` + # @return [Array<String>] + attr_accessor :excluded_destinations + + # The list of destinations to include for this target (corresponds to checked + # check boxes in Merchant Center). Default destinations are always included + # unless provided in the excluded_destination field. + # Corresponds to the JSON property `includedDestinations` + # @return [Array<String>] + attr_accessor :included_destinations + + # The two-letter ISO 639-1 language of the items in the feed. Must be a valid + # language for targetCountryLanguage.country. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations) + @included_destinations = args[:included_destinations] if args.key?(:included_destinations) + @language = args[:language] if args.key?(:language) + end + end + + # class BatchDatafeedsRequest include Google::Apis::Core::Hashable # The request entries to be processed in the batch. # Corresponds to the JSON property `entries` @@ -1588,15 +1693,29 @@ # An entry ID, unique within the batch request. # Corresponds to the JSON property `batchId` # @return [Fixnum] attr_accessor :batch_id - # The ID of the data feed to get or delete. + # The country for which to get the datafeed status. If this parameter is + # provided then language must also be provided. Note that for multi-target + # datafeeds this parameter is required. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The ID of the data feed to get. # Corresponds to the JSON property `datafeedId` # @return [Fixnum] attr_accessor :datafeed_id + # The language for which to get the datafeed status. If this parameter is + # provided then country must also be provided. Note that for multi-target + # datafeeds this parameter is required. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + # The ID of the managing account. # Corresponds to the JSON property `merchantId` # @return [Fixnum] attr_accessor :merchant_id @@ -1610,11 +1729,13 @@ end # Update properties of this object def update!(**args) @batch_id = args[:batch_id] if args.key?(:batch_id) + @country = args[:country] if args.key?(:country) @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @language = args[:language] if args.key?(:language) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @request_method = args[:request_method] if args.key?(:request_method) end end @@ -2926,10 +3047,18 @@ # The billing phone number. # Corresponds to the JSON property `phoneNumber` # @return [String] attr_accessor :phone_number - # The type of instrument (VISA, Mastercard, etc). + # The type of instrument. + # Acceptable values are: + # - "AMEX" + # - "DISCOVER" + # - "JCB" + # - "MASTERCARD" + # - "UNIONPAY" + # - "VISA" + # - "" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args)