google-apis-chromewebstore_v2 0.4.0 → 0.6.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: 870f5e55c4c8950c0d9b67f622ad1c1ebed996684c13059e4c0910eda3bac09a
4
- data.tar.gz: 2be29b057599a09d27f8a33e3de93f77c7be3cd67abbf33814554764a5798e5e
3
+ metadata.gz: 5422206e17d585369186f37d08655bea85905d4f49269b5b2f227f16ba63968a
4
+ data.tar.gz: 2dbbb67d379bd0f8e0291342c7c07649f3cc2fd365860c3bc77edd2001024ca9
5
5
  SHA512:
6
- metadata.gz: 630051511015664db7443d2bb538e33c82b769db048aa561702c8937e4715f4cb3c11c0e5e0676db256ff900753e792eea22a694c3a8d563e61de9bdea194950
7
- data.tar.gz: 4b3039178829a4ee641955fd784c72372e33e3a3d70e6e951b3836812603d404e9d02973144ff965c9adc2da1c354f58c422d4ee01a11a9449bee8072f4e662e
6
+ metadata.gz: be3ecfe8b6dbbe00da0d6e17c2e4dcd8248e86b908710c9b7f851dbfba87518e40371603958904140c3a14018c738cb2abd93b26c05ca8dbe52a18331088378b
7
+ data.tar.gz: d58a371ae4d77b83f61e665f358d17ff48b62843b7c0cabf9fb39db17067cc99e0915008fb24586cf87ebd2b85af79d063fb2b2bd32ce1607297f68cca0394bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-chromewebstore_v2
2
2
 
3
+ ### v0.6.0 (2026-11-01)
4
+
5
+ * Regenerated from discovery document revision 20261030
6
+ * Regenerated using generator version 0.19.1
7
+
8
+ ### v0.5.0 (2026-09-27)
9
+
10
+ * Regenerated from discovery document revision 20260924
11
+
3
12
  ### v0.4.0 (2026-06-14)
4
13
 
5
14
  * Regenerated from discovery document revision 20260601
@@ -22,6 +22,25 @@ module Google
22
22
  module Apis
23
23
  module ChromewebstoreV2
24
24
 
25
+ # Info on the author of the review.
26
+ class AuthorInfo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Display name for the author.
30
+ # Corresponds to the JSON property `displayName`
31
+ # @return [String]
32
+ attr_accessor :display_name
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @display_name = args[:display_name] if args.key?(:display_name)
41
+ end
42
+ end
43
+
25
44
  # Request message for CancelSubmission.
26
45
  class CancelSubmissionRequest
27
46
  include Google::Apis::Core::Hashable
@@ -48,6 +67,47 @@ module Google
48
67
  end
49
68
  end
50
69
 
70
+ # Represents a whole or partial calendar date, such as a birthday. The time of
71
+ # day and time zone are either specified elsewhere or are insignificant. The
72
+ # date is relative to the Gregorian Calendar. This can represent one of the
73
+ # following: * A full date, with non-zero year, month, and day values. * A month
74
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
75
+ # with a zero month and a zero day. * A year and month, with a zero day (for
76
+ # example, a credit card expiration date). Related types: * google.type.
77
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
78
+ class Date
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
82
+ # specify a year by itself or a year and month where the day isn't significant.
83
+ # Corresponds to the JSON property `day`
84
+ # @return [Fixnum]
85
+ attr_accessor :day
86
+
87
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
88
+ # and day.
89
+ # Corresponds to the JSON property `month`
90
+ # @return [Fixnum]
91
+ attr_accessor :month
92
+
93
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
94
+ # year.
95
+ # Corresponds to the JSON property `year`
96
+ # @return [Fixnum]
97
+ attr_accessor :year
98
+
99
+ def initialize(**args)
100
+ update!(**args)
101
+ end
102
+
103
+ # Update properties of this object
104
+ def update!(**args)
105
+ @day = args[:day] if args.key?(:day)
106
+ @month = args[:month] if args.key?(:month)
107
+ @year = args[:year] if args.key?(:year)
108
+ end
109
+ end
110
+
51
111
  # Deployment information for a specific release channel. Used in requests to
