google-apis-serviceconsumermanagement_v1 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: d3e63092721d62394c01aac3089887434919b21493a08ba7b04699273b12d3c8
4
- data.tar.gz: ca7fdea78f4cc65535c9a6a376cb400b998f0d1fb68175de7d0d7a34e3a82f9b
3
+ metadata.gz: 8833bd7199608af7d0534bddf8536dd08cf109a6c30de81f8543347073d6075f
4
+ data.tar.gz: a9162e5b6df00a7f6c8f1daf1d5a40e8a51d766686a7e58ed3295c598a8f5723
5
5
  SHA512:
6
- metadata.gz: 764a982e15599306aca283f9c0dc4d1c2df8e5329354fa978bc36208141edea7125f1cd6b954e36aff0882ee079cbe55087b1c0d176b0e0750ecb68ac90c4449
7
- data.tar.gz: e55f9daecb1fcaec8c5d143fbb343633ba2275454c89dbf1583b59e34de13d43c007ad5ce893373fe0d24cb73f30c7f429c24ea5adac16b7c7c106bd1a0fa2e4
6
+ metadata.gz: 6cfd83e033f6b602cc656b7d9f7ca30588255261e946131d4c6fb903738e7d383eab96973b6f2bf534a1cc896745d20fcc111d022c25452f49df721effa668e2
7
+ data.tar.gz: dffc8e25659b184ea7276937eaeefab7e90577b7bcc9715021d1a44c1c15aa6e659f2c731c0ccf107c7e811c9c6492d6098ec1c0e59d3291295e7fbe6b8c5fff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-serviceconsumermanagement_v1
2
2
 
3
+ ### v0.38.0 (2023-07-23)
4
+
5
+ * Regenerated from discovery document revision 20230719
6
+
3
7
  ### v0.37.0 (2023-06-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20230611
@@ -802,6 +802,11 @@ module Google
802
802
  # @return [String]
803
803
  attr_accessor :environment
804
804
 
805
+ # Defines policies applying to the API methods of the service.
806
+ # Corresponds to the JSON property `methodPolicies`
807
+ # @return [Array<Google::Apis::ServiceconsumermanagementV1::MethodPolicy>]
808
+ attr_accessor :method_policies
809
+
805
810
  def initialize(**args)
806
811
  update!(**args)
807
812
  end
@@ -809,6 +814,7 @@ module Google
809
814
  # Update properties of this object
810
815
  def update!(**args)
811
816
  @environment = args[:environment] if args.key?(:environment)
817
+ @method_policies = args[:method_policies] if args.key?(:method_policies)
812
818
  end
813
819
  end
814
820
 
@@ -1386,6 +1392,50 @@ module Google
1386
1392
  end
1387
1393
  end
1388
1394
 
1395
+ # Google API Policy Annotation This message defines a simple API policy
1396
+ # annotation that can be used to annotate API request and response message
1397
+ # fields with applicable policies. One field may have multiple applicable
1398
+ # policies that must all be satisfied before a request can be processed. This
1399
+ # policy annotation is used to generate the overall policy that will be used for
1400
+ # automatic runtime policy enforcement and documentation generation.
1401
+ class FieldPolicy
1402
+ include Google::Apis::Core::Hashable
1403
+
1404
+ # Specifies the required permission(s) for the resource referred to by the field.
1405
+ # It requires the field contains a valid resource reference, and the request
1406
+ # must pass the permission checks to proceed. For example, "resourcemanager.
1407
+ # projects.get".
1408
+ # Corresponds to the JSON property `resourcePermission`
1409
+ # @return [String]
1410
+ attr_accessor :resource_permission
1411
+
1412
+ # Specifies the resource type for the resource referred to by the field.
1413
+ # Corresponds to the JSON property `resourceType`
1414
+ # @return [String]
1415
+ attr_accessor :resource_type
1416
+
1417
+ # Selects one or more request or response message fields to apply this `
1418
+ # FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
1419
+ # must be left as empty. The service config generator will automatically fill
1420
+ # the correct value. When a `FieldPolicy` is used in service config, the
1421
+ # selector must be a comma-separated string with valid request or response field
1422
+ # paths, such as "foo.bar" or "foo.bar,foo.baz".
1423
+ # Corresponds to the JSON property `selector`
1424
+ # @return [String]
1425
+ attr_accessor :selector
1426
+
1427
+ def initialize(**args)
1428
+ update!(**args)
1429
+ end
1430
+
1431
+ # Update properties of this object
1432
+ def update!(**args)
1433
+ @resource_permission = args[:resource_permission] if args.key?(:resource_permission)
1434
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1435
+ @selector = args[:selector] if args.key?(:selector)
1436
+ end
1437
+ end
1438
+
1389
1439
  # Settings for Go client libraries.
