google-apis-serviceusage_v1 0.28.0 → 0.76.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 +196 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/serviceusage_v1/classes.rb +1683 -295
- data/lib/google/apis/serviceusage_v1/gem_version.rb +3 -3
- data/lib/google/apis/serviceusage_v1/representations.rb +617 -0
- data/lib/google/apis/serviceusage_v1/service.rb +16 -11
- metadata +7 -10
|
@@ -22,6 +22,46 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ServiceusageV1
|
|
24
24
|
|
|
25
|
+
# Metadata for the `AddEnableRules` method.
|
|
26
|
+
class AddEnableRulesMetadata
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
def initialize(**args)
|
|
30
|
+
update!(**args)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Update properties of this object
|
|
34
|
+
def update!(**args)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# The response message of `AddEnableRules` method.
|
|
39
|
+
class AddEnableRulesResponse
|
|
40
|
+
include Google::Apis::Core::Hashable
|
|
41
|
+
|
|
42
|
+
# The values added to the parent consumer policy.
|
|
43
|
+
# Corresponds to the JSON property `addedValues`
|
|
44
|
+
# @return [Array<String>]
|
|
45
|
+
attr_accessor :added_values
|
|
46
|
+
|
|
47
|
+
# The parent consumer policy. It can be `projects/12345/consumerPolicies/default`
|
|
48
|
+
# , or `folders/12345/consumerPolicies/default`, or `organizations/12345/
|
|
49
|
+
# consumerPolicies/default`.
|
|
50
|
+
# Corresponds to the JSON property `parent`
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :parent
|
|
53
|
+
|
|
54
|
+
def initialize(**args)
|
|
55
|
+
update!(**args)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Update properties of this object
|
|
59
|
+
def update!(**args)
|
|
60
|
+
@added_values = args[:added_values] if args.key?(:added_values)
|
|
61
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
25
65
|
# Quota policy created by quota administrator.
|
|
26
66
|
class AdminQuotaPolicy
|
|
27
67
|
include Google::Apis::Core::Hashable
|
|
@@ -33,7 +73,7 @@ module Google
|
|
|
33
73
|
attr_accessor :container
|
|
34
74
|
|
|
35
75
|
# If this map is nonempty, then this policy applies only to specific values for
|
|
36
|
-
# dimensions defined in the limit unit. For example,
|
|
76
|
+
# dimensions defined in the limit unit. For example, a policy on a limit with
|
|
37
77
|
# the unit `1/`project`/`region`` could contain an entry with the key `region`
|
|
38
78
|
# and the value `us-east-1`; the policy is only applied to quota consumed in
|
|
39
79
|
# that region. This map has the following restrictions: * If `region` appears as
|
|
@@ -87,16 +127,125 @@ module Google
|
|
|
87
127
|
end
|
|
88
128
|
end
|
|
89
129
|
|
|
130
|
+
# A message to group the analysis information.
|
|
131
|
+
class Analysis
|
|
132
|
+
include Google::Apis::Core::Hashable
|
|
133
|
+
|
|
134
|
+
# An analysis result including blockers and warnings.
|
|
135
|
+
# Corresponds to the JSON property `analysis`
|
|
136
|
+
# @return [Google::Apis::ServiceusageV1::AnalysisResult]
|
|
137
|
+
attr_accessor :analysis
|
|
138
|
+
|
|
139
|
+
# Output only. The type of analysis.
|
|
140
|
+
# Corresponds to the JSON property `analysisType`
|
|
141
|
+
# @return [String]
|
|
142
|
+
attr_accessor :analysis_type
|
|
143
|
+
|
|
144
|
+
# Output only. The user friendly display name of the analysis type. E.g. service
|
|
145
|
+
# dependency analysis, service resource usage analysis, etc.
|
|
146
|
+
# Corresponds to the JSON property `displayName`
|
|
147
|
+
# @return [String]
|
|
148
|
+
attr_accessor :display_name
|
|
149
|
+
|
|
150
|
+
# The names of the service that has analysis result of warnings or blockers.
|
|
151
|
+
# Example: `services/storage.googleapis.com`.
|
|
152
|
+
# Corresponds to the JSON property `service`
|
|
153
|
+
# @return [String]
|
|
154
|
+
attr_accessor :service
|
|
155
|
+
|
|
156
|
+
def initialize(**args)
|
|
157
|
+
update!(**args)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Update properties of this object
|
|
161
|
+
def update!(**args)
|
|
162
|
+
@analysis = args[:analysis] if args.key?(:analysis)
|
|
163
|
+
@analysis_type = args[:analysis_type] if args.key?(:analysis_type)
|
|
164
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
165
|
+
@service = args[:service] if args.key?(:service)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# An analysis result including blockers and warnings.
|
|
170
|
+
class AnalysisResult
|
|
171
|
+
include Google::Apis::Core::Hashable
|
|
172
|
+
|
|
173
|
+
# Blocking information that would prevent the policy changes at runtime.
|
|
174
|
+
# Corresponds to the JSON property `blockers`
|
|
175
|
+
# @return [Array<Google::Apis::ServiceusageV1::Impact>]
|
|
176
|
+
attr_accessor :blockers
|
|
177
|
+
|
|
178
|
+
# Warning information indicating that the policy changes might be unsafe, but
|
|
179
|
+
# will not block the changes at runtime.
|
|
180
|
+
# Corresponds to the JSON property `warnings`
|
|
181
|
+
# @return [Array<Google::Apis::ServiceusageV1::Impact>]
|
|
182
|
+
attr_accessor :warnings
|
|
183
|
+
|
|
184
|
+
def initialize(**args)
|
|
185
|
+
update!(**args)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Update properties of this object
|
|
189
|
+
def update!(**args)
|
|
190
|
+
@blockers = args[:blockers] if args.key?(:blockers)
|
|
191
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Metadata for the `AnalyzeConsumerPolicy` method.
|
|
196
|
+
class AnalyzeConsumerPolicyMetadata
|
|
197
|
+
include Google::Apis::Core::Hashable
|
|
198
|
+
|
|
199
|
+
def initialize(**args)
|
|
200
|
+
update!(**args)
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Update properties of this object
|
|
204
|
+
def update!(**args)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# The response of analyzing a consumer policy update.
|
|
209
|
+
class AnalyzeConsumerPolicyResponse
|
|
210
|
+
include Google::Apis::Core::Hashable
|
|
211
|
+
|
|
212
|
+
# The list of analyses returned from performing the intended policy update
|
|
213
|
+
# analysis. The analysis is grouped by service name and different analysis types.
|
|
214
|
+
# The empty analysis list means that the consumer policy can be updated without
|
|
215
|
+
# any warnings or blockers.
|
|
216
|
+
# Corresponds to the JSON property `analysis`
|
|
217
|
+
# @return [Array<Google::Apis::ServiceusageV1::Analysis>]
|
|
218
|
+
attr_accessor :analysis
|
|
219
|
+
|
|
220
|
+
def initialize(**args)
|
|
221
|
+
update!(**args)
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Update properties of this object
|
|
225
|
+
def update!(**args)
|
|
226
|
+
@analysis = args[:analysis] if args.key?(:analysis)
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
90
230
|
# Api is a light-weight descriptor for an API Interface. Interfaces are also
|
|
91
231
|
# described as "protocol buffer services" in some contexts, such as by the "
|
|
92
232
|
# service" keyword in a .proto file, but they are different from API Services,
|
|
93
233
|
# which represent a concrete implementation of an interface as opposed to simply
|
|
94
234
|
# a description of methods and bindings. They are also sometimes simply referred
|
|
95
235
|
# to as "APIs" in other contexts, such as the name of this message itself. See
|
|
96
|
-
# https://cloud.google.com/apis/design/glossary for detailed terminology.
|
|
236
|
+
# https://cloud.google.com/apis/design/glossary for detailed terminology. New
|
|
237
|
+
# usages of this message as an alternative to ServiceDescriptorProto are
|
|
238
|
+
# strongly discouraged. This message does not reliability preserve all
|
|
239
|
+
# information necessary to model the schema and preserve semantics. Instead make
|
|
240
|
+
# use of FileDescriptorSet which preserves the necessary information.
|
|
97
241
|
class Api
|
|
98
242
|
include Google::Apis::Core::Hashable
|
|
99
243
|
|
|
244
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
245
|
+
# Corresponds to the JSON property `edition`
|
|
246
|
+
# @return [String]
|
|
247
|
+
attr_accessor :edition
|
|
248
|
+
|
|
100
249
|
# The methods of this interface, in unspecified order.
|
|
101
250
|
# Corresponds to the JSON property `methods`
|
|
102
251
|
# @return [Array<Google::Apis::ServiceusageV1::MethodProp>]
|
|
@@ -152,6 +301,7 @@ module Google
|
|
|
152
301
|
|
|
153
302
|
# Update properties of this object
|
|
154
303
|
def update!(**args)
|
|
304
|
+
@edition = args[:edition] if args.key?(:edition)
|
|
155
305
|
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
|
|
156
306
|
@mixins = args[:mixins] if args.key?(:mixins)
|
|
157
307
|
@name = args[:name] if args.key?(:name)
|
|
@@ -162,6 +312,66 @@ module Google
|
|
|
162
312
|
end
|
|
163
313
|
end
|
|
164
314
|
|
|
315
|
+
# Aspect represents Generic aspect. It is used to configure an aspect without
|
|
316
|
+
# making direct changes to service.proto
|
|
317
|
+
class Aspect
|
|
318
|
+
include Google::Apis::Core::Hashable
|
|
319
|
+
|
|
320
|
+
# The type of this aspect configuration.
|
|
321
|
+
# Corresponds to the JSON property `kind`
|
|
322
|
+
# @return [String]
|
|
323
|
+
attr_accessor :kind
|
|
324
|
+
|
|
325
|
+
# Optional. Rules of the Configuration.
|
|
326
|
+
# Corresponds to the JSON property `rules`
|
|
327
|
+
# @return [Array<Google::Apis::ServiceusageV1::AspectRule>]
|
|
328
|
+
attr_accessor :rules
|
|
329
|
+
|
|
330
|
+
# Content of the configuration. The underlying schema should be defined by
|
|
331
|
+
# Aspect owners as protobuf message under `google/api/configaspects/proto`.
|
|
332
|
+
# Corresponds to the JSON property `spec`
|
|
333
|
+
# @return [Hash<String,Object>]
|
|
334
|
+
attr_accessor :spec
|
|
335
|
+
|
|
336
|
+
def initialize(**args)
|
|
337
|
+
update!(**args)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Update properties of this object
|
|
341
|
+
def update!(**args)
|
|
342
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
343
|
+
@rules = args[:rules] if args.key?(:rules)
|
|
344
|
+
@spec = args[:spec] if args.key?(:spec)
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Rule-based configuration for an aspect.
|
|
349
|
+
class AspectRule
|
|
350
|
+
include Google::Apis::Core::Hashable
|
|
351
|
+
|
|
352
|
+
# Required. Rules of the configuration. The underlying schema should be defined
|
|
353
|
+
# by Aspect owners as protobuf message under `google/api/configaspects/proto`.
|
|
354
|
+
# Corresponds to the JSON property `config`
|
|
355
|
+
# @return [Hash<String,Object>]
|
|
356
|
+
attr_accessor :config
|
|
357
|
+
|
|
358
|
+
# Required. Selects the RPC methods to which this rule applies. Refer to
|
|
359
|
+
# selector for syntax details.
|
|
360
|
+
# Corresponds to the JSON property `selector`
|
|
361
|
+
# @return [String]
|
|
362
|
+
attr_accessor :selector
|
|
363
|
+
|
|
364
|
+
def initialize(**args)
|
|
365
|
+
update!(**args)
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Update properties of this object
|
|
369
|
+
def update!(**args)
|
|
370
|
+
@config = args[:config] if args.key?(:config)
|
|
371
|
+
@selector = args[:selector] if args.key?(:selector)
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
165
375
|
# Configuration for an authentication provider, including support for [JSON Web
|
|
166
376
|
# Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
167
377
|
class AuthProvider
|
|
@@ -419,6 +629,14 @@ module Google
|
|
|
419
629
|
# @return [String]
|
|
420
630
|
attr_accessor :jwt_audience
|
|
421
631
|
|
|
632
|
+
# The load balancing policy used for connection to the application backend.
|
|
633
|
+
# Defined as an arbitrary string to accomondate custom load balancing policies
|
|
634
|
+
# supported by the underlying channel, but suggest most users use one of the
|
|
635
|
+
# standard policies, such as the default, "RoundRobin".
|
|
636
|
+
# Corresponds to the JSON property `loadBalancingPolicy`
|
|
637
|
+
# @return [String]
|
|
638
|
+
attr_accessor :load_balancing_policy
|
|
639
|
+
|
|
422
640
|
# Deprecated, do not use.
|
|
423
641
|
# Corresponds to the JSON property `minDeadline`
|
|
424
642
|
# @return [Float]
|
|
@@ -430,7 +648,14 @@ module Google
|
|
|
430
648
|
# @return [Float]
|
|
431
649
|
attr_accessor :operation_deadline
|
|
432
650
|
|
|
433
|
-
#
|
|
651
|
+
# The map between request protocol and the backend address.
|
|
652
|
+
# Corresponds to the JSON property `overridesByRequestProtocol`
|
|
653
|
+
# @return [Hash<String,Google::Apis::ServiceusageV1::BackendRule>]
|
|
654
|
+
attr_accessor :overrides_by_request_protocol
|
|
655
|
+
|
|
656
|
+
# Path translation specifies how to combine the backend address with the request
|
|
657
|
+
# path in order to produce the appropriate forwarding URL for the request. See
|
|
658
|
+
# PathTranslation for more details.
|
|
434
659
|
# Corresponds to the JSON property `pathTranslation`
|
|
435
660
|
# @return [String]
|
|
436
661
|
attr_accessor :path_translation
|
|
@@ -464,8 +689,10 @@ module Google
|
|
|
464
689
|
@deadline = args[:deadline] if args.key?(:deadline)
|
|
465
690
|
@disable_auth = args[:disable_auth] if args.key?(:disable_auth)
|
|
466
691
|
@jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
|
|
692
|
+
@load_balancing_policy = args[:load_balancing_policy] if args.key?(:load_balancing_policy)
|
|
467
693
|
@min_deadline = args[:min_deadline] if args.key?(:min_deadline)
|
|
468
694
|
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
|
|
695
|
+
@overrides_by_request_protocol = args[:overrides_by_request_protocol] if args.key?(:overrides_by_request_protocol)
|
|
469
696
|
@path_translation = args[:path_translation] if args.key?(:path_translation)
|
|
470
697
|
@protocol = args[:protocol] if args.key?(:protocol)
|
|
471
698
|
@selector = args[:selector] if args.key?(:selector)
|
|
@@ -580,6 +807,140 @@ module Google
|
|
|
580
807
|
end
|
|
581
808
|
end
|
|
582
809
|
|
|
810
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
811
|
+
class BatchingConfigProto
|
|
812
|
+
include Google::Apis::Core::Hashable
|
|
813
|
+
|
|
814
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
815
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
816
|
+
# used for demultiplexing.
|
|
817
|
+
# Corresponds to the JSON property `batchDescriptor`
|
|
818
|
+
# @return [Google::Apis::ServiceusageV1::BatchingDescriptorProto]
|
|
819
|
+
attr_accessor :batch_descriptor
|
|
820
|
+
|
|
821
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
|
|
822
|
+
# acts as a trigger to send a batch of messages as a request. At least one
|
|
823
|
+
# threshold must be positive nonzero.
|
|
824
|
+
# Corresponds to the JSON property `thresholds`
|
|
825
|
+
# @return [Google::Apis::ServiceusageV1::BatchingSettingsProto]
|
|
826
|
+
attr_accessor :thresholds
|
|
827
|
+
|
|
828
|
+
def initialize(**args)
|
|
829
|
+
update!(**args)
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Update properties of this object
|
|
833
|
+
def update!(**args)
|
|
834
|
+
@batch_descriptor = args[:batch_descriptor] if args.key?(:batch_descriptor)
|
|
835
|
+
@thresholds = args[:thresholds] if args.key?(:thresholds)
|
|
836
|
+
end
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
840
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
841
|
+
# used for demultiplexing.
|
|
842
|
+
class BatchingDescriptorProto
|
|
843
|
+
include Google::Apis::Core::Hashable
|
|
844
|
+
|
|
845
|
+
# The repeated field in the request message to be aggregated by batching.
|
|
846
|
+
# Corresponds to the JSON property `batchedField`
|
|
847
|
+
# @return [String]
|
|
848
|
+
attr_accessor :batched_field
|
|
849
|
+
|
|
850
|
+
# A list of the fields in the request message. Two requests will be batched
|
|
851
|
+
# together only if the values of every field specified in `
|
|
852
|
+
# request_discriminator_fields` is equal between the two requests.
|
|
853
|
+
# Corresponds to the JSON property `discriminatorFields`
|
|
854
|
+
# @return [Array<String>]
|
|
855
|
+
attr_accessor :discriminator_fields
|
|
856
|
+
|
|
857
|
+
# Optional. When present, indicates the field in the response message to be used
|
|
858
|
+
# to demultiplex the response into multiple response messages, in correspondence
|
|
859
|
+
# with the multiple request messages originally batched together.
|
|
860
|
+
# Corresponds to the JSON property `subresponseField`
|
|
861
|
+
# @return [String]
|
|
862
|
+
attr_accessor :subresponse_field
|
|
863
|
+
|
|
864
|
+
def initialize(**args)
|
|
865
|
+
update!(**args)
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# Update properties of this object
|
|
869
|
+
def update!(**args)
|
|
870
|
+
@batched_field = args[:batched_field] if args.key?(:batched_field)
|
|
871
|
+
@discriminator_fields = args[:discriminator_fields] if args.key?(:discriminator_fields)
|
|
872
|
+
@subresponse_field = args[:subresponse_field] if args.key?(:subresponse_field)
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
|
|
877
|
+
# acts as a trigger to send a batch of messages as a request. At least one
|
|
878
|
+
# threshold must be positive nonzero.
|
|
879
|
+
class BatchingSettingsProto
|
|
880
|
+
include Google::Apis::Core::Hashable
|
|
881
|
+
|
|
882
|
+
# The duration after which a batch should be sent, starting from the addition of
|
|
883
|
+
# the first message to that batch.
|
|
884
|
+
# Corresponds to the JSON property `delayThreshold`
|
|
885
|
+
# @return [String]
|
|
886
|
+
attr_accessor :delay_threshold
|
|
887
|
+
|
|
888
|
+
# The maximum number of elements collected in a batch that could be accepted by
|
|
889
|
+
# server.
|
|
890
|
+
# Corresponds to the JSON property `elementCountLimit`
|
|
891
|
+
# @return [Fixnum]
|
|
892
|
+
attr_accessor :element_count_limit
|
|
893
|
+
|
|
894
|
+
# The number of elements of a field collected into a batch which, if exceeded,
|
|
895
|
+
# causes the batch to be sent.
|
|
896
|
+
# Corresponds to the JSON property `elementCountThreshold`
|
|
897
|
+
# @return [Fixnum]
|
|
898
|
+
attr_accessor :element_count_threshold
|
|
899
|
+
|
|
900
|
+
# The maximum size of data allowed by flow control.
|
|
901
|
+
# Corresponds to the JSON property `flowControlByteLimit`
|
|
902
|
+
# @return [Fixnum]
|
|
903
|
+
attr_accessor :flow_control_byte_limit
|
|
904
|
+
|
|
905
|
+
# The maximum number of elements allowed by flow control.
|
|
906
|
+
# Corresponds to the JSON property `flowControlElementLimit`
|
|
907
|
+
# @return [Fixnum]
|
|
908
|
+
attr_accessor :flow_control_element_limit
|
|
909
|
+
|
|
910
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
911
|
+
# Corresponds to the JSON property `flowControlLimitExceededBehavior`
|
|
912
|
+
# @return [String]
|
|
913
|
+
attr_accessor :flow_control_limit_exceeded_behavior
|
|
914
|
+
|
|
915
|
+
# The maximum size of the request that could be accepted by server.
|
|
916
|
+
# Corresponds to the JSON property `requestByteLimit`
|
|
917
|
+
# @return [Fixnum]
|
|
918
|
+
attr_accessor :request_byte_limit
|
|
919
|
+
|
|
920
|
+
# The aggregated size of the batched field which, if exceeded, causes the batch
|
|
921
|
+
# to be sent. This size is computed by aggregating the sizes of the request
|
|
922
|
+
# field to be batched, not of the entire request message.
|
|
923
|
+
# Corresponds to the JSON property `requestByteThreshold`
|
|
924
|
+
# @return [Fixnum]
|
|
925
|
+
attr_accessor :request_byte_threshold
|
|
926
|
+
|
|
927
|
+
def initialize(**args)
|
|
928
|
+
update!(**args)
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Update properties of this object
|
|
932
|
+
def update!(**args)
|
|
933
|
+
@delay_threshold = args[:delay_threshold] if args.key?(:delay_threshold)
|
|
934
|
+
@element_count_limit = args[:element_count_limit] if args.key?(:element_count_limit)
|
|
935
|
+
@element_count_threshold = args[:element_count_threshold] if args.key?(:element_count_threshold)
|
|
936
|
+
@flow_control_byte_limit = args[:flow_control_byte_limit] if args.key?(:flow_control_byte_limit)
|
|
937
|
+
@flow_control_element_limit = args[:flow_control_element_limit] if args.key?(:flow_control_element_limit)
|
|
938
|
+
@flow_control_limit_exceeded_behavior = args[:flow_control_limit_exceeded_behavior] if args.key?(:flow_control_limit_exceeded_behavior)
|
|
939
|
+
@request_byte_limit = args[:request_byte_limit] if args.key?(:request_byte_limit)
|
|
940
|
+
@request_byte_threshold = args[:request_byte_threshold] if args.key?(:request_byte_threshold)
|
|
941
|
+
end
|
|
942
|
+
end
|
|
943
|
+
|
|
583
944
|
# Billing related configuration of the service. The following example shows how
|
|
584
945
|
# to configure monitored resources and metrics for billing, `
|
|
585
946
|
# consumer_destinations` is the only supported destination and the monitored
|
|
@@ -713,7 +1074,9 @@ module Google
|
|
|
713
1074
|
# @return [Google::Apis::ServiceusageV1::RubySettings]
|
|
714
1075
|
attr_accessor :ruby_settings
|
|
715
1076
|
|
|
716
|
-
# Version of the API to apply these settings to.
|
|
1077
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
|
1078
|
+
# package for the API, ending in the version element. Examples: "google.cloud.
|
|
1079
|
+
# speech.v1" and "google.spanner.admin.database.v1".
|
|
717
1080
|
# Corresponds to the JSON property `version`
|
|
718
1081
|
# @return [String]
|
|
719
1082
|
attr_accessor :version
|
|
@@ -753,6 +1116,13 @@ module Google
|
|
|
753
1116
|
# @return [String]
|
|
754
1117
|
attr_accessor :reference_docs_uri
|
|
755
1118
|
|
|
1119
|
+
# This message is used to configure the generation of a subset of the RPCs in a
|
|
1120
|
+
# service for client libraries. Note: This feature should not be used in most
|
|
1121
|
+
# cases.
|
|
1122
|
+
# Corresponds to the JSON property `selectiveGapicGeneration`
|
|
1123
|
+
# @return [Google::Apis::ServiceusageV1::SelectiveGapicGeneration]
|
|
1124
|
+
attr_accessor :selective_gapic_generation
|
|
1125
|
+
|
|
756
1126
|
def initialize(**args)
|
|
757
1127
|
update!(**args)
|
|
758
1128
|
end
|
|
@@ -761,30 +1131,46 @@ module Google
|
|
|
761
1131
|
def update!(**args)
|
|
762
1132
|
@destinations = args[:destinations] if args.key?(:destinations)
|
|
763
1133
|
@reference_docs_uri = args[:reference_docs_uri] if args.key?(:reference_docs_uri)
|
|
1134
|
+
@selective_gapic_generation = args[:selective_gapic_generation] if args.key?(:selective_gapic_generation)
|
|
764
1135
|
end
|
|
765
1136
|
end
|
|
766
1137
|
|
|
767
|
-
#
|
|
768
|
-
#
|
|
769
|
-
|
|
770
|
-
# google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`.
|
|
771
|
-
# Available context types are defined in package `google.rpc.context`. This also
|
|
772
|
-
# provides mechanism to allowlist any protobuf message extension that can be
|
|
773
|
-
# sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format.
|
|
774
|
-
# For example, list any service specific protobuf types that can appear in grpc
|
|
775
|
-
# metadata as follows in your yaml file: Example: context: rules: - selector: "
|
|
776
|
-
# google.example.library.v1.LibraryService.CreateBook"
|
|
777
|
-
# allowed_request_extensions: - google.foo.v1.NewExtension
|
|
778
|
-
# allowed_response_extensions: - google.foo.v1.NewExtension You can also specify
|
|
779
|
-
# extension ID instead of fully qualified extension name here.
|
|
780
|
-
class Context
|
|
1138
|
+
# Consumer Policy is a set of rules that define what services or service groups
|
|
1139
|
+
# can be used for a cloud resource hierarchy.
|
|
1140
|
+
class ConsumerPolicy
|
|
781
1141
|
include Google::Apis::Core::Hashable
|
|
782
1142
|
|
|
783
|
-
#
|
|
784
|
-
#
|
|
785
|
-
#
|
|
786
|
-
#
|
|
787
|
-
|
|
1143
|
+
# Optional. Annotations is an unstructured key-value map stored with a policy
|
|
1144
|
+
# that may be set by external tools to store and retrieve arbitrary metadata.
|
|
1145
|
+
# They are not queryable and should be preserved when modifying objects. [AIP-
|
|
1146
|
+
# 128](https://google.aip.dev/128#annotations)
|
|
1147
|
+
# Corresponds to the JSON property `annotations`
|
|
1148
|
+
# @return [Hash<String,String>]
|
|
1149
|
+
attr_accessor :annotations
|
|
1150
|
+
|
|
1151
|
+
# Enable rules define usable services and service groups.
|
|
1152
|
+
# Corresponds to the JSON property `enableRules`
|
|
1153
|
+
# @return [Array<Google::Apis::ServiceusageV1::EnableRule>]
|
|
1154
|
+
attr_accessor :enable_rules
|
|
1155
|
+
|
|
1156
|
+
# An opaque tag indicating the current version of the policy, used for
|
|
1157
|
+
# concurrency control.
|
|
1158
|
+
# Corresponds to the JSON property `etag`
|
|
1159
|
+
# @return [String]
|
|
1160
|
+
attr_accessor :etag
|
|
1161
|
+
|
|
1162
|
+
# Output only. The resource name of the policy. We only allow consumer policy
|
|
1163
|
+
# name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/
|
|
1164
|
+
# 12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`
|
|
1165
|
+
# .
|
|
1166
|
+
# Corresponds to the JSON property `name`
|
|
1167
|
+
# @return [String]
|
|
1168
|
+
attr_accessor :name
|
|
1169
|
+
|
|
1170
|
+
# The last-modified time.
|
|
1171
|
+
# Corresponds to the JSON property `updateTime`
|
|
1172
|
+
# @return [String]
|
|
1173
|
+
attr_accessor :update_time
|
|
788
1174
|
|
|
789
1175
|
def initialize(**args)
|
|
790
1176
|
update!(**args)
|
|
@@ -792,42 +1178,22 @@ module Google
|
|
|
792
1178
|
|
|
793
1179
|
# Update properties of this object
|
|
794
1180
|
def update!(**args)
|
|
795
|
-
@
|
|
1181
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
1182
|
+
@enable_rules = args[:enable_rules] if args.key?(:enable_rules)
|
|
1183
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
1184
|
+
@name = args[:name] if args.key?(:name)
|
|
1185
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
796
1186
|
end
|
|
797
1187
|
end
|
|
798
1188
|
|
|
799
|
-
#
|
|
800
|
-
|
|
801
|
-
class ContextRule
|
|
1189
|
+
# ContentSecurity defines the content security related fields of a MCP policy.
|
|
1190
|
+
class ContentSecurity
|
|
802
1191
|
include Google::Apis::Core::Hashable
|
|
803
1192
|
|
|
804
|
-
#
|
|
805
|
-
#
|
|
806
|
-
#
|
|
807
|
-
|
|
808
|
-
attr_accessor :allowed_request_extensions
|
|
809
|
-
|
|
810
|
-
# A list of full type names or extension IDs of extensions allowed in grpc side
|
|
811
|
-
# channel from backend to client.
|
|
812
|
-
# Corresponds to the JSON property `allowedResponseExtensions`
|
|
813
|
-
# @return [Array<String>]
|
|
814
|
-
attr_accessor :allowed_response_extensions
|
|
815
|
-
|
|
816
|
-
# A list of full type names of provided contexts.
|
|
817
|
-
# Corresponds to the JSON property `provided`
|
|
818
|
-
# @return [Array<String>]
|
|
819
|
-
attr_accessor :provided
|
|
820
|
-
|
|
821
|
-
# A list of full type names of requested contexts.
|
|
822
|
-
# Corresponds to the JSON property `requested`
|
|
823
|
-
# @return [Array<String>]
|
|
824
|
-
attr_accessor :requested
|
|
825
|
-
|
|
826
|
-
# Selects the methods to which this rule applies. Refer to selector for syntax
|
|
827
|
-
# details.
|
|
828
|
-
# Corresponds to the JSON property `selector`
|
|
829
|
-
# @return [String]
|
|
830
|
-
attr_accessor :selector
|
|
1193
|
+
# List of content security providers that are enabled for content scanning.
|
|
1194
|
+
# Corresponds to the JSON property `contentSecurityProviders`
|
|
1195
|
+
# @return [Array<Google::Apis::ServiceusageV1::ContentSecurityProvider>]
|
|
1196
|
+
attr_accessor :content_security_providers
|
|
831
1197
|
|
|
832
1198
|
def initialize(**args)
|
|
833
1199
|
update!(**args)
|
|
@@ -835,7 +1201,137 @@ module Google
|
|
|
835
1201
|
|
|
836
1202
|
# Update properties of this object
|
|
837
1203
|
def update!(**args)
|
|
838
|
-
@
|
|
1204
|
+
@content_security_providers = args[:content_security_providers] if args.key?(:content_security_providers)
|
|
1205
|
+
end
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
# Content Security Policy contains the content security related policy of a
|
|
1209
|
+
# resource.
|
|
1210
|
+
class ContentSecurityPolicy
|
|
1211
|
+
include Google::Apis::Core::Hashable
|
|
1212
|
+
|
|
1213
|
+
# ContentSecurity defines the content security related fields of a MCP policy.
|
|
1214
|
+
# Corresponds to the JSON property `mcpContentSecurity`
|
|
1215
|
+
# @return [Google::Apis::ServiceusageV1::ContentSecurity]
|
|
1216
|
+
attr_accessor :mcp_content_security
|
|
1217
|
+
|
|
1218
|
+
# Output only. The resource name of the policy. Only the `default` policy is
|
|
1219
|
+
# supported. We allow the following formats: `projects/`PROJECT_NUMBER`/
|
|
1220
|
+
# contentSecurityPolicies/default`, `projects/`PROJECT_ID`/
|
|
1221
|
+
# contentSecurityPolicies/default`, We only support project level content
|
|
1222
|
+
# security policy for now.
|
|
1223
|
+
# Corresponds to the JSON property `name`
|
|
1224
|
+
# @return [String]
|
|
1225
|
+
attr_accessor :name
|
|
1226
|
+
|
|
1227
|
+
def initialize(**args)
|
|
1228
|
+
update!(**args)
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1231
|
+
# Update properties of this object
|
|
1232
|
+
def update!(**args)
|
|
1233
|
+
@mcp_content_security = args[:mcp_content_security] if args.key?(:mcp_content_security)
|
|
1234
|
+
@name = args[:name] if args.key?(:name)
|
|
1235
|
+
end
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
# ContentSecurityProvider contains the name of content security provider.
|
|
1239
|
+
class ContentSecurityProvider
|
|
1240
|
+
include Google::Apis::Core::Hashable
|
|
1241
|
+
|
|
1242
|
+
# Name of security service for content scanning, such as Google Cloud Model
|
|
1243
|
+
# Armor or supported third-party ISV solutions. If it is Google 1P service, the
|
|
1244
|
+
# name should be prefixed with `services/`. If it is a 3P service, the format
|
|
1245
|
+
# needs to be documented. The currently supported values are: - `services/
|
|
1246
|
+
# modelarmor.googleapis.com` for Google Cloud Model Armor.
|
|
1247
|
+
# Corresponds to the JSON property `name`
|
|
1248
|
+
# @return [String]
|
|
1249
|
+
attr_accessor :name
|
|
1250
|
+
|
|
1251
|
+
def initialize(**args)
|
|
1252
|
+
update!(**args)
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
# Update properties of this object
|
|
1256
|
+
def update!(**args)
|
|
1257
|
+
@name = args[:name] if args.key?(:name)
|
|
1258
|
+
end
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1261
|
+
# `Context` defines which contexts an API requests. Example: context: rules: -
|
|
1262
|
+
# selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.
|
|
1263
|
+
# context.OriginContext The above specifies that all methods in the API request `
|
|
1264
|
+
# google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`.
|
|
1265
|
+
# Available context types are defined in package `google.rpc.context`. This also
|
|
1266
|
+
# provides mechanism to allowlist any protobuf message extension that can be
|
|
1267
|
+
# sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format.
|
|
1268
|
+
# For example, list any service specific protobuf types that can appear in grpc
|
|
1269
|
+
# metadata as follows in your yaml file: Example: context: rules: - selector: "
|
|
1270
|
+
# google.example.library.v1.LibraryService.CreateBook"
|
|
1271
|
+
# allowed_request_extensions: - google.foo.v1.NewExtension
|
|
1272
|
+
# allowed_response_extensions: - google.foo.v1.NewExtension You can also specify
|
|
1273
|
+
# extension ID instead of fully qualified extension name here.
|
|
1274
|
+
class Context
|
|
1275
|
+
include Google::Apis::Core::Hashable
|
|
1276
|
+
|
|
1277
|
+
# A list of RPC context rules that apply to individual API methods. **NOTE:**
|
|
1278
|
+
# All service configuration rules follow "last one wins" order.
|
|
1279
|
+
# Corresponds to the JSON property `rules`
|
|
1280
|
+
# @return [Array<Google::Apis::ServiceusageV1::ContextRule>]
|
|
1281
|
+
attr_accessor :rules
|
|
1282
|
+
|
|
1283
|
+
def initialize(**args)
|
|
1284
|
+
update!(**args)
|
|
1285
|
+
end
|
|
1286
|
+
|
|
1287
|
+
# Update properties of this object
|
|
1288
|
+
def update!(**args)
|
|
1289
|
+
@rules = args[:rules] if args.key?(:rules)
|
|
1290
|
+
end
|
|
1291
|
+
end
|
|
1292
|
+
|
|
1293
|
+
# A context rule provides information about the context for an individual API
|
|
1294
|
+
# element.
|
|
1295
|
+
class ContextRule
|
|
1296
|
+
include Google::Apis::Core::Hashable
|
|
1297
|
+
|
|
1298
|
+
# A list of full type names or extension IDs of extensions allowed in grpc side
|
|
1299
|
+
# channel from client to backend.
|
|
1300
|
+
# Corresponds to the JSON property `allowedRequestExtensions`
|
|
1301
|
+
# @return [Array<String>]
|
|
1302
|
+
attr_accessor :allowed_request_extensions
|
|
1303
|
+
|
|
1304
|
+
# A list of full type names or extension IDs of extensions allowed in grpc side
|
|
1305
|
+
# channel from backend to client.
|
|
1306
|
+
# Corresponds to the JSON property `allowedResponseExtensions`
|
|
1307
|
+
# @return [Array<String>]
|
|
1308
|
+
attr_accessor :allowed_response_extensions
|
|
1309
|
+
|
|
1310
|
+
# A list of full type names of provided contexts. It is used to support
|
|
1311
|
+
# propagating HTTP headers and ETags from the response extension.
|
|
1312
|
+
# Corresponds to the JSON property `provided`
|
|
1313
|
+
# @return [Array<String>]
|
|
1314
|
+
attr_accessor :provided
|
|
1315
|
+
|
|
1316
|
+
# A list of full type names of requested contexts, only the requested context
|
|
1317
|
+
# will be made available to the backend.
|
|
1318
|
+
# Corresponds to the JSON property `requested`
|
|
1319
|
+
# @return [Array<String>]
|
|
1320
|
+
attr_accessor :requested
|
|
1321
|
+
|
|
1322
|
+
# Selects the methods to which this rule applies. Refer to selector for syntax
|
|
1323
|
+
# details.
|
|
1324
|
+
# Corresponds to the JSON property `selector`
|
|
1325
|
+
# @return [String]
|
|
1326
|
+
attr_accessor :selector
|
|
1327
|
+
|
|
1328
|
+
def initialize(**args)
|
|
1329
|
+
update!(**args)
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
# Update properties of this object
|
|
1333
|
+
def update!(**args)
|
|
1334
|
+
@allowed_request_extensions = args[:allowed_request_extensions] if args.key?(:allowed_request_extensions)
|
|
839
1335
|
@allowed_response_extensions = args[:allowed_response_extensions] if args.key?(:allowed_response_extensions)
|
|
840
1336
|
@provided = args[:provided] if args.key?(:provided)
|
|
841
1337
|
@requested = args[:requested] if args.key?(:requested)
|
|
@@ -848,13 +1344,18 @@ module Google
|
|
|
848
1344
|
class Control
|
|
849
1345
|
include Google::Apis::Core::Hashable
|
|
850
1346
|
|
|
851
|
-
# The service controller environment to use. If empty, no control plane
|
|
852
|
-
# like quota and billing) will be enabled. The recommended value for most
|
|
853
|
-
# services is servicecontrol.googleapis.com
|
|
1347
|
+
# The service controller environment to use. If empty, no control plane features
|
|
1348
|
+
# (like quota and billing) will be enabled. The recommended value for most
|
|
1349
|
+
# services is servicecontrol.googleapis.com.
|
|
854
1350
|
# Corresponds to the JSON property `environment`
|
|
855
1351
|
# @return [String]
|
|
856
1352
|
attr_accessor :environment
|
|
857
1353
|
|
|
1354
|
+
# Defines policies applying to the API methods of the service.
|
|
1355
|
+
# Corresponds to the JSON property `methodPolicies`
|
|
1356
|
+
# @return [Array<Google::Apis::ServiceusageV1::MethodPolicy>]
|
|
1357
|
+
attr_accessor :method_policies
|
|
1358
|
+
|
|
858
1359
|
def initialize(**args)
|
|
859
1360
|
update!(**args)
|
|
860
1361
|
end
|
|
@@ -862,6 +1363,7 @@ module Google
|
|
|
862
1363
|
# Update properties of this object
|
|
863
1364
|
def update!(**args)
|
|
864
1365
|
@environment = args[:environment] if args.key?(:environment)
|
|
1366
|
+
@method_policies = args[:method_policies] if args.key?(:method_policies)
|
|
865
1367
|
end
|
|
866
1368
|
end
|
|
867
1369
|
|
|
@@ -1050,7 +1552,7 @@ module Google
|
|
|
1050
1552
|
# documentation: summary: > The Google Calendar API gives access to most
|
|
1051
1553
|
# calendar features. pages: - name: Overview content: (== include google/foo/
|
|
1052
1554
|
# overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==
|
|
1053
|
-
# ) subpages
|
|
1555
|
+
# ) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==)
|
|
1054
1556
|
# rules: - selector: google.calendar.Calendar.Get description: > ... - selector:
|
|
1055
1557
|
# google.calendar.Calendar.Put description: > ... Documentation is provided in
|
|
1056
1558
|
# markdown syntax. In addition to standard markdown features, definition lists,
|
|
@@ -1075,6 +1577,12 @@ module Google
|
|
|
1075
1577
|
class Documentation
|
|
1076
1578
|
include Google::Apis::Core::Hashable
|
|
1077
1579
|
|
|
1580
|
+
# Optional information about the IAM configuration. This is typically used to
|
|
1581
|
+
# link to documentation about a product's IAM roles and permissions.
|
|
1582
|
+
# Corresponds to the JSON property `additionalIamInfo`
|
|
1583
|
+
# @return [String]
|
|
1584
|
+
attr_accessor :additional_iam_info
|
|
1585
|
+
|
|
1078
1586
|
# The URL to the root of documentation.
|
|
1079
1587
|
# Corresponds to the JSON property `documentationRootUrl`
|
|
1080
1588
|
# @return [String]
|
|
@@ -1100,6 +1608,12 @@ module Google
|
|
|
1100
1608
|
# @return [Array<Google::Apis::ServiceusageV1::DocumentationRule>]
|
|
1101
1609
|
attr_accessor :rules
|
|
1102
1610
|
|
|
1611
|
+
# Specifies section and content to override the boilerplate content. Currently
|
|
1612
|
+
# overrides following sections: 1. rest.service.client_libraries
|
|
1613
|
+
# Corresponds to the JSON property `sectionOverrides`
|
|
1614
|
+
# @return [Array<Google::Apis::ServiceusageV1::Page>]
|
|
1615
|
+
attr_accessor :section_overrides
|
|
1616
|
+
|
|
1103
1617
|
# Specifies the service root url if the default one (the service name from the
|
|
1104
1618
|
# yaml file) is not suitable. This can be seen in any fully specified service
|
|
1105
1619
|
# urls as well as sections that show a base that other urls are relative to.
|
|
@@ -1120,10 +1634,12 @@ module Google
|
|
|
1120
1634
|
|
|
1121
1635
|
# Update properties of this object
|
|
1122
1636
|
def update!(**args)
|
|
1637
|
+
@additional_iam_info = args[:additional_iam_info] if args.key?(:additional_iam_info)
|
|
1123
1638
|
@documentation_root_url = args[:documentation_root_url] if args.key?(:documentation_root_url)
|
|
1124
1639
|
@overview = args[:overview] if args.key?(:overview)
|
|
1125
1640
|
@pages = args[:pages] if args.key?(:pages)
|
|
1126
1641
|
@rules = args[:rules] if args.key?(:rules)
|
|
1642
|
+
@section_overrides = args[:section_overrides] if args.key?(:section_overrides)
|
|
1127
1643
|
@service_root_url = args[:service_root_url] if args.key?(:service_root_url)
|
|
1128
1644
|
@summary = args[:summary] if args.key?(:summary)
|
|
1129
1645
|
end
|
|
@@ -1146,6 +1662,12 @@ module Google
|
|
|
1146
1662
|
# @return [String]
|
|
1147
1663
|
attr_accessor :description
|
|
1148
1664
|
|
|
1665
|
+
# String of comma or space separated case-sensitive words for which method/field
|
|
1666
|
+
# name replacement will be disabled.
|
|
1667
|
+
# Corresponds to the JSON property `disableReplacementWords`
|
|
1668
|
+
# @return [String]
|
|
1669
|
+
attr_accessor :disable_replacement_words
|
|
1670
|
+
|
|
1149
1671
|
# The selector is a comma-separated list of patterns for any element such as a
|
|
1150
1672
|
# method, a field, an enum value. Each pattern is a qualified name of the
|
|
1151
1673
|
# element which may end in "*", indicating a wildcard. Wildcards are only
|
|
@@ -1165,6 +1687,7 @@ module Google
|
|
|
1165
1687
|
def update!(**args)
|
|
1166
1688
|
@deprecation_description = args[:deprecation_description] if args.key?(:deprecation_description)
|
|
1167
1689
|
@description = args[:description] if args.key?(:description)
|
|
1690
|
+
@disable_replacement_words = args[:disable_replacement_words] if args.key?(:disable_replacement_words)
|
|
1168
1691
|
@selector = args[:selector] if args.key?(:selector)
|
|
1169
1692
|
end
|
|
1170
1693
|
end
|
|
@@ -1178,6 +1701,42 @@ module Google
|
|
|
1178
1701
|
# @return [Google::Apis::ServiceusageV1::CommonLanguageSettings]
|
|
1179
1702
|
attr_accessor :common
|
|
1180
1703
|
|
|
1704
|
+
# Namespaces which must be aliased in snippets due to a known (but non-generator-
|
|
1705
|
+
# predictable) naming collision
|
|
1706
|
+
# Corresponds to the JSON property `forcedNamespaceAliases`
|
|
1707
|
+
# @return [Array<String>]
|
|
1708
|
+
attr_accessor :forced_namespace_aliases
|
|
1709
|
+
|
|
1710
|
+
# Method signatures (in the form "service.method(signature)") which are provided
|
|
1711
|
+
# separately, so shouldn't be generated. Snippets *calling* these methods are
|
|
1712
|
+
# still generated, however.
|
|
1713
|
+
# Corresponds to the JSON property `handwrittenSignatures`
|
|
1714
|
+
# @return [Array<String>]
|
|
1715
|
+
attr_accessor :handwritten_signatures
|
|
1716
|
+
|
|
1717
|
+
# List of full resource types to ignore during generation. This is typically
|
|
1718
|
+
# used for API-specific Location resources, which should be handled by the
|
|
1719
|
+
# generator as if they were actually the common Location resources. Example
|
|
1720
|
+
# entry: "documentai.googleapis.com/Location"
|
|
1721
|
+
# Corresponds to the JSON property `ignoredResources`
|
|
1722
|
+
# @return [Array<String>]
|
|
1723
|
+
attr_accessor :ignored_resources
|
|
1724
|
+
|
|
1725
|
+
# Map from full resource types to the effective short name for the resource.
|
|
1726
|
+
# This is used when otherwise resource named from different services would cause
|
|
1727
|
+
# naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "
|
|
1728
|
+
# DataLabelingDataset"
|
|
1729
|
+
# Corresponds to the JSON property `renamedResources`
|
|
1730
|
+
# @return [Hash<String,String>]
|
|
1731
|
+
attr_accessor :renamed_resources
|
|
1732
|
+
|
|
1733
|
+
# Map from original service names to renamed versions. This is used when the
|
|
1734
|
+
# default generated types would cause a naming conflict. (Neither name is fully-
|
|
1735
|
+
# qualified.) Example: Subscriber to SubscriberServiceApi.
|
|
1736
|
+
# Corresponds to the JSON property `renamedServices`
|
|
1737
|
+
# @return [Hash<String,String>]
|
|
1738
|
+
attr_accessor :renamed_services
|
|
1739
|
+
|
|
1181
1740
|
def initialize(**args)
|
|
1182
1741
|
update!(**args)
|
|
1183
1742
|
end
|
|
@@ -1185,6 +1744,11 @@ module Google
|
|
|
1185
1744
|
# Update properties of this object
|
|
1186
1745
|
def update!(**args)
|
|
1187
1746
|
@common = args[:common] if args.key?(:common)
|
|
1747
|
+
@forced_namespace_aliases = args[:forced_namespace_aliases] if args.key?(:forced_namespace_aliases)
|
|
1748
|
+
@handwritten_signatures = args[:handwritten_signatures] if args.key?(:handwritten_signatures)
|
|
1749
|
+
@ignored_resources = args[:ignored_resources] if args.key?(:ignored_resources)
|
|
1750
|
+
@renamed_resources = args[:renamed_resources] if args.key?(:renamed_resources)
|
|
1751
|
+
@renamed_services = args[:renamed_services] if args.key?(:renamed_services)
|
|
1188
1752
|
end
|
|
1189
1753
|
end
|
|
1190
1754
|
|
|
@@ -1229,6 +1793,48 @@ module Google
|
|
|
1229
1793
|
end
|
|
1230
1794
|
end
|
|
1231
1795
|
|
|
1796
|
+
# The consumer policy rule that defines usable services and service groups.
|
|
1797
|
+
class EnableRule
|
|
1798
|
+
include Google::Apis::Core::Hashable
|
|
1799
|
+
|
|
1800
|
+
# Client and resource project enable type.
|
|
1801
|
+
# Corresponds to the JSON property `enableType`
|
|
1802
|
+
# @return [String]
|
|
1803
|
+
attr_accessor :enable_type
|
|
1804
|
+
|
|
1805
|
+
# DEPRECATED: Please use field `values`. Service group should have prefix `
|
|
1806
|
+
# groups/`. The names of the service groups that are enabled (Not Implemented).
|
|
1807
|
+
# Example: `groups/googleServices`.
|
|
1808
|
+
# Corresponds to the JSON property `groups`
|
|
1809
|
+
# @return [Array<String>]
|
|
1810
|
+
attr_accessor :groups
|
|
1811
|
+
|
|
1812
|
+
# DEPRECATED: Please use field `values`. Service should have prefix `services/`.
|
|
1813
|
+
# The names of the services that are enabled. Example: `storage.googleapis.com`.
|
|
1814
|
+
# Corresponds to the JSON property `services`
|
|
1815
|
+
# @return [Array<String>]
|
|
1816
|
+
attr_accessor :services
|
|
1817
|
+
|
|
1818
|
+
# The names of the services or service groups that are enabled. Example: `
|
|
1819
|
+
# services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`
|
|
1820
|
+
# .
|
|
1821
|
+
# Corresponds to the JSON property `values`
|
|
1822
|
+
# @return [Array<String>]
|
|
1823
|
+
attr_accessor :values
|
|
1824
|
+
|
|
1825
|
+
def initialize(**args)
|
|
1826
|
+
update!(**args)
|
|
1827
|
+
end
|
|
1828
|
+
|
|
1829
|
+
# Update properties of this object
|
|
1830
|
+
def update!(**args)
|
|
1831
|
+
@enable_type = args[:enable_type] if args.key?(:enable_type)
|
|
1832
|
+
@groups = args[:groups] if args.key?(:groups)
|
|
1833
|
+
@services = args[:services] if args.key?(:services)
|
|
1834
|
+
@values = args[:values] if args.key?(:values)
|
|
1835
|
+
end
|
|
1836
|
+
end
|
|
1837
|
+
|
|
1232
1838
|
# Request message for the `EnableService` method.
|
|
1233
1839
|
class EnableServiceRequest
|
|
1234
1840
|
include Google::Apis::Core::Hashable
|
|
@@ -1278,9 +1884,9 @@ module Google
|
|
|
1278
1884
|
class Endpoint
|
|
1279
1885
|
include Google::Apis::Core::Hashable
|
|
1280
1886
|
|
|
1281
|
-
#
|
|
1282
|
-
#
|
|
1283
|
-
#
|
|
1887
|
+
# Aliases for this endpoint, these will be served by the same UrlMap as the
|
|
1888
|
+
# parent endpoint, and will be provisioned in the GCP stack for the Regional
|
|
1889
|
+
# Endpoints.
|
|
1284
1890
|
# Corresponds to the JSON property `aliases`
|
|
1285
1891
|
# @return [Array<String>]
|
|
1286
1892
|
attr_accessor :aliases
|
|
@@ -1321,10 +1927,19 @@ module Google
|
|
|
1321
1927
|
end
|
|
1322
1928
|
end
|
|
1323
1929
|
|
|
1324
|
-
# Enum type definition.
|
|
1930
|
+
# Enum type definition. New usages of this message as an alternative to
|
|
1931
|
+
# EnumDescriptorProto are strongly discouraged. This message does not
|
|
1932
|
+
# reliability preserve all information necessary to model the schema and
|
|
1933
|
+
# preserve semantics. Instead make use of FileDescriptorSet which preserves the
|
|
1934
|
+
# necessary information.
|
|
1325
1935
|
class Enum
|
|
1326
1936
|
include Google::Apis::Core::Hashable
|
|
1327
1937
|
|
|
1938
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
1939
|
+
# Corresponds to the JSON property `edition`
|
|
1940
|
+
# @return [String]
|
|
1941
|
+
attr_accessor :edition
|
|
1942
|
+
|
|
1328
1943
|
# Enum value definitions.
|
|
1329
1944
|
# Corresponds to the JSON property `enumvalue`
|
|
1330
1945
|
# @return [Array<Google::Apis::ServiceusageV1::EnumValue>]
|
|
@@ -1357,6 +1972,7 @@ module Google
|
|
|
1357
1972
|
|
|
1358
1973
|
# Update properties of this object
|
|
1359
1974
|
def update!(**args)
|
|
1975
|
+
@edition = args[:edition] if args.key?(:edition)
|
|
1360
1976
|
@enumvalue = args[:enumvalue] if args.key?(:enumvalue)
|
|
1361
1977
|
@name = args[:name] if args.key?(:name)
|
|
1362
1978
|
@options = args[:options] if args.key?(:options)
|
|
@@ -1365,7 +1981,11 @@ module Google
|
|
|
1365
1981
|
end
|
|
1366
1982
|
end
|
|
1367
1983
|
|
|
1368
|
-
# Enum value definition.
|
|
1984
|
+
# Enum value definition. New usages of this message as an alternative to
|
|
1985
|
+
# EnumValueDescriptorProto are strongly discouraged. This message does not
|
|
1986
|
+
# reliability preserve all information necessary to model the schema and
|
|
1987
|
+
# preserve semantics. Instead make use of FileDescriptorSet which preserves the
|
|
1988
|
+
# necessary information.
|
|
1369
1989
|
class EnumValue
|
|
1370
1990
|
include Google::Apis::Core::Hashable
|
|
1371
1991
|
|
|
@@ -1396,7 +2016,54 @@ module Google
|
|
|
1396
2016
|
end
|
|
1397
2017
|
end
|
|
1398
2018
|
|
|
1399
|
-
#
|
|
2019
|
+
# Experimental features to be included during client library generation. These
|
|
2020
|
+
# fields will be deprecated once the feature graduates and is enabled by default.
|
|
2021
|
+
class ExperimentalFeatures
|
|
2022
|
+
include Google::Apis::Core::Hashable
|
|
2023
|
+
|
|
2024
|
+
# Enables generation of protobuf code using new types that are more Pythonic
|
|
2025
|
+
# which are included in `protobuf>=5.29.x`. This feature will be enabled by
|
|
2026
|
+
# default 1 month after launching the feature in preview packages.
|
|
2027
|
+
# Corresponds to the JSON property `protobufPythonicTypesEnabled`
|
|
2028
|
+
# @return [Boolean]
|
|
2029
|
+
attr_accessor :protobuf_pythonic_types_enabled
|
|
2030
|
+
alias_method :protobuf_pythonic_types_enabled?, :protobuf_pythonic_types_enabled
|
|
2031
|
+
|
|
2032
|
+
# Enables generation of asynchronous REST clients if `rest` transport is enabled.
|
|
2033
|
+
# By default, asynchronous REST clients will not be generated. This feature
|
|
2034
|
+
# will be enabled by default 1 month after launching the feature in preview
|
|
2035
|
+
# packages.
|
|
2036
|
+
# Corresponds to the JSON property `restAsyncIoEnabled`
|
|
2037
|
+
# @return [Boolean]
|
|
2038
|
+
attr_accessor :rest_async_io_enabled
|
|
2039
|
+
alias_method :rest_async_io_enabled?, :rest_async_io_enabled
|
|
2040
|
+
|
|
2041
|
+
# Disables generation of an unversioned Python package for this client library.
|
|
2042
|
+
# This means that the module names will need to be versioned in import
|
|
2043
|
+
# statements. For example `import google.cloud.library_v2` instead of `import
|
|
2044
|
+
# google.cloud.library`.
|
|
2045
|
+
# Corresponds to the JSON property `unversionedPackageDisabled`
|
|
2046
|
+
# @return [Boolean]
|
|
2047
|
+
attr_accessor :unversioned_package_disabled
|
|
2048
|
+
alias_method :unversioned_package_disabled?, :unversioned_package_disabled
|
|
2049
|
+
|
|
2050
|
+
def initialize(**args)
|
|
2051
|
+
update!(**args)
|
|
2052
|
+
end
|
|
2053
|
+
|
|
2054
|
+
# Update properties of this object
|
|
2055
|
+
def update!(**args)
|
|
2056
|
+
@protobuf_pythonic_types_enabled = args[:protobuf_pythonic_types_enabled] if args.key?(:protobuf_pythonic_types_enabled)
|
|
2057
|
+
@rest_async_io_enabled = args[:rest_async_io_enabled] if args.key?(:rest_async_io_enabled)
|
|
2058
|
+
@unversioned_package_disabled = args[:unversioned_package_disabled] if args.key?(:unversioned_package_disabled)
|
|
2059
|
+
end
|
|
2060
|
+
end
|
|
2061
|
+
|
|
2062
|
+
# A single field of a message type. New usages of this message as an alternative
|
|
2063
|
+
# to FieldDescriptorProto are strongly discouraged. This message does not
|
|
2064
|
+
# reliability preserve all information necessary to model the schema and
|
|
2065
|
+
# preserve semantics. Instead make use of FileDescriptorSet which preserves the
|
|
2066
|
+
# necessary information.
|
|
1400
2067
|
class Field
|
|
1401
2068
|
include Google::Apis::Core::Hashable
|
|
1402
2069
|
|
|
@@ -1472,6 +2139,50 @@ module Google
|
|
|
1472
2139
|
end
|
|
1473
2140
|
end
|
|
1474
2141
|
|
|
2142
|
+
# Google API Policy Annotation This message defines a simple API policy
|
|
2143
|
+
# annotation that can be used to annotate API request and response message
|
|
2144
|
+
# fields with applicable policies. One field may have multiple applicable
|
|
2145
|
+
# policies that must all be satisfied before a request can be processed. This
|
|
2146
|
+
# policy annotation is used to generate the overall policy that will be used for
|
|
2147
|
+
# automatic runtime policy enforcement and documentation generation.
|
|
2148
|
+
class FieldPolicy
|
|
2149
|
+
include Google::Apis::Core::Hashable
|
|
2150
|
+
|
|
2151
|
+
# Specifies the required permission(s) for the resource referred to by the field.
|
|
2152
|
+
# It requires the field contains a valid resource reference, and the request
|
|
2153
|
+
# must pass the permission checks to proceed. For example, "resourcemanager.
|
|
2154
|
+
# projects.get".
|
|
2155
|
+
# Corresponds to the JSON property `resourcePermission`
|
|
2156
|
+
# @return [String]
|
|
2157
|
+
attr_accessor :resource_permission
|
|
2158
|
+
|
|
2159
|
+
# Specifies the resource type for the resource referred to by the field.
|
|
2160
|
+
# Corresponds to the JSON property `resourceType`
|
|
2161
|
+
# @return [String]
|
|
2162
|
+
attr_accessor :resource_type
|
|
2163
|
+
|
|
2164
|
+
# Selects one or more request or response message fields to apply this `
|
|
2165
|
+
# FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
|
|
2166
|
+
# must be left as empty. The service config generator will automatically fill
|
|
2167
|
+
# the correct value. When a `FieldPolicy` is used in service config, the
|
|
2168
|
+
# selector must be a comma-separated string with valid request or response field
|
|
2169
|
+
# paths, such as "foo.bar" or "foo.bar,foo.baz".
|
|
2170
|
+
# Corresponds to the JSON property `selector`
|
|
2171
|
+
# @return [String]
|
|
2172
|
+
attr_accessor :selector
|
|
2173
|
+
|
|
2174
|
+
def initialize(**args)
|
|
2175
|
+
update!(**args)
|
|
2176
|
+
end
|
|
2177
|
+
|
|
2178
|
+
# Update properties of this object
|
|
2179
|
+
def update!(**args)
|
|
2180
|
+
@resource_permission = args[:resource_permission] if args.key?(:resource_permission)
|
|
2181
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
|
2182
|
+
@selector = args[:selector] if args.key?(:selector)
|
|
2183
|
+
end
|
|
2184
|
+
end
|
|
2185
|
+
|
|
1475
2186
|
# Metadata for the `GetServiceIdentity` method.
|
|
1476
2187
|
class GetServiceIdentityMetadata
|
|
1477
2188
|
include Google::Apis::Core::Hashable
|
|
@@ -1520,6 +2231,14 @@ module Google
|
|
|
1520
2231
|
# @return [Google::Apis::ServiceusageV1::CommonLanguageSettings]
|
|
1521
2232
|
attr_accessor :common
|
|
1522
2233
|
|
|
2234
|
+
# Map of service names to renamed services. Keys are the package relative
|
|
2235
|
+
# service names and values are the name to be used for the service client and
|
|
2236
|
+
# call options. Example: publishing: go_settings: renamed_services: Publisher:
|
|
2237
|
+
# TopicAdmin
|
|
2238
|
+
# Corresponds to the JSON property `renamedServices`
|
|
2239
|
+
# @return [Hash<String,String>]
|
|
2240
|
+
attr_accessor :renamed_services
|
|
2241
|
+
|
|
1523
2242
|
def initialize(**args)
|
|
1524
2243
|
update!(**args)
|
|
1525
2244
|
end
|
|
@@ -1527,6 +2246,7 @@ module Google
|
|
|
1527
2246
|
# Update properties of this object
|
|
1528
2247
|
def update!(**args)
|
|
1529
2248
|
@common = args[:common] if args.key?(:common)
|
|
2249
|
+
@renamed_services = args[:renamed_services] if args.key?(:renamed_services)
|
|
1530
2250
|
end
|
|
1531
2251
|
end
|
|
1532
2252
|
|
|
@@ -1555,6 +2275,14 @@ module Google
|
|
|
1555
2275
|
# @return [Array<Google::Apis::ServiceusageV1::Api>]
|
|
1556
2276
|
attr_accessor :apis
|
|
1557
2277
|
|
|
2278
|
+
# Configuration aspects. This is a repeated field to allow multiple aspects to
|
|
2279
|
+
# be configured. The kind field in each ConfigAspect specifies the type of
|
|
2280
|
+
# aspect. The spec field contains the configuration for that aspect. The schema
|
|
2281
|
+
# for the spec field is defined by the backend service owners.
|
|
2282
|
+
# Corresponds to the JSON property `aspects`
|
|
2283
|
+
# @return [Array<Google::Apis::ServiceusageV1::Aspect>]
|
|
2284
|
+
attr_accessor :aspects
|
|
2285
|
+
|
|
1558
2286
|
# `Authentication` defines the authentication configuration for API methods
|
|
1559
2287
|
# provided by an API service. Example: name: calendar.googleapis.com
|
|
1560
2288
|
# authentication: providers: - id: google_calendar_auth jwks_uri: https://www.
|
|
@@ -1631,7 +2359,7 @@ module Google
|
|
|
1631
2359
|
# documentation: summary: > The Google Calendar API gives access to most
|
|
1632
2360
|
# calendar features. pages: - name: Overview content: (== include google/foo/
|
|
1633
2361
|
# overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==
|
|
1634
|
-
# ) subpages
|
|
2362
|
+
# ) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==)
|
|
1635
2363
|
# rules: - selector: google.calendar.Calendar.Get description: > ... - selector:
|
|
1636
2364
|
# google.calendar.Calendar.Put description: > ... Documentation is provided in
|
|
1637
2365
|
# markdown syntax. In addition to standard markdown features, definition lists,
|
|
@@ -1712,8 +2440,8 @@ module Google
|
|
|
1712
2440
|
# @return [Array<Google::Apis::ServiceusageV1::MetricDescriptor>]
|
|
1713
2441
|
attr_accessor :metrics
|
|
1714
2442
|
|
|
1715
|
-
# Defines the monitored resources used by this service. This is required by the
|
|
1716
|
-
# Service.monitoring and Service.logging configurations.
|
|
2443
|
+
# Defines the monitored resources used by this service. This is required by the `
|
|
2444
|
+
# Service.monitoring` and `Service.logging` configurations.
|
|
1717
2445
|
# Corresponds to the JSON property `monitoredResources`
|
|
1718
2446
|
# @return [Array<Google::Apis::ServiceusageV1::MonitoredResourceDescriptor>]
|
|
1719
2447
|
attr_accessor :monitored_resources
|
|
@@ -1834,6 +2562,7 @@ module Google
|
|
|
1834
2562
|
# Update properties of this object
|
|
1835
2563
|
def update!(**args)
|
|
1836
2564
|
@apis = args[:apis] if args.key?(:apis)
|
|
2565
|
+
@aspects = args[:aspects] if args.key?(:aspects)
|
|
1837
2566
|
@authentication = args[:authentication] if args.key?(:authentication)
|
|
1838
2567
|
@backend = args[:backend] if args.key?(:backend)
|
|
1839
2568
|
@billing = args[:billing] if args.key?(:billing)
|
|
@@ -1946,7 +2675,7 @@ module Google
|
|
|
1946
2675
|
# documentation: summary: > The Google Calendar API gives access to most
|
|
1947
2676
|
# calendar features. pages: - name: Overview content: (== include google/foo/
|
|
1948
2677
|
# overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==
|
|
1949
|
-
# ) subpages
|
|
2678
|
+
# ) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==)
|
|
1950
2679
|
# rules: - selector: google.calendar.Calendar.Get description: > ... - selector:
|
|
1951
2680
|
# google.calendar.Calendar.Put description: > ... Documentation is provided in
|
|
1952
2681
|
# markdown syntax. In addition to standard markdown features, definition lists,
|
|
@@ -1972,82 +2701,505 @@ module Google
|
|
|
1972
2701
|
# @return [Google::Apis::ServiceusageV1::Documentation]
|
|
1973
2702
|
attr_accessor :documentation
|
|
1974
2703
|
|
|
1975
|
-
# Configuration for network endpoints. Contains only the names and aliases of
|
|
1976
|
-
# the endpoints.
|
|
1977
|
-
# Corresponds to the JSON property `endpoints`
|
|
1978
|
-
# @return [Array<Google::Apis::ServiceusageV1::Endpoint>]
|
|
1979
|
-
attr_accessor :endpoints
|
|
2704
|
+
# Configuration for network endpoints. Contains only the names and aliases of
|
|
2705
|
+
# the endpoints.
|
|
2706
|
+
# Corresponds to the JSON property `endpoints`
|
|
2707
|
+
# @return [Array<Google::Apis::ServiceusageV1::Endpoint>]
|
|
2708
|
+
attr_accessor :endpoints
|
|
2709
|
+
|
|
2710
|
+
# Defines the monitored resources used by this service. This is required by the
|
|
2711
|
+
# Service.monitoring and Service.logging configurations.
|
|
2712
|
+
# Corresponds to the JSON property `monitoredResources`
|
|
2713
|
+
# @return [Array<Google::Apis::ServiceusageV1::MonitoredResourceDescriptor>]
|
|
2714
|
+
attr_accessor :monitored_resources
|
|
2715
|
+
|
|
2716
|
+
# Monitoring configuration of the service. The example below shows how to
|
|
2717
|
+
# configure monitored resources and metrics for monitoring. In the example, a
|
|
2718
|
+
# monitored resource and two metrics are defined. The `library.googleapis.com/
|
|
2719
|
+
# book/returned_count` metric is sent to both producer and consumer projects,
|
|
2720
|
+
# whereas the `library.googleapis.com/book/num_overdue` metric is only sent to
|
|
2721
|
+
# the consumer project. monitored_resources: - type: library.googleapis.com/
|
|
2722
|
+
# Branch display_name: "Library Branch" description: "A branch of a library."
|
|
2723
|
+
# launch_stage: GA labels: - key: resource_container description: "The Cloud
|
|
2724
|
+
# container (ie. project id) for the Branch." - key: location description: "The
|
|
2725
|
+
# location of the library branch." - key: branch_id description: "The id of the
|
|
2726
|
+
# branch." metrics: - name: library.googleapis.com/book/returned_count
|
|
2727
|
+
# display_name: "Books Returned" description: "The count of books that have been
|
|
2728
|
+
# returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1"
|
|
2729
|
+
# labels: - key: customer_id description: "The id of the customer." - name:
|
|
2730
|
+
# library.googleapis.com/book/num_overdue display_name: "Books Overdue"
|
|
2731
|
+
# description: "The current number of overdue books." launch_stage: GA
|
|
2732
|
+
# metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id
|
|
2733
|
+
# description: "The id of the customer." monitoring: producer_destinations: -
|
|
2734
|
+
# monitored_resource: library.googleapis.com/Branch metrics: - library.
|
|
2735
|
+
# googleapis.com/book/returned_count consumer_destinations: - monitored_resource:
|
|
2736
|
+
# library.googleapis.com/Branch metrics: - library.googleapis.com/book/
|
|
2737
|
+
# returned_count - library.googleapis.com/book/num_overdue
|
|
2738
|
+
# Corresponds to the JSON property `monitoring`
|
|
2739
|
+
# @return [Google::Apis::ServiceusageV1::Monitoring]
|
|
2740
|
+
attr_accessor :monitoring
|
|
2741
|
+
|
|
2742
|
+
# The DNS address at which this service is available. An example DNS address
|
|
2743
|
+
# would be: `calendar.googleapis.com`.
|
|
2744
|
+
# Corresponds to the JSON property `name`
|
|
2745
|
+
# @return [String]
|
|
2746
|
+
attr_accessor :name
|
|
2747
|
+
|
|
2748
|
+
# Quota configuration helps to achieve fairness and budgeting in service usage.
|
|
2749
|
+
# The metric based quota configuration works this way: - The service
|
|
2750
|
+
# configuration defines a set of metrics. - For API calls, the quota.
|
|
2751
|
+
# metric_rules maps methods to metrics with corresponding costs. - The quota.
|
|
2752
|
+
# limits defines limits on the metrics, which will be used for quota checks at
|
|
2753
|
+
# runtime. An example quota configuration in yaml format: quota: limits: - name:
|
|
2754
|
+
# apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/`
|
|
2755
|
+
# project`" # rate limit for consumer projects values: STANDARD: 10000 (The
|
|
2756
|
+
# metric rules bind all methods to the read_calls metric, except for the
|
|
2757
|
+
# UpdateBook and DeleteBook methods. These two methods are mapped to the
|
|
2758
|
+
# write_calls metric, with the UpdateBook method consuming at twice rate as the
|
|
2759
|
+
# DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.
|
|
2760
|
+
# googleapis.com/read_calls: 1 - selector: google.example.library.v1.
|
|
2761
|
+
# LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 -
|
|
2762
|
+
# selector: google.example.library.v1.LibraryService.DeleteBook metric_costs:
|
|
2763
|
+
# library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics:
|
|
2764
|
+
# - name: library.googleapis.com/read_calls display_name: Read requests
|
|
2765
|
+
# metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/
|
|
2766
|
+
# write_calls display_name: Write requests metric_kind: DELTA value_type: INT64
|
|
2767
|
+
# Corresponds to the JSON property `quota`
|
|
2768
|
+
# @return [Google::Apis::ServiceusageV1::Quota]
|
|
2769
|
+
attr_accessor :quota
|
|
2770
|
+
|
|
2771
|
+
# The product title for this service.
|
|
2772
|
+
# Corresponds to the JSON property `title`
|
|
2773
|
+
# @return [String]
|
|
2774
|
+
attr_accessor :title
|
|
2775
|
+
|
|
2776
|
+
# Configuration controlling usage of a service.
|
|
2777
|
+
# Corresponds to the JSON property `usage`
|
|
2778
|
+
# @return [Google::Apis::ServiceusageV1::Usage]
|
|
2779
|
+
attr_accessor :usage
|
|
2780
|
+
|
|
2781
|
+
def initialize(**args)
|
|
2782
|
+
update!(**args)
|
|
2783
|
+
end
|
|
2784
|
+
|
|
2785
|
+
# Update properties of this object
|
|
2786
|
+
def update!(**args)
|
|
2787
|
+
@apis = args[:apis] if args.key?(:apis)
|
|
2788
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
|
2789
|
+
@documentation = args[:documentation] if args.key?(:documentation)
|
|
2790
|
+
@endpoints = args[:endpoints] if args.key?(:endpoints)
|
|
2791
|
+
@monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
|
|
2792
|
+
@monitoring = args[:monitoring] if args.key?(:monitoring)
|
|
2793
|
+
@name = args[:name] if args.key?(:name)
|
|
2794
|
+
@quota = args[:quota] if args.key?(:quota)
|
|
2795
|
+
@title = args[:title] if args.key?(:title)
|
|
2796
|
+
@usage = args[:usage] if args.key?(:usage)
|
|
2797
|
+
end
|
|
2798
|
+
end
|
|
2799
|
+
|
|
2800
|
+
# Response message for getting service identity.
|
|
2801
|
+
class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
|
|
2802
|
+
include Google::Apis::Core::Hashable
|
|
2803
|
+
|
|
2804
|
+
# Service identity for a service. This is the identity that service producer
|
|
2805
|
+
# should use to access consumer resources.
|
|
2806
|
+
# Corresponds to the JSON property `identity`
|
|
2807
|
+
# @return [Google::Apis::ServiceusageV1::GoogleApiServiceusageV1beta1ServiceIdentity]
|
|
2808
|
+
attr_accessor :identity
|
|
2809
|
+
|
|
2810
|
+
# Service identity state.
|
|
2811
|
+
# Corresponds to the JSON property `state`
|
|
2812
|
+
# @return [String]
|
|
2813
|
+
attr_accessor :state
|
|
2814
|
+
|
|
2815
|
+
def initialize(**args)
|
|
2816
|
+
update!(**args)
|
|
2817
|
+
end
|
|
2818
|
+
|
|
2819
|
+
# Update properties of this object
|
|
2820
|
+
def update!(**args)
|
|
2821
|
+
@identity = args[:identity] if args.key?(:identity)
|
|
2822
|
+
@state = args[:state] if args.key?(:state)
|
|
2823
|
+
end
|
|
2824
|
+
end
|
|
2825
|
+
|
|
2826
|
+
# Service identity for a service. This is the identity that service producer
|
|
2827
|
+
# should use to access consumer resources.
|
|
2828
|
+
class GoogleApiServiceusageV1beta1ServiceIdentity
|
|
2829
|
+
include Google::Apis::Core::Hashable
|
|
2830
|
+
|
|
2831
|
+
# The email address of the service account that a service producer would use to
|
|
2832
|
+
# access consumer resources.
|
|
2833
|
+
# Corresponds to the JSON property `email`
|
|
2834
|
+
# @return [String]
|
|
2835
|
+
attr_accessor :email
|
|
2836
|
+
|
|
2837
|
+
# The unique and stable id of the service account. https://cloud.google.com/iam/
|
|
2838
|
+
# reference/rest/v1/projects.serviceAccounts#ServiceAccount
|
|
2839
|
+
# Corresponds to the JSON property `uniqueId`
|
|
2840
|
+
# @return [String]
|
|
2841
|
+
attr_accessor :unique_id
|
|
2842
|
+
|
|
2843
|
+
def initialize(**args)
|
|
2844
|
+
update!(**args)
|
|
2845
|
+
end
|
|
2846
|
+
|
|
2847
|
+
# Update properties of this object
|
|
2848
|
+
def update!(**args)
|
|
2849
|
+
@email = args[:email] if args.key?(:email)
|
|
2850
|
+
@unique_id = args[:unique_id] if args.key?(:unique_id)
|
|
2851
|
+
end
|
|
2852
|
+
end
|
|
2853
|
+
|
|
2854
|
+
# Consumer Policy is a set of rules that define what services or service groups
|
|
2855
|
+
# can be used for a cloud resource hierarchy.
|
|
2856
|
+
class GoogleApiServiceusageV2alphaConsumerPolicy
|
|
2857
|
+
include Google::Apis::Core::Hashable
|
|
2858
|
+
|
|
2859
|
+
# Optional. Annotations is an unstructured key-value map stored with a policy
|
|
2860
|
+
# that may be set by external tools to store and retrieve arbitrary metadata.
|
|
2861
|
+
# They are not queryable and should be preserved when modifying objects. [AIP-
|
|
2862
|
+
# 128](https://google.aip.dev/128#annotations)
|
|
2863
|
+
# Corresponds to the JSON property `annotations`
|
|
2864
|
+
# @return [Hash<String,String>]
|
|
2865
|
+
attr_accessor :annotations
|
|
2866
|
+
|
|
2867
|
+
# Output only. The time the policy was created. For singleton policies, this is
|
|
2868
|
+
# the first touch of the policy.
|
|
2869
|
+
# Corresponds to the JSON property `createTime`
|
|
2870
|
+
# @return [String]
|
|
2871
|
+
attr_accessor :create_time
|
|
2872
|
+
|
|
2873
|
+
# Enable rules define usable services, groups, and categories. There can
|
|
2874
|
+
# currently be at most one `EnableRule`. This restriction will be lifted in
|
|
2875
|
+
# later releases.
|
|
2876
|
+
# Corresponds to the JSON property `enableRules`
|
|
2877
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2alphaEnableRule>]
|
|
2878
|
+
attr_accessor :enable_rules
|
|
2879
|
+
|
|
2880
|
+
# Output only. An opaque tag indicating the current version of the policy, used
|
|
2881
|
+
# for concurrency control.
|
|
2882
|
+
# Corresponds to the JSON property `etag`
|
|
2883
|
+
# @return [String]
|
|
2884
|
+
attr_accessor :etag
|
|
2885
|
+
|
|
2886
|
+
# Output only. The resource name of the policy. Only the `default` policy is
|
|
2887
|
+
# supported: `projects/12345/consumerPolicies/default`, `folders/12345/
|
|
2888
|
+
# consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
|
|
2889
|
+
# Corresponds to the JSON property `name`
|
|
2890
|
+
# @return [String]
|
|
2891
|
+
attr_accessor :name
|
|
2892
|
+
|
|
2893
|
+
# Output only. The time the policy was last updated.
|
|
2894
|
+
# Corresponds to the JSON property `updateTime`
|
|
2895
|
+
# @return [String]
|
|
2896
|
+
attr_accessor :update_time
|
|
2897
|
+
|
|
2898
|
+
def initialize(**args)
|
|
2899
|
+
update!(**args)
|
|
2900
|
+
end
|
|
2901
|
+
|
|
2902
|
+
# Update properties of this object
|
|
2903
|
+
def update!(**args)
|
|
2904
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
2905
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2906
|
+
@enable_rules = args[:enable_rules] if args.key?(:enable_rules)
|
|
2907
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
2908
|
+
@name = args[:name] if args.key?(:name)
|
|
2909
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2910
|
+
end
|
|
2911
|
+
end
|
|
2912
|
+
|
|
2913
|
+
# The consumer policy rule that defines enabled services, groups, and categories.
|
|
2914
|
+
class GoogleApiServiceusageV2alphaEnableRule
|
|
2915
|
+
include Google::Apis::Core::Hashable
|
|
2916
|
+
|
|
2917
|
+
# The names of the services that are enabled. Example: `services/storage.
|
|
2918
|
+
# googleapis.com`.
|
|
2919
|
+
# Corresponds to the JSON property `services`
|
|
2920
|
+
# @return [Array<String>]
|
|
2921
|
+
attr_accessor :services
|
|
2922
|
+
|
|
2923
|
+
def initialize(**args)
|
|
2924
|
+
update!(**args)
|
|
2925
|
+
end
|
|
2926
|
+
|
|
2927
|
+
# Update properties of this object
|
|
2928
|
+
def update!(**args)
|
|
2929
|
+
@services = args[:services] if args.key?(:services)
|
|
2930
|
+
end
|
|
2931
|
+
end
|
|
2932
|
+
|
|
2933
|
+
# Metadata for the `UpdateConsumerPolicy` method.
|
|
2934
|
+
class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata
|
|
2935
|
+
include Google::Apis::Core::Hashable
|
|
2936
|
+
|
|
2937
|
+
def initialize(**args)
|
|
2938
|
+
update!(**args)
|
|
2939
|
+
end
|
|
2940
|
+
|
|
2941
|
+
# Update properties of this object
|
|
2942
|
+
def update!(**args)
|
|
2943
|
+
end
|
|
2944
|
+
end
|
|
2945
|
+
|
|
2946
|
+
# A message to group the analysis information.
|
|
2947
|
+
class GoogleApiServiceusageV2betaAnalysis
|
|
2948
|
+
include Google::Apis::Core::Hashable
|
|
2949
|
+
|
|
2950
|
+
# An analysis result including blockers and warnings.
|
|
2951
|
+
# Corresponds to the JSON property `analysisResult`
|
|
2952
|
+
# @return [Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaAnalysisResult]
|
|
2953
|
+
attr_accessor :analysis_result
|
|
2954
|
+
|
|
2955
|
+
# Output only. The type of analysis.
|
|
2956
|
+
# Corresponds to the JSON property `analysisType`
|
|
2957
|
+
# @return [String]
|
|
2958
|
+
attr_accessor :analysis_type
|
|
2959
|
+
|
|
2960
|
+
# Output only. The user friendly display name of the analysis type. E.g. service
|
|
2961
|
+
# dependency analysis, service resource usage analysis, etc.
|
|
2962
|
+
# Corresponds to the JSON property `displayName`
|
|
2963
|
+
# @return [String]
|
|
2964
|
+
attr_accessor :display_name
|
|
2965
|
+
|
|
2966
|
+
# The names of the service that has analysis result of warnings or blockers.
|
|
2967
|
+
# Example: `services/storage.googleapis.com`.
|
|
2968
|
+
# Corresponds to the JSON property `service`
|
|
2969
|
+
# @return [String]
|
|
2970
|
+
attr_accessor :service
|
|
2971
|
+
|
|
2972
|
+
def initialize(**args)
|
|
2973
|
+
update!(**args)
|
|
2974
|
+
end
|
|
2975
|
+
|
|
2976
|
+
# Update properties of this object
|
|
2977
|
+
def update!(**args)
|
|
2978
|
+
@analysis_result = args[:analysis_result] if args.key?(:analysis_result)
|
|
2979
|
+
@analysis_type = args[:analysis_type] if args.key?(:analysis_type)
|
|
2980
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
2981
|
+
@service = args[:service] if args.key?(:service)
|
|
2982
|
+
end
|
|
2983
|
+
end
|
|
2984
|
+
|
|
2985
|
+
# An analysis result including blockers and warnings.
|
|
2986
|
+
class GoogleApiServiceusageV2betaAnalysisResult
|
|
2987
|
+
include Google::Apis::Core::Hashable
|
|
2988
|
+
|
|
2989
|
+
# Blocking information that would prevent the policy changes at runtime.
|
|
2990
|
+
# Corresponds to the JSON property `blockers`
|
|
2991
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaImpact>]
|
|
2992
|
+
attr_accessor :blockers
|
|
2993
|
+
|
|
2994
|
+
# Warning information indicating that the policy changes might be unsafe, but
|
|
2995
|
+
# will not block the changes at runtime.
|
|
2996
|
+
# Corresponds to the JSON property `warnings`
|
|
2997
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaImpact>]
|
|
2998
|
+
attr_accessor :warnings
|
|
2999
|
+
|
|
3000
|
+
def initialize(**args)
|
|
3001
|
+
update!(**args)
|
|
3002
|
+
end
|
|
3003
|
+
|
|
3004
|
+
# Update properties of this object
|
|
3005
|
+
def update!(**args)
|
|
3006
|
+
@blockers = args[:blockers] if args.key?(:blockers)
|
|
3007
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
|
3008
|
+
end
|
|
3009
|
+
end
|
|
3010
|
+
|
|
3011
|
+
# Metadata for the `AnalyzeConsumerPolicy` method.
|
|
3012
|
+
class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata
|
|
3013
|
+
include Google::Apis::Core::Hashable
|
|
3014
|
+
|
|
3015
|
+
def initialize(**args)
|
|
3016
|
+
update!(**args)
|
|
3017
|
+
end
|
|
3018
|
+
|
|
3019
|
+
# Update properties of this object
|
|
3020
|
+
def update!(**args)
|
|
3021
|
+
end
|
|
3022
|
+
end
|
|
3023
|
+
|
|
3024
|
+
# The response of analyzing a consumer policy update.
|
|
3025
|
+
class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse
|
|
3026
|
+
include Google::Apis::Core::Hashable
|
|
3027
|
+
|
|
3028
|
+
# The list of analyses returned from performing the intended policy update
|
|
3029
|
+
# analysis. The analysis is grouped by service name and different analysis types.
|
|
3030
|
+
# The empty analysis list means that the consumer policy can be updated without
|
|
3031
|
+
# any warnings or blockers.
|
|
3032
|
+
# Corresponds to the JSON property `analysis`
|
|
3033
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaAnalysis>]
|
|
3034
|
+
attr_accessor :analysis
|
|
3035
|
+
|
|
3036
|
+
def initialize(**args)
|
|
3037
|
+
update!(**args)
|
|
3038
|
+
end
|
|
3039
|
+
|
|
3040
|
+
# Update properties of this object
|
|
3041
|
+
def update!(**args)
|
|
3042
|
+
@analysis = args[:analysis] if args.key?(:analysis)
|
|
3043
|
+
end
|
|
3044
|
+
end
|
|
3045
|
+
|
|
3046
|
+
# Consumer Policy is a set of rules that define what services or service groups
|
|
3047
|
+
# can be used for a cloud resource hierarchy.
|
|
3048
|
+
class GoogleApiServiceusageV2betaConsumerPolicy
|
|
3049
|
+
include Google::Apis::Core::Hashable
|
|
3050
|
+
|
|
3051
|
+
# Output only. The time the policy was created. For singleton policies, this is
|
|
3052
|
+
# the first touch of the policy.
|
|
3053
|
+
# Corresponds to the JSON property `createTime`
|
|
3054
|
+
# @return [String]
|
|
3055
|
+
attr_accessor :create_time
|
|
3056
|
+
|
|
3057
|
+
# Enable rules define usable services, groups, and categories. There can
|
|
3058
|
+
# currently be at most one `EnableRule`. This restriction will be lifted in
|
|
3059
|
+
# later releases.
|
|
3060
|
+
# Corresponds to the JSON property `enableRules`
|
|
3061
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaEnableRule>]
|
|
3062
|
+
attr_accessor :enable_rules
|
|
3063
|
+
|
|
3064
|
+
# An opaque tag indicating the current version of the policy, used for
|
|
3065
|
+
# concurrency control.
|
|
3066
|
+
# Corresponds to the JSON property `etag`
|
|
3067
|
+
# @return [String]
|
|
3068
|
+
attr_accessor :etag
|
|
3069
|
+
|
|
3070
|
+
# Output only. The resource name of the policy. Only the `default` policy is
|
|
3071
|
+
# supported: `projects/12345/consumerPolicies/default`, `folders/12345/
|
|
3072
|
+
# consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
|
|
3073
|
+
# Corresponds to the JSON property `name`
|
|
3074
|
+
# @return [String]
|
|
3075
|
+
attr_accessor :name
|
|
3076
|
+
|
|
3077
|
+
# Output only. The time the policy was last updated.
|
|
3078
|
+
# Corresponds to the JSON property `updateTime`
|
|
3079
|
+
# @return [String]
|
|
3080
|
+
attr_accessor :update_time
|
|
3081
|
+
|
|
3082
|
+
def initialize(**args)
|
|
3083
|
+
update!(**args)
|
|
3084
|
+
end
|
|
3085
|
+
|
|
3086
|
+
# Update properties of this object
|
|
3087
|
+
def update!(**args)
|
|
3088
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
3089
|
+
@enable_rules = args[:enable_rules] if args.key?(:enable_rules)
|
|
3090
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
3091
|
+
@name = args[:name] if args.key?(:name)
|
|
3092
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
3093
|
+
end
|
|
3094
|
+
end
|
|
3095
|
+
|
|
3096
|
+
# The consumer policy rule that defines enabled services, groups, and categories.
|
|
3097
|
+
class GoogleApiServiceusageV2betaEnableRule
|
|
3098
|
+
include Google::Apis::Core::Hashable
|
|
3099
|
+
|
|
3100
|
+
# The names of the services that are enabled. Example: `services/storage.
|
|
3101
|
+
# googleapis.com`.
|
|
3102
|
+
# Corresponds to the JSON property `services`
|
|
3103
|
+
# @return [Array<String>]
|
|
3104
|
+
attr_accessor :services
|
|
3105
|
+
|
|
3106
|
+
def initialize(**args)
|
|
3107
|
+
update!(**args)
|
|
3108
|
+
end
|
|
3109
|
+
|
|
3110
|
+
# Update properties of this object
|
|
3111
|
+
def update!(**args)
|
|
3112
|
+
@services = args[:services] if args.key?(:services)
|
|
3113
|
+
end
|
|
3114
|
+
end
|
|
3115
|
+
|
|
3116
|
+
# A message to group impacts of updating a policy.
|
|
3117
|
+
class GoogleApiServiceusageV2betaImpact
|
|
3118
|
+
include Google::Apis::Core::Hashable
|
|
3119
|
+
|
|
3120
|
+
# Output only. User friendly impact detail in a free form message.
|
|
3121
|
+
# Corresponds to the JSON property `detail`
|
|
3122
|
+
# @return [String]
|
|
3123
|
+
attr_accessor :detail
|
|
3124
|
+
|
|
3125
|
+
# Output only. The type of impact.
|
|
3126
|
+
# Corresponds to the JSON property `impactType`
|
|
3127
|
+
# @return [String]
|
|
3128
|
+
attr_accessor :impact_type
|
|
3129
|
+
|
|
3130
|
+
# Output only. This field will be populated only for the `
|
|
3131
|
+
# DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example: `services/compute.
|
|
3132
|
+
# googleapis.com`. Impact.detail will be in format : `missing service dependency:
|
|
3133
|
+
# `missing_dependency`.`
|
|
3134
|
+
# Corresponds to the JSON property `missingDependency`
|
|
3135
|
+
# @return [String]
|
|
3136
|
+
attr_accessor :missing_dependency
|
|
3137
|
+
|
|
3138
|
+
def initialize(**args)
|
|
3139
|
+
update!(**args)
|
|
3140
|
+
end
|
|
3141
|
+
|
|
3142
|
+
# Update properties of this object
|
|
3143
|
+
def update!(**args)
|
|
3144
|
+
@detail = args[:detail] if args.key?(:detail)
|
|
3145
|
+
@impact_type = args[:impact_type] if args.key?(:impact_type)
|
|
3146
|
+
@missing_dependency = args[:missing_dependency] if args.key?(:missing_dependency)
|
|
3147
|
+
end
|
|
3148
|
+
end
|
|
3149
|
+
|
|
3150
|
+
# McpEnableRule contains MCP enablement related rules.
|
|
3151
|
+
class GoogleApiServiceusageV2betaMcpEnableRule
|
|
3152
|
+
include Google::Apis::Core::Hashable
|
|
3153
|
+
|
|
3154
|
+
# List of enabled MCP services.
|
|
3155
|
+
# Corresponds to the JSON property `mcpServices`
|
|
3156
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaMcpService>]
|
|
3157
|
+
attr_accessor :mcp_services
|
|
3158
|
+
|
|
3159
|
+
def initialize(**args)
|
|
3160
|
+
update!(**args)
|
|
3161
|
+
end
|
|
3162
|
+
|
|
3163
|
+
# Update properties of this object
|
|
3164
|
+
def update!(**args)
|
|
3165
|
+
@mcp_services = args[:mcp_services] if args.key?(:mcp_services)
|
|
3166
|
+
end
|
|
3167
|
+
end
|
|
1980
3168
|
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
attr_accessor :monitored_resources
|
|
3169
|
+
# MCP Consumer Policy is a set of rules that define MCP related policy for a
|
|
3170
|
+
# cloud resource hierarchy.
|
|
3171
|
+
class GoogleApiServiceusageV2betaMcpPolicy
|
|
3172
|
+
include Google::Apis::Core::Hashable
|
|
1986
3173
|
|
|
1987
|
-
#
|
|
1988
|
-
#
|
|
1989
|
-
#
|
|
1990
|
-
#
|
|
1991
|
-
|
|
1992
|
-
# the consumer project. monitored_resources: - type: library.googleapis.com/
|
|
1993
|
-
# Branch display_name: "Library Branch" description: "A branch of a library."
|
|
1994
|
-
# launch_stage: GA labels: - key: resource_container description: "The Cloud
|
|
1995
|
-
# container (ie. project id) for the Branch." - key: location description: "The
|
|
1996
|
-
# location of the library branch." - key: branch_id description: "The id of the
|
|
1997
|
-
# branch." metrics: - name: library.googleapis.com/book/returned_count
|
|
1998
|
-
# display_name: "Books Returned" description: "The count of books that have been
|
|
1999
|
-
# returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1"
|
|
2000
|
-
# labels: - key: customer_id description: "The id of the customer." - name:
|
|
2001
|
-
# library.googleapis.com/book/num_overdue display_name: "Books Overdue"
|
|
2002
|
-
# description: "The current number of overdue books." launch_stage: GA
|
|
2003
|
-
# metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id
|
|
2004
|
-
# description: "The id of the customer." monitoring: producer_destinations: -
|
|
2005
|
-
# monitored_resource: library.googleapis.com/Branch metrics: - library.
|
|
2006
|
-
# googleapis.com/book/returned_count consumer_destinations: - monitored_resource:
|
|
2007
|
-
# library.googleapis.com/Branch metrics: - library.googleapis.com/book/
|
|
2008
|
-
# returned_count - library.googleapis.com/book/num_overdue
|
|
2009
|
-
# Corresponds to the JSON property `monitoring`
|
|
2010
|
-
# @return [Google::Apis::ServiceusageV1::Monitoring]
|
|
2011
|
-
attr_accessor :monitoring
|
|
3174
|
+
# Output only. The time the policy was created. For singleton policies (such as
|
|
3175
|
+
# the `default` policy), this is the first touch of the policy.
|
|
3176
|
+
# Corresponds to the JSON property `createTime`
|
|
3177
|
+
# @return [String]
|
|
3178
|
+
attr_accessor :create_time
|
|
2012
3179
|
|
|
2013
|
-
#
|
|
2014
|
-
#
|
|
2015
|
-
# Corresponds to the JSON property `
|
|
3180
|
+
# An opaque tag indicating the current version of the policy, used for
|
|
3181
|
+
# concurrency control.
|
|
3182
|
+
# Corresponds to the JSON property `etag`
|
|
2016
3183
|
# @return [String]
|
|
2017
|
-
attr_accessor :
|
|
3184
|
+
attr_accessor :etag
|
|
2018
3185
|
|
|
2019
|
-
#
|
|
2020
|
-
#
|
|
2021
|
-
#
|
|
2022
|
-
|
|
2023
|
-
# limits defines limits on the metrics, which will be used for quota checks at
|
|
2024
|
-
# runtime. An example quota configuration in yaml format: quota: limits: - name:
|
|
2025
|
-
# apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/`
|
|
2026
|
-
# project`" # rate limit for consumer projects values: STANDARD: 10000 (The
|
|
2027
|
-
# metric rules bind all methods to the read_calls metric, except for the
|
|
2028
|
-
# UpdateBook and DeleteBook methods. These two methods are mapped to the
|
|
2029
|
-
# write_calls metric, with the UpdateBook method consuming at twice rate as the
|
|
2030
|
-
# DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.
|
|
2031
|
-
# googleapis.com/read_calls: 1 - selector: google.example.library.v1.
|
|
2032
|
-
# LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 -
|
|
2033
|
-
# selector: google.example.library.v1.LibraryService.DeleteBook metric_costs:
|
|
2034
|
-
# library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics:
|
|
2035
|
-
# - name: library.googleapis.com/read_calls display_name: Read requests
|
|
2036
|
-
# metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/
|
|
2037
|
-
# write_calls display_name: Write requests metric_kind: DELTA value_type: INT64
|
|
2038
|
-
# Corresponds to the JSON property `quota`
|
|
2039
|
-
# @return [Google::Apis::ServiceusageV1::Quota]
|
|
2040
|
-
attr_accessor :quota
|
|
3186
|
+
# McpEnableRules contains MCP enablement related rules.
|
|
3187
|
+
# Corresponds to the JSON property `mcpEnableRules`
|
|
3188
|
+
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2betaMcpEnableRule>]
|
|
3189
|
+
attr_accessor :mcp_enable_rules
|
|
2041
3190
|
|
|
2042
|
-
# The
|
|
2043
|
-
#
|
|
3191
|
+
# Output only. The resource name of the policy. Only the `default` policy is
|
|
3192
|
+
# supported. We allow the following formats: `projects/`PROJECT_NUMBER`/
|
|
3193
|
+
# mcpPolicies/default`, `projects/`PROJECT_ID`/mcpPolicies/default`, `folders/`
|
|
3194
|
+
# FOLDER_ID`/mcpPolicies/default`, `organizations/`ORG_ID`/mcpPolicies/default`.
|
|
3195
|
+
# Corresponds to the JSON property `name`
|
|
2044
3196
|
# @return [String]
|
|
2045
|
-
attr_accessor :
|
|
3197
|
+
attr_accessor :name
|
|
2046
3198
|
|
|
2047
|
-
#
|
|
2048
|
-
# Corresponds to the JSON property `
|
|
2049
|
-
# @return [
|
|
2050
|
-
attr_accessor :
|
|
3199
|
+
# Output only. The time the policy was last updated.
|
|
3200
|
+
# Corresponds to the JSON property `updateTime`
|
|
3201
|
+
# @return [String]
|
|
3202
|
+
attr_accessor :update_time
|
|
2051
3203
|
|
|
2052
3204
|
def initialize(**args)
|
|
2053
3205
|
update!(**args)
|
|
@@ -2055,33 +3207,23 @@ module Google
|
|
|
2055
3207
|
|
|
2056
3208
|
# Update properties of this object
|
|
2057
3209
|
def update!(**args)
|
|
2058
|
-
@
|
|
2059
|
-
@
|
|
2060
|
-
@
|
|
2061
|
-
@endpoints = args[:endpoints] if args.key?(:endpoints)
|
|
2062
|
-
@monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
|
|
2063
|
-
@monitoring = args[:monitoring] if args.key?(:monitoring)
|
|
3210
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
3211
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
3212
|
+
@mcp_enable_rules = args[:mcp_enable_rules] if args.key?(:mcp_enable_rules)
|
|
2064
3213
|
@name = args[:name] if args.key?(:name)
|
|
2065
|
-
@
|
|
2066
|
-
@title = args[:title] if args.key?(:title)
|
|
2067
|
-
@usage = args[:usage] if args.key?(:usage)
|
|
3214
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2068
3215
|
end
|
|
2069
3216
|
end
|
|
2070
3217
|
|
|
2071
|
-
#
|
|
2072
|
-
class
|
|
3218
|
+
# McpService contains the service names that are enabled for MCP.
|
|
3219
|
+
class GoogleApiServiceusageV2betaMcpService
|
|
2073
3220
|
include Google::Apis::Core::Hashable
|
|
2074
3221
|
|
|
2075
|
-
#
|
|
2076
|
-
#
|
|
2077
|
-
# Corresponds to the JSON property `
|
|
2078
|
-
# @return [Google::Apis::ServiceusageV1::GoogleApiServiceusageV1beta1ServiceIdentity]
|
|
2079
|
-
attr_accessor :identity
|
|
2080
|
-
|
|
2081
|
-
# Service identity state.
|
|
2082
|
-
# Corresponds to the JSON property `state`
|
|
3222
|
+
# The names of the services that are enabled for MCP. Example: `services/library-
|
|
3223
|
+
# example.googleapis.com`
|
|
3224
|
+
# Corresponds to the JSON property `service`
|
|
2083
3225
|
# @return [String]
|
|
2084
|
-
attr_accessor :
|
|
3226
|
+
attr_accessor :service
|
|
2085
3227
|
|
|
2086
3228
|
def initialize(**args)
|
|
2087
3229
|
update!(**args)
|
|
@@ -2089,27 +3231,26 @@ module Google
|
|
|
2089
3231
|
|
|
2090
3232
|
# Update properties of this object
|
|
2091
3233
|
def update!(**args)
|
|
2092
|
-
@
|
|
2093
|
-
@state = args[:state] if args.key?(:state)
|
|
3234
|
+
@service = args[:service] if args.key?(:service)
|
|
2094
3235
|
end
|
|
2095
3236
|
end
|
|
2096
3237
|
|
|
2097
|
-
#
|
|
2098
|
-
|
|
2099
|
-
class GoogleApiServiceusageV1beta1ServiceIdentity
|
|
3238
|
+
# Metadata for the `UpdateConsumerPolicy` method.
|
|
3239
|
+
class GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata
|
|
2100
3240
|
include Google::Apis::Core::Hashable
|
|
2101
3241
|
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
# @return [String]
|
|
2106
|
-
attr_accessor :email
|
|
3242
|
+
def initialize(**args)
|
|
3243
|
+
update!(**args)
|
|
3244
|
+
end
|
|
2107
3245
|
|
|
2108
|
-
#
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
3246
|
+
# Update properties of this object
|
|
3247
|
+
def update!(**args)
|
|
3248
|
+
end
|
|
3249
|
+
end
|
|
3250
|
+
|
|
3251
|
+
# Metadata for the `UpdateMcpPolicy` method.
|
|
3252
|
+
class GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata
|
|
3253
|
+
include Google::Apis::Core::Hashable
|
|
2113
3254
|
|
|
2114
3255
|
def initialize(**args)
|
|
2115
3256
|
update!(**args)
|
|
@@ -2117,8 +3258,6 @@ module Google
|
|
|
2117
3258
|
|
|
2118
3259
|
# Update properties of this object
|
|
2119
3260
|
def update!(**args)
|
|
2120
|
-
@email = args[:email] if args.key?(:email)
|
|
2121
|
-
@unique_id = args[:unique_id] if args.key?(:unique_id)
|
|
2122
3261
|
end
|
|
2123
3262
|
end
|
|
2124
3263
|
|
|
@@ -2154,7 +3293,7 @@ module Google
|
|
|
2154
3293
|
end
|
|
2155
3294
|
end
|
|
2156
3295
|
|
|
2157
|
-
#
|
|
3296
|
+
# gRPC Transcoding gRPC Transcoding is a feature for mapping between a gRPC
|
|
2158
3297
|
# method and one or more HTTP REST endpoints. It allows developers to build a
|
|
2159
3298
|
# single API service that supports both gRPC APIs and REST APIs. Many systems,
|
|
2160
3299
|
# including [Google APIs](https://github.com/googleapis/googleapis), [Cloud
|
|
@@ -2174,70 +3313,69 @@ module Google
|
|
|
2174
3313
|
# Message) ` option (google.api.http) = ` get: "/v1/`name=messages/*`" `; ` `
|
|
2175
3314
|
# message GetMessageRequest ` string name = 1; // Mapped to URL path. ` message
|
|
2176
3315
|
# Message ` string text = 1; // The resource content. ` This enables an HTTP
|
|
2177
|
-
# REST to gRPC mapping as below: HTTP
|
|
2178
|
-
#
|
|
2179
|
-
#
|
|
2180
|
-
#
|
|
2181
|
-
#
|
|
2182
|
-
#
|
|
2183
|
-
#
|
|
2184
|
-
#
|
|
2185
|
-
#
|
|
2186
|
-
#
|
|
2187
|
-
#
|
|
2188
|
-
#
|
|
2189
|
-
#
|
|
2190
|
-
#
|
|
2191
|
-
#
|
|
2192
|
-
#
|
|
2193
|
-
#
|
|
2194
|
-
#
|
|
2195
|
-
#
|
|
2196
|
-
#
|
|
2197
|
-
#
|
|
2198
|
-
#
|
|
2199
|
-
#
|
|
2200
|
-
#
|
|
2201
|
-
#
|
|
2202
|
-
#
|
|
2203
|
-
#
|
|
2204
|
-
#
|
|
2205
|
-
#
|
|
2206
|
-
#
|
|
2207
|
-
#
|
|
2208
|
-
#
|
|
2209
|
-
#
|
|
2210
|
-
#
|
|
2211
|
-
#
|
|
2212
|
-
#
|
|
2213
|
-
#
|
|
2214
|
-
#
|
|
2215
|
-
#
|
|
2216
|
-
#
|
|
2217
|
-
#
|
|
2218
|
-
#
|
|
2219
|
-
#
|
|
2220
|
-
#
|
|
2221
|
-
#
|
|
2222
|
-
# messages/123456`
|
|
2223
|
-
#
|
|
2224
|
-
#
|
|
2225
|
-
#
|
|
2226
|
-
# referred by the
|
|
2227
|
-
#
|
|
2228
|
-
#
|
|
2229
|
-
#
|
|
2230
|
-
#
|
|
2231
|
-
#
|
|
2232
|
-
#
|
|
2233
|
-
#
|
|
2234
|
-
#
|
|
2235
|
-
# "
|
|
2236
|
-
#
|
|
2237
|
-
#
|
|
2238
|
-
#
|
|
2239
|
-
#
|
|
2240
|
-
# specified by its template. A variable template must not contain other
|
|
3316
|
+
# REST to gRPC mapping as below: - HTTP: `GET /v1/messages/123456` - gRPC: `
|
|
3317
|
+
# GetMessage(name: "messages/123456")` Any fields in the request message which
|
|
3318
|
+
# are not bound by the path template automatically become HTTP query parameters
|
|
3319
|
+
# if there is no HTTP request body. For example: service Messaging ` rpc
|
|
3320
|
+
# GetMessage(GetMessageRequest) returns (Message) ` option (google.api.http) = `
|
|
3321
|
+
# get:"/v1/messages/`message_id`" `; ` ` message GetMessageRequest ` message
|
|
3322
|
+
# SubMessage ` string subfield = 1; ` string message_id = 1; // Mapped to URL
|
|
3323
|
+
# path. int64 revision = 2; // Mapped to URL query parameter `revision`.
|
|
3324
|
+
# SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. ` This
|
|
3325
|
+
# enables a HTTP JSON to RPC mapping as below: - HTTP: `GET /v1/messages/123456?
|
|
3326
|
+
# revision=2&sub.subfield=foo` - gRPC: `GetMessage(message_id: "123456" revision:
|
|
3327
|
+
# 2 sub: SubMessage(subfield: "foo"))` Note that fields which are mapped to URL
|
|
3328
|
+
# query parameters must have a primitive type or a repeated primitive type or a
|
|
3329
|
+
# non-repeated message type. In the case of a repeated type, the parameter can
|
|
3330
|
+
# be repeated in the URL as `...?param=A¶m=B`. In the case of a message type,
|
|
3331
|
+
# each field of the message is mapped to a separate parameter, such as `...?foo.
|
|
3332
|
+
# a=A&foo.b=B&foo.c=C`. For HTTP methods that allow a request body, the `body`
|
|
3333
|
+
# field specifies the mapping. Consider a REST update method on the message
|
|
3334
|
+
# resource collection: service Messaging ` rpc UpdateMessage(
|
|
3335
|
+
# UpdateMessageRequest) returns (Message) ` option (google.api.http) = ` patch: "
|
|
3336
|
+
# /v1/messages/`message_id`" body: "message" `; ` ` message UpdateMessageRequest
|
|
3337
|
+
# ` string message_id = 1; // mapped to the URL Message message = 2; // mapped
|
|
3338
|
+
# to the body ` The following HTTP JSON to RPC mapping is enabled, where the
|
|
3339
|
+
# representation of the JSON in the request body is determined by protos JSON
|
|
3340
|
+
# encoding: - HTTP: `PATCH /v1/messages/123456 ` "text": "Hi!" `` - gRPC: `
|
|
3341
|
+
# UpdateMessage(message_id: "123456" message ` text: "Hi!" `)` The special name `
|
|
3342
|
+
# *` can be used in the body mapping to define that every field not bound by the
|
|
3343
|
+
# path template should be mapped to the request body. This enables the following
|
|
3344
|
+
# alternative definition of the update method: service Messaging ` rpc
|
|
3345
|
+
# UpdateMessage(Message) returns (Message) ` option (google.api.http) = ` patch:
|
|
3346
|
+
# "/v1/messages/`message_id`" body: "*" `; ` ` message Message ` string
|
|
3347
|
+
# message_id = 1; string text = 2; ` The following HTTP JSON to RPC mapping is
|
|
3348
|
+
# enabled: - HTTP: `PATCH /v1/messages/123456 ` "text": "Hi!" `` - gRPC: `
|
|
3349
|
+
# UpdateMessage(message_id: "123456" text: "Hi!")` Note that when using `*` in
|
|
3350
|
+
# the body mapping, it is not possible to have HTTP parameters, as all fields
|
|
3351
|
+
# not bound by the path end in the body. This makes this option more rarely used
|
|
3352
|
+
# in practice when defining REST APIs. The common usage of `*` is in custom
|
|
3353
|
+
# methods which don't use the URL at all for transferring data. It is possible
|
|
3354
|
+
# to define multiple HTTP methods for one RPC by using the `additional_bindings`
|
|
3355
|
+
# option. Example: service Messaging ` rpc GetMessage(GetMessageRequest) returns
|
|
3356
|
+
# (Message) ` option (google.api.http) = ` get: "/v1/messages/`message_id`"
|
|
3357
|
+
# additional_bindings ` get: "/v1/users/`user_id`/messages/`message_id`" ` `; ` `
|
|
3358
|
+
# message GetMessageRequest ` string message_id = 1; string user_id = 2; ` This
|
|
3359
|
+
# enables the following two alternative HTTP JSON to RPC mappings: - HTTP: `GET /
|
|
3360
|
+
# v1/messages/123456` - gRPC: `GetMessage(message_id: "123456")` - HTTP: `GET /
|
|
3361
|
+
# v1/users/me/messages/123456` - gRPC: `GetMessage(user_id: "me" message_id: "
|
|
3362
|
+
# 123456")` Rules for HTTP mapping 1. Leaf request fields (recursive expansion
|
|
3363
|
+
# nested messages in the request message) are classified into three categories: -
|
|
3364
|
+
# Fields referred by the path template. They are passed via the URL path. -
|
|
3365
|
+
# Fields referred by the HttpRule.body. They are passed via the HTTP request
|
|
3366
|
+
# body. - All other fields are passed via the URL query parameters, and the
|
|
3367
|
+
# parameter name is the field path in the request message. A repeated field can
|
|
3368
|
+
# be represented as multiple query parameters under the same name. 2. If
|
|
3369
|
+
# HttpRule.body is "*", there is no URL query parameter, all fields are passed
|
|
3370
|
+
# via URL path and HTTP request body. 3. If HttpRule.body is omitted, there is
|
|
3371
|
+
# no HTTP request body, all fields are passed via URL path and URL query
|
|
3372
|
+
# parameters. Path template syntax Template = "/" Segments [ Verb ] ; Segments =
|
|
3373
|
+
# Segment ` "/" Segment ` ; Segment = "*" | "**" | LITERAL | Variable ; Variable
|
|
3374
|
+
# = "`" FieldPath [ "=" Segments ] "`" ; FieldPath = IDENT ` "." IDENT ` ; Verb =
|
|
3375
|
+
# ":" LITERAL ; The syntax `*` matches a single URL path segment. The syntax `**
|
|
3376
|
+
# ` matches zero or more URL path segments, which must be the last part of the
|
|
3377
|
+
# URL path except the `Verb`. The syntax `Variable` matches part of the URL path
|
|
3378
|
+
# as specified by its template. A variable template must not contain other
|
|
2241
3379
|
# variables. If a variable matches a single path segment, its template may be
|
|
2242
3380
|
# omitted, e.g. ``var`` is equivalent to ``var=*``. The syntax `LITERAL` matches
|
|
2243
3381
|
# literal text in the URL path. If the `LITERAL` contains any reserved character,
|
|
@@ -2252,7 +3390,7 @@ module Google
|
|
|
2252
3390
|
# except `[-_.~/0-9a-zA-Z]` are percent-encoded. The server side does the
|
|
2253
3391
|
# reverse decoding, except "%2F" and "%2f" are left unchanged. Such variables
|
|
2254
3392
|
# show up in the [Discovery Document](https://developers.google.com/discovery/v1/
|
|
2255
|
-
# reference/apis) as ``+var``.
|
|
3393
|
+
# reference/apis) as ``+var``. Using gRPC API Service Configuration gRPC API
|
|
2256
3394
|
# Service Configuration (service config) is a configuration language for
|
|
2257
3395
|
# configuring a gRPC service to become a user-facing product. The service config
|
|
2258
3396
|
# is simply the YAML representation of the `google.api.Service` proto message.
|
|
@@ -2262,27 +3400,27 @@ module Google
|
|
|
2262
3400
|
# effect as the proto annotation. This can be particularly useful if you have a
|
|
2263
3401
|
# proto that is reused in multiple services. Note that any transcoding specified
|
|
2264
3402
|
# in the service config will override any matching transcoding configuration in
|
|
2265
|
-
# the proto.
|
|
2266
|
-
# to it
|
|
2267
|
-
# message_id`/`sub.subfield`
|
|
2268
|
-
# map a gRPC to JSON REST endpoints, the proto to JSON conversion
|
|
2269
|
-
# the [proto3 specification](https://developers.google.com/protocol-
|
|
2270
|
-
# proto3#json). While the single segment variable follows the
|
|
2271
|
-
# 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
|
|
2272
|
-
# Expansion, the multi segment variable **does not** follow RFC
|
|
2273
|
-
# 3 Reserved Expansion. The reason is that the Reserved
|
|
2274
|
-
# expand special characters like `?` and `#`, which would
|
|
2275
|
-
# As the result, gRPC Transcoding uses a custom encoding
|
|
2276
|
-
# variables. The path variables **must not** refer to any
|
|
2277
|
-
# field, because client libraries are not capable of handling
|
|
2278
|
-
# expansion. The path variables **must not** capture the leading "/
|
|
2279
|
-
# The reason is that the most common use case "`var`" does not
|
|
2280
|
-
# leading "/" character. For consistency, all path variables must
|
|
2281
|
-
# behavior. Repeated message fields must not be mapped to URL
|
|
2282
|
-
# because no client library can support such complicated
|
|
2283
|
-
# needs to use a JSON array for request or response body, it
|
|
2284
|
-
# or response body to a repeated field. However, some gRPC
|
|
2285
|
-
# implementations may not support this feature.
|
|
3403
|
+
# the proto. The following example selects a gRPC method and applies an `
|
|
3404
|
+
# HttpRule` to it: http: rules: - selector: example.v1.Messaging.GetMessage get:
|
|
3405
|
+
# /v1/messages/`message_id`/`sub.subfield` Special notes When gRPC Transcoding
|
|
3406
|
+
# is used to map a gRPC to JSON REST endpoints, the proto to JSON conversion
|
|
3407
|
+
# must follow the [proto3 specification](https://developers.google.com/protocol-
|
|
3408
|
+
# buffers/docs/proto3#json). While the single segment variable follows the
|
|
3409
|
+
# semantics of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
|
|
3410
|
+
# Simple String Expansion, the multi segment variable **does not** follow RFC
|
|
3411
|
+
# 6570 Section 3.2.3 Reserved Expansion. The reason is that the Reserved
|
|
3412
|
+
# Expansion does not expand special characters like `?` and `#`, which would
|
|
3413
|
+
# lead to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
|
3414
|
+
# for multi segment variables. The path variables **must not** refer to any
|
|
3415
|
+
# repeated or mapped field, because client libraries are not capable of handling
|
|
3416
|
+
# such variable expansion. The path variables **must not** capture the leading "/
|
|
3417
|
+
# " character. The reason is that the most common use case "`var`" does not
|
|
3418
|
+
# capture the leading "/" character. For consistency, all path variables must
|
|
3419
|
+
# share the same behavior. Repeated message fields must not be mapped to URL
|
|
3420
|
+
# query parameters, because no client library can support such complicated
|
|
3421
|
+
# mapping. If an API needs to use a JSON array for request or response body, it
|
|
3422
|
+
# can map the request or response body to a repeated field. However, some gRPC
|
|
3423
|
+
# Transcoding implementations may not support this feature.
|
|
2286
3424
|
class HttpRule
|
|
2287
3425
|
include Google::Apis::Core::Hashable
|
|
2288
3426
|
|
|
@@ -2364,6 +3502,44 @@ module Google
|
|
|
2364
3502
|
end
|
|
2365
3503
|
end
|
|
2366
3504
|
|
|
3505
|
+
# A message to group impacts of updating a policy.
|
|
3506
|
+
class Impact
|
|
3507
|
+
include Google::Apis::Core::Hashable
|
|
3508
|
+
|
|
3509
|
+
# Output only. User friendly impact detail in a free form message.
|
|
3510
|
+
# Corresponds to the JSON property `detail`
|
|
3511
|
+
# @return [String]
|
|
3512
|
+
attr_accessor :detail
|
|
3513
|
+
|
|
3514
|
+
# Output only. The type of impact.
|
|
3515
|
+
# Corresponds to the JSON property `impactType`
|
|
3516
|
+
# @return [String]
|
|
3517
|
+
attr_accessor :impact_type
|
|
3518
|
+
|
|
3519
|
+
# The parent resource that the analysis is based on and the service name that
|
|
3520
|
+
# the analysis is for. Example: `projects/100/services/compute.googleapis.com`,
|
|
3521
|
+
# folders/101/services/compute.googleapis.com` and `organizations/102/services/
|
|
3522
|
+
# compute.googleapis.com`. Usually, the parent resource here is same as the
|
|
3523
|
+
# parent resource of the analyzed policy. However, for some analysis types, the
|
|
3524
|
+
# parent can be different. For example, for resource existence analysis, if the
|
|
3525
|
+
# parent resource of the analyzed policy is a folder or an organization, the
|
|
3526
|
+
# parent resource here can still be the project that contains the resources.
|
|
3527
|
+
# Corresponds to the JSON property `parent`
|
|
3528
|
+
# @return [String]
|
|
3529
|
+
attr_accessor :parent
|
|
3530
|
+
|
|
3531
|
+
def initialize(**args)
|
|
3532
|
+
update!(**args)
|
|
3533
|
+
end
|
|
3534
|
+
|
|
3535
|
+
# Update properties of this object
|
|
3536
|
+
def update!(**args)
|
|
3537
|
+
@detail = args[:detail] if args.key?(:detail)
|
|
3538
|
+
@impact_type = args[:impact_type] if args.key?(:impact_type)
|
|
3539
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
3540
|
+
end
|
|
3541
|
+
end
|
|
3542
|
+
|
|
2367
3543
|
# Metadata message that provides information such as progress, partial failures,
|
|
2368
3544
|
# and similar information on each GetOperation call of LRO returned by
|
|
2369
3545
|
# ImportAdminOverrides.
|
|
@@ -2479,8 +3655,8 @@ module Google
|
|
|
2479
3655
|
# protobuf. This should be used **only** by APIs who have already set the
|
|
2480
3656
|
# language_settings.java.package_name" field in gapic.yaml. API teams should use
|
|
2481
3657
|
# the protobuf java_package option where possible. Example of a YAML
|
|
2482
|
-
# configuration:: publishing: java_settings: library_package:
|
|
2483
|
-
# pubsub.v1
|
|
3658
|
+
# configuration:: publishing: library_settings: java_settings: library_package:
|
|
3659
|
+
# com.google.cloud.pubsub.v1
|
|
2484
3660
|
# Corresponds to the JSON property `libraryPackage`
|
|
2485
3661
|
# @return [String]
|
|
2486
3662
|
attr_accessor :library_package
|
|
@@ -2595,6 +3771,14 @@ module Google
|
|
|
2595
3771
|
# @return [Array<Google::Apis::ServiceusageV1::Operation>]
|
|
2596
3772
|
attr_accessor :operations
|
|
2597
3773
|
|
|
3774
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
3775
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
3776
|
+
# For example, when attempting to list all resources across all supported
|
|
3777
|
+
# locations.
|
|
3778
|
+
# Corresponds to the JSON property `unreachable`
|
|
3779
|
+
# @return [Array<String>]
|
|
3780
|
+
attr_accessor :unreachable
|
|
3781
|
+
|
|
2598
3782
|
def initialize(**args)
|
|
2599
3783
|
update!(**args)
|
|
2600
3784
|
end
|
|
@@ -2603,6 +3787,7 @@ module Google
|
|
|
2603
3787
|
def update!(**args)
|
|
2604
3788
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
2605
3789
|
@operations = args[:operations] if args.key?(:operations)
|
|
3790
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
2606
3791
|
end
|
|
2607
3792
|
end
|
|
2608
3793
|
|
|
@@ -2788,10 +3973,21 @@ module Google
|
|
|
2788
3973
|
end
|
|
2789
3974
|
end
|
|
2790
3975
|
|
|
2791
|
-
# Method represents a method of an API interface.
|
|
3976
|
+
# Method represents a method of an API interface. New usages of this message as
|
|
3977
|
+
# an alternative to MethodDescriptorProto are strongly discouraged. This message
|
|
3978
|
+
# does not reliability preserve all information necessary to model the schema
|
|
3979
|
+
# and preserve semantics. Instead make use of FileDescriptorSet which preserves
|
|
3980
|
+
# the necessary information.
|
|
2792
3981
|
class MethodProp
|
|
2793
3982
|
include Google::Apis::Core::Hashable
|
|
2794
3983
|
|
|
3984
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS. This
|
|
3985
|
+
# field should be ignored, instead the edition should be inherited from Api.
|
|
3986
|
+
# This is similar to Field and EnumValue.
|
|
3987
|
+
# Corresponds to the JSON property `edition`
|
|
3988
|
+
# @return [String]
|
|
3989
|
+
attr_accessor :edition
|
|
3990
|
+
|
|
2795
3991
|
# The simple name of this method.
|
|
2796
3992
|
# Corresponds to the JSON property `name`
|
|
2797
3993
|
# @return [String]
|
|
@@ -2824,7 +4020,8 @@ module Google
|
|
|
2824
4020
|
# @return [String]
|
|
2825
4021
|
attr_accessor :response_type_url
|
|
2826
4022
|
|
|
2827
|
-
# The source syntax of this method.
|
|
4023
|
+
# The source syntax of this method. This field should be ignored, instead the
|
|
4024
|
+
# syntax should be inherited from Api. This is similar to Field and EnumValue.
|
|
2828
4025
|
# Corresponds to the JSON property `syntax`
|
|
2829
4026
|
# @return [String]
|
|
2830
4027
|
attr_accessor :syntax
|
|
@@ -2835,6 +4032,7 @@ module Google
|
|
|
2835
4032
|
|
|
2836
4033
|
# Update properties of this object
|
|
2837
4034
|
def update!(**args)
|
|
4035
|
+
@edition = args[:edition] if args.key?(:edition)
|
|
2838
4036
|
@name = args[:name] if args.key?(:name)
|
|
2839
4037
|
@options = args[:options] if args.key?(:options)
|
|
2840
4038
|
@request_streaming = args[:request_streaming] if args.key?(:request_streaming)
|
|
@@ -2845,10 +4043,52 @@ module Google
|
|
|
2845
4043
|
end
|
|
2846
4044
|
end
|
|
2847
4045
|
|
|
4046
|
+
# Defines policies applying to an RPC method.
|
|
4047
|
+
class MethodPolicy
|
|
4048
|
+
include Google::Apis::Core::Hashable
|
|
4049
|
+
|
|
4050
|
+
# Policies that are applicable to the request message.
|
|
4051
|
+
# Corresponds to the JSON property `requestPolicies`
|
|
4052
|
+
# @return [Array<Google::Apis::ServiceusageV1::FieldPolicy>]
|
|
4053
|
+
attr_accessor :request_policies
|
|
4054
|
+
|
|
4055
|
+
# Selects a method to which these policies should be enforced, for example, "
|
|
4056
|
+
# google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
|
|
4057
|
+
# details. NOTE: This field must not be set in the proto annotation. It will be
|
|
4058
|
+
# automatically filled by the service config compiler .
|
|
4059
|
+
# Corresponds to the JSON property `selector`
|
|
4060
|
+
# @return [String]
|
|
4061
|
+
attr_accessor :selector
|
|
4062
|
+
|
|
4063
|
+
def initialize(**args)
|
|
4064
|
+
update!(**args)
|
|
4065
|
+
end
|
|
4066
|
+
|
|
4067
|
+
# Update properties of this object
|
|
4068
|
+
def update!(**args)
|
|
4069
|
+
@request_policies = args[:request_policies] if args.key?(:request_policies)
|
|
4070
|
+
@selector = args[:selector] if args.key?(:selector)
|
|
4071
|
+
end
|
|
4072
|
+
end
|
|
4073
|
+
|
|
2848
4074
|
# Describes the generator configuration for a method.
|
|
2849
4075
|
class MethodSettings
|
|
2850
4076
|
include Google::Apis::Core::Hashable
|
|
2851
4077
|
|
|
4078
|
+
# List of top-level fields of the request message, that should be automatically
|
|
4079
|
+
# populated by the client libraries based on their (google.api.field_info).
|
|
4080
|
+
# format. Currently supported format: UUID4. Example of a YAML configuration:
|
|
4081
|
+
# publishing: method_settings: - selector: google.example.v1.ExampleService.
|
|
4082
|
+
# CreateExample auto_populated_fields: - request_id
|
|
4083
|
+
# Corresponds to the JSON property `autoPopulatedFields`
|
|
4084
|
+
# @return [Array<String>]
|
|
4085
|
+
attr_accessor :auto_populated_fields
|
|
4086
|
+
|
|
4087
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
4088
|
+
# Corresponds to the JSON property `batching`
|
|
4089
|
+
# @return [Google::Apis::ServiceusageV1::BatchingConfigProto]
|
|
4090
|
+
attr_accessor :batching
|
|
4091
|
+
|
|
2852
4092
|
# Describes settings to use when generating API methods that use the long-
|
|
2853
4093
|
# running operation pattern. All default values below are from those used in the
|
|
2854
4094
|
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
|
|
@@ -2859,7 +4099,9 @@ module Google
|
|
|
2859
4099
|
attr_accessor :long_running
|
|
2860
4100
|
|
|
2861
4101
|
# The fully qualified name of the method, for which the options below apply.
|
|
2862
|
-
# This is used to find the method to apply the options.
|
|
4102
|
+
# This is used to find the method to apply the options. Example: publishing:
|
|
4103
|
+
# method_settings: - selector: google.storage.control.v2.StorageControl.
|
|
4104
|
+
# CreateFolder # method settings for CreateFolder...
|
|
2863
4105
|
# Corresponds to the JSON property `selector`
|
|
2864
4106
|
# @return [String]
|
|
2865
4107
|
attr_accessor :selector
|
|
@@ -2870,6 +4112,8 @@ module Google
|
|
|
2870
4112
|
|
|
2871
4113
|
# Update properties of this object
|
|
2872
4114
|
def update!(**args)
|
|
4115
|
+
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
|
|
4116
|
+
@batching = args[:batching] if args.key?(:batching)
|
|
2873
4117
|
@long_running = args[:long_running] if args.key?(:long_running)
|
|
2874
4118
|
@selector = args[:selector] if args.key?(:selector)
|
|
2875
4119
|
end
|
|
@@ -3042,6 +4286,11 @@ module Google
|
|
|
3042
4286
|
# @return [String]
|
|
3043
4287
|
attr_accessor :sample_period
|
|
3044
4288
|
|
|
4289
|
+
# The scope of the timeseries data of the metric.
|
|
4290
|
+
# Corresponds to the JSON property `timeSeriesResourceHierarchyLevel`
|
|
4291
|
+
# @return [Array<String>]
|
|
4292
|
+
attr_accessor :time_series_resource_hierarchy_level
|
|
4293
|
+
|
|
3045
4294
|
def initialize(**args)
|
|
3046
4295
|
update!(**args)
|
|
3047
4296
|
end
|
|
@@ -3051,6 +4300,7 @@ module Google
|
|
|
3051
4300
|
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
|
|
3052
4301
|
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
|
3053
4302
|
@sample_period = args[:sample_period] if args.key?(:sample_period)
|
|
4303
|
+
@time_series_resource_hierarchy_level = args[:time_series_resource_hierarchy_level] if args.key?(:time_series_resource_hierarchy_level)
|
|
3054
4304
|
end
|
|
3055
4305
|
end
|
|
3056
4306
|
|
|
@@ -3184,7 +4434,7 @@ module Google
|
|
|
3184
4434
|
|
|
3185
4435
|
# Required. The monitored resource type. For example, the type `"
|
|
3186
4436
|
# cloudsql_database"` represents databases in Google Cloud SQL. For a list of
|
|
3187
|
-
# types, see [
|
|
4437
|
+
# types, see [Monitored resource types](https://cloud.google.com/monitoring/api/
|
|
3188
4438
|
# resources) and [Logging resource types](https://cloud.google.com/logging/docs/
|
|
3189
4439
|
# api/v2/resource-list).
|
|
3190
4440
|
# Corresponds to the JSON property `type`
|
|
@@ -3380,13 +4630,13 @@ module Google
|
|
|
3380
4630
|
# @return [String]
|
|
3381
4631
|
attr_accessor :name
|
|
3382
4632
|
|
|
3383
|
-
# The normal response of the operation
|
|
3384
|
-
#
|
|
3385
|
-
#
|
|
3386
|
-
#
|
|
3387
|
-
#
|
|
3388
|
-
#
|
|
3389
|
-
#
|
|
4633
|
+
# The normal, successful response of the operation. If the original method
|
|
4634
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
4635
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
4636
|
+
# response should be the resource. For other methods, the response should have
|
|
4637
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
4638
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
4639
|
+
# `TakeSnapshotResponse`.
|
|
3390
4640
|
# Corresponds to the JSON property `response`
|
|
3391
4641
|
# @return [Hash<String,Object>]
|
|
3392
4642
|
attr_accessor :response
|
|
@@ -3425,7 +4675,9 @@ module Google
|
|
|
3425
4675
|
end
|
|
3426
4676
|
|
|
3427
4677
|
# A protocol buffer option, which can be attached to a message, field,
|
|
3428
|
-
# enumeration, etc.
|
|
4678
|
+
# enumeration, etc. New usages of this message as an alternative to FileOptions,
|
|
4679
|
+
# MessageOptions, FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions,
|
|
4680
|
+
# or MethodOptions are strongly discouraged.
|
|
3429
4681
|
class Option
|
|
3430
4682
|
include Google::Apis::Core::Hashable
|
|
3431
4683
|
|
|
@@ -3461,7 +4713,7 @@ module Google
|
|
|
3461
4713
|
class Page
|
|
3462
4714
|
include Google::Apis::Core::Hashable
|
|
3463
4715
|
|
|
3464
|
-
# The Markdown content of the page. You can use (== include `path` ==) to
|
|
4716
|
+
# The Markdown content of the page. You can use ```(== include `path` ==)``` to
|
|
3465
4717
|
# include content from a Markdown file. The content can be used to produce the
|
|
3466
4718
|
# documentation page such as HTML format page.
|
|
3467
4719
|
# Corresponds to the JSON property `content`
|
|
@@ -3506,6 +4758,16 @@ module Google
|
|
|
3506
4758
|
# @return [Google::Apis::ServiceusageV1::CommonLanguageSettings]
|
|
3507
4759
|
attr_accessor :common
|
|
3508
4760
|
|
|
4761
|
+
# The package name to use in Php. Clobbers the php_namespace option set in the
|
|
4762
|
+
# protobuf. This should be used **only** by APIs who have already set the
|
|
4763
|
+
# language_settings.php.package_name" field in gapic.yaml. API teams should use
|
|
4764
|
+
# the protobuf php_namespace option where possible. Example of a YAML
|
|
4765
|
+
# configuration:: publishing: library_settings: php_settings: library_package:
|
|
4766
|
+
# Google\Cloud\PubSub\V1
|
|
4767
|
+
# Corresponds to the JSON property `libraryPackage`
|
|
4768
|
+
# @return [String]
|
|
4769
|
+
attr_accessor :library_package
|
|
4770
|
+
|
|
3509
4771
|
def initialize(**args)
|
|
3510
4772
|
update!(**args)
|
|
3511
4773
|
end
|
|
@@ -3513,6 +4775,7 @@ module Google
|
|
|
3513
4775
|
# Update properties of this object
|
|
3514
4776
|
def update!(**args)
|
|
3515
4777
|
@common = args[:common] if args.key?(:common)
|
|
4778
|
+
@library_package = args[:library_package] if args.key?(:library_package)
|
|
3516
4779
|
end
|
|
3517
4780
|
end
|
|
3518
4781
|
|
|
@@ -3565,7 +4828,7 @@ module Google
|
|
|
3565
4828
|
# @return [Array<Google::Apis::ServiceusageV1::MethodSettings>]
|
|
3566
4829
|
attr_accessor :method_settings
|
|
3567
4830
|
|
|
3568
|
-
# Link to a
|
|
4831
|
+
# Link to a *public* URI where users can report issues. Example: https://
|
|
3569
4832
|
# issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
3570
4833
|
# Corresponds to the JSON property `newIssueUri`
|
|
3571
4834
|
# @return [String]
|
|
@@ -3576,6 +4839,18 @@ module Google
|
|
|
3576
4839
|
# @return [String]
|
|
3577
4840
|
attr_accessor :organization
|
|
3578
4841
|
|
|
4842
|
+
# Optional link to proto reference documentation. Example: https://cloud.google.
|
|
4843
|
+
# com/pubsub/lite/docs/reference/rpc
|
|
4844
|
+
# Corresponds to the JSON property `protoReferenceDocumentationUri`
|
|
4845
|
+
# @return [String]
|
|
4846
|
+
attr_accessor :proto_reference_documentation_uri
|
|
4847
|
+
|
|
4848
|
+
# Optional link to REST reference documentation. Example: https://cloud.google.
|
|
4849
|
+
# com/pubsub/lite/docs/reference/rest
|
|
4850
|
+
# Corresponds to the JSON property `restReferenceDocumentationUri`
|
|
4851
|
+
# @return [String]
|
|
4852
|
+
attr_accessor :rest_reference_documentation_uri
|
|
4853
|
+
|
|
3579
4854
|
def initialize(**args)
|
|
3580
4855
|
update!(**args)
|
|
3581
4856
|
end
|
|
@@ -3591,6 +4866,8 @@ module Google
|
|
|
3591
4866
|
@method_settings = args[:method_settings] if args.key?(:method_settings)
|
|
3592
4867
|
@new_issue_uri = args[:new_issue_uri] if args.key?(:new_issue_uri)
|
|
3593
4868
|
@organization = args[:organization] if args.key?(:organization)
|
|
4869
|
+
@proto_reference_documentation_uri = args[:proto_reference_documentation_uri] if args.key?(:proto_reference_documentation_uri)
|
|
4870
|
+
@rest_reference_documentation_uri = args[:rest_reference_documentation_uri] if args.key?(:rest_reference_documentation_uri)
|
|
3594
4871
|
end
|
|
3595
4872
|
end
|
|
3596
4873
|
|
|
@@ -3603,6 +4880,12 @@ module Google
|
|
|
3603
4880
|
# @return [Google::Apis::ServiceusageV1::CommonLanguageSettings]
|
|
3604
4881
|
attr_accessor :common
|
|
3605
4882
|
|
|
4883
|
+
# Experimental features to be included during client library generation. These
|
|
4884
|
+
# fields will be deprecated once the feature graduates and is enabled by default.
|
|
4885
|
+
# Corresponds to the JSON property `experimentalFeatures`
|
|
4886
|
+
# @return [Google::Apis::ServiceusageV1::ExperimentalFeatures]
|
|
4887
|
+
attr_accessor :experimental_features
|
|
4888
|
+
|
|
3606
4889
|
def initialize(**args)
|
|
3607
4890
|
update!(**args)
|
|
3608
4891
|
end
|
|
@@ -3610,6 +4893,7 @@ module Google
|
|
|
3610
4893
|
# Update properties of this object
|
|
3611
4894
|
def update!(**args)
|
|
3612
4895
|
@common = args[:common] if args.key?(:common)
|
|
4896
|
+
@experimental_features = args[:experimental_features] if args.key?(:experimental_features)
|
|
3613
4897
|
end
|
|
3614
4898
|
end
|
|
3615
4899
|
|
|
@@ -3729,11 +5013,11 @@ module Google
|
|
|
3729
5013
|
# @return [String]
|
|
3730
5014
|
attr_accessor :name
|
|
3731
5015
|
|
|
3732
|
-
# Specify the unit of the quota limit. It uses the same syntax as
|
|
3733
|
-
# The supported unit kinds are determined by the quota
|
|
3734
|
-
# some examples: * "1/min/`project`" for quota per
|
|
3735
|
-
# order of unit components is insignificant. The "
|
|
3736
|
-
# required to follow the metric unit syntax.
|
|
5016
|
+
# Specify the unit of the quota limit. It uses the same syntax as
|
|
5017
|
+
# MetricDescriptor.unit. The supported unit kinds are determined by the quota
|
|
5018
|
+
# backend system. Here are some examples: * "1/min/`project`" for quota per
|
|
5019
|
+
# minute per project. Note: the order of unit components is insignificant. The "
|
|
5020
|
+
# 1" at the beginning is required to follow the metric unit syntax.
|
|
3737
5021
|
# Corresponds to the JSON property `unit`
|
|
3738
5022
|
# @return [String]
|
|
3739
5023
|
attr_accessor :unit
|
|
@@ -3839,6 +5123,46 @@ module Google
|
|
|
3839
5123
|
end
|
|
3840
5124
|
end
|
|
3841
5125
|
|
|
5126
|
+
# Metadata for the `RemoveEnableRules` method.
|
|
5127
|
+
class RemoveEnableRulesMetadata
|
|
5128
|
+
include Google::Apis::Core::Hashable
|
|
5129
|
+
|
|
5130
|
+
def initialize(**args)
|
|
5131
|
+
update!(**args)
|
|
5132
|
+
end
|
|
5133
|
+
|
|
5134
|
+
# Update properties of this object
|
|
5135
|
+
def update!(**args)
|
|
5136
|
+
end
|
|
5137
|
+
end
|
|
5138
|
+
|
|
5139
|
+
# The response message of `RemoveEnableRules` method.
|
|
5140
|
+
class RemoveEnableRulesResponse
|
|
5141
|
+
include Google::Apis::Core::Hashable
|
|
5142
|
+
|
|
5143
|
+
# The parent consumer policy. It can be `projects/12345/consumerPolicies/default`
|
|
5144
|
+
# , or `folders/12345/consumerPolicies/default`, or `organizations/12345/
|
|
5145
|
+
# consumerPolicies/default`.
|
|
5146
|
+
# Corresponds to the JSON property `parent`
|
|
5147
|
+
# @return [String]
|
|
5148
|
+
attr_accessor :parent
|
|
5149
|
+
|
|
5150
|
+
# The values removed from the parent consumer policy.
|
|
5151
|
+
# Corresponds to the JSON property `removedValues`
|
|
5152
|
+
# @return [Array<String>]
|
|
5153
|
+
attr_accessor :removed_values
|
|
5154
|
+
|
|
5155
|
+
def initialize(**args)
|
|
5156
|
+
update!(**args)
|
|
5157
|
+
end
|
|
5158
|
+
|
|
5159
|
+
# Update properties of this object
|
|
5160
|
+
def update!(**args)
|
|
5161
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
5162
|
+
@removed_values = args[:removed_values] if args.key?(:removed_values)
|
|
5163
|
+
end
|
|
5164
|
+
end
|
|
5165
|
+
|
|
3842
5166
|
# Settings for Ruby client libraries.
|
|
3843
5167
|
class RubySettings
|
|
3844
5168
|
include Google::Apis::Core::Hashable
|
|
@@ -3858,6 +5182,40 @@ module Google
|
|
|
3858
5182
|
end
|
|
3859
5183
|
end
|
|
3860
5184
|
|
|
5185
|
+
# This message is used to configure the generation of a subset of the RPCs in a
|
|
5186
|
+
# service for client libraries. Note: This feature should not be used in most
|
|
5187
|
+
# cases.
|
|
5188
|
+
class SelectiveGapicGeneration
|
|
5189
|
+
include Google::Apis::Core::Hashable
|
|
5190
|
+
|
|
5191
|
+
# Setting this to true indicates to the client generators that methods that
|
|
5192
|
+
# would be excluded from the generation should instead be generated in a way
|
|
5193
|
+
# that indicates these methods should not be consumed by end users. How this is
|
|
5194
|
+
# expressed is up to individual language implementations to decide. Some
|
|
5195
|
+
# examples may be: added annotations, obfuscated identifiers, or other language
|
|
5196
|
+
# idiomatic patterns.
|
|
5197
|
+
# Corresponds to the JSON property `generateOmittedAsInternal`
|
|
5198
|
+
# @return [Boolean]
|
|
5199
|
+
attr_accessor :generate_omitted_as_internal
|
|
5200
|
+
alias_method :generate_omitted_as_internal?, :generate_omitted_as_internal
|
|
5201
|
+
|
|
5202
|
+
# An allowlist of the fully qualified names of RPCs that should be included on
|
|
5203
|
+
# public client surfaces.
|
|
5204
|
+
# Corresponds to the JSON property `methods`
|
|
5205
|
+
# @return [Array<String>]
|
|
5206
|
+
attr_accessor :methods_prop
|
|
5207
|
+
|
|
5208
|
+
def initialize(**args)
|
|
5209
|
+
update!(**args)
|
|
5210
|
+
end
|
|
5211
|
+
|
|
5212
|
+
# Update properties of this object
|
|
5213
|
+
def update!(**args)
|
|
5214
|
+
@generate_omitted_as_internal = args[:generate_omitted_as_internal] if args.key?(:generate_omitted_as_internal)
|
|
5215
|
+
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
|
|
5216
|
+
end
|
|
5217
|
+
end
|
|
5218
|
+
|
|
3861
5219
|
# Service identity for a service. This is the identity that service producer
|
|
3862
5220
|
# should use to access consumer resources.
|
|
3863
5221
|
class ServiceIdentity
|
|
@@ -4059,10 +5417,19 @@ module Google
|
|
|
4059
5417
|
end
|
|
4060
5418
|
end
|
|
4061
5419
|
|
|
4062
|
-
# A protocol buffer message type.
|
|
5420
|
+
# A protocol buffer message type. New usages of this message as an alternative
|
|
5421
|
+
# to DescriptorProto are strongly discouraged. This message does not reliability
|
|
5422
|
+
# preserve all information necessary to model the schema and preserve semantics.
|
|
5423
|
+
# Instead make use of FileDescriptorSet which preserves the necessary
|
|
5424
|
+
# information.
|
|
4063
5425
|
class Type
|
|
4064
5426
|
include Google::Apis::Core::Hashable
|
|
4065
5427
|
|
|
5428
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
5429
|
+
# Corresponds to the JSON property `edition`
|
|
5430
|
+
# @return [String]
|
|
5431
|
+
attr_accessor :edition
|
|
5432
|
+
|
|
4066
5433
|
# The list of fields.
|
|
4067
5434
|
# Corresponds to the JSON property `fields`
|
|
4068
5435
|
# @return [Array<Google::Apis::ServiceusageV1::Field>]
|
|
@@ -4100,6 +5467,7 @@ module Google
|
|
|
4100
5467
|
|
|
4101
5468
|
# Update properties of this object
|
|
4102
5469
|
def update!(**args)
|
|
5470
|
+
@edition = args[:edition] if args.key?(:edition)
|
|
4103
5471
|
@fields = args[:fields] if args.key?(:fields)
|
|
4104
5472
|
@name = args[:name] if args.key?(:name)
|
|
4105
5473
|
@oneofs = args[:oneofs] if args.key?(:oneofs)
|
|
@@ -4124,6 +5492,32 @@ module Google
|
|
|
4124
5492
|
end
|
|
4125
5493
|
end
|
|
4126
5494
|
|
|
5495
|
+
# Metadata for the `UpdateConsumerPolicy` method.
|
|
5496
|
+
class UpdateConsumerPolicyMetadata
|
|
5497
|
+
include Google::Apis::Core::Hashable
|
|
5498
|
+
|
|
5499
|
+
def initialize(**args)
|
|
5500
|
+
update!(**args)
|
|
5501
|
+
end
|
|
5502
|
+
|
|
5503
|
+
# Update properties of this object
|
|
5504
|
+
def update!(**args)
|
|
5505
|
+
end
|
|
5506
|
+
end
|
|
5507
|
+
|
|
5508
|
+
# Metadata for the `UpdateContentSecurityPolicy` method.
|
|
5509
|
+
class UpdateContentSecurityPolicyMetadata
|
|
5510
|
+
include Google::Apis::Core::Hashable
|
|
5511
|
+
|
|
5512
|
+
def initialize(**args)
|
|
5513
|
+
update!(**args)
|
|
5514
|
+
end
|
|
5515
|
+
|
|
5516
|
+
# Update properties of this object
|
|
5517
|
+
def update!(**args)
|
|
5518
|
+
end
|
|
5519
|
+
end
|
|
5520
|
+
|
|
4127
5521
|
# Configuration controlling usage of a service.
|
|
4128
5522
|
class Usage
|
|
4129
5523
|
include Google::Apis::Core::Hashable
|
|
@@ -4167,21 +5561,15 @@ module Google
|
|
|
4167
5561
|
end
|
|
4168
5562
|
end
|
|
4169
5563
|
|
|
4170
|
-
# Usage configuration rules for the service.
|
|
4171
|
-
# rule to configure unregistered calls for the service. Unregistered calls are
|
|
4172
|
-
# calls that do not contain consumer project identity. (Example: calls that do
|
|
4173
|
-
# not contain an API key). By default, API methods do not allow unregistered
|
|
4174
|
-
# calls, and each method call must be identified by a consumer project identity.
|
|
4175
|
-
# Use this rule to allow/disallow unregistered calls. Example of an API that
|
|
4176
|
-
# wants to allow unregistered calls for entire service. usage: rules: - selector:
|
|
4177
|
-
# "*" allow_unregistered_calls: true Example of a method that wants to allow
|
|
4178
|
-
# unregistered calls. usage: rules: - selector: "google.example.library.v1.
|
|
4179
|
-
# LibraryService.CreateBook" allow_unregistered_calls: true
|
|
5564
|
+
# Usage configuration rules for the service.
|
|
4180
5565
|
class UsageRule
|
|
4181
5566
|
include Google::Apis::Core::Hashable
|
|
4182
5567
|
|
|
4183
|
-
#
|
|
4184
|
-
#
|
|
5568
|
+
# Use this rule to configure unregistered calls for the service. Unregistered
|
|
5569
|
+
# calls are calls that do not contain consumer project identity. (Example: calls
|
|
5570
|
+
# that do not contain an API key). WARNING: By default, API methods do not allow
|
|
5571
|
+
# unregistered calls, and each method call must be identified by a consumer
|
|
5572
|
+
# project identity.
|
|
4185
5573
|
# Corresponds to the JSON property `allowUnregisteredCalls`
|
|
4186
5574
|
# @return [Boolean]
|
|
4187
5575
|
attr_accessor :allow_unregistered_calls
|