52
112
  # update deployment parameters.
53
113
  class DeployInfo
@@ -95,6 +155,32 @@ module Google
95
155
  end
96
156
  end
97
157
 
158
+ # Response message for FetchItemReviews.
159
+ class FetchItemReviewsResponse
160
+ include Google::Apis::Core::Hashable
161
+
162
+ # A token that can be sent as `page_token` to retrieve the next page. If this
163
+ # field is omitted, there are no subsequent pages.
164
+ # Corresponds to the JSON property `nextPageToken`
165
+ # @return [String]
166
+ attr_accessor :next_page_token
167
+
168
+ # The list of reviews.
169
+ # Corresponds to the JSON property `reviews`
170
+ # @return [Array<Google::Apis::ChromewebstoreV2::Review>]
171
+ attr_accessor :reviews
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
180
+ @reviews = args[:reviews] if args.key?(:reviews)
181
+ end
182
+ end
183
+
98
184
  # Response message for `FetchItemStatus`.
99
185
  class FetchItemStatusResponse
100
186
  include Google::Apis::Core::Hashable
@@ -186,6 +272,75 @@ module Google
186
272
  end
187
273
  end
188
274
 
275
+ # A single row of metrics and dimension values.
276
+ class MetricRow
277
+ include Google::Apis::Core::Hashable
278
+
279
+ # Represents a whole or partial calendar date, such as a birthday. The time of
280
+ # day and time zone are either specified elsewhere or are insignificant. The
281
+ # date is relative to the Gregorian Calendar. This can represent one of the
282
+ # following: * A full date, with non-zero year, month, and day values. * A month
283
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
284
+ # with a zero month and a zero day. * A year and month, with a zero day (for
285
+ # example, a credit card expiration date). Related types: * google.type.
286
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
287
+ # Corresponds to the JSON property `date`
288
+ # @return [Google::Apis::ChromewebstoreV2::Date]
289
+ attr_accessor :date
290
+
291
+ # Dimension value columns for the row.
292
+ # Corresponds to the JSON property `dimensionValues`
293
+ # @return [Array<String>]
294
+ attr_accessor :dimension_values
295
+
296
+ # Metric columns for the row.
297
+ # Corresponds to the JSON property `metricValues`
298
+ # @return [Array<Google::Apis::ChromewebstoreV2::MetricValue>]
299
+ attr_accessor :metric_values
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @date = args[:date] if args.key?(:date)
308
+ @dimension_values = args[:dimension_values] if args.key?(:dimension_values)
309
+ @metric_values = args[:metric_values] if args.key?(:metric_values)
310
+ end
311
+ end
312
+
313
+ # Represents the value of a single metric
314
+ class MetricValue
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # The name of the metric
318
+ # Corresponds to the JSON property `metric`
319
+ # @return [String]
320
+ attr_accessor :metric
321
+
322
+ # The unique user count associated with the metric (if applicable).
323
+ # Corresponds to the JSON property `uniqueUserCount`
324
+ # @return [Fixnum]
325
+ attr_accessor :unique_user_count
326
+
327
+ # The value of the metric.
328
+ # Corresponds to the JSON property `value`
329
+ # @return [Fixnum]
330
+ attr_accessor :value
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @metric = args[:metric] if args.key?(:metric)
339
+ @unique_user_count = args[:unique_user_count] if args.key?(:unique_user_count)
340
+ @value = args[:value] if args.key?(:value)
341
+ end
342
+ end
343
+
189
344
  # Request message for PublishItem.
190
345
  class PublishItemRequest
191
346
  include Google::Apis::Core::Hashable
@@ -271,6 +426,208 @@ module Google
271
426
  end
272
427
  end
273
428
 
