google-apis-merchantapi_datasources_v1beta 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/merchantapi_datasources_v1beta/classes.rb +263 -13
- data/lib/google/apis/merchantapi_datasources_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/merchantapi_datasources_v1beta/representations.rb +101 -0
- data/lib/google/apis/merchantapi_datasources_v1beta/service.rb +32 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cee6dd4b6580d01ff26925a57e1008449466b12183d8584b55ddf57c12da48b
|
4
|
+
data.tar.gz: cd0fc97d4086f1e16d7734b85c426687e77685eae794c3c23ac0466e61294a40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5aef0710c13ff7148a94df6dc416303eb5fedeaa58afc97752b7a6b9c433e68da16596b721f517b60ffe8047546bf2090c52f6dc42400dbeb518c0cd9a856f9
|
7
|
+
data.tar.gz: 77c71bb526fe1b226ae710ed68a284fee220590593dd0b6fecd18b54dde3281fe4c5b28eeab630b7d0c1579eba63671e9232238eac5e7298a425e1a0dd494ca3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-merchantapi_datasources_v1beta
|
2
2
|
|
3
|
+
### v0.2.0 (2024-12-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241119
|
6
|
+
* Regenerated using generator version 0.15.1
|
7
|
+
|
3
8
|
### v0.1.0 (2024-06-27)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20240611
|
@@ -55,6 +55,11 @@ module Google
|
|
55
55
|
# @return [Google::Apis::MerchantapiDatasourcesV1beta::LocalInventoryDataSource]
|
56
56
|
attr_accessor :local_inventory_data_source
|
57
57
|
|
58
|
+
# The merchant review data source.
|
59
|
+
# Corresponds to the JSON property `merchantReviewDataSource`
|
60
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::MerchantReviewDataSource]
|
61
|
+
attr_accessor :merchant_review_data_source
|
62
|
+
|
58
63
|
# Identifier. The name of the data source. Format: ``datasource.name=accounts/`
|
59
64
|
# account`/dataSources/`datasource```
|
60
65
|
# Corresponds to the JSON property `name`
|
@@ -66,6 +71,11 @@ module Google
|
|
66
71
|
# @return [Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource]
|
67
72
|
attr_accessor :primary_product_data_source
|
68
73
|
|
74
|
+
# The product review data source.
|
75
|
+
# Corresponds to the JSON property `productReviewDataSource`
|
76
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::ProductReviewDataSource]
|
77
|
+
attr_accessor :product_review_data_source
|
78
|
+
|
69
79
|
# The promotion data source.
|
70
80
|
# Corresponds to the JSON property `promotionDataSource`
|
71
81
|
# @return [Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource]
|
@@ -76,7 +86,9 @@ module Google
|
|
76
86
|
# @return [Google::Apis::MerchantapiDatasourcesV1beta::RegionalInventoryDataSource]
|
77
87
|
attr_accessor :regional_inventory_data_source
|
78
88
|
|
79
|
-
# The supplemental data source for local and online products.
|
89
|
+
# The supplemental data source for local and online products. After creation,
|
90
|
+
# you should make sure to link the supplemental product data source into one or
|
91
|
+
# more primary product data sources.
|
80
92
|
# Corresponds to the JSON property `supplementalProductDataSource`
|
81
93
|
# @return [Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource]
|
82
94
|
attr_accessor :supplemental_product_data_source
|
@@ -92,14 +104,80 @@ module Google
|
|
92
104
|
@file_input = args[:file_input] if args.key?(:file_input)
|
93
105
|
@input = args[:input] if args.key?(:input)
|
94
106
|
@local_inventory_data_source = args[:local_inventory_data_source] if args.key?(:local_inventory_data_source)
|
107
|
+
@merchant_review_data_source = args[:merchant_review_data_source] if args.key?(:merchant_review_data_source)
|
95
108
|
@name = args[:name] if args.key?(:name)
|
96
109
|
@primary_product_data_source = args[:primary_product_data_source] if args.key?(:primary_product_data_source)
|
110
|
+
@product_review_data_source = args[:product_review_data_source] if args.key?(:product_review_data_source)
|
97
111
|
@promotion_data_source = args[:promotion_data_source] if args.key?(:promotion_data_source)
|
98
112
|
@regional_inventory_data_source = args[:regional_inventory_data_source] if args.key?(:regional_inventory_data_source)
|
99
113
|
@supplemental_product_data_source = args[:supplemental_product_data_source] if args.key?(:supplemental_product_data_source)
|
100
114
|
end
|
101
115
|
end
|
102
116
|
|
117
|
+
# Data source reference can be used to manage related data sources within the
|
118
|
+
# data source service.
|
119
|
+
class DataSourceReference
|
120
|
+
include Google::Apis::Core::Hashable
|
121
|
+
|
122
|
+
# Optional. The name of the primary data source. Format: `accounts/`account`/
|
123
|
+
# dataSources/`datasource``
|
124
|
+
# Corresponds to the JSON property `primaryDataSourceName`
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :primary_data_source_name
|
127
|
+
|
128
|
+
# Self should be used to reference the primary data source itself.
|
129
|
+
# Corresponds to the JSON property `self`
|
130
|
+
# @return [Boolean]
|
131
|
+
attr_accessor :self
|
132
|
+
alias_method :self?, :self
|
133
|
+
|
134
|
+
# Optional. The name of the supplemental data source. Format: `accounts/`account`
|
135
|
+
# /dataSources/`datasource``
|
136
|
+
# Corresponds to the JSON property `supplementalDataSourceName`
|
137
|
+
# @return [String]
|
138
|
+
attr_accessor :supplemental_data_source_name
|
139
|
+
|
140
|
+
def initialize(**args)
|
141
|
+
update!(**args)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Update properties of this object
|
145
|
+
def update!(**args)
|
146
|
+
@primary_data_source_name = args[:primary_data_source_name] if args.key?(:primary_data_source_name)
|
147
|
+
@self = args[:self] if args.key?(:self)
|
148
|
+
@supplemental_data_source_name = args[:supplemental_data_source_name] if args.key?(:supplemental_data_source_name)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Default rule management of the data source.
|
153
|
+
class DefaultRule
|
154
|
+
include Google::Apis::Core::Hashable
|
155
|
+
|
156
|
+
# Required. The list of data sources linked in the [default rule](https://
|
157
|
+
# support.google.com/merchants/answer/7450276). This list is ordered by the
|
158
|
+
# default rule priority of joining the data. It might include none or multiple
|
159
|
+
# references to `self` and supplemental data sources. The list must not be empty.
|
160
|
+
# To link the data source to the default rule, you need to add a new reference
|
161
|
+
# to this list (in sequential order). To unlink the data source from the default
|
162
|
+
# rule, you need to remove the given reference from this list. Changing the
|
163
|
+
# order of this list will result in changing the priority of data sources in the
|
164
|
+
# default rule. For example, providing the following list: [`1001`, `self`] will
|
165
|
+
# take attribute values from supplemental data source `1001`, and fallback to `
|
166
|
+
# self` if the attribute is not set in `1001`.
|
167
|
+
# Corresponds to the JSON property `takeFromDataSources`
|
168
|
+
# @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference>]
|
169
|
+
attr_accessor :take_from_data_sources
|
170
|
+
|
171
|
+
def initialize(**args)
|
172
|
+
update!(**args)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Update properties of this object
|
176
|
+
def update!(**args)
|
177
|
+
@take_from_data_sources = args[:take_from_data_sources] if args.key?(:take_from_data_sources)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
103
181
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
104
182
|
# messages in your APIs. A typical example is to use it as the request or the
|
105
183
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -164,7 +242,7 @@ module Google
|
|
164
242
|
# @return [String]
|
165
243
|
attr_accessor :frequency
|
166
244
|
|
167
|
-
# Optional. An optional password for
|
245
|
+
# Optional. An optional password for fetch_uri. Used for [submitting data
|
168
246
|
# sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
169
247
|
# Corresponds to the JSON property `password`
|
170
248
|
# @return [String]
|
@@ -183,7 +261,7 @@ module Google
|
|
183
261
|
# @return [String]
|
184
262
|
attr_accessor :time_zone
|
185
263
|
|
186
|
-
# Optional. An optional user name for
|
264
|
+
# Optional. An optional user name for fetch_uri. Used for [submitting data
|
187
265
|
# sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
188
266
|
# Corresponds to the JSON property `username`
|
189
267
|
# @return [String]
|
@@ -240,6 +318,124 @@ module Google
|
|
240
318
|
end
|
241
319
|
end
|
242
320
|
|
321
|
+
# The file upload of a specific data source, that is, the result of the
|
322
|
+
# retrieval of the data source at a certain timestamp computed asynchronously
|
323
|
+
# when the data source processing is finished. Only applicable to file data
|
324
|
+
# sources.
|
325
|
+
class FileUpload
|
326
|
+
include Google::Apis::Core::Hashable
|
327
|
+
|
328
|
+
# Output only. The data source id.
|
329
|
+
# Corresponds to the JSON property `dataSourceId`
|
330
|
+
# @return [Fixnum]
|
331
|
+
attr_accessor :data_source_id
|
332
|
+
|
333
|
+
# Output only. The list of issues occurring in the data source.
|
334
|
+
# Corresponds to the JSON property `issues`
|
335
|
+
# @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::Issue>]
|
336
|
+
attr_accessor :issues
|
337
|
+
|
338
|
+
# Output only. The number of items in the data source that were created.
|
339
|
+
# Corresponds to the JSON property `itemsCreated`
|
340
|
+
# @return [Fixnum]
|
341
|
+
attr_accessor :items_created
|
342
|
+
|
343
|
+
# Output only. The number of items in the data source that were processed.
|
344
|
+
# Corresponds to the JSON property `itemsTotal`
|
345
|
+
# @return [Fixnum]
|
346
|
+
attr_accessor :items_total
|
347
|
+
|
348
|
+
# Output only. The number of items in the data source that were updated.
|
349
|
+
# Corresponds to the JSON property `itemsUpdated`
|
350
|
+
# @return [Fixnum]
|
351
|
+
attr_accessor :items_updated
|
352
|
+
|
353
|
+
# Identifier. The name of the data source file upload. Format: ``datasource.name=
|
354
|
+
# accounts/`account`/dataSources/`datasource`/fileUploads/`fileupload```
|
355
|
+
# Corresponds to the JSON property `name`
|
356
|
+
# @return [String]
|
357
|
+
attr_accessor :name
|
358
|
+
|
359
|
+
# Output only. The processing state of the data source.
|
360
|
+
# Corresponds to the JSON property `processingState`
|
361
|
+
# @return [String]
|
362
|
+
attr_accessor :processing_state
|
363
|
+
|
364
|
+
# Output only. The date at which the file of the data source was uploaded.
|
365
|
+
# Corresponds to the JSON property `uploadTime`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :upload_time
|
368
|
+
|
369
|
+
def initialize(**args)
|
370
|
+
update!(**args)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Update properties of this object
|
374
|
+
def update!(**args)
|
375
|
+
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
376
|
+
@issues = args[:issues] if args.key?(:issues)
|
377
|
+
@items_created = args[:items_created] if args.key?(:items_created)
|
378
|
+
@items_total = args[:items_total] if args.key?(:items_total)
|
379
|
+
@items_updated = args[:items_updated] if args.key?(:items_updated)
|
380
|
+
@name = args[:name] if args.key?(:name)
|
381
|
+
@processing_state = args[:processing_state] if args.key?(:processing_state)
|
382
|
+
@upload_time = args[:upload_time] if args.key?(:upload_time)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
# An error occurring in the data source, like "invalid price".
|
387
|
+
class Issue
|
388
|
+
include Google::Apis::Core::Hashable
|
389
|
+
|
390
|
+
# Output only. The code of the error, for example, "validation/invalid_value".
|
391
|
+
# Returns "?" if the code is unknown.
|
392
|
+
# Corresponds to the JSON property `code`
|
393
|
+
# @return [String]
|
394
|
+
attr_accessor :code
|
395
|
+
|
396
|
+
# Output only. The number of occurrences of the error in the file upload.
|
397
|
+
# Corresponds to the JSON property `count`
|
398
|
+
# @return [Fixnum]
|
399
|
+
attr_accessor :count
|
400
|
+
|
401
|
+
# Output only. The error description, for example, "Your data source contains
|
402
|
+
# items which have too many attributes, or are too big. These items will be
|
403
|
+
# dropped".
|
404
|
+
# Corresponds to the JSON property `description`
|
405
|
+
# @return [String]
|
406
|
+
attr_accessor :description
|
407
|
+
|
408
|
+
# Output only. Link to the documentation explaining the issue in more details,
|
409
|
+
# if available.
|
410
|
+
# Corresponds to the JSON property `documentationUri`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :documentation_uri
|
413
|
+
|
414
|
+
# Output only. The severity of the issue.
|
415
|
+
# Corresponds to the JSON property `severity`
|
416
|
+
# @return [String]
|
417
|
+
attr_accessor :severity
|
418
|
+
|
419
|
+
# Output only. The title of the issue, for example, "Item too big".
|
420
|
+
# Corresponds to the JSON property `title`
|
421
|
+
# @return [String]
|
422
|
+
attr_accessor :title
|
423
|
+
|
424
|
+
def initialize(**args)
|
425
|
+
update!(**args)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Update properties of this object
|
429
|
+
def update!(**args)
|
430
|
+
@code = args[:code] if args.key?(:code)
|
431
|
+
@count = args[:count] if args.key?(:count)
|
432
|
+
@description = args[:description] if args.key?(:description)
|
433
|
+
@documentation_uri = args[:documentation_uri] if args.key?(:documentation_uri)
|
434
|
+
@severity = args[:severity] if args.key?(:severity)
|
435
|
+
@title = args[:title] if args.key?(:title)
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
243
439
|
# Response message for the ListDataSources method.
|
244
440
|
class ListDataSourcesResponse
|
245
441
|
include Google::Apis::Core::Hashable
|
@@ -295,6 +491,19 @@ module Google
|
|
295
491
|
end
|
296
492
|
end
|
297
493
|
|
494
|
+
# The merchant review data source.
|
495
|
+
class MerchantReviewDataSource
|
496
|
+
include Google::Apis::Core::Hashable
|
497
|
+
|
498
|
+
def initialize(**args)
|
499
|
+
update!(**args)
|
500
|
+
end
|
501
|
+
|
502
|
+
# Update properties of this object
|
503
|
+
def update!(**args)
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
298
507
|
# The primary data source for local and online products.
|
299
508
|
class PrimaryProductDataSource
|
300
509
|
include Google::Apis::Core::Hashable
|
@@ -320,6 +529,11 @@ module Google
|
|
320
529
|
# @return [Array<String>]
|
321
530
|
attr_accessor :countries
|
322
531
|
|
532
|
+
# Default rule management of the data source.
|
533
|
+
# Corresponds to the JSON property `defaultRule`
|
534
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::DefaultRule]
|
535
|
+
attr_accessor :default_rule
|
536
|
+
|
323
537
|
# Optional. Immutable. The feed label that is specified on the data source level.
|
324
538
|
# Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and
|
325
539
|
# dashes (-). See also [migration to feed labels](https://developers.google.com/
|
@@ -341,6 +555,7 @@ module Google
|
|
341
555
|
@channel = args[:channel] if args.key?(:channel)
|
342
556
|
@content_language = args[:content_language] if args.key?(:content_language)
|
343
557
|
@countries = args[:countries] if args.key?(:countries)
|
558
|
+
@default_rule = args[:default_rule] if args.key?(:default_rule)
|
344
559
|
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
345
560
|
end
|
346
561
|
end
|
@@ -383,6 +598,19 @@ module Google
|
|
383
598
|
end
|
384
599
|
end
|
385
600
|
|
601
|
+
# The product review data source.
|
602
|
+
class ProductReviewDataSource
|
603
|
+
include Google::Apis::Core::Hashable
|
604
|
+
|
605
|
+
def initialize(**args)
|
606
|
+
update!(**args)
|
607
|
+
end
|
608
|
+
|
609
|
+
# Update properties of this object
|
610
|
+
def update!(**args)
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
386
614
|
# The message that the merchant will receive to notify about product status
|
387
615
|
# change event
|
388
616
|
class ProductStatusChangeMessage
|
@@ -405,6 +633,12 @@ module Google
|
|
405
633
|
# @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::ProductChange>]
|
406
634
|
attr_accessor :changes
|
407
635
|
|
636
|
+
# The product expiration time. This field will not bet set if the notification
|
637
|
+
# is sent for a product deletion event.
|
638
|
+
# Corresponds to the JSON property `expirationTime`
|
639
|
+
# @return [String]
|
640
|
+
attr_accessor :expiration_time
|
641
|
+
|
408
642
|
# The account that manages the merchant's account. can be the same as merchant
|
409
643
|
# id if it is standalone account. Format : `accounts/`service_provider_id``
|
410
644
|
# Corresponds to the JSON property `managingAccount`
|
@@ -436,6 +670,7 @@ module Google
|
|
436
670
|
@account = args[:account] if args.key?(:account)
|
437
671
|
@attribute = args[:attribute] if args.key?(:attribute)
|
438
672
|
@changes = args[:changes] if args.key?(:changes)
|
673
|
+
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
439
674
|
@managing_account = args[:managing_account] if args.key?(:managing_account)
|
440
675
|
@resource = args[:resource] if args.key?(:resource)
|
441
676
|
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
@@ -501,7 +736,9 @@ module Google
|
|
501
736
|
end
|
502
737
|
end
|
503
738
|
|
504
|
-
# The supplemental data source for local and online products.
|
739
|
+
# The supplemental data source for local and online products. After creation,
|
740
|
+
# you should make sure to link the supplemental product data source into one or
|
741
|
+
# more primary product data sources.
|
505
742
|
class SupplementalProductDataSource
|
506
743
|
include Google::Apis::Core::Hashable
|
507
744
|
|
@@ -519,13 +756,21 @@ module Google
|
|
519
756
|
# dashes (-). See also [migration to feed labels](https://developers.google.com/
|
520
757
|
# shopping-content/guides/products/feed-labels). `feedLabel` and `
|
521
758
|
# 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.
|
523
|
-
#
|
524
|
-
#
|
759
|
+
# product content type. They must be set for data sources with a file input. The
|
760
|
+
# fields must be unset for data sources without file input. If set, the data
|
761
|
+
# source will only accept products matching this combination. If unset, the data
|
762
|
+
# source will accept produts without that restriction.
|
525
763
|
# Corresponds to the JSON property `feedLabel`
|
526
764
|
# @return [String]
|
527
765
|
attr_accessor :feed_label
|
528
766
|
|
767
|
+
# Output only. The (unordered and deduplicated) list of all primary data sources
|
768
|
+
# linked to this data source in either default or custom rules. Supplemental
|
769
|
+
# data source cannot be deleted before all links are removed.
|
770
|
+
# Corresponds to the JSON property `referencingPrimaryDataSources`
|
771
|
+
# @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference>]
|
772
|
+
attr_accessor :referencing_primary_data_sources
|
773
|
+
|
529
774
|
def initialize(**args)
|
530
775
|
update!(**args)
|
531
776
|
end
|
@@ -534,6 +779,7 @@ module Google
|
|
534
779
|
def update!(**args)
|
535
780
|
@content_language = args[:content_language] if args.key?(:content_language)
|
536
781
|
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
782
|
+
@referencing_primary_data_sources = args[:referencing_primary_data_sources] if args.key?(:referencing_primary_data_sources)
|
537
783
|
end
|
538
784
|
end
|
539
785
|
|
@@ -543,24 +789,28 @@ module Google
|
|
543
789
|
class TimeOfDay
|
544
790
|
include Google::Apis::Core::Hashable
|
545
791
|
|
546
|
-
# Hours of day in 24 hour format.
|
547
|
-
#
|
792
|
+
# Hours of a day in 24 hour format. Must be greater than or equal to 0 and
|
793
|
+
# typically must be less than or equal to 23. An API may choose to allow the
|
794
|
+
# value "24:00:00" for scenarios like business closing time.
|
548
795
|
# Corresponds to the JSON property `hours`
|
549
796
|
# @return [Fixnum]
|
550
797
|
attr_accessor :hours
|
551
798
|
|
552
|
-
# Minutes of hour
|
799
|
+
# Minutes of an hour. Must be greater than or equal to 0 and less than or equal
|
800
|
+
# to 59.
|
553
801
|
# Corresponds to the JSON property `minutes`
|
554
802
|
# @return [Fixnum]
|
555
803
|
attr_accessor :minutes
|
556
804
|
|
557
|
-
# Fractions of seconds in nanoseconds. Must be
|
805
|
+
# Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and
|
806
|
+
# less than or equal to 999,999,999.
|
558
807
|
# Corresponds to the JSON property `nanos`
|
559
808
|
# @return [Fixnum]
|
560
809
|
attr_accessor :nanos
|
561
810
|
|
562
|
-
# Seconds of
|
563
|
-
# allow the value 60 if it allows leap-
|
811
|
+
# Seconds of a minute. Must be greater than or equal to 0 and typically must be
|
812
|
+
# less than or equal to 59. An API may allow the value 60 if it allows leap-
|
813
|
+
# seconds.
|
564
814
|
# Corresponds to the JSON property `seconds`
|
565
815
|
# @return [Fixnum]
|
566
816
|
attr_accessor :seconds
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MerchantapiDatasourcesV1beta
|
18
18
|
# Version of the google-apis-merchantapi_datasources_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241119"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,18 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class DataSourceReference
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class DefaultRule
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
31
43
|
class Empty
|
32
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
45
|
|
@@ -52,6 +64,18 @@ module Google
|
|
52
64
|
include Google::Apis::Core::JsonObjectSupport
|
53
65
|
end
|
54
66
|
|
67
|
+
class FileUpload
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Issue
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
55
79
|
class ListDataSourcesResponse
|
56
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
81
|
|
@@ -64,6 +88,12 @@ module Google
|
|
64
88
|
include Google::Apis::Core::JsonObjectSupport
|
65
89
|
end
|
66
90
|
|
91
|
+
class MerchantReviewDataSource
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
67
97
|
class PrimaryProductDataSource
|
68
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
99
|
|
@@ -76,6 +106,12 @@ module Google
|
|
76
106
|
include Google::Apis::Core::JsonObjectSupport
|
77
107
|
end
|
78
108
|
|
109
|
+
class ProductReviewDataSource
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
79
115
|
class ProductStatusChangeMessage
|
80
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
117
|
|
@@ -116,9 +152,13 @@ module Google
|
|
116
152
|
property :input, as: 'input'
|
117
153
|
property :local_inventory_data_source, as: 'localInventoryDataSource', class: Google::Apis::MerchantapiDatasourcesV1beta::LocalInventoryDataSource, decorator: Google::Apis::MerchantapiDatasourcesV1beta::LocalInventoryDataSource::Representation
|
118
154
|
|
155
|
+
property :merchant_review_data_source, as: 'merchantReviewDataSource', class: Google::Apis::MerchantapiDatasourcesV1beta::MerchantReviewDataSource, decorator: Google::Apis::MerchantapiDatasourcesV1beta::MerchantReviewDataSource::Representation
|
156
|
+
|
119
157
|
property :name, as: 'name'
|
120
158
|
property :primary_product_data_source, as: 'primaryProductDataSource', class: Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource, decorator: Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource::Representation
|
121
159
|
|
160
|
+
property :product_review_data_source, as: 'productReviewDataSource', class: Google::Apis::MerchantapiDatasourcesV1beta::ProductReviewDataSource, decorator: Google::Apis::MerchantapiDatasourcesV1beta::ProductReviewDataSource::Representation
|
161
|
+
|
122
162
|
property :promotion_data_source, as: 'promotionDataSource', class: Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource, decorator: Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource::Representation
|
123
163
|
|
124
164
|
property :regional_inventory_data_source, as: 'regionalInventoryDataSource', class: Google::Apis::MerchantapiDatasourcesV1beta::RegionalInventoryDataSource, decorator: Google::Apis::MerchantapiDatasourcesV1beta::RegionalInventoryDataSource::Representation
|
@@ -128,6 +168,23 @@ module Google
|
|
128
168
|
end
|
129
169
|
end
|
130
170
|
|
171
|
+
class DataSourceReference
|
172
|
+
# @private
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :primary_data_source_name, as: 'primaryDataSourceName'
|
175
|
+
property :self, as: 'self'
|
176
|
+
property :supplemental_data_source_name, as: 'supplementalDataSourceName'
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
class DefaultRule
|
181
|
+
# @private
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
183
|
+
collection :take_from_data_sources, as: 'takeFromDataSources', class: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference, decorator: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference::Representation
|
184
|
+
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
131
188
|
class Empty
|
132
189
|
# @private
|
133
190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -166,6 +223,33 @@ module Google
|
|
166
223
|
end
|
167
224
|
end
|
168
225
|
|
226
|
+
class FileUpload
|
227
|
+
# @private
|
228
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
229
|
+
property :data_source_id, :numeric_string => true, as: 'dataSourceId'
|
230
|
+
collection :issues, as: 'issues', class: Google::Apis::MerchantapiDatasourcesV1beta::Issue, decorator: Google::Apis::MerchantapiDatasourcesV1beta::Issue::Representation
|
231
|
+
|
232
|
+
property :items_created, :numeric_string => true, as: 'itemsCreated'
|
233
|
+
property :items_total, :numeric_string => true, as: 'itemsTotal'
|
234
|
+
property :items_updated, :numeric_string => true, as: 'itemsUpdated'
|
235
|
+
property :name, as: 'name'
|
236
|
+
property :processing_state, as: 'processingState'
|
237
|
+
property :upload_time, as: 'uploadTime'
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
class Issue
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :code, as: 'code'
|
245
|
+
property :count, :numeric_string => true, as: 'count'
|
246
|
+
property :description, as: 'description'
|
247
|
+
property :documentation_uri, as: 'documentationUri'
|
248
|
+
property :severity, as: 'severity'
|
249
|
+
property :title, as: 'title'
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
169
253
|
class ListDataSourcesResponse
|
170
254
|
# @private
|
171
255
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -183,12 +267,20 @@ module Google
|
|
183
267
|
end
|
184
268
|
end
|
185
269
|
|
270
|
+
class MerchantReviewDataSource
|
271
|
+
# @private
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
186
276
|
class PrimaryProductDataSource
|
187
277
|
# @private
|
188
278
|
class Representation < Google::Apis::Core::JsonRepresentation
|
189
279
|
property :channel, as: 'channel'
|
190
280
|
property :content_language, as: 'contentLanguage'
|
191
281
|
collection :countries, as: 'countries'
|
282
|
+
property :default_rule, as: 'defaultRule', class: Google::Apis::MerchantapiDatasourcesV1beta::DefaultRule, decorator: Google::Apis::MerchantapiDatasourcesV1beta::DefaultRule::Representation
|
283
|
+
|
192
284
|
property :feed_label, as: 'feedLabel'
|
193
285
|
end
|
194
286
|
end
|
@@ -203,6 +295,12 @@ module Google
|
|
203
295
|
end
|
204
296
|
end
|
205
297
|
|
298
|
+
class ProductReviewDataSource
|
299
|
+
# @private
|
300
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
206
304
|
class ProductStatusChangeMessage
|
207
305
|
# @private
|
208
306
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -210,6 +308,7 @@ module Google
|
|
210
308
|
property :attribute, as: 'attribute'
|
211
309
|
collection :changes, as: 'changes', class: Google::Apis::MerchantapiDatasourcesV1beta::ProductChange, decorator: Google::Apis::MerchantapiDatasourcesV1beta::ProductChange::Representation
|
212
310
|
|
311
|
+
property :expiration_time, as: 'expirationTime'
|
213
312
|
property :managing_account, as: 'managingAccount'
|
214
313
|
property :resource, as: 'resource'
|
215
314
|
property :resource_id, as: 'resourceId'
|
@@ -238,6 +337,8 @@ module Google
|
|
238
337
|
class Representation < Google::Apis::Core::JsonRepresentation
|
239
338
|
property :content_language, as: 'contentLanguage'
|
240
339
|
property :feed_label, as: 'feedLabel'
|
340
|
+
collection :referencing_primary_data_sources, as: 'referencingPrimaryDataSources', class: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference, decorator: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference::Representation
|
341
|
+
|
241
342
|
end
|
242
343
|
end
|
243
344
|
|
@@ -266,6 +266,38 @@ module Google
|
|
266
266
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
267
267
|
execute_or_queue_command(command, &block)
|
268
268
|
end
|
269
|
+
|
270
|
+
# Gets the latest data source file upload. Only the `latest` alias is accepted
|
271
|
+
# for a file upload.
|
272
|
+
# @param [String] name
|
273
|
+
# Required. The name of the data source file upload to retrieve. Format: `
|
274
|
+
# accounts/`account`/dataSources/`datasource`/fileUploads/latest`
|
275
|
+
# @param [String] fields
|
276
|
+
# Selector specifying which fields to include in a partial response.
|
277
|
+
# @param [String] quota_user
|
278
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
279
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
280
|
+
# @param [Google::Apis::RequestOptions] options
|
281
|
+
# Request-specific options
|
282
|
+
#
|
283
|
+
# @yield [result, err] Result & error if block supplied
|
284
|
+
# @yieldparam result [Google::Apis::MerchantapiDatasourcesV1beta::FileUpload] parsed result object
|
285
|
+
# @yieldparam err [StandardError] error object if request failed
|
286
|
+
#
|
287
|
+
# @return [Google::Apis::MerchantapiDatasourcesV1beta::FileUpload]
|
288
|
+
#
|
289
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
290
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
291
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
292
|
+
def get_account_data_source_file_upload(name, fields: nil, quota_user: nil, options: nil, &block)
|
293
|
+
command = make_simple_command(:get, 'datasources/v1beta/{+name}', options)
|
294
|
+
command.response_representation = Google::Apis::MerchantapiDatasourcesV1beta::FileUpload::Representation
|
295
|
+
command.response_class = Google::Apis::MerchantapiDatasourcesV1beta::FileUpload
|
296
|
+
command.params['name'] = name unless name.nil?
|
297
|
+
command.query['fields'] = fields unless fields.nil?
|
298
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
299
|
+
execute_or_queue_command(command, &block)
|
300
|
+
end
|
269
301
|
|
270
302
|
protected
|
271
303
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-merchantapi_datasources_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_datasources_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_datasources_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_datasources_v1beta/v0.2.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_datasources_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.22
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Merchant API DatasourcesV1beta
|