google-apis-css_v1 0.7.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/css_v1/classes.rb +123 -1
- data/lib/google/apis/css_v1/gem_version.rb +3 -3
- data/lib/google/apis/css_v1/representations.rb +49 -0
- data/lib/google/apis/css_v1/service.rb +45 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e5bce3a6c4d2b2f7bec1e0146fe11aa37a56bf7d85b27b679b10ca37a974fae
|
4
|
+
data.tar.gz: 6a99b352634d7be4c59d33ab1b5af9938c2ec6e81a99054a144a0d9fa0402741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20576b02f7e5e159e15ec6baa6123d717779b01bae58aa9792860f08eb0e6e6b8c869a89cddc09937a73ad125c75e2b9229ddcd75cf7af20bf7dc91fce29f38c
|
7
|
+
data.tar.gz: 284fae732a9d784d4a95877b1204007d6afef2227b6b2817424d077b77195fd1ef7c4f100210307dc128894cb52ed41e501c47d6ec8b37afb2d6fa73ef4288ab
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
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
|
+
|
7
|
+
### v0.8.0 (2025-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250219
|
10
|
+
* Regenerated using generator version 0.16.0
|
11
|
+
|
3
12
|
### v0.7.0 (2025-01-08)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20250106
|
@@ -64,6 +64,9 @@ module Google
|
|
64
64
|
|
65
65
|
# The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain
|
66
66
|
# for MC accounts. Returned only if the user has access to the parent account.
|
67
|
+
# Note: For MC sub-accounts, this is also the CSS domain that is the parent
|
68
|
+
# resource of the MCA account, since we are effectively flattening the hierarchy.
|
69
|
+
# "
|
67
70
|
# Corresponds to the JSON property `parent`
|
68
71
|
# @return [String]
|
69
72
|
attr_accessor :parent
|
@@ -624,7 +627,9 @@ module Google
|
|
624
627
|
attr_accessor :freshness_time
|
625
628
|
|
626
629
|
# The name of the CSS Product input. Format: `accounts/`account`/
|
627
|
-
# cssProductInputs/`css_product_input
|
630
|
+
# cssProductInputs/`css_product_input``, where the last section `
|
631
|
+
# css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId.
|
632
|
+
# Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123
|
628
633
|
# Corresponds to the JSON property `name`
|
629
634
|
# @return [String]
|
630
635
|
attr_accessor :name
|
@@ -999,6 +1004,74 @@ module Google
|
|
999
1004
|
end
|
1000
1005
|
end
|
1001
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
|
+
|
1002
1075
|
# The price represented as a number and currency.
|
1003
1076
|
class Price
|
1004
1077
|
include Google::Apis::Core::Hashable
|
@@ -1110,6 +1183,55 @@ module Google
|
|
1110
1183
|
end
|
1111
1184
|
end
|
1112
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
|
+
|
1113
1235
|
# The request message for the `UpdateLabels` method.
|
1114
1236
|
class UpdateAccountLabelsRequest
|
1115
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.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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
|
@@ -173,7 +173,9 @@ module Google
|
|
173
173
|
# may take several minutes until the input is no longer available.
|
174
174
|
# @param [String] name
|
175
175
|
# Required. The name of the CSS product input resource to delete. Format:
|
176
|
-
# accounts/`account`/cssProductInputs/`css_product_input
|
176
|
+
# accounts/`account`/cssProductInputs/`css_product_input`, where the last
|
177
|
+
# section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~
|
178
|
+
# offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123
|
177
179
|
# @param [Fixnum] supplemental_feed_id
|
178
180
|
# The Content API Supplemental Feed ID. The field must not be set if the action
|
179
181
|
# applies to a primary feed. If the field is set, then product action applies to
|
@@ -256,7 +258,9 @@ module Google
|
|
256
258
|
# minutes before the processed Css Product can be retrieved.
|
257
259
|
# @param [String] name
|
258
260
|
# The name of the CSS Product input. Format: `accounts/`account`/
|
259
|
-
# cssProductInputs/`css_product_input
|
261
|
+
# cssProductInputs/`css_product_input``, where the last section `
|
262
|
+
# css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId.
|
263
|
+
# Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123
|
260
264
|
# @param [Google::Apis::CssV1::CssProductInput] css_product_input_object
|
261
265
|
# @param [String] update_mask
|
262
266
|
# The list of CSS product attributes to be updated. If the update mask is
|
@@ -511,6 +515,45 @@ module Google
|
|
511
515
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
512
516
|
execute_or_queue_command(command, &block)
|
513
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
|
514
557
|
|
515
558
|
protected
|
516
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.
|
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-
|
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.
|
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:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.5
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for CSS API V1
|
79
79
|
test_files: []
|