429
+ # Response message for QueryItemMetrics.
430
+ class QueryItemMetricsResponse
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # The metric rows.
434
+ # Corresponds to the JSON property `metricRows`
435
+ # @return [Array<Google::Apis::ChromewebstoreV2::MetricRow>]
436
+ attr_accessor :metric_rows
437
+
438
+ # A token that can be sent as `page_token` to retrieve the next page. If this
439
+ # field is omitted, there are no subsequent pages.
440
+ # Corresponds to the JSON property `nextPageToken`
441
+ # @return [String]
442
+ attr_accessor :next_page_token
443
+
444
+ def initialize(**args)
445
+ update!(**args)
446
+ end
447
+
448
+ # Update properties of this object
449
+ def update!(**args)
450
+ @metric_rows = args[:metric_rows] if args.key?(:metric_rows)
451
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
452
+ end
453
+ end
454
+
455
+ # Singleton resource for the rating summary of an item.
456
+ class RatingSummary
457
+ include Google::Apis::Core::Hashable
458
+
459
+ # The number of five star ratings.
460
+ # Corresponds to the JSON property `fiveStarRatingCount`
461
+ # @return [Fixnum]
462
+ attr_accessor :five_star_rating_count
463
+
464
+ # The number of four star ratings.
465
+ # Corresponds to the JSON property `fourStarRatingCount`
466
+ # @return [Fixnum]
467
+ attr_accessor :four_star_rating_count
468
+
469
+ # Identifier. Item rating summary resource name Format: publishers/`publisher`/
470
+ # items/`item`/ratingSummary
471
+ # Corresponds to the JSON property `name`
472
+ # @return [String]
473
+ attr_accessor :name
474
+
475
+ # The number of ratings with a non-empty review text.
476
+ # Corresponds to the JSON property `nonEmptyReviewCount`
477
+ # @return [Fixnum]
478
+ attr_accessor :non_empty_review_count
479
+
480
+ # The number of one star ratings.
481
+ # Corresponds to the JSON property `oneStarRatingCount`
482
+ # @return [Fixnum]
483
+ attr_accessor :one_star_rating_count
484
+
485
+ # The rating of the item as shown on the store page, expressed as a double
486
+ # between 1 and 5.
487
+ # Corresponds to the JSON property `rating`
488
+ # @return [Float]
489
+ attr_accessor :rating
490
+
491
+ # The total number of ratings for the item.
492
+ # Corresponds to the JSON property `ratingCount`
493
+ # @return [Fixnum]
494
+ attr_accessor :rating_count
495
+
496
+ # The number of three star ratings.
497
+ # Corresponds to the JSON property `threeStarRatingCount`
498
+ # @return [Fixnum]
499
+ attr_accessor :three_star_rating_count
500
+
501
+ # The number of two star ratings.
502
+ # Corresponds to the JSON property `twoStarRatingCount`
503
+ # @return [Fixnum]
504
+ attr_accessor :two_star_rating_count
505
+
506
+ def initialize(**args)
507
+ update!(**args)
508
+ end
509
+
510
+ # Update properties of this object
511
+ def update!(**args)
512
+ @five_star_rating_count = args[:five_star_rating_count] if args.key?(:five_star_rating_count)
513
+ @four_star_rating_count = args[:four_star_rating_count] if args.key?(:four_star_rating_count)
514
+ @name = args[:name] if args.key?(:name)
515
+ @non_empty_review_count = args[:non_empty_review_count] if args.key?(:non_empty_review_count)
516
+ @one_star_rating_count = args[:one_star_rating_count] if args.key?(:one_star_rating_count)
517
+ @rating = args[:rating] if args.key?(:rating)
518
+ @rating_count = args[:rating_count] if args.key?(:rating_count)
519
+ @three_star_rating_count = args[:three_star_rating_count] if args.key?(:three_star_rating_count)
520
+ @two_star_rating_count = args[:two_star_rating_count] if args.key?(:two_star_rating_count)
521
+ end
522
+ end
523
+
524
+ # A review written by a user to rate an item in the Chrome Web Store.
525
+ class Review
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # Info on the author of the review.
529
+ # Corresponds to the JSON property `authorInfo`
530
+ # @return [Google::Apis::ChromewebstoreV2::AuthorInfo]
531
+ attr_accessor :author_info
532
+
533
+ # Content of the review.
534
+ # Corresponds to the JSON property `comment`
535
+ # @return [String]
536
+ attr_accessor :comment
537
+
538
+ # Output only. When the review was posted.
539
+ # Corresponds to the JSON property `createTime`
540
+ # @return [String]
541
+ attr_accessor :create_time
542
+
543
+ # Output only. The item that this review evaluates. Format: publishers/`
544
+ # publisher`/items/`item`
545
+ # Corresponds to the JSON property `item`
546
+ # @return [String]
547
+ attr_accessor :item
548
+
549
+ # Identifier. Review resource name. Format: reviews/`reviewId`
550
+ # Corresponds to the JSON property `name`
551
+ # @return [String]
552
+ attr_accessor :name
553
+
554
+ # Rating of the item, between 1 and 5.
555
+ # Corresponds to the JSON property `rating`
556
+ # @return [Fixnum]
557
+ attr_accessor :rating
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @author_info = args[:author_info] if args.key?(:author_info)
566
+ @comment = args[:comment] if args.key?(:comment)
567
+ @create_time = args[:create_time] if args.key?(:create_time)
568
+ @item = args[:item] if args.key?(:item)
569
+ @name = args[:name] if args.key?(:name)
570
+ @rating = args[:rating] if args.key?(:rating)
571
+ end
572
+ end
573
+
574
+ # Request message for RollbackItem.
575
+ class RollbackItemRequest
576
+ include Google::Apis::Core::Hashable
577
+
578
+ # Required. The new version to assign to the package being rolled back to. This
579
+ # effectively "rolls forward" the previous package by giving it a higher version
580
+ # number than the currently-published package. E.g. if the current published
581
+ # version is 1.1, the new version could be 1.1.1 or 1.2 but not 1.0.
582
+ # Corresponds to the JSON property `newVersion`
583
+ # @return [String]
584
+ attr_accessor :new_version
585
+
586
+ # Required. The reason for the rollback that will be used for internal auditing
587
+ # and developer dashboard visibility.
588
+ # Corresponds to the JSON property `rollbackReason`
589
+ # @return [String]
590
+ attr_accessor :rollback_reason
591
+
592
+ # Required. The target previously published CRX version to roll back to. If
593
+ # unset, defaults to the last published CRX version.
594
+ # Corresponds to the JSON property `targetCrxVersion`
595
+ # @return [String]
596
+ attr_accessor :target_crx_version
597
+
598
+ # Optional. If set, validate and dry run the request but do not actually
599
+ # initiate the rollback
600
+ # Corresponds to the JSON property `validateOnly`
601
+ # @return [Boolean]
602
+ attr_accessor :validate_only
603
+ alias_method :validate_only?, :validate_only
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @new_version = args[:new_version] if args.key?(:new_version)
612
+ @rollback_reason = args[:rollback_reason] if args.key?(:rollback_reason)
613
+ @target_crx_version = args[:target_crx_version] if args.key?(:target_crx_version)
614
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
615
+ end
616
+ end
617
+
618
+ # Response message for `RollbackItem`.
619
+ class RollbackItemResponse
620
+ include Google::Apis::Core::Hashable
621
+
622
+ def initialize(**args)
623
+ update!(**args)
624
+ end
625
+
626
+ # Update properties of this object
627
+ def update!(**args)
628
+ end
629
+ end
630
+
274
631
  # Request message for SetPublishedDeployPercentage.
275
632
  class SetPublishedDeployPercentageRequest
276
633
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChromewebstoreV2
18
18
  # Version of the google-apis-chromewebstore_v2 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.19.0"
22
+ GENERATOR_VERSION = "0.19.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260601"
25
+ REVISION = "20261030"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module ChromewebstoreV2
24
24
 
25
+ class AuthorInfo
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class CancelSubmissionRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -34,6 +40,12 @@ module Google
34
40
  include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
43
+ class Date
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class DeployInfo
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -46,6 +58,12 @@ module Google
46
58
  include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
61
+ class FetchItemReviewsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class FetchItemStatusResponse
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
@@ -58,6 +76,18 @@ module Google
58
76
  include Google::Apis::Core::JsonObjectSupport
59
77
  end
60
78
 
79
+ class MetricRow
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class MetricValue
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
61
91
  class PublishItemRequest
62
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
93
 
@@ -70,6 +100,36 @@ module Google
70
100
  include Google::Apis::Core::JsonObjectSupport
71
101
  end
72
102
 
103
+ class QueryItemMetricsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class RatingSummary
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Review
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class RollbackItemRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class RollbackItemResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
73
133
  class SetPublishedDeployPercentageRequest
74
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
135
 
@@ -106,6 +166,13 @@ module Google
106
166
  include Google::Apis::Core::JsonObjectSupport
