google-apis-chromewebstore_v2 0.4.0 → 0.5.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: 733cadfb85b134109b8a4ecfd4ccf8113448a46b39e9b35d25fcf16d0a681e7f
4
+ data.tar.gz: 283fde8229ca3fe79a2d6cdc85339f8b57864a4ea673f5fb01921b3bdbddee78
5
5
  SHA512:
6
- metadata.gz: 630051511015664db7443d2bb538e33c82b769db048aa561702c8937e4715f4cb3c11c0e5e0676db256ff900753e792eea22a694c3a8d563e61de9bdea194950
7
- data.tar.gz: 4b3039178829a4ee641955fd784c72372e33e3a3d70e6e951b3836812603d404e9d02973144ff965c9adc2da1c354f58c422d4ee01a11a9449bee8072f4e662e
6
+ metadata.gz: ff81c7be9b4adc4929fe22ac3d636b235ee4e3659c405db487849809c9e7259bdc449c053acd44cb0150921b1046a4881ce53aec4154c8659a8d7b39854e6721
7
+ data.tar.gz: cfa7a41e55cf3377b12bb2e4698f601e13dd369a104fbc60757acd93c3e97d65dcdb4218928a02a8db8e3252cddd603b2ce2943aed20b74f0bb5f53acf515cc8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chromewebstore_v2
2
2
 
3
+ ### v0.5.0 (2026-09-20)
4
+
5
+ * Regenerated from discovery document revision 20260916
6
+
3
7
  ### v0.4.0 (2026-06-14)
4
8
 
5
9
  * 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
@@ -95,6 +114,32 @@ module Google
95
114
  end
96
115
  end
97
116
 
117
+ # Response message for FetchItemReviews.
118
+ class FetchItemReviewsResponse
119
+ include Google::Apis::Core::Hashable
120
+
121
+ # A token that can be sent as `page_token` to retrieve the next page. If this
122
+ # field is omitted, there are no subsequent pages.
123
+ # Corresponds to the JSON property `nextPageToken`
124
+ # @return [String]
125
+ attr_accessor :next_page_token
126
+
127
+ # The list of reviews.
128
+ # Corresponds to the JSON property `reviews`
129
+ # @return [Array<Google::Apis::ChromewebstoreV2::Review>]
130
+ attr_accessor :reviews
131
+
132
+ def initialize(**args)
133
+ update!(**args)
134
+ end
135
+
136
+ # Update properties of this object
137
+ def update!(**args)
138
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
139
+ @reviews = args[:reviews] if args.key?(:reviews)
140
+ end
141
+ end
142
+
98
143
  # Response message for `FetchItemStatus`.
99
144
  class FetchItemStatusResponse
100
145
  include Google::Apis::Core::Hashable
@@ -271,6 +316,56 @@ module Google
271
316
  end
272
317
  end
273
318
 
319
+ # A review written by a user to rate an item in the Chrome Web Store.
320
+ class Review
321
+ include Google::Apis::Core::Hashable
322
+
323
+ # Info on the author of the review.
324
+ # Corresponds to the JSON property `authorInfo`
325
+ # @return [Google::Apis::ChromewebstoreV2::AuthorInfo]
326
+ attr_accessor :author_info
327
+
328
+ # Content of the review.
329
+ # Corresponds to the JSON property `comment`
330
+ # @return [String]
331
+ attr_accessor :comment
332
+
333
+ # Output only. When the review was posted.
334
+ # Corresponds to the JSON property `createTime`
335
+ # @return [String]
336
+ attr_accessor :create_time
337
+
338
+ # Output only. The item that this review evaluates. Format: publishers/`
339
+ # publisher`/items/`item`
340
+ # Corresponds to the JSON property `item`
341
+ # @return [String]
342
+ attr_accessor :item
343
+
344
+ # Identifier. Review resource name. Format: reviews/`reviewId`
345
+ # Corresponds to the JSON property `name`
346
+ # @return [String]
347
+ attr_accessor :name
348
+
349
+ # Rating of the item, between 1 and 5.
350
+ # Corresponds to the JSON property `rating`
351
+ # @return [Fixnum]
352
+ attr_accessor :rating
353
+
354
+ def initialize(**args)
355
+ update!(**args)
356
+ end
357
+
358
+ # Update properties of this object
359
+ def update!(**args)
360
+ @author_info = args[:author_info] if args.key?(:author_info)
361
+ @comment = args[:comment] if args.key?(:comment)
362
+ @create_time = args[:create_time] if args.key?(:create_time)
363
+ @item = args[:item] if args.key?(:item)
364
+ @name = args[:name] if args.key?(:name)
365
+ @rating = args[:rating] if args.key?(:rating)
366
+ end
367
+ end
368
+
274
369
  # Request message for SetPublishedDeployPercentage.
