google-apis-css_v1 0.8.0 → 0.9.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: 706b30d80c1d280098518b551536ed4bbcbce2a2a6b262749a84cc4f5e64e7f1
4
- data.tar.gz: dd38565f74a6077f31d8b51bf61a0ca47c7cd5dff0ac2b2dcf90e98a557f5656
3
+ metadata.gz: 4e5bce3a6c4d2b2f7bec1e0146fe11aa37a56bf7d85b27b679b10ca37a974fae
4
+ data.tar.gz: 6a99b352634d7be4c59d33ab1b5af9938c2ec6e81a99054a144a0d9fa0402741
5
5
  SHA512:
6
- metadata.gz: 647f726b40a7e4307a9f3c09bbdba8f824a2653e779511a7c9630d153f0179da31e3d31c2764eb028a2277dd6a440fd70fc81020dddb73581fab43a6f47cc14b
7
- data.tar.gz: 82a67f6ad5d7ef48cde40586d6dac6a9a8156eefa126399d06507f15275f5ccf79986b76bd05cdd84bbddb27ec0f35d99865a4b7fff6de046fdfcdd710e16329
6
+ metadata.gz: 20576b02f7e5e159e15ec6baa6123d717779b01bae58aa9792860f08eb0e6e6b8c869a89cddc09937a73ad125c75e2b9229ddcd75cf7af20bf7dc91fce29f38c
7
+ data.tar.gz: 284fae732a9d784d4a95877b1204007d6afef2227b6b2817424d077b77195fd1ef7c4f100210307dc128894cb52ed41e501c47d6ec8b37afb2d6fa73ef4288ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-css_v1
2
2
 
3
+ ### v0.9.0 (2025-04-13)
4
+
5
+ * Regenerated from discovery document revision 20250406
6
+
3
7
  ### v0.8.0 (2025-02-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20250219
@@ -1004,6 +1004,74 @@ module Google
1004
1004
  end
1005
1005
  end
1006
1006
 
1007
+ # Response message for the ListMethodGroups method.
1008
+ class ListQuotaGroupsResponse
1009
+ include Google::Apis::Core::Hashable
1010
+
1011
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1012
+ # field is omitted, there are no subsequent pages.
1013
+ # Corresponds to the JSON property `nextPageToken`
1014
+ # @return [String]
1015
+ attr_accessor :next_page_token
1016
+
1017
+ # The methods, current quota usage and limits per each group. The quota is
1018
+ # shared between all methods in the group. The groups are sorted in descending
1019
+ # order based on quota_usage.
1020
+ # Corresponds to the JSON property `quotaGroups`
1021
+ # @return [Array<Google::Apis::CssV1::QuotaGroup>]
1022
+ attr_accessor :quota_groups
1023
+
1024
+ def initialize(**args)
1025
+ update!(**args)
1026
+ end
1027
+
1028
+ # Update properties of this object
1029
+ def update!(**args)
1030
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1031
+ @quota_groups = args[:quota_groups] if args.key?(:quota_groups)
1032
+ end
1033
+ end
1034
+
1035
+ # The method details per method in the CSS API.
1036
+ class MethodDetails
1037
+ include Google::Apis::Core::Hashable
1038
+
1039
+ # Output only. The name of the method for example `cssproductsservice.
1040
+ # listcssproducts`.
1041
+ # Corresponds to the JSON property `method`
1042
+ # @return [String]
1043
+ attr_accessor :method_prop
1044
+
1045
+ # Output only. The path for the method such as `v1/cssproductsservice.
1046
+ # listcssproducts`.
1047
+ # Corresponds to the JSON property `path`
1048
+ # @return [String]
1049
+ attr_accessor :path
1050
+
1051
+ # Output only. The sub-API that the method belongs to. In the CSS API, this is
1052
+ # always `css`.
1053
+ # Corresponds to the JSON property `subapi`
1054
+ # @return [String]
1055
+ attr_accessor :subapi
1056
+
1057
+ # Output only. The API version that the method belongs to.
1058
+ # Corresponds to the JSON property `version`
1059
+ # @return [String]
1060
+ attr_accessor :version
1061
+
1062
+ def initialize(**args)
1063
+ update!(**args)
1064
+ end
1065
+
1066
+ # Update properties of this object
1067
+ def update!(**args)
1068
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1069
+ @path = args[:path] if args.key?(:path)
1070
+ @subapi = args[:subapi] if args.key?(:subapi)
1071
+ @version = args[:version] if args.key?(:version)
1072
+ end
1073
+ end
1074
+
1007
1075
  # The price represented as a number and currency.
1008
1076
  class Price
1009
1077
  include Google::Apis::Core::Hashable
@@ -1115,6 +1183,55 @@ module Google
1115
1183
  end
1116
1184
  end
1117
1185
 
