google-apis-chromewebstore_v2 0.5.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 +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/google/apis/chromewebstore_v2/classes.rb +262 -0
- data/lib/google/apis/chromewebstore_v2/gem_version.rb +3 -3
- data/lib/google/apis/chromewebstore_v2/representations.rb +111 -0
- data/lib/google/apis/chromewebstore_v2/service.rb +155 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5422206e17d585369186f37d08655bea85905d4f49269b5b2f227f16ba63968a
|
|
4
|
+
data.tar.gz: 2dbbb67d379bd0f8e0291342c7c07649f3cc2fd365860c3bc77edd2001024ca9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be3ecfe8b6dbbe00da0d6e17c2e4dcd8248e86b908710c9b7f851dbfba87518e40371603958904140c3a14018c738cb2abd93b26c05ca8dbe52a18331088378b
|
|
7
|
+
data.tar.gz: d58a371ae4d77b83f61e665f358d17ff48b62843b7c0cabf9fb39db17067cc99e0915008fb24586cf87ebd2b85af79d063fb2b2bd32ce1607297f68cca0394bc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-chromewebstore_v2
|
|
2
2
|
|
|
3
|
-
### v0.
|
|
3
|
+
### v0.6.0 (2026-11-01)
|
|
4
4
|
|
|
5
|
-
* Regenerated from discovery document revision
|
|
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
|
|
6
11
|
|
|
7
12
|
### v0.4.0 (2026-06-14)
|
|
8
13
|
|
|
@@ -67,6 +67,47 @@ module Google
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
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
|
+
|
|
70
111
|
# Deployment information for a specific release channel. Used in requests to
|
|
71
112
|
# update deployment parameters.
|
|
72
113
|
class DeployInfo
|
|
@@ -231,6 +272,75 @@ module Google
|
|
|
231
272
|
end
|
|
232
273
|
end
|
|
233
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
|
+
|
|
234
344
|
# Request message for PublishItem.
|
|
235
345
|
class PublishItemRequest
|
|
236
346
|
include Google::Apis::Core::Hashable
|
|
@@ -316,6 +426,101 @@ module Google
|
|
|
316
426
|
end
|
|
317
427
|
end
|
|
318
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
|
+
|
|
319
524
|
# A review written by a user to rate an item in the Chrome Web Store.
|
|
320
525
|
class Review
|
|
321
526
|
include Google::Apis::Core::Hashable
|
|
@@ -366,6 +571,63 @@ module Google
|
|
|
366
571
|
end
|
|
367
572
|
end
|
|
368
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
|
+
|
|
369
631
|
# Request message for SetPublishedDeployPercentage.
|
|
370
632
|
class SetPublishedDeployPercentageRequest
|
|
371
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.
|
|
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.
|
|
22
|
+
GENERATOR_VERSION = "0.19.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20261030"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -40,6 +40,12 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class Date
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
43
49
|
class DeployInfo
|
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
51
|
|
|
@@ -70,6 +76,18 @@ module Google
|
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
77
|
end
|
|
72
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
|
+
|
|
73
91
|
class PublishItemRequest
|
|
74
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
93
|
|
|
@@ -82,12 +100,36 @@ module Google
|
|
|
82
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
101
|
end
|
|
84
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
|
+
|
|
85
115
|
class Review
|
|
86
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
117
|
|
|
88
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
119
|
end
|
|
90
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
|
+
|
|
91
133
|
class SetPublishedDeployPercentageRequest
|
|
92
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
135
|
|
|
@@ -143,6 +185,15 @@ module Google
|
|
|
143
185
|
end
|
|
144
186
|
end
|
|
145
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
|
+
|
|
146
197
|
class DeployInfo
|
|
147
198
|
# @private
|
|
148
199
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -192,6 +243,26 @@ module Google
|
|
|
192
243
|
end
|
|
193
244
|
end
|
|
194
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
|
+
|
|
195
266
|
class PublishItemRequest
|
|
196
267
|
# @private
|
|
197
268
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -214,6 +285,30 @@ module Google
|
|
|
214
285
|
end
|
|
215
286
|
end
|
|
216
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
|
+
|
|
217
312
|
class Review
|
|
218
313
|
# @private
|
|
219
314
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -227,6 +322,22 @@ module Google
|
|
|
227
322
|
end
|
|
228
323
|
end
|
|
229
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
|
+
|
|
230
341
|
class SetPublishedDeployPercentageRequest
|
|
231
342
|
# @private
|
|
232
343
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -140,8 +140,11 @@ module Google
|
|
|
140
140
|
# is supported, e.g. `rating = 5`.
|
|
141
141
|
# @param [String] order_by
|
|
142
142
|
# Optional. An optional comma-separated list of fields by which to sort the
|
|
143
|
-
# results.
|
|
144
|
-
# `asc` (default) and `desc`.
|
|
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`.
|
|
145
148
|
# @param [Fixnum] page_size
|
|
146
149
|
# Optional. The maximum number of reviews to return. The service may return
|
|
147
150
|
# fewer than this value. If unspecified, at most 50 reviews will be returned.
|
|
@@ -213,6 +216,37 @@ module Google
|
|
|
213
216
|
execute_or_queue_command(command, &block)
|
|
214
217
|
end
|
|
215
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
|
+
|
|
216
250
|
# Submit the item to be published in the store. The item will be submitted for
|
|
217
251
|
# review unless `skip_review` is set to true, or the item is staged from a
|
|
218
252
|
# previous submission with `publish_type` set to `STAGED_PUBLISH`.
|
|
@@ -249,6 +283,125 @@ module Google
|
|
|
249
283
|
execute_or_queue_command(command, &block)
|
|
250
284
|
end
|
|
251
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
|
+
|
|
252
405
|
# Set a higher target deploy percentage for the item's published revision. This
|
|
253
406
|
# will be updated without the item being submitted for review. This is only
|
|
254
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
|
+
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.
|
|
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:
|