1390
1440
  class GoSettings
1391
1441
  include Google::Apis::Core::Hashable
@@ -2026,6 +2076,34 @@ module Google
2026
2076
  end
2027
2077
  end
2028
2078
 
2079
+ # Defines policies applying to an RPC method.
2080
+ class MethodPolicy
2081
+ include Google::Apis::Core::Hashable
2082
+
2083
+ # Policies that are applicable to the request message.
2084
+ # Corresponds to the JSON property `requestPolicies`
2085
+ # @return [Array<Google::Apis::ServiceconsumermanagementV1::FieldPolicy>]
2086
+ attr_accessor :request_policies
2087
+
2088
+ # Selects a method to which these policies should be enforced, for example, "
2089
+ # google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
2090
+ # details. NOTE: This field must not be set in the proto annotation. It will be
2091
+ # automatically filled by the service config compiler .
2092
+ # Corresponds to the JSON property `selector`
2093
+ # @return [String]
2094
+ attr_accessor :selector
2095
+
2096
+ def initialize(**args)
2097
+ update!(**args)
2098
+ end
2099
+
2100
+ # Update properties of this object
2101
+ def update!(**args)
2102
+ @request_policies = args[:request_policies] if args.key?(:request_policies)
2103
+ @selector = args[:selector] if args.key?(:selector)
2104
+ end
2105
+ end
2106
+
2029
2107
  # Describes the generator configuration for a method.
2030
2108
  class MethodSettings
2031
2109
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServiceconsumermanagementV1
18
18
  # Version of the google-apis-serviceconsumermanagement_v1 gem
19
- GEM_VERSION = "0.37.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 = "20230611"
25
+ REVISION = "20230719"
26
26
  end
27
27
  end
28
28
  end
@@ -220,6 +220,12 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class FieldPolicy
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
223
229
  class GoSettings
224
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
231
 
@@ -298,6 +304,12 @@ module Google
298
304
  include Google::Apis::Core::JsonObjectSupport
299
305
  end
300
306
 
307
+ class MethodPolicy
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
301
313
  class MethodSettings
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -837,6 +849,8 @@ module Google
837
849
  # @private
838
850
  class Representation < Google::Apis::Core::JsonRepresentation
839
851
  property :environment, as: 'environment'
852
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServiceconsumermanagementV1::MethodPolicy, decorator: Google::Apis::ServiceconsumermanagementV1::MethodPolicy::Representation
853
+
840
854
  end
841
855
  end
842
856
 
@@ -984,6 +998,15 @@ module Google
984
998
  end
985
999
  end
986
1000
 
1001
+ class FieldPolicy
1002
+ # @private
1003
+ class Representation < Google::Apis::Core::JsonRepresentation
1004
+ property :resource_permission, as: 'resourcePermission'
1005
+ property :resource_type, as: 'resourceType'
1006
+ property :selector, as: 'selector'
1007
+ end
1008
+ end
1009
+
987
1010
  class GoSettings
988
1011
  # @private
989
1012
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1119,6 +1142,15 @@ module Google
1119
1142
  end
1120
1143
  end
1121
1144
 
1145
+ class MethodPolicy
1146
+ # @private
1147
+ class Representation < Google::Apis::Core::JsonRepresentation
1148
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServiceconsumermanagementV1::FieldPolicy, decorator: Google::Apis::ServiceconsumermanagementV1::FieldPolicy::Representation
1149
+
1150
+ property :selector, as: 'selector'
1151
+ end
1152
+ end
1153
+
1122
1154
  class MethodSettings
1123
1155
  # @private
1124
1156
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-serviceconsumermanagement_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.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-06-25 00:00:00.000000000 Z
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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1/v0.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1/v0.38.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceconsumermanagement_v1
63
63
  post_install_message:
64
64
  rdoc_options: []