107
167
  end
108
168
 
169
+ class AuthorInfo
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :display_name, as: 'displayName'
173
+ end
174
+ end
175
+
109
176
  class CancelSubmissionRequest
110
177
  # @private
111
178
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -118,6 +185,15 @@ module Google
118
185
  end
119
186
  end
120
187
 
188
+ class Date
189
+ # @private
190
+ class Representation < Google::Apis::Core::JsonRepresentation
191
+ property :day, as: 'day'
192
+ property :month, as: 'month'
193
+ property :year, as: 'year'
194
+ end
195
+ end
196
+
121
197
  class DeployInfo
122
198
  # @private
123
199
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -133,6 +209,15 @@ module Google
133
209
  end
134
210
  end
135
211
 
212
+ class FetchItemReviewsResponse
213
+ # @private
214
+ class Representation < Google::Apis::Core::JsonRepresentation
215
+ property :next_page_token, as: 'nextPageToken'
216
+ collection :reviews, as: 'reviews', class: Google::Apis::ChromewebstoreV2::Review, decorator: Google::Apis::ChromewebstoreV2::Review::Representation
217
+
218
+ end
219
+ end
220
+
136
221
  class FetchItemStatusResponse
137
222
  # @private
138
223
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -158,6 +243,26 @@ module Google
158
243
  end
159
244
  end
160
245
 
246
+ class MetricRow
247
+ # @private
248
+ class Representation < Google::Apis::Core::JsonRepresentation
249
+ property :date, as: 'date', class: Google::Apis::ChromewebstoreV2::Date, decorator: Google::Apis::ChromewebstoreV2::Date::Representation
250
+
251
+ collection :dimension_values, as: 'dimensionValues'
252
+ collection :metric_values, as: 'metricValues', class: Google::Apis::ChromewebstoreV2::MetricValue, decorator: Google::Apis::ChromewebstoreV2::MetricValue::Representation
253
+
254
+ end
255
+ end
256
+
257
+ class MetricValue
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :metric, as: 'metric'
261
+ property :unique_user_count, :numeric_string => true, as: 'uniqueUserCount'
262
+ property :value, :numeric_string => true, as: 'value'
263
+ end
264
+ end
265
+
161
266
  class PublishItemRequest
162
267
  # @private
163
268
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -180,6 +285,59 @@ module Google
180
285
  end
181
286
  end
182
287
 
288
+ class QueryItemMetricsResponse
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ collection :metric_rows, as: 'metricRows', class: Google::Apis::ChromewebstoreV2::MetricRow, decorator: Google::Apis::ChromewebstoreV2::MetricRow::Representation
292
+
293
+ property :next_page_token, as: 'nextPageToken'
294
+ end
295
+ end
296
+
297
+ class RatingSummary
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :five_star_rating_count, :numeric_string => true, as: 'fiveStarRatingCount'
301
+ property :four_star_rating_count, :numeric_string => true, as: 'fourStarRatingCount'
302
+ property :name, as: 'name'
303
+ property :non_empty_review_count, :numeric_string => true, as: 'nonEmptyReviewCount'
304
+ property :one_star_rating_count, :numeric_string => true, as: 'oneStarRatingCount'
305
+ property :rating, as: 'rating'
306
+ property :rating_count, :numeric_string => true, as: 'ratingCount'
307
+ property :three_star_rating_count, :numeric_string => true, as: 'threeStarRatingCount'
308
+ property :two_star_rating_count, :numeric_string => true, as: 'twoStarRatingCount'
309
+ end
310
+ end
311
+
312
+ class Review
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ property :author_info, as: 'authorInfo', class: Google::Apis::ChromewebstoreV2::AuthorInfo, decorator: Google::Apis::ChromewebstoreV2::AuthorInfo::Representation
316
+
317
+ property :comment, as: 'comment'
318
+ property :create_time, as: 'createTime'
319
+ property :item, as: 'item'
320
+ property :name, as: 'name'
321
+ property :rating, as: 'rating'
322
+ end
323
+ end
324
+
325
+ class RollbackItemRequest
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :new_version, as: 'newVersion'
329
+ property :rollback_reason, as: 'rollbackReason'
330
+ property :target_crx_version, as: 'targetCrxVersion'
331
+ property :validate_only, as: 'validateOnly'
332
+ end
333
+ end
334
+
335
+ class RollbackItemResponse
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ end
339
+ end
340
+
183
341
  class SetPublishedDeployPercentageRequest
