Skip to content

Commit d7ae27c

Browse files
feat: Automated regeneration of css v1 client (googleapis#22400)
Auto-created at 2025-04-13 10:02:57 +0000 using the toys pull request generator.
1 parent c175bf1 commit d7ae27c

File tree

6 files changed

+231
-2
lines changed

6 files changed

+231
-2
lines changed

api_names_out.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137115,6 +137115,15 @@
137115137115
"/css:v1/ListCssProductsResponse/cssProducts": css_products
137116137116
"/css:v1/ListCssProductsResponse/cssProducts/css_product": css_product
137117137117
"/css:v1/ListCssProductsResponse/nextPageToken": next_page_token
137118+
"/css:v1/ListQuotaGroupsResponse": list_quota_groups_response
137119+
"/css:v1/ListQuotaGroupsResponse/nextPageToken": next_page_token
137120+
"/css:v1/ListQuotaGroupsResponse/quotaGroups": quota_groups
137121+
"/css:v1/ListQuotaGroupsResponse/quotaGroups/quota_group": quota_group
137122+
"/css:v1/MethodDetails": method_details
137123+
"/css:v1/MethodDetails/method": method_prop
137124+
"/css:v1/MethodDetails/path": path
137125+
"/css:v1/MethodDetails/subapi": subapi
137126+
"/css:v1/MethodDetails/version": version
137118137127
"/css:v1/Price": price
137119137128
"/css:v1/Price/amountMicros": amount_micros
137120137129
"/css:v1/Price/currencyCode": currency_code
@@ -137128,6 +137137,13 @@
137128137137
"/css:v1/ProductWeight": product_weight
137129137138
"/css:v1/ProductWeight/unit": unit
137130137139
"/css:v1/ProductWeight/value": value
137140+
"/css:v1/QuotaGroup": quota_group
137141+
"/css:v1/QuotaGroup/methodDetails": method_details
137142+
"/css:v1/QuotaGroup/methodDetails/method_detail": method_detail
137143+
"/css:v1/QuotaGroup/name": name
137144+
"/css:v1/QuotaGroup/quotaLimit": quota_limit
137145+
"/css:v1/QuotaGroup/quotaMinuteLimit": quota_minute_limit
137146+
"/css:v1/QuotaGroup/quotaUsage": quota_usage
137131137147
"/css:v1/UpdateAccountLabelsRequest": update_account_labels_request
137132137148
"/css:v1/UpdateAccountLabelsRequest/labelIds": label_ids
137133137149
"/css:v1/UpdateAccountLabelsRequest/labelIds/label_id": label_id
@@ -137166,6 +137182,10 @@
137166137182
"/css:v1/css.accounts.listChildAccounts/pageSize": page_size
137167137183
"/css:v1/css.accounts.listChildAccounts/pageToken": page_token
137168137184
"/css:v1/css.accounts.listChildAccounts/parent": parent
137185+
"/css:v1/css.accounts.quotas.list": list_account_quotas
137186+
"/css:v1/css.accounts.quotas.list/pageSize": page_size
137187+
"/css:v1/css.accounts.quotas.list/pageToken": page_token
137188+
"/css:v1/css.accounts.quotas.list/parent": parent
137169137189
"/css:v1/css.accounts.updateLabels": update_account_labels
137170137190
"/css:v1/css.accounts.updateLabels/name": name
137171137191
"/css:v1/fields": fields

generated/google-apis-css_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-css_v1
22

3+
### v0.9.0 (2025-04-13)
4+
5+
* Regenerated from discovery document revision 20250406
6+
37
### v0.8.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250219

generated/google-apis-css_v1/lib/google/apis/css_v1/classes.rb

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,74 @@ def update!(**args)
10041004
end
10051005
end
10061006

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+
10071075
# The price represented as a number and currency.
10081076
class Price
10091077
include Google::Apis::Core::Hashable
@@ -1115,6 +1183,55 @@ def update!(**args)
11151183
end
11161184
end
11171185

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+
11181235
# The request message for the `UpdateLabels` method.
11191236
class UpdateAccountLabelsRequest
11201237
include Google::Apis::Core::Hashable

generated/google-apis-css_v1/lib/google/apis/css_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CssV1
1818
# Version of the google-apis-css_v1 gem
19-
GEM_VERSION = "0.8.0"
19+
GEM_VERSION = "0.9.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250219"
25+
REVISION = "20250406"
2626
end
2727
end
2828
end

generated/google-apis-css_v1/lib/google/apis/css_v1/representations.rb

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
118118
include Google::Apis::Core::JsonObjectSupport
119119
end
120120

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+
121133
class Price
122134
class Representation < Google::Apis::Core::JsonRepresentation; end
123135

@@ -142,6 +154,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142154
include Google::Apis::Core::JsonObjectSupport
143155
end
144156

157+
class QuotaGroup
158+
class Representation < Google::Apis::Core::JsonRepresentation; end
159+
160+
include Google::Apis::Core::JsonObjectSupport
161+
end
162+
145163
class UpdateAccountLabelsRequest
146164
class Representation < Google::Apis::Core::JsonRepresentation; end
147165

@@ -385,6 +403,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
385403
end
386404
end
387405

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+
388425
class Price
389426
# @private
390427
class Representation < Google::Apis::Core::JsonRepresentation
@@ -418,6 +455,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
418455
end
419456
end
420457

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+
421470
class UpdateAccountLabelsRequest
422471
# @private
423472
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-css_v1/lib/google/apis/css_v1/service.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,45 @@ def patch_account_label(name, account_label_object = nil, fields: nil, quota_use
515515
command.query['quotaUser'] = quota_user unless quota_user.nil?
516516
execute_or_queue_command(command, &block)
517517
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
518557

519558
protected
520559

0 commit comments

Comments
 (0)