google-apis-css_v1 0.8.0 → 0.10.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 +8 -0
- data/lib/google/apis/css_v1/classes.rb +120 -2
- data/lib/google/apis/css_v1/gem_version.rb +2 -2
- data/lib/google/apis/css_v1/representations.rb +49 -0
- data/lib/google/apis/css_v1/service.rb +42 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8392f45bf8584135741defc3ebe5db4571686729deadd44cf041843de1932e9
|
4
|
+
data.tar.gz: '04596e38d34cbc090724be21d08ab616b92523e3d3f37b9cea034360769ecaf3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27494a278e6bd39ed847cdccbdcc136b85c869f390389a52f3888f68a9b29282d855f5826068f5fa483981a96a912c9f52261ad8f1b31ce32953803af2b7e5af
|
7
|
+
data.tar.gz: ef781fc4cc0ff7c9b18f7085d6ac2bbdd162a13bd540293b2f669a702b0090ba4530ce10a7c1c6299882f93f77fa124c59ae4b92d18261086134273ff8659ae3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-css_v1
|
2
2
|
|
3
|
+
### v0.10.0 (2025-04-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250421
|
6
|
+
|
7
|
+
### v0.9.0 (2025-04-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250406
|
10
|
+
|
3
11
|
### v0.8.0 (2025-02-26)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250219
|
@@ -117,7 +117,8 @@ module Google
|
|
117
117
|
# @return [String]
|
118
118
|
attr_accessor :label_type
|
119
119
|
|
120
|
-
# The resource name of the label. Format: accounts/`account`/labels/`
|
120
|
+
# Identifier. The resource name of the label. Format: accounts/`account`/labels/`
|
121
|
+
# label`
|
121
122
|
# Corresponds to the JSON property `name`
|
122
123
|
# @return [String]
|
123
124
|
attr_accessor :name
|
@@ -626,7 +627,7 @@ module Google
|
|
626
627
|
# @return [String]
|
627
628
|
attr_accessor :freshness_time
|
628
629
|
|
629
|
-
# The name of the CSS Product input. Format: `accounts/`account`/
|
630
|
+
# Identifier. The name of the CSS Product input. Format: `accounts/`account`/
|
630
631
|
# cssProductInputs/`css_product_input``, where the last section `
|
631
632
|
# css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId.
|
632
633
|
# Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123
|
@@ -1004,6 +1005,74 @@ module Google
|
|
1004
1005
|
end
|
1005
1006
|
end
|
1006
1007
|
|
1008
|
+
# Response message for the ListMethodGroups method.
|
1009
|
+
class ListQuotaGroupsResponse
|
1010
|
+
include Google::Apis::Core::Hashable
|
1011
|
+
|
1012
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
1013
|
+
# field is omitted, there are no subsequent pages.
|
1014
|
+
# Corresponds to the JSON property `nextPageToken`
|
1015
|
+
# @return [String]
|
1016
|
+
attr_accessor :next_page_token
|
1017
|
+
|
1018
|
+
# The methods, current quota usage and limits per each group. The quota is
|
1019
|
+
# shared between all methods in the group. The groups are sorted in descending
|
1020
|
+
# order based on quota_usage.
|
1021
|
+
# Corresponds to the JSON property `quotaGroups`
|
1022
|
+
# @return [Array<Google::Apis::CssV1::QuotaGroup>]
|
1023
|
+
attr_accessor :quota_groups
|
1024
|
+
|
1025
|
+
def initialize(**args)
|
1026
|
+
update!(**args)
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# Update properties of this object
|
1030
|
+
def update!(**args)
|
1031
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1032
|
+
@quota_groups = args[:quota_groups] if args.key?(:quota_groups)
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# The method details per method in the CSS API.
|
1037
|
+
class MethodDetails
|
1038
|
+
include Google::Apis::Core::Hashable
|
1039
|
+
|
1040
|
+
# Output only. The name of the method for example `cssproductsservice.
|
1041
|
+
# listcssproducts`.
|
1042
|
+
# Corresponds to the JSON property `method`
|
1043
|
+
# @return [String]
|
1044
|
+
attr_accessor :method_prop
|
1045
|
+
|
1046
|
+
# Output only. The path for the method such as `v1/cssproductsservice.
|
1047
|
+
# listcssproducts`.
|
1048
|
+
# Corresponds to the JSON property `path`
|
1049
|
+
# @return [String]
|
1050
|
+
attr_accessor :path
|
1051
|
+
|
1052
|
+
# Output only. The sub-API that the method belongs to. In the CSS API, this is
|
1053
|
+
# always `css`.
|
1054
|
+
# Corresponds to the JSON property `subapi`
|
1055
|
+
# @return [String]
|
1056
|
+
attr_accessor :subapi
|
1057
|
+
|
1058
|
+
# Output only. The API version that the method belongs to.
|
1059
|
+
# Corresponds to the JSON property `version`
|
1060
|
+
# @return [String]
|
1061
|
+
attr_accessor :version
|
1062
|
+
|
1063
|
+
def initialize(**args)
|
1064
|
+
update!(**args)
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# Update properties of this object
|
1068
|
+
def update!(**args)
|
1069
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
1070
|
+
@path = args[:path] if args.key?(:path)
|
1071
|
+
@subapi = args[:subapi] if args.key?(:subapi)
|
1072
|
+
@version = args[:version] if args.key?(:version)
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1007
1076
|
# The price represented as a number and currency.
|
1008
1077
|
class Price
|
1009
1078
|
include Google::Apis::Core::Hashable
|
@@ -1115,6 +1184,55 @@ module Google
|
|
1115
1184
|
end
|
1116
1185
|
end
|
1117
1186
|
|
1187
|
+
# The group information for methods in the CSS API. The quota is shared between
|
1188
|
+
# all methods in the group. Even if none of the methods within the group have
|
1189
|
+
# usage the information for the group is returned.
|
1190
|
+
class QuotaGroup
|
1191
|
+
include Google::Apis::Core::Hashable
|
1192
|
+
|
1193
|
+
# Output only. List of all methods group quota applies to.
|
1194
|
+
# Corresponds to the JSON property `methodDetails`
|
1195
|
+
# @return [Array<Google::Apis::CssV1::MethodDetails>]
|
1196
|
+
attr_accessor :method_details
|
1197
|
+
|
1198
|
+
# Identifier. The resource name of the quota group. Format: accounts/`account`/
|
1199
|
+
# quotas/`group` Example: `accounts/12345678/quotas/css-products-insert` Note:
|
1200
|
+
# The `group` part is not guaranteed to follow a specific pattern.
|
1201
|
+
# Corresponds to the JSON property `name`
|
1202
|
+
# @return [String]
|
1203
|
+
attr_accessor :name
|
1204
|
+
|
1205
|
+
# Output only. The maximum number of calls allowed per day for the group.
|
1206
|
+
# Corresponds to the JSON property `quotaLimit`
|
1207
|
+
# @return [Fixnum]
|
1208
|
+
attr_accessor :quota_limit
|
1209
|
+
|
1210
|
+
# Output only. The maximum number of calls allowed per minute for the group.
|
1211
|
+
# Corresponds to the JSON property `quotaMinuteLimit`
|
1212
|
+
# @return [Fixnum]
|
1213
|
+
attr_accessor :quota_minute_limit
|
1214
|
+
|
1215
|
+
# Output only. The current quota usage, meaning the number of calls already made
|
1216
|
+
# on a given day to the methods in the group. The daily quota limits reset at at
|
1217
|
+
# 12:00 PM midday UTC.
|
1218
|
+
# Corresponds to the JSON property `quotaUsage`
|
1219
|
+
# @return [Fixnum]
|
1220
|
+
attr_accessor :quota_usage
|
1221
|
+
|
1222
|
+
def initialize(**args)
|
1223
|
+
update!(**args)
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# Update properties of this object
|
1227
|
+
def update!(**args)
|
1228
|
+
@method_details = args[:method_details] if args.key?(:method_details)
|
1229
|
+
@name = args[:name] if args.key?(:name)
|
1230
|
+
@quota_limit = args[:quota_limit] if args.key?(:quota_limit)
|
1231
|
+
@quota_minute_limit = args[:quota_minute_limit] if args.key?(:quota_minute_limit)
|
1232
|
+
@quota_usage = args[:quota_usage] if args.key?(:quota_usage)
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1118
1236
|
# The request message for the `UpdateLabels` method.
|
1119
1237
|
class UpdateAccountLabelsRequest
|
1120
1238
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CssV1
|
18
18
|
# Version of the google-apis-css_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250421"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,18 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class ListQuotaGroupsResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class MethodDetails
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
121
133
|
class Price
|
122
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
135
|
|
@@ -142,6 +154,12 @@ module Google
|
|
142
154
|
include Google::Apis::Core::JsonObjectSupport
|
143
155
|
end
|
144
156
|
|
157
|
+
class QuotaGroup
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
145
163
|
class UpdateAccountLabelsRequest
|
146
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
165
|
|
@@ -385,6 +403,25 @@ module Google
|
|
385
403
|
end
|
386
404
|
end
|
387
405
|
|
406
|
+
class ListQuotaGroupsResponse
|
407
|
+
# @private
|
408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
409
|
+
property :next_page_token, as: 'nextPageToken'
|
410
|
+
collection :quota_groups, as: 'quotaGroups', class: Google::Apis::CssV1::QuotaGroup, decorator: Google::Apis::CssV1::QuotaGroup::Representation
|
411
|
+
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
class MethodDetails
|
416
|
+
# @private
|
417
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
418
|
+
property :method_prop, as: 'method'
|
419
|
+
property :path, as: 'path'
|
420
|
+
property :subapi, as: 'subapi'
|
421
|
+
property :version, as: 'version'
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
388
425
|
class Price
|
389
426
|
# @private
|
390
427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -418,6 +455,18 @@ module Google
|
|
418
455
|
end
|
419
456
|
end
|
420
457
|
|
458
|
+
class QuotaGroup
|
459
|
+
# @private
|
460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
461
|
+
collection :method_details, as: 'methodDetails', class: Google::Apis::CssV1::MethodDetails, decorator: Google::Apis::CssV1::MethodDetails::Representation
|
462
|
+
|
463
|
+
property :name, as: 'name'
|
464
|
+
property :quota_limit, :numeric_string => true, as: 'quotaLimit'
|
465
|
+
property :quota_minute_limit, :numeric_string => true, as: 'quotaMinuteLimit'
|
466
|
+
property :quota_usage, :numeric_string => true, as: 'quotaUsage'
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
421
470
|
class UpdateAccountLabelsRequest
|
422
471
|
# @private
|
423
472
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -257,7 +257,7 @@ module Google
|
|
257
257
|
# inserting, updating, or deleting a CSS Product input, it may take several
|
258
258
|
# minutes before the processed Css Product can be retrieved.
|
259
259
|
# @param [String] name
|
260
|
-
# The name of the CSS Product input. Format: `accounts/`account`/
|
260
|
+
# Identifier. The name of the CSS Product input. Format: `accounts/`account`/
|
261
261
|
# cssProductInputs/`css_product_input``, where the last section `
|
262
262
|
# css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId.
|
263
263
|
# Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123
|
@@ -485,7 +485,8 @@ module Google
|
|
485
485
|
|
486
486
|
# Updates a label.
|
487
487
|
# @param [String] name
|
488
|
-
# The resource name of the label. Format: accounts/`account`/labels/`
|
488
|
+
# Identifier. The resource name of the label. Format: accounts/`account`/labels/`
|
489
|
+
# label`
|
489
490
|
# @param [Google::Apis::CssV1::AccountLabel] account_label_object
|
490
491
|
# @param [String] fields
|
491
492
|
# Selector specifying which fields to include in a partial response.
|
@@ -515,6 +516,45 @@ module Google
|
|
515
516
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
516
517
|
execute_or_queue_command(command, &block)
|
517
518
|
end
|
519
|
+
|
520
|
+
# Lists the daily call quota and usage per group for your CSS Center account.
|
521
|
+
# @param [String] parent
|
522
|
+
# Required. The CSS account that owns the collection of method quotas and
|
523
|
+
# resources. In most cases, this is the CSS domain. Format: accounts/`account`
|
524
|
+
# @param [Fixnum] page_size
|
525
|
+
# Optional. The maximum number of quotas to return in the response, used for
|
526
|
+
# paging. Defaults to 500; values above 1000 will be coerced to 1000.
|
527
|
+
# @param [String] page_token
|
528
|
+
# Optional. Token (if provided) to retrieve the subsequent page. All other
|
529
|
+
# parameters must match the original call that provided the page token.
|
530
|
+
# @param [String] fields
|
531
|
+
# Selector specifying which fields to include in a partial response.
|
532
|
+
# @param [String] quota_user
|
533
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
534
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
535
|
+
# @param [Google::Apis::RequestOptions] options
|
536
|
+
# Request-specific options
|
537
|
+
#
|
538
|
+
# @yield [result, err] Result & error if block supplied
|
539
|
+
# @yieldparam result [Google::Apis::CssV1::ListQuotaGroupsResponse] parsed result object
|
540
|
+
# @yieldparam err [StandardError] error object if request failed
|
541
|
+
#
|
542
|
+
# @return [Google::Apis::CssV1::ListQuotaGroupsResponse]
|
543
|
+
#
|
544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
547
|
+
def list_account_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
548
|
+
command = make_simple_command(:get, 'v1/{+parent}/quotas', options)
|
549
|
+
command.response_representation = Google::Apis::CssV1::ListQuotaGroupsResponse::Representation
|
550
|
+
command.response_class = Google::Apis::CssV1::ListQuotaGroupsResponse
|
551
|
+
command.params['parent'] = parent unless parent.nil?
|
552
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
553
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
554
|
+
command.query['fields'] = fields unless fields.nil?
|
555
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
556
|
+
execute_or_queue_command(command, &block)
|
557
|
+
end
|
518
558
|
|
519
559
|
protected
|
520
560
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-css_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-27 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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-css_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-css_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-css_v1/v0.10.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-css_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|