google-apis-merchantapi_datasources_v1beta 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/merchantapi_datasources_v1beta/classes.rb +582 -0
- data/lib/google/apis/merchantapi_datasources_v1beta/gem_version.rb +28 -0
- data/lib/google/apis/merchantapi_datasources_v1beta/representations.rb +255 -0
- data/lib/google/apis/merchantapi_datasources_v1beta/service.rb +279 -0
- data/lib/google/apis/merchantapi_datasources_v1beta.rb +36 -0
- data/lib/google-apis-merchantapi_datasources_v1beta.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,582 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module MerchantapiDatasourcesV1beta
|
24
|
+
|
25
|
+
# The [data source](https://support.google.com/merchants/answer/7439058) for the
|
26
|
+
# Merchant Center account.
|
27
|
+
class DataSource
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# Output only. The data source id.
|
31
|
+
# Corresponds to the JSON property `dataSourceId`
|
32
|
+
# @return [Fixnum]
|
33
|
+
attr_accessor :data_source_id
|
34
|
+
|
35
|
+
# Required. The displayed data source name in the Merchant Center UI.
|
36
|
+
# Corresponds to the JSON property `displayName`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :display_name
|
39
|
+
|
40
|
+
# The data specific for file data sources. This field is empty for other data
|
41
|
+
# source inputs.
|
42
|
+
# Corresponds to the JSON property `fileInput`
|
43
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::FileInput]
|
44
|
+
attr_accessor :file_input
|
45
|
+
|
46
|
+
# Output only. Determines the type of input to the data source. Based on the
|
47
|
+
# input some settings might not work. Only generic data sources can be created
|
48
|
+
# through the API.
|
49
|
+
# Corresponds to the JSON property `input`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :input
|
52
|
+
|
53
|
+
# The local inventory data source.
|
54
|
+
# Corresponds to the JSON property `localInventoryDataSource`
|
55
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::LocalInventoryDataSource]
|
56
|
+
attr_accessor :local_inventory_data_source
|
57
|
+
|
58
|
+
# Identifier. The name of the data source. Format: ``datasource.name=accounts/`
|
59
|
+
# account`/dataSources/`datasource```
|
60
|
+
# Corresponds to the JSON property `name`
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :name
|
63
|
+
|
64
|
+
# The primary data source for local and online products.
|
65
|
+
# Corresponds to the JSON property `primaryProductDataSource`
|
66
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource]
|
67
|
+
attr_accessor :primary_product_data_source
|
68
|
+
|
69
|
+
# The promotion data source.
|
70
|
+
# Corresponds to the JSON property `promotionDataSource`
|
71
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource]
|
72
|
+
attr_accessor :promotion_data_source
|
73
|
+
|
74
|
+
# The regional inventory data source.
|
75
|
+
# Corresponds to the JSON property `regionalInventoryDataSource`
|
76
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::RegionalInventoryDataSource]
|
77
|
+
attr_accessor :regional_inventory_data_source
|
78
|
+
|
79
|
+
# The supplemental data source for local and online products.
|
80
|
+
# Corresponds to the JSON property `supplementalProductDataSource`
|
81
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource]
|
82
|
+
attr_accessor :supplemental_product_data_source
|
83
|
+
|
84
|
+
def initialize(**args)
|
85
|
+
update!(**args)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Update properties of this object
|
89
|
+
def update!(**args)
|
90
|
+
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
91
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
92
|
+
@file_input = args[:file_input] if args.key?(:file_input)
|
93
|
+
@input = args[:input] if args.key?(:input)
|
94
|
+
@local_inventory_data_source = args[:local_inventory_data_source] if args.key?(:local_inventory_data_source)
|
95
|
+
@name = args[:name] if args.key?(:name)
|
96
|
+
@primary_product_data_source = args[:primary_product_data_source] if args.key?(:primary_product_data_source)
|
97
|
+
@promotion_data_source = args[:promotion_data_source] if args.key?(:promotion_data_source)
|
98
|
+
@regional_inventory_data_source = args[:regional_inventory_data_source] if args.key?(:regional_inventory_data_source)
|
99
|
+
@supplemental_product_data_source = args[:supplemental_product_data_source] if args.key?(:supplemental_product_data_source)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
104
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
105
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
106
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
107
|
+
class Empty
|
108
|
+
include Google::Apis::Core::Hashable
|
109
|
+
|
110
|
+
def initialize(**args)
|
111
|
+
update!(**args)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Update properties of this object
|
115
|
+
def update!(**args)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# Request message for the FetchDataSource method.
|
120
|
+
class FetchDataSourceRequest
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
def initialize(**args)
|
124
|
+
update!(**args)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Update properties of this object
|
128
|
+
def update!(**args)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# Fetch details to deliver the data source.
|
133
|
+
class FetchSettings
|
134
|
+
include Google::Apis::Core::Hashable
|
135
|
+
|
136
|
+
# Optional. The day of the month when the data source file should be fetched (1-
|
137
|
+
# 31). This field can only be set for monthly frequency.
|
138
|
+
# Corresponds to the JSON property `dayOfMonth`
|
139
|
+
# @return [Fixnum]
|
140
|
+
attr_accessor :day_of_month
|
141
|
+
|
142
|
+
# Optional. The day of the week when the data source file should be fetched.
|
143
|
+
# This field can only be set for weekly frequency.
|
144
|
+
# Corresponds to the JSON property `dayOfWeek`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :day_of_week
|
147
|
+
|
148
|
+
# Optional. Enables or pauses the fetch schedule.
|
149
|
+
# Corresponds to the JSON property `enabled`
|
150
|
+
# @return [Boolean]
|
151
|
+
attr_accessor :enabled
|
152
|
+
alias_method :enabled?, :enabled
|
153
|
+
|
154
|
+
# Optional. The URL where the data source file can be fetched. Google Merchant
|
155
|
+
# Center supports automatic scheduled uploads using the HTTP, HTTPS or SFTP
|
156
|
+
# protocols, so the value will need to be a valid link using one of those three
|
157
|
+
# protocols. Immutable for Google Sheets files.
|
158
|
+
# Corresponds to the JSON property `fetchUri`
|
159
|
+
# @return [String]
|
160
|
+
attr_accessor :fetch_uri
|
161
|
+
|
162
|
+
# Required. The frequency describing fetch schedule.
|
163
|
+
# Corresponds to the JSON property `frequency`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :frequency
|
166
|
+
|
167
|
+
# Optional. An optional password for fetch url. Used for [submitting data
|
168
|
+
# sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
169
|
+
# Corresponds to the JSON property `password`
|
170
|
+
# @return [String]
|
171
|
+
attr_accessor :password
|
172
|
+
|
173
|
+
# Represents a time of day. The date and time zone are either not significant or
|
174
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
175
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
176
|
+
# Corresponds to the JSON property `timeOfDay`
|
177
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::TimeOfDay]
|
178
|
+
attr_accessor :time_of_day
|
179
|
+
|
180
|
+
# Optional. [Time zone](https://cldr.unicode.org) used for schedule. UTC by
|
181
|
+
# default. For example, "America/Los_Angeles".
|
182
|
+
# Corresponds to the JSON property `timeZone`
|
183
|
+
# @return [String]
|
184
|
+
attr_accessor :time_zone
|
185
|
+
|
186
|
+
# Optional. An optional user name for fetch url. Used for [submitting data
|
187
|
+
# sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
188
|
+
# Corresponds to the JSON property `username`
|
189
|
+
# @return [String]
|
190
|
+
attr_accessor :username
|
191
|
+
|
192
|
+
def initialize(**args)
|
193
|
+
update!(**args)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Update properties of this object
|
197
|
+
def update!(**args)
|
198
|
+
@day_of_month = args[:day_of_month] if args.key?(:day_of_month)
|
199
|
+
@day_of_week = args[:day_of_week] if args.key?(:day_of_week)
|
200
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
201
|
+
@fetch_uri = args[:fetch_uri] if args.key?(:fetch_uri)
|
202
|
+
@frequency = args[:frequency] if args.key?(:frequency)
|
203
|
+
@password = args[:password] if args.key?(:password)
|
204
|
+
@time_of_day = args[:time_of_day] if args.key?(:time_of_day)
|
205
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
206
|
+
@username = args[:username] if args.key?(:username)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# The data specific for file data sources. This field is empty for other data
|
211
|
+
# source inputs.
|
212
|
+
class FileInput
|
213
|
+
include Google::Apis::Core::Hashable
|
214
|
+
|
215
|
+
# Fetch details to deliver the data source.
|
216
|
+
# Corresponds to the JSON property `fetchSettings`
|
217
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::FetchSettings]
|
218
|
+
attr_accessor :fetch_settings
|
219
|
+
|
220
|
+
# Output only. The type of file input.
|
221
|
+
# Corresponds to the JSON property `fileInputType`
|
222
|
+
# @return [String]
|
223
|
+
attr_accessor :file_input_type
|
224
|
+
|
225
|
+
# Optional. The file name of the data source. Required for `UPLOAD` file input
|
226
|
+
# type.
|
227
|
+
# Corresponds to the JSON property `fileName`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :file_name
|
230
|
+
|
231
|
+
def initialize(**args)
|
232
|
+
update!(**args)
|
233
|
+
end
|
234
|
+
|
235
|
+
# Update properties of this object
|
236
|
+
def update!(**args)
|
237
|
+
@fetch_settings = args[:fetch_settings] if args.key?(:fetch_settings)
|
238
|
+
@file_input_type = args[:file_input_type] if args.key?(:file_input_type)
|
239
|
+
@file_name = args[:file_name] if args.key?(:file_name)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
# Response message for the ListDataSources method.
|
244
|
+
class ListDataSourcesResponse
|
245
|
+
include Google::Apis::Core::Hashable
|
246
|
+
|
247
|
+
# The data sources from the specified account.
|
248
|
+
# Corresponds to the JSON property `dataSources`
|
249
|
+
# @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::DataSource>]
|
250
|
+
attr_accessor :data_sources
|
251
|
+
|
252
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
253
|
+
# field is omitted, there are no subsequent pages.
|
254
|
+
# Corresponds to the JSON property `nextPageToken`
|
255
|
+
# @return [String]
|
256
|
+
attr_accessor :next_page_token
|
257
|
+
|
258
|
+
def initialize(**args)
|
259
|
+
update!(**args)
|
260
|
+
end
|
261
|
+
|
262
|
+
# Update properties of this object
|
263
|
+
def update!(**args)
|
264
|
+
@data_sources = args[:data_sources] if args.key?(:data_sources)
|
265
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
# The local inventory data source.
|
270
|
+
class LocalInventoryDataSource
|
271
|
+
include Google::Apis::Core::Hashable
|
272
|
+
|
273
|
+
# Required. Immutable. The two-letter ISO 639-1 language of the items to which
|
274
|
+
# the local inventory is provided.
|
275
|
+
# Corresponds to the JSON property `contentLanguage`
|
276
|
+
# @return [String]
|
277
|
+
attr_accessor :content_language
|
278
|
+
|
279
|
+
# Required. Immutable. The feed label of the offers to which the local inventory
|
280
|
+
# is provided. Must be less than or equal to 20 uppercase letters (A-Z), numbers
|
281
|
+
# (0-9), and dashes (-). See also [migration to feed labels](https://developers.
|
282
|
+
# google.com/shopping-content/guides/products/feed-labels).
|
283
|
+
# Corresponds to the JSON property `feedLabel`
|
284
|
+
# @return [String]
|
285
|
+
attr_accessor :feed_label
|
286
|
+
|
287
|
+
def initialize(**args)
|
288
|
+
update!(**args)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Update properties of this object
|
292
|
+
def update!(**args)
|
293
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
294
|
+
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# The primary data source for local and online products.
|
299
|
+
class PrimaryProductDataSource
|
300
|
+
include Google::Apis::Core::Hashable
|
301
|
+
|
302
|
+
# Required. Immutable. Specifies the type of data source channel.
|
303
|
+
# Corresponds to the JSON property `channel`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :channel
|
306
|
+
|
307
|
+
# Optional. Immutable. The two-letter ISO 639-1 language of the items in the
|
308
|
+
# data source. `feedLabel` and `contentLanguage` must be either both set or
|
309
|
+
# unset. The fields can only be unset for data sources without file input. If
|
310
|
+
# set, the data source will only accept products matching this combination. If
|
311
|
+
# unset, the data source will accept products without that restriction.
|
312
|
+
# Corresponds to the JSON property `contentLanguage`
|
313
|
+
# @return [String]
|
314
|
+
attr_accessor :content_language
|
315
|
+
|
316
|
+
# Optional. The countries where the items may be displayed. Represented as a [
|
317
|
+
# CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/
|
318
|
+
# main/en.xml).
|
319
|
+
# Corresponds to the JSON property `countries`
|
320
|
+
# @return [Array<String>]
|
321
|
+
attr_accessor :countries
|
322
|
+
|
323
|
+
# Optional. Immutable. The feed label that is specified on the data source level.
|
324
|
+
# Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and
|
325
|
+
# dashes (-). See also [migration to feed labels](https://developers.google.com/
|
326
|
+
# shopping-content/guides/products/feed-labels). `feedLabel` and `
|
327
|
+
# contentLanguage` must be either both set or unset for data sources with
|
328
|
+
# product content type. They must be set for data sources with a file input. If
|
329
|
+
# set, the data source will only accept products matching this combination. If
|
330
|
+
# unset, the data source will accept products without that restriction.
|
331
|
+
# Corresponds to the JSON property `feedLabel`
|
332
|
+
# @return [String]
|
333
|
+
attr_accessor :feed_label
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@channel = args[:channel] if args.key?(:channel)
|
342
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
343
|
+
@countries = args[:countries] if args.key?(:countries)
|
344
|
+
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
# The change that happened to the product including old value, new value,
|
349
|
+
# country code as the region code and reporting context.
|
350
|
+
class ProductChange
|
351
|
+
include Google::Apis::Core::Hashable
|
352
|
+
|
353
|
+
# The new value of the changed resource or attribute.
|
354
|
+
# Corresponds to the JSON property `newValue`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :new_value
|
357
|
+
|
358
|
+
# The old value of the changed resource or attribute.
|
359
|
+
# Corresponds to the JSON property `oldValue`
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :old_value
|
362
|
+
|
363
|
+
# Countries that have the change (if applicable)
|
364
|
+
# Corresponds to the JSON property `regionCode`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :region_code
|
367
|
+
|
368
|
+
# Reporting contexts that have the change (if applicable)
|
369
|
+
# Corresponds to the JSON property `reportingContext`
|
370
|
+
# @return [String]
|
371
|
+
attr_accessor :reporting_context
|
372
|
+
|
373
|
+
def initialize(**args)
|
374
|
+
update!(**args)
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update properties of this object
|
378
|
+
def update!(**args)
|
379
|
+
@new_value = args[:new_value] if args.key?(:new_value)
|
380
|
+
@old_value = args[:old_value] if args.key?(:old_value)
|
381
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
382
|
+
@reporting_context = args[:reporting_context] if args.key?(:reporting_context)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
# The message that the merchant will receive to notify about product status
|
387
|
+
# change event
|
388
|
+
class ProductStatusChangeMessage
|
389
|
+
include Google::Apis::Core::Hashable
|
390
|
+
|
391
|
+
# The target account that owns the entity that changed. Format : `accounts/`
|
392
|
+
# merchant_id``
|
393
|
+
# Corresponds to the JSON property `account`
|
394
|
+
# @return [String]
|
395
|
+
attr_accessor :account
|
396
|
+
|
397
|
+
# The attribute in the resource that changed, in this case it will be always `
|
398
|
+
# Status`.
|
399
|
+
# Corresponds to the JSON property `attribute`
|
400
|
+
# @return [String]
|
401
|
+
attr_accessor :attribute
|
402
|
+
|
403
|
+
# A message to describe the change that happened to the product
|
404
|
+
# Corresponds to the JSON property `changes`
|
405
|
+
# @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::ProductChange>]
|
406
|
+
attr_accessor :changes
|
407
|
+
|
408
|
+
# The account that manages the merchant's account. can be the same as merchant
|
409
|
+
# id if it is standalone account. Format : `accounts/`service_provider_id``
|
410
|
+
# Corresponds to the JSON property `managingAccount`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :managing_account
|
413
|
+
|
414
|
+
# The product name. Format: ``product.name=accounts/`account`/products/`product``
|
415
|
+
# `
|
416
|
+
# Corresponds to the JSON property `resource`
|
417
|
+
# @return [String]
|
418
|
+
attr_accessor :resource
|
419
|
+
|
420
|
+
# The product id.
|
421
|
+
# Corresponds to the JSON property `resourceId`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :resource_id
|
424
|
+
|
425
|
+
# The resource that changed, in this case it will always be `Product`.
|
426
|
+
# Corresponds to the JSON property `resourceType`
|
427
|
+
# @return [String]
|
428
|
+
attr_accessor :resource_type
|
429
|
+
|
430
|
+
def initialize(**args)
|
431
|
+
update!(**args)
|
432
|
+
end
|
433
|
+
|
434
|
+
# Update properties of this object
|
435
|
+
def update!(**args)
|
436
|
+
@account = args[:account] if args.key?(:account)
|
437
|
+
@attribute = args[:attribute] if args.key?(:attribute)
|
438
|
+
@changes = args[:changes] if args.key?(:changes)
|
439
|
+
@managing_account = args[:managing_account] if args.key?(:managing_account)
|
440
|
+
@resource = args[:resource] if args.key?(:resource)
|
441
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
442
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
# The promotion data source.
|
447
|
+
class PromotionDataSource
|
448
|
+
include Google::Apis::Core::Hashable
|
449
|
+
|
450
|
+
# Required. Immutable. The two-letter ISO 639-1 language of the items in the
|
451
|
+
# data source.
|
452
|
+
# Corresponds to the JSON property `contentLanguage`
|
453
|
+
# @return [String]
|
454
|
+
attr_accessor :content_language
|
455
|
+
|
456
|
+
# Required. Immutable. The target country used as part of the unique identifier.
|
457
|
+
# Represented as a [CLDR territory code](https://github.com/unicode-org/cldr/
|
458
|
+
# blob/latest/common/main/en.xml). Promotions are only available in selected [
|
459
|
+
# countries](https://support.google.com/merchants/answer/4588460).
|
460
|
+
# Corresponds to the JSON property `targetCountry`
|
461
|
+
# @return [String]
|
462
|
+
attr_accessor :target_country
|
463
|
+
|
464
|
+
def initialize(**args)
|
465
|
+
update!(**args)
|
466
|
+
end
|
467
|
+
|
468
|
+
# Update properties of this object
|
469
|
+
def update!(**args)
|
470
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
471
|
+
@target_country = args[:target_country] if args.key?(:target_country)
|
472
|
+
end
|
473
|
+
end
|
474
|
+
|
475
|
+
# The regional inventory data source.
|
476
|
+
class RegionalInventoryDataSource
|
477
|
+
include Google::Apis::Core::Hashable
|
478
|
+
|
479
|
+
# Required. Immutable. The two-letter ISO 639-1 language of the items to which
|
480
|
+
# the regional inventory is provided.
|
481
|
+
# Corresponds to the JSON property `contentLanguage`
|
482
|
+
# @return [String]
|
483
|
+
attr_accessor :content_language
|
484
|
+
|
485
|
+
# Required. Immutable. The feed label of the offers to which the regional
|
486
|
+
# inventory is provided. Must be less than or equal to 20 uppercase letters (A-Z)
|
487
|
+
# , numbers (0-9), and dashes (-). See also [migration to feed labels](https://
|
488
|
+
# developers.google.com/shopping-content/guides/products/feed-labels).
|
489
|
+
# Corresponds to the JSON property `feedLabel`
|
490
|
+
# @return [String]
|
491
|
+
attr_accessor :feed_label
|
492
|
+
|
493
|
+
def initialize(**args)
|
494
|
+
update!(**args)
|
495
|
+
end
|
496
|
+
|
497
|
+
# Update properties of this object
|
498
|
+
def update!(**args)
|
499
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
500
|
+
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
# The supplemental data source for local and online products.
|
505
|
+
class SupplementalProductDataSource
|
506
|
+
include Google::Apis::Core::Hashable
|
507
|
+
|
508
|
+
# Optional. Immutable. The two-letter ISO 639-1 language of the items in the
|
509
|
+
# data source. `feedLabel` and `contentLanguage` must be either both set or
|
510
|
+
# unset. The fields can only be unset for data sources without file input. If
|
511
|
+
# set, the data source will only accept products matching this combination. If
|
512
|
+
# unset, the data source will accept produts without that restriction.
|
513
|
+
# Corresponds to the JSON property `contentLanguage`
|
514
|
+
# @return [String]
|
515
|
+
attr_accessor :content_language
|
516
|
+
|
517
|
+
# Optional. Immutable. The feed label that is specified on the data source level.
|
518
|
+
# Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and
|
519
|
+
# dashes (-). See also [migration to feed labels](https://developers.google.com/
|
520
|
+
# shopping-content/guides/products/feed-labels). `feedLabel` and `
|
521
|
+
# contentLanguage` must be either both set or unset for data sources with
|
522
|
+
# product content type. They must be set for data sources with a file input. If
|
523
|
+
# set, the data source will only accept products matching this combination. If
|
524
|
+
# unset, the data source will accept produts without that restriction.
|
525
|
+
# Corresponds to the JSON property `feedLabel`
|
526
|
+
# @return [String]
|
527
|
+
attr_accessor :feed_label
|
528
|
+
|
529
|
+
def initialize(**args)
|
530
|
+
update!(**args)
|
531
|
+
end
|
532
|
+
|
533
|
+
# Update properties of this object
|
534
|
+
def update!(**args)
|
535
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
536
|
+
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
540
|
+
# Represents a time of day. The date and time zone are either not significant or
|
541
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
542
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
543
|
+
class TimeOfDay
|
544
|
+
include Google::Apis::Core::Hashable
|
545
|
+
|
546
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
|
547
|
+
# allow the value "24:00:00" for scenarios like business closing time.
|
548
|
+
# Corresponds to the JSON property `hours`
|
549
|
+
# @return [Fixnum]
|
550
|
+
attr_accessor :hours
|
551
|
+
|
552
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
553
|
+
# Corresponds to the JSON property `minutes`
|
554
|
+
# @return [Fixnum]
|
555
|
+
attr_accessor :minutes
|
556
|
+
|
557
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
558
|
+
# Corresponds to the JSON property `nanos`
|
559
|
+
# @return [Fixnum]
|
560
|
+
attr_accessor :nanos
|
561
|
+
|
562
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
563
|
+
# allow the value 60 if it allows leap-seconds.
|
564
|
+
# Corresponds to the JSON property `seconds`
|
565
|
+
# @return [Fixnum]
|
566
|
+
attr_accessor :seconds
|
567
|
+
|
568
|
+
def initialize(**args)
|
569
|
+
update!(**args)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Update properties of this object
|
573
|
+
def update!(**args)
|
574
|
+
@hours = args[:hours] if args.key?(:hours)
|
575
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
576
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
577
|
+
@seconds = args[:seconds] if args.key?(:seconds)
|
578
|
+
end
|
579
|
+
end
|
580
|
+
end
|
581
|
+
end
|
582
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module MerchantapiDatasourcesV1beta
|
18
|
+
# Version of the google-apis-merchantapi_datasources_v1beta gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20240611"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|