275
370
  class SetPublishedDeployPercentageRequest
276
371
  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.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260601"
25
+ REVISION = "20260916"
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
 
@@ -46,6 +52,12 @@ module Google
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
55
+ class FetchItemReviewsResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class FetchItemStatusResponse
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -70,6 +82,12 @@ module Google
70
82
  include Google::Apis::Core::JsonObjectSupport
71
83
  end
72
84
 
85
+ class Review
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
73
91
  class SetPublishedDeployPercentageRequest
74
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
93
 
@@ -106,6 +124,13 @@ module Google
106
124
  include Google::Apis::Core::JsonObjectSupport
107
125
  end
108
126
 
127
+ class AuthorInfo
128
+ # @private
129
+ class Representation < Google::Apis::Core::JsonRepresentation
130
+ property :display_name, as: 'displayName'
131
+ end
132
+ end
133
+
109
134
  class CancelSubmissionRequest
110
135
  # @private
111
136
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -133,6 +158,15 @@ module Google
133
158
  end
134
159
  end
135
160
 
161
+ class FetchItemReviewsResponse
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ property :next_page_token, as: 'nextPageToken'
165
+ collection :reviews, as: 'reviews', class: Google::Apis::ChromewebstoreV2::Review, decorator: Google::Apis::ChromewebstoreV2::Review::Representation
166
+
167
+ end
168
+ end
169
+
136
170
  class FetchItemStatusResponse
137
171
  # @private
138
172
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -180,6 +214,19 @@ module Google
180
214
  end
181
215
  end
182
216
 
217
+ class Review
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :author_info, as: 'authorInfo', class: Google::Apis::ChromewebstoreV2::AuthorInfo, decorator: Google::Apis::ChromewebstoreV2::AuthorInfo::Representation
221
+
222
+ property :comment, as: 'comment'
223
+ property :create_time, as: 'createTime'
224
+ property :item, as: 'item'
225
+ property :name, as: 'name'
226
+ property :rating, as: 'rating'
227
+ end
228
+ end
229
+
183
230
  class SetPublishedDeployPercentageRequest
184
231
  # @private
185
232
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -131,6 +131,57 @@ 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. Supported fields are `rating` and `create_time`. Supported orders are
144
+ # `asc` (default) and `desc`. Example: "rating desc, create_time".
145
+ # @param [Fixnum] page_size
146
+ # Optional. The maximum number of reviews to return. The service may return
147
+ # fewer than this value. If unspecified, at most 50 reviews will be returned.
148
+ # The maximum value is 200; values above 200 will be coerced to 200.
149
+ # @param [String] page_token
150
+ # Optional. A page token, received from a previous `FetchItemReviews` call.
151
+ # Provide this to retrieve the subsequent page. When paginating, all other
152
+ # parameters provided to `FetchItemReviews` must match the call that provided
153
+ # the page token.
154
+ # @param [String] fields
155
+ # Selector specifying which fields to include in a partial response.
156
+ # @param [String] quota_user
157
+ # Available to use for quota purposes for server-side applications. Can be any
158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
159
+ # @param [Google::Apis::RequestOptions] options
160
+ # Request-specific options
161
+ #
162
+ # @yield [result, err] Result & error if block supplied
163
+ # @yieldparam result [Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse] parsed result object
164
+ # @yieldparam err [StandardError] error object if request failed
165
+ #
166
+ # @return [Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse]
167
+ #
168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
171
+ 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)
172
+ command = make_simple_command(:get, 'v2/{+name}:fetchReviews', options)
173
+ command.response_representation = Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse::Representation
174
+ command.response_class = Google::Apis::ChromewebstoreV2::FetchItemReviewsResponse
175
+ command.params['name'] = name unless name.nil?
176
+ command.query['filter'] = filter unless filter.nil?
177
+ command.query['orderBy'] = order_by unless order_by.nil?
178
+ command.query['pageSize'] = page_size unless page_size.nil?
179
+ command.query['pageToken'] = page_token unless page_token.nil?
180
+ command.query['fields'] = fields unless fields.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ execute_or_queue_command(command, &block)
183
+ end
184
+
134
185
  # Fetch the status of an item.
135
186
  # @param [String] name
136
187
  # Required. Name of the item to retrieve the status of in the form `publishers/`
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.5.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.5.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: