google-apis-serviceconsumermanagement_v1beta1 0.37.0 → 0.39.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: cef9cffd77276fe72c04222d329fb4de0d819374bbbdcbddea846c40b6461730
4
- data.tar.gz: 617388be4fa6e67e18ce5dfbbe846fc20b2d09cd23045775eebd6a722ef87d56
3
+ metadata.gz: 2453ad8ede4980e8f0156a9ef252dc88719733d4c698983b3fe2eda370f6a424
4
+ data.tar.gz: 263b86d024d72a065c68da211605510f29242d519729b5884bd209ff59916b72
5
5
  SHA512:
6
- metadata.gz: 728e6d8ecca7e6091db07acda5672d95e7ba3c9d008c914c7dcb6636e55be95b0c2c4401b74110be9eed8eb118bec68292841cda9974702ebf48d841cc1988f3
7
- data.tar.gz: ee101a935e7b5fc2acf088b43ca4f0275fa8b553aa87453e599b70e8ee9200e8fe8b699c6af66002a7ac3312d51f1af2121e182c9e73041c10ea6484a758422e
6
+ metadata.gz: 80bedebc688b08db06d4dab03dd2720323e37f2d5310b94e6b11d81b1ab9d6094da3f9a7ec5c4455c5fe75d214d9c0486fe07c5cb86c3e7f236183451c6a591a
7
+ data.tar.gz: f05597365f5e444f9b51d15e7a51059f49002921659ced91202766a7ef71d5addb70333eda333a297f96dd7fcc2c53c5f928d2e87406fa0e4144d069ae15d9ad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceconsumermanagement_v1beta1
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
@@ -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
@@ -2342,13 +2420,13 @@ module Google
2342
2420
  # @return [String]
2343
2421
  attr_accessor :name
2344
2422
 
2345
- # The normal response of the operation in case of success. If the original
2346
- # method returns no data on success, such as `Delete`, the response is `google.
2347
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2348
- # the response should be the resource. For other methods, the response should
2349
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
2350
- # example, if the original method name is `TakeSnapshot()`, the inferred
2351
- # response type is `TakeSnapshotResponse`.
2423
+ # The normal, successful response of the operation. If the original method
2424
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
2425
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
2426
+ # response should be the resource. For other methods, the response should have
2427
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
2428
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
2429
+ # `TakeSnapshotResponse`.
2352
2430
  # Corresponds to the JSON property `response`
2353
2431
  # @return [Hash<String,Object>]
2354
2432
  attr_accessor :response
@@ -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.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
@@ -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.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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.39.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: []