google-apis-merchantapi_datasources_v1beta 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1895a2c91a3f1532d2859c2e1a05316222a1a72c93a4de059b2271827a17fb8c
4
- data.tar.gz: 2de3b2b5af2c3b245fb9d43e297c874045a39608987936ac3d935145f6d108f0
3
+ metadata.gz: 2c2bfd4029741c16529b0fb68fd1617829fc03b82ddd2278098c34d942cb5f1f
4
+ data.tar.gz: 8aba665319f7316b06b142baa545f3099c928f8af422326a31ba72f97fd066ef
5
5
  SHA512:
6
- metadata.gz: 1f2deeefd27fda826ea625e43a1f4880a4e95307b87841880eadd3b357ec8f3881739f219496d960e87af0dc43158ea55454d89fed72f815c301af36ee3716d9
7
- data.tar.gz: e4c4726666ed31f6f1acbbe3dbcc86e18adf5f65e1b737b8605efd2dd4bbbd244c8d1b5b2e5ff8a051479a91a15a6005d12d94fdc992bbf022c5378f4b7230a6
6
+ metadata.gz: bb9d1905049884d5dedd216f58277e8b79b6010a08335a981c649a9ebf650f61250b79ab4711c8464d4b98b925c38eec55740d297e80b22c99babd36ea1f1c71
7
+ data.tar.gz: 5453db0419f312a920815eba19f0a178e472352ef3bda4bb5050a9a87853d1ac939077b9f141fa6b81fedd35c0536cb7e358970c8e4780bb0bd0904bf623171c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-merchantapi_datasources_v1beta
2
2
 
3
+ ### v0.3.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250219
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.2.0 (2024-12-02)
9
+
10
+ * Regenerated from discovery document revision 20241119
11
+ * Regenerated using generator version 0.15.1
12
+
3
13
  ### v0.1.0 (2024-06-27)
4
14
 
5
15
  * 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 fetch url. Used for [submitting data
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 fetch url. Used for [submitting data
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,17 @@ module Google
405
633
  # @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::ProductChange>]
406
634
  attr_accessor :changes
407
635
 
636
+ # The time at which the event was generated.
637
+ # Corresponds to the JSON property `eventTime`
638
+ # @return [String]
639
+ attr_accessor :event_time
640
+
641
+ # The product expiration time. This field will not bet set if the notification
642
+ # is sent for a product deletion event.
643
+ # Corresponds to the JSON property `expirationTime`
644
+ # @return [String]
645
+ attr_accessor :expiration_time
646
+
408
647
  # The account that manages the merchant's account. can be the same as merchant
409
648
  # id if it is standalone account. Format : `accounts/`service_provider_id``
410
649
  # Corresponds to the JSON property `managingAccount`
@@ -436,6 +675,8 @@ module Google
436
675
  @account = args[:account] if args.key?(:account)
437
676
  @attribute = args[:attribute] if args.key?(:attribute)
438
677
  @changes = args[:changes] if args.key?(:changes)
678
+ @event_time = args[:event_time] if args.key?(:event_time)
679
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
439
680
  @managing_account = args[:managing_account] if args.key?(:managing_account)
440
681
  @resource = args[:resource] if args.key?(:resource)
441
682
  @resource_id = args[:resource_id] if args.key?(:resource_id)
@@ -501,7 +742,9 @@ module Google
501
742
  end
502
743
  end
503
744
 
504
- # The supplemental data source for local and online products.
745
+ # The supplemental data source for local and online products. After creation,
746
+ # you should make sure to link the supplemental product data source into one or
747
+ # more primary product data sources.
505
748
  class SupplementalProductDataSource
506
749
  include Google::Apis::Core::Hashable
507
750
 
@@ -519,13 +762,21 @@ module Google
519
762
  # dashes (-). See also [migration to feed labels](https://developers.google.com/
520
763
  # shopping-content/guides/products/feed-labels). `feedLabel` and `
521
764
  # 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.
765
+ # product content type. They must be set for data sources with a file input. The
766
+ # fields must be unset for data sources without file input. If set, the data
767
+ # source will only accept products matching this combination. If unset, the data
768
+ # source will accept produts without that restriction.
525
769
  # Corresponds to the JSON property `feedLabel`
526
770
  # @return [String]
527
771
  attr_accessor :feed_label
528
772
 
773
+ # Output only. The (unordered and deduplicated) list of all primary data sources
774
+ # linked to this data source in either default or custom rules. Supplemental
775
+ # data source cannot be deleted before all links are removed.
776
+ # Corresponds to the JSON property `referencingPrimaryDataSources`
777
+ # @return [Array<Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference>]
778
+ attr_accessor :referencing_primary_data_sources
779
+
529
780
  def initialize(**args)
530
781
  update!(**args)
531
782
  end
@@ -534,6 +785,7 @@ module Google
534
785
  def update!(**args)
535
786
  @content_language = args[:content_language] if args.key?(:content_language)
536
787
  @feed_label = args[:feed_label] if args.key?(:feed_label)
788
+ @referencing_primary_data_sources = args[:referencing_primary_data_sources] if args.key?(:referencing_primary_data_sources)
537
789
  end
538
790
  end
539
791
 
@@ -543,24 +795,28 @@ module Google
543
795
  class TimeOfDay
544
796
  include Google::Apis::Core::Hashable
545
797
 
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.
798
+ # Hours of a day in 24 hour format. Must be greater than or equal to 0 and
799
+ # typically must be less than or equal to 23. An API may choose to allow the
800
+ # value "24:00:00" for scenarios like business closing time.
548
801
  # Corresponds to the JSON property `hours`
549
802
  # @return [Fixnum]
550
803
  attr_accessor :hours
551
804
 
552
- # Minutes of hour of day. Must be from 0 to 59.
805
+ # Minutes of an hour. Must be greater than or equal to 0 and less than or equal
806
+ # to 59.
553
807
  # Corresponds to the JSON property `minutes`
554
808
  # @return [Fixnum]
555
809
  attr_accessor :minutes
556
810
 
557
- # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
811
+ # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and
812
+ # less than or equal to 999,999,999.
558
813
  # Corresponds to the JSON property `nanos`
559
814
  # @return [Fixnum]
560
815
  attr_accessor :nanos
561
816
 
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.
817
+ # Seconds of a minute. Must be greater than or equal to 0 and typically must be
818
+ # less than or equal to 59. An API may allow the value 60 if it allows leap-
819
+ # seconds.
564
820
  # Corresponds to the JSON property `seconds`
565
821
  # @return [Fixnum]
566
822
  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.1.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240611"
25
+ REVISION = "20250219"
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,8 @@ 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 :event_time, as: 'eventTime'
312
+ property :expiration_time, as: 'expirationTime'
213
313
  property :managing_account, as: 'managingAccount'
214
314
  property :resource, as: 'resource'
215
315
  property :resource_id, as: 'resourceId'
@@ -238,6 +338,8 @@ module Google
238
338
  class Representation < Google::Apis::Core::JsonRepresentation
239
339
  property :content_language, as: 'contentLanguage'
240
340
  property :feed_label, as: 'feedLabel'
341
+ collection :referencing_primary_data_sources, as: 'referencingPrimaryDataSources', class: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference, decorator: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference::Representation
342
+
241
343
  end
242
344
  end
243
345
 
@@ -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,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_datasources_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.1.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_datasources_v1beta/v0.3.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_datasources_v1beta
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Merchant API DatasourcesV1beta
82
79
  test_files: []