google-apis-serviceconsumermanagement_v1 0.37.0 → 0.39.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3e63092721d62394c01aac3089887434919b21493a08ba7b04699273b12d3c8
4
- data.tar.gz: ca7fdea78f4cc65535c9a6a376cb400b998f0d1fb68175de7d0d7a34e3a82f9b
3
+ metadata.gz: d4432ccdf5476108aa2cf2852b6654a01bb59459e96e0e7a9c680bb871fa765b
4
+ data.tar.gz: 4fb7b2dba2c79bdc01eb5bc09d4be735bbf67925831ed05c834e4ef222443f33
5
5
  SHA512:
6
- metadata.gz: 764a982e15599306aca283f9c0dc4d1c2df8e5329354fa978bc36208141edea7125f1cd6b954e36aff0882ee079cbe55087b1c0d176b0e0750ecb68ac90c4449
7
- data.tar.gz: e55f9daecb1fcaec8c5d143fbb343633ba2275454c89dbf1583b59e34de13d43c007ad5ce893373fe0d24cb73f30c7f429c24ea5adac16b7c7c106bd1a0fa2e4
6
+ metadata.gz: d30f99e38d21ae8f5b0ded4ded77697cc2d45f1706ccf9ec39645be94b66db821f31071266fd78773a1ec7917b3a3b0ef37373cf255304d662e4415d0bc1ac09
7
+ data.tar.gz: 80b03f8d73f48ac392e4f583870456f9501a19879c97725f02cc80ed6a8b1a669b17a055fc28a03570b5efe9e1f7e656bd82c3c72afbcfc62acdedab94229350
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceconsumermanagement_v1
2
2
 
3
+ ### v0.39.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.38.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230719
10
+
3
11
  ### v0.37.0 (2023-06-18)
4
12
 
5
13
  * 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
@@ -2561,13 +2639,13 @@ module Google
2561
2639
  # @return [String]
2562
2640
  attr_accessor :name
2563
2641
 
2564
- # The normal response of the operation in case of success. If the original
2565
- # method returns no data on success, such as `Delete`, the response is `google.
2566
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2567
- # the response should be the resource. For other methods, the response should
2568
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
2569
- # example, if the original method name is `TakeSnapshot()`, the inferred
2570
- # response type is `TakeSnapshotResponse`.
2642
+ # The normal, successful response of the operation. If the original method
2643
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
2644
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
2645
+ # response should be the resource. For other methods, the response should have
2646
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
2647
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
2648
+ # `TakeSnapshotResponse`.
2571
2649
  # Corresponds to the JSON property `response`
2572
2650
  # @return [Hash<String,Object>]
2573
2651
  attr_accessor :response
@@ -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.39.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 = "20230806"
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.39.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-08-13 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.39.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: []