1186
+ # The group information for methods in the CSS API. The quota is shared between
1187
+ # all methods in the group. Even if none of the methods within the group have
1188
+ # usage the information for the group is returned.
1189
+ class QuotaGroup
1190
+ include Google::Apis::Core::Hashable
1191
+
1192
+ # Output only. List of all methods group quota applies to.
1193
+ # Corresponds to the JSON property `methodDetails`
1194
+ # @return [Array<Google::Apis::CssV1::MethodDetails>]
1195
+ attr_accessor :method_details
1196
+
1197
+ # Identifier. The resource name of the quota group. Format: accounts/`account`/
1198
+ # quotas/`group` Example: `accounts/12345678/quotas/css-products-insert` Note:
1199
+ # The `group` part is not guaranteed to follow a specific pattern.
1200
+ # Corresponds to the JSON property `name`
1201
+ # @return [String]
1202
+ attr_accessor :name
1203
+
1204
+ # Output only. The maximum number of calls allowed per day for the group.
1205
+ # Corresponds to the JSON property `quotaLimit`
1206
+ # @return [Fixnum]
1207
+ attr_accessor :quota_limit
1208
+
1209
+ # Output only. The maximum number of calls allowed per minute for the group.
1210
+ # Corresponds to the JSON property `quotaMinuteLimit`
1211
+ # @return [Fixnum]
1212
+ attr_accessor :quota_minute_limit
1213
+
1214
+ # Output only. The current quota usage, meaning the number of calls already made
1215
+ # on a given day to the methods in the group. The daily quota limits reset at at
1216
+ # 12:00 PM midday UTC.
1217
+ # Corresponds to the JSON property `quotaUsage`
1218
+ # @return [Fixnum]
1219
+ attr_accessor :quota_usage
1220
+
1221
+ def initialize(**args)
1222
+ update!(**args)
1223
+ end
1224
+
1225
+ # Update properties of this object
1226
+ def update!(**args)
1227
+ @method_details = args[:method_details] if args.key?(:method_details)
1228
+ @name = args[:name] if args.key?(:name)
1229
+ @quota_limit = args[:quota_limit] if args.key?(:quota_limit)
1230
+ @quota_minute_limit = args[:quota_minute_limit] if args.key?(:quota_minute_limit)
1231
+ @quota_usage = args[:quota_usage] if args.key?(:quota_usage)
1232
+ end
1233
+ end
1234
+
1118
1235
  # The request message for the `UpdateLabels` method.
1119
1236
  class UpdateAccountLabelsRequest
1120
1237
  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.8.0"
19
+ GEM_VERSION = "0.9.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 = "20250219"
25
+ REVISION = "20250406"
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
@@ -515,6 +515,45 @@ module Google
515
515
  command.query['quotaUser'] = quota_user unless quota_user.nil?
516
516
  execute_or_queue_command(command, &block)
517
517
  end
518
+
519
+ # Lists the daily call quota and usage per group for your CSS Center account.
520
+ # @param [String] parent
521
+ # Required. The CSS account that owns the collection of method quotas and
522
+ # resources. In most cases, this is the CSS domain. Format: accounts/`account`
523
+ # @param [Fixnum] page_size
524
+ # Optional. The maximum number of quotas to return in the response, used for
525
+ # paging. Defaults to 500; values above 1000 will be coerced to 1000.
526
+ # @param [String] page_token
527
+ # Optional. Token (if provided) to retrieve the subsequent page. All other
528
+ # parameters must match the original call that provided the page token.
529
+ # @param [String] fields
530
+ # Selector specifying which fields to include in a partial response.
531
+ # @param [String] quota_user
532
+ # Available to use for quota purposes for server-side applications. Can be any
533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
534
+ # @param [Google::Apis::RequestOptions] options
535
+ # Request-specific options
536
+ #
537
+ # @yield [result, err] Result & error if block supplied
538
+ # @yieldparam result [Google::Apis::CssV1::ListQuotaGroupsResponse] parsed result object
539
+ # @yieldparam err [StandardError] error object if request failed
540
+ #
541
+ # @return [Google::Apis::CssV1::ListQuotaGroupsResponse]
542
+ #
543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
546
+ def list_account_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
547
+ command = make_simple_command(:get, 'v1/{+parent}/quotas', options)
548
+ command.response_representation = Google::Apis::CssV1::ListQuotaGroupsResponse::Representation
549
+ command.response_class = Google::Apis::CssV1::ListQuotaGroupsResponse
550
+ command.params['parent'] = parent unless parent.nil?
551
+ command.query['pageSize'] = page_size unless page_size.nil?
552
+ command.query['pageToken'] = page_token unless page_token.nil?
553
+ command.query['fields'] = fields unless fields.nil?
554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
555
+ execute_or_queue_command(command, &block)
556
+ end
518
557
 
519
558
  protected
520
559
 
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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-04-16 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.8.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-css_v1/v0.9.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: