google-apis-serviceconsumermanagement_v1beta1 0.37.0 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5af4f839ae56c248ce2eca2cc13037b0d446abfbce073b8e4b9cd750446a4044
|
4
|
+
data.tar.gz: 4ebc1b7c07365fca84e631786ad380ffb610e14ecd81457e432ef59790829b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5ea2b2868986b678d407d9c9ea2528c46f774a8f89d6055befc255d8e8de7eff06b522e04acd9a45a350c81c91e2bcc5072a382238f611730cd0dcdfca63e0
|
7
|
+
data.tar.gz: c7fe3619ade47bae7c71cbc663fa29dc7b986676ad54c4530fcc73c19b72e10e115dcdccd517e0d4fb91f8d144e4f05e83d78afbe61d6c606daffcc50ef77ce9
|
data/CHANGELOG.md
CHANGED
@@ -677,6 +677,11 @@ module Google
|
|
677
677
|
# @return [String]
|
678
678
|
attr_accessor :environment
|
679
679
|
|
680
|
+
# Defines policies applying to the API methods of the service.
|
681
|
+
# Corresponds to the JSON property `methodPolicies`
|
682
|
+
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::MethodPolicy>]
|
683
|
+
attr_accessor :method_policies
|
684
|
+
|
680
685
|
def initialize(**args)
|
681
686
|
update!(**args)
|
682
687
|
end
|
@@ -684,6 +689,7 @@ module Google
|
|
684
689
|
# Update properties of this object
|
685
690
|
def update!(**args)
|
686
691
|
@environment = args[:environment] if args.key?(:environment)
|
692
|
+
@method_policies = args[:method_policies] if args.key?(:method_policies)
|
687
693
|
end
|
688
694
|
end
|
689
695
|
|
@@ -1217,6 +1223,50 @@ module Google
|
|
1217
1223
|
end
|
1218
1224
|
end
|
1219
1225
|
|
1226
|
+
# Google API Policy Annotation This message defines a simple API policy
|
1227
|
+
# annotation that can be used to annotate API request and response message
|
1228
|
+
# fields with applicable policies. One field may have multiple applicable
|
1229
|
+
# policies that must all be satisfied before a request can be processed. This
|
1230
|
+
# policy annotation is used to generate the overall policy that will be used for
|
1231
|
+
# automatic runtime policy enforcement and documentation generation.
|
1232
|
+
class FieldPolicy
|
1233
|
+
include Google::Apis::Core::Hashable
|
1234
|
+
|
1235
|
+
# Specifies the required permission(s) for the resource referred to by the field.
|
1236
|
+
# It requires the field contains a valid resource reference, and the request
|
1237
|
+
# must pass the permission checks to proceed. For example, "resourcemanager.
|
1238
|
+
# projects.get".
|
1239
|
+
# Corresponds to the JSON property `resourcePermission`
|
1240
|
+
# @return [String]
|
1241
|
+
attr_accessor :resource_permission
|
1242
|
+
|
1243
|
+
# Specifies the resource type for the resource referred to by the field.
|
1244
|
+
# Corresponds to the JSON property `resourceType`
|
1245
|
+
# @return [String]
|
1246
|
+
attr_accessor :resource_type
|
1247
|
+
|
1248
|
+
# Selects one or more request or response message fields to apply this `
|
1249
|
+
# FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
|
1250
|
+
# must be left as empty. The service config generator will automatically fill
|
1251
|
+
# the correct value. When a `FieldPolicy` is used in service config, the
|
1252
|
+
# selector must be a comma-separated string with valid request or response field
|
1253
|
+
# paths, such as "foo.bar" or "foo.bar,foo.baz".
|
1254
|
+
# Corresponds to the JSON property `selector`
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :selector
|
1257
|
+
|
1258
|
+
def initialize(**args)
|
1259
|
+
update!(**args)
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
# Update properties of this object
|
1263
|
+
def update!(**args)
|
1264
|
+
@resource_permission = args[:resource_permission] if args.key?(:resource_permission)
|
1265
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1266
|
+
@selector = args[:selector] if args.key?(:selector)
|
1267
|
+
end
|
1268
|
+
end
|
1269
|
+
|
1220
1270
|
# Settings for Go client libraries.
|
1221
1271
|
class GoSettings
|
1222
1272
|
include Google::Apis::Core::Hashable
|
@@ -1807,6 +1857,34 @@ module Google
|
|
1807
1857
|
end
|
1808
1858
|
end
|
1809
1859
|
|
1860
|
+
# Defines policies applying to an RPC method.
|
1861
|
+
class MethodPolicy
|
1862
|
+
include Google::Apis::Core::Hashable
|
1863
|
+
|
1864
|
+
# Policies that are applicable to the request message.
|
1865
|
+
# Corresponds to the JSON property `requestPolicies`
|
1866
|
+
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::FieldPolicy>]
|
1867
|
+
attr_accessor :request_policies
|
1868
|
+
|
1869
|
+
# Selects a method to which these policies should be enforced, for example, "
|
1870
|
+
# google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
|
1871
|
+
# details. NOTE: This field must not be set in the proto annotation. It will be
|
1872
|
+
# automatically filled by the service config compiler .
|
1873
|
+
# Corresponds to the JSON property `selector`
|
1874
|
+
# @return [String]
|
1875
|
+
attr_accessor :selector
|
1876
|
+
|
1877
|
+
def initialize(**args)
|
1878
|
+
update!(**args)
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
# Update properties of this object
|
1882
|
+
def update!(**args)
|
1883
|
+
@request_policies = args[:request_policies] if args.key?(:request_policies)
|
1884
|
+
@selector = args[:selector] if args.key?(:selector)
|
1885
|
+
end
|
1886
|
+
end
|
1887
|
+
|
1810
1888
|
# Describes the generator configuration for a method.
|
1811
1889
|
class MethodSettings
|
1812
1890
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ServiceconsumermanagementV1beta1
|
18
18
|
# Version of the google-apis-serviceconsumermanagement_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.38.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230719"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,6 +178,12 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class FieldPolicy
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
181
187
|
class GoSettings
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
189
|
|
@@ -244,6 +250,12 @@ module Google
|
|
244
250
|
include Google::Apis::Core::JsonObjectSupport
|
245
251
|
end
|
246
252
|
|
253
|
+
class MethodPolicy
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
247
259
|
class MethodSettings
|
248
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
261
|
|
@@ -731,6 +743,8 @@ module Google
|
|
731
743
|
# @private
|
732
744
|
class Representation < Google::Apis::Core::JsonRepresentation
|
733
745
|
property :environment, as: 'environment'
|
746
|
+
collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServiceconsumermanagementV1beta1::MethodPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::MethodPolicy::Representation
|
747
|
+
|
734
748
|
end
|
735
749
|
end
|
736
750
|
|
@@ -864,6 +878,15 @@ module Google
|
|
864
878
|
end
|
865
879
|
end
|
866
880
|
|
881
|
+
class FieldPolicy
|
882
|
+
# @private
|
883
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
884
|
+
property :resource_permission, as: 'resourcePermission'
|
885
|
+
property :resource_type, as: 'resourceType'
|
886
|
+
property :selector, as: 'selector'
|
887
|
+
end
|
888
|
+
end
|
889
|
+
|
867
890
|
class GoSettings
|
868
891
|
# @private
|
869
892
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -981,6 +1004,15 @@ module Google
|
|
981
1004
|
end
|
982
1005
|
end
|
983
1006
|
|
1007
|
+
class MethodPolicy
|
1008
|
+
# @private
|
1009
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1010
|
+
collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServiceconsumermanagementV1beta1::FieldPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::FieldPolicy::Representation
|
1011
|
+
|
1012
|
+
property :selector, as: 'selector'
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
|
984
1016
|
class MethodSettings
|
985
1017
|
# @private
|
986
1018
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-serviceconsumermanagement_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceconsumermanagement_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.38.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceconsumermanagement_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|