184
342
  # @private
185
343
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -131,6 +131,60 @@ module Google
131
131
  execute_or_queue_command(command, &block)
132
132
  end
133
133
 
134
+ # Fetch user reviews for an item.
135
+ # @param [String] name
136
+ # Required. The item resource name whose reviews are being fetched. Format:
137
+ # publishers/`publisher_id`/items/`item_id`
138
+ # @param [String] filter
139
+ # Optional. A filter to apply to the reviews. Only equality comparison on rating
140
+ # is supported, e.g. `rating = 5`.
141
+ # @param [String] order_by
142
+ # Optional. An optional comma-separated list of fields by which to sort the
143
+ # results. The default sort order is ascending (`asc`). Supported fields are: - `
144
+ # rating`: Supported orders are `asc` (default) and `desc`. - `create_time`:
145
+ # Only `desc` (most recent first) is supported; `desc` must be explicitly
146
+ # specified since the default is `asc`. Example: `rating desc`, `create_time
147
+ # desc`, or `rating desc, create_time desc`.
148
+ # @param [Fixnum] page_size
149
+ # Optional. The maximum number of reviews to return. The service may return
150
+ # fewer than this value. If unspecified, at most 50 reviews will be returned.
151
+ # The maximum value is 200; values above 200 will be coerced to 200.
152
+ # @param [String] page_token
153
+ # Optional. A page token, received from a previous `FetchItemReviews` call.
154
+ # Provide this to retrieve the subsequent page. When paginating, all other
155
+ # parameters provided to `FetchItemReviews` must match the call that provided
156
+ # the page token.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [String] quota_user
160
+ # Available to use for quota purposes for server-side applications. Can be any
161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
162
+ # @param [Google::Apis::RequestOptions] options
163
+ # Request-specific options
164
+ #
165
+ # @yield [result, err] Result & error if block supplied
166
+ # @yieldparam result [Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse] parsed result object
167
+ # @yieldparam err [StandardError] error object if request failed
168
+ #
169
+ # @return [Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse]
170
+ #
171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
174
+ def fetch_publisher_item_reviews(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
175
+ command = make_simple_command(:get, 'v2/{+name}:fetchReviews', options)
176
+ command.response_representation = Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse::Representation
177
+ command.response_class = Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse
178
+ command.params['name'] = name unless name.nil?
179
+ command.query['filter'] = filter unless filter.nil?
180
+ command.query['orderBy'] = order_by unless order_by.nil?
181
+ command.query['pageSize'] = page_size unless page_size.nil?
182
+ command.query['pageToken'] = page_token unless page_token.nil?
183
+ command.query['fields'] = fields unless fields.nil?
184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
+ execute_or_queue_command(command, &block)
186
+ end
187
+
134
188
  # Fetch the status of an item.
135
189
  # @param [String] name
136
190
  # Required. Name of the item to retrieve the status of in the form `publishers/`
@@ -162,6 +216,37 @@ module Google
162
216
  execute_or_queue_command(command, &block)
163
217
  end
164
218
 
219
+ # Gets the RatingSummary for the publishers item.
220
+ # @param [String] name
221
+ # Required. The name of the rating summary to retrieve. Format: publishers/`
222
+ # publisher`/items/`item`/ratingSummary
223
+ # @param [String] fields
224
+ # Selector specifying which fields to include in a partial response.
225
+ # @param [String] quota_user
226
+ # Available to use for quota purposes for server-side applications. Can be any
227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
228
+ # @param [Google::Apis::RequestOptions] options
229
+ # Request-specific options
230
+ #
231
+ # @yield [result, err] Result & error if block supplied
232
+ # @yieldparam result [Google::Apis::ChromewebstoreV2::RatingSummary] parsed result object
233
+ # @yieldparam err [StandardError] error object if request failed
234
+ #
235
+ # @return [Google::Apis::ChromewebstoreV2::RatingSummary]
236
+ #
237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
240
+ def get_publisher_item_rating_summary(name, fields: nil, quota_user: nil, options: nil, &block)
241
+ command = make_simple_command(:get, 'v2/{+name}', options)
242
+ command.response_representation = Google::Apis::ChromewebstoreV2::RatingSummary::Representation
243
+ command.response_class = Google::Apis::ChromewebstoreV2::RatingSummary
244
+ command.params['name'] = name unless name.nil?
245
+ command.query['fields'] = fields unless fields.nil?
246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
247
+ execute_or_queue_command(command, &block)
248
+ end
249
+
165
250
  # Submit the item to be published in the store. The item will be submitted for
166
251
  # review unless `skip_review` is set to true, or the item is staged from a
167
252
  # previous submission with `publish_type` set to `STAGED_PUBLISH`.
@@ -198,6 +283,125 @@ module Google
198
283
  execute_or_queue_command(command, &block)
199
284
  end
200
285
 
286
+ # Query the metrics for an item.
287
+ # @param [String] name
288
+ # Required. The name of the item to query the metrics for. Format: publishers/`
289
+ # publisher`/items/`item`
290
+ # @param [Array<String>, String] dimensions
291
+ # Optional. Dimensions to slice the metrics by. At most one dimension can be
292
+ # specified. **Supported dimensions:** - os: The operating system of the user. -
293
+ # app-version: The version of the item. - country: The country of the user. -
294
+ # install-source: The source of the install. - install-type: The type of install
295
+ # (from webstore, inline, or other). - language: The language of the user. -
296
+ # enabled: If the item is enabled or disabled. - utm-campaign: The UTM campaign
297
+ # of the user. - utm-content: The UTM content of the user. - utm-medium: The UTM
298
+ # medium of the user. - utm-source: The UTM source of the user. - utm-term: The
299
+ # UTM term of the user.
300
+ # @param [Array<String>, String] metrics
301
+ # Required. The metrics to query the metric set for. **Supported metrics:** -
302
+ # installs: Count of item installs. - installs-7d: Count of item installs in the
303
+ # last 7 days. - uninstalls: Count of item uninstalls. - users: Count of daily
304
+ # active users of the item. - users-7d: Count of 7-day active users of the item.
305
+ # - impressions: Count of item impressions across the entire store front. - page-
306
+ # views: Count of individual views of the item's detail page.
307
+ # @param [Fixnum] page_size
308
+ # Optional. The maximum number of rows to return. If unspecified, at most 100
309
+ # rows will be returned. The maximum value is 1000; Values above 1000 will be
310
+ # coerced to 1000.
311
+ # @param [String] page_token
312
+ # Optional. A page token, received from a previous call. Provide this to
313
+ # retrieve the subsequent page. When paginating, all other parameters provided
314
+ # to the request must match the call that provided the page token.
315
+ # @param [Fixnum] time_spec_first_date_day
316
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
317
+ # specify a year by itself or a year and month where the day isn't significant.
318
+ # @param [Fixnum] time_spec_first_date_month
319
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
320
+ # and day.
321
+ # @param [Fixnum] time_spec_first_date_year
322
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
323
+ # year.
324
+ # @param [Fixnum] time_spec_last_date_day
325
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
326
+ # specify a year by itself or a year and month where the day isn't significant.
327
+ # @param [Fixnum] time_spec_last_date_month
328
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
329
+ # and day.
330
+ # @param [Fixnum] time_spec_last_date_year
331
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
332
+ # year.
333
+ # @param [String] fields
334
+ # Selector specifying which fields to include in a partial response.
335
+ # @param [String] quota_user
336
+ # Available to use for quota purposes for server-side applications. Can be any
337
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
338
+ # @param [Google::Apis::RequestOptions] options
339
+ # Request-specific options
340
+ #
341
+ # @yield [result, err] Result & error if block supplied
342
+ # @yieldparam result [Google::Apis::ChromewebstoreV2::QueryItemMetricsResponse] parsed result object
343
+ # @yieldparam err [StandardError] error object if request failed
344
+ #
345
+ # @return [Google::Apis::ChromewebstoreV2::QueryItemMetricsResponse]
346
+ #
347
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
350
+ def query_publisher_item_metrics(name, dimensions: nil, metrics: nil, page_size: nil, page_token: nil, time_spec_first_date_day: nil, time_spec_first_date_month: nil, time_spec_first_date_year: nil, time_spec_last_date_day: nil, time_spec_last_date_month: nil, time_spec_last_date_year: nil, fields: nil, quota_user: nil, options: nil, &block)
351
+ command = make_simple_command(:get, 'v2/{+name}:queryMetrics', options)
352
+ command.response_representation = Google::Apis::ChromewebstoreV2::QueryItemMetricsResponse::Representation
353
+ command.response_class = Google::Apis::ChromewebstoreV2::QueryItemMetricsResponse
354
+ command.params['name'] = name unless name.nil?
355
+ command.query['dimensions'] = dimensions unless dimensions.nil?
356
+ command.query['metrics'] = metrics unless metrics.nil?
357
+ command.query['pageSize'] = page_size unless page_size.nil?
358
+ command.query['pageToken'] = page_token unless page_token.nil?
359
+ command.query['timeSpec.firstDate.day'] = time_spec_first_date_day unless time_spec_first_date_day.nil?
360
+ command.query['timeSpec.firstDate.month'] = time_spec_first_date_month unless time_spec_first_date_month.nil?
361
+ command.query['timeSpec.firstDate.year'] = time_spec_first_date_year unless time_spec_first_date_year.nil?
362
+ command.query['timeSpec.lastDate.day'] = time_spec_last_date_day unless time_spec_last_date_day.nil?
363
+ command.query['timeSpec.lastDate.month'] = time_spec_last_date_month unless time_spec_last_date_month.nil?
364
+ command.query['timeSpec.lastDate.year'] = time_spec_last_date_year unless time_spec_last_date_year.nil?
365
+ command.query['fields'] = fields unless fields.nil?
366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
367
+ execute_or_queue_command(command, &block)
368
+ end
369
+
370
+ # Rolls back an item's published CRX package to a specified previously published
371
+ # CRX package and publishes it to all users.
372
+ # @param [String] name
373
+ # Required. Name of the item to rollback in the form `publishers/`publisherId`/
374
+ # items/`itemId``
375
+ # @param [Google::Apis::ChromewebstoreV2::RollbackItemRequest] rollback_item_request_object
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::ChromewebstoreV2::RollbackItemResponse] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::ChromewebstoreV2::RollbackItemResponse]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def rollback_item(name, rollback_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:post, 'v2/{+name}:rollback', options)
395
+ command.request_representation = Google::Apis::ChromewebstoreV2::RollbackItemRequest::Representation
396
+ command.request_object = rollback_item_request_object
397
+ command.response_representation = Google::Apis::ChromewebstoreV2::RollbackItemResponse::Representation
398
+ command.response_class = Google::Apis::ChromewebstoreV2::RollbackItemResponse
399
+ command.params['name'] = name unless name.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
201
405
  # Set a higher target deploy percentage for the item's published revision. This
202
406
  # will be updated without the item being submitted for review. This is only
203
407
  # available to items with over 10,000 seven-day active users.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chromewebstore_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromewebstore_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-chromewebstore_v2/v0.4.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chromewebstore_v2/v0.6.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromewebstore_v2
62
62
  rdoc_options: []
63
63
  require_paths: