google-apis-serviceusage_v1beta1 0.42.0 → 0.44.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: 7c6d1d1dbf36f315449b1154c3b0d9e5e79a0bfc0e0b13f933258b6a256e64f9
4
- data.tar.gz: 11348e80f1c1052be3ae99940c33249d0470c05bd79530df5748cb0c245e1a12
3
+ metadata.gz: c7df1100f794f8957e6ef3736e693958c42c41fb278a6ee5fb7787e1411feed1
4
+ data.tar.gz: edc2524318d819466554ed46d539b843740a6bc34c825ce6b4cba3bf7fc61d9e
5
5
  SHA512:
6
- metadata.gz: b7d512bc0ab32611bef4d94308fce420cc0f89d68264c4117c37fa3485a556d0b11d3d8c799925420e299da105757aee2631be2a393b793e2c8b2a77ff29676b
7
- data.tar.gz: 3bc5128250d5eb2f95fc614e825291d2b5b59a681e42287a84d26d7f1876797f3239bb25ea87f5c197861e1feea94f945a510708074cb453425876ce7ea0588a
6
+ metadata.gz: ca83642f4089b9ee7a589fc78c9e2ff8b016af6899206816d784bde89aa4810da8843747de328f6a9555c00e19894bc70d1b5c5af6d5404e880ae1fb50416210
7
+ data.tar.gz: e889e4ad2b2a05a659cbc869e8ab1df95d64da3389a94db4ab386fbf42844bce2af8ff9237bbcf3ba543cd5b85d1e738552f8bae6b326192aecf01d8df6c27b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceusage_v1beta1
2
2
 
3
+ ### v0.44.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.43.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230719
10
+
3
11
  ### v0.42.0 (2023-07-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230710
@@ -1048,6 +1048,11 @@ module Google
1048
1048
  # @return [String]
1049
1049
  attr_accessor :environment
1050
1050
 
1051
+ # Defines policies applying to the API methods of the service.
1052
+ # Corresponds to the JSON property `methodPolicies`
1053
+ # @return [Array<Google::Apis::ServiceusageV1beta1::MethodPolicy>]
1054
+ attr_accessor :method_policies
1055
+
1051
1056
  def initialize(**args)
1052
1057
  update!(**args)
1053
1058
  end
@@ -1055,6 +1060,7 @@ module Google
1055
1060
  # Update properties of this object
1056
1061
  def update!(**args)
1057
1062
  @environment = args[:environment] if args.key?(:environment)
1063
+ @method_policies = args[:method_policies] if args.key?(:method_policies)
1058
1064
  end
1059
1065
  end
1060
1066
 
@@ -1752,6 +1758,50 @@ module Google
1752
1758
  end
1753
1759
  end
1754
1760
 
1761
+ # Google API Policy Annotation This message defines a simple API policy
1762
+ # annotation that can be used to annotate API request and response message
1763
+ # fields with applicable policies. One field may have multiple applicable
1764
+ # policies that must all be satisfied before a request can be processed. This
1765
+ # policy annotation is used to generate the overall policy that will be used for
1766
+ # automatic runtime policy enforcement and documentation generation.
1767
+ class FieldPolicy
1768
+ include Google::Apis::Core::Hashable
1769
+
1770
+ # Specifies the required permission(s) for the resource referred to by the field.
1771
+ # It requires the field contains a valid resource reference, and the request
1772
+ # must pass the permission checks to proceed. For example, "resourcemanager.
1773
+ # projects.get".
1774
+ # Corresponds to the JSON property `resourcePermission`
1775
+ # @return [String]
1776
+ attr_accessor :resource_permission
1777
+
1778
+ # Specifies the resource type for the resource referred to by the field.
1779
+ # Corresponds to the JSON property `resourceType`
1780
+ # @return [String]
1781
+ attr_accessor :resource_type
1782
+
1783
+ # Selects one or more request or response message fields to apply this `
1784
+ # FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
1785
+ # must be left as empty. The service config generator will automatically fill
1786
+ # the correct value. When a `FieldPolicy` is used in service config, the
1787
+ # selector must be a comma-separated string with valid request or response field
1788
+ # paths, such as "foo.bar" or "foo.bar,foo.baz".
1789
+ # Corresponds to the JSON property `selector`
1790
+ # @return [String]
1791
+ attr_accessor :selector
1792
+
1793
+ def initialize(**args)
1794
+ update!(**args)
1795
+ end
1796
+
1797
+ # Update properties of this object
1798
+ def update!(**args)
1799
+ @resource_permission = args[:resource_permission] if args.key?(:resource_permission)
1800
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1801
+ @selector = args[:selector] if args.key?(:selector)
1802
+ end
1803
+ end
1804
+
1755
1805
  # Metadata for the `GetServiceIdentity` method.
1756
1806
  class GetServiceIdentityMetadata
1757
1807
  include Google::Apis::Core::Hashable
@@ -3274,6 +3324,34 @@ module Google
3274
3324
  end
3275
3325
  end
3276
3326
 
3327
+ # Defines policies applying to an RPC method.
3328
+ class MethodPolicy
3329
+ include Google::Apis::Core::Hashable
3330
+
3331
+ # Policies that are applicable to the request message.
3332
+ # Corresponds to the JSON property `requestPolicies`
3333
+ # @return [Array<Google::Apis::ServiceusageV1beta1::FieldPolicy>]
3334
+ attr_accessor :request_policies
3335
+
3336
+ # Selects a method to which these policies should be enforced, for example, "
3337
+ # google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
3338
+ # details. NOTE: This field must not be set in the proto annotation. It will be
3339
+ # automatically filled by the service config compiler .
3340
+ # Corresponds to the JSON property `selector`
3341
+ # @return [String]
3342
+ attr_accessor :selector
3343
+
3344
+ def initialize(**args)
3345
+ update!(**args)
3346
+ end
3347
+
3348
+ # Update properties of this object
3349
+ def update!(**args)
3350
+ @request_policies = args[:request_policies] if args.key?(:request_policies)
3351
+ @selector = args[:selector] if args.key?(:selector)
3352
+ end
3353
+ end
3354
+
3277
3355
  # Describes the generator configuration for a method.
3278
3356
  class MethodSettings
3279
3357
  include Google::Apis::Core::Hashable
@@ -3809,13 +3887,13 @@ module Google
3809
3887
  # @return [String]
3810
3888
  attr_accessor :name
3811
3889
 
3812
- # The normal response of the operation in case of success. If the original
3813
- # method returns no data on success, such as `Delete`, the response is `google.
3814
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3815
- # the response should be the resource. For other methods, the response should
3816
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
3817
- # example, if the original method name is `TakeSnapshot()`, the inferred
3818
- # response type is `TakeSnapshotResponse`.
3890
+ # The normal, successful response of the operation. If the original method
3891
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
3892
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
3893
+ # response should be the resource. For other methods, the response should have
3894
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
3895
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
3896
+ # `TakeSnapshotResponse`.
3819
3897
  # Corresponds to the JSON property `response`
3820
3898
  # @return [Hash<String,Object>]
3821
3899
  attr_accessor :response
@@ -4869,19 +4947,6 @@ module Google
4869
4947
  end
4870
4948
  end
4871
4949
 
4872
- # Metadata for the `UpdateConsumerPolicyLRO` method.
4873
- class UpdateConsumerPolicyLroMetadata
4874
- include Google::Apis::Core::Hashable
4875
-
4876
- def initialize(**args)
4877
- update!(**args)
4878
- end
4879
-
4880
- # Update properties of this object
4881
- def update!(**args)
4882
- end
4883
- end
4884
-
4885
4950
  # Metadata for the `UpdateConsumerPolicy` method.
4886
4951
  class UpdateConsumerPolicyMetadata
4887
4952
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServiceusageV1beta1
18
18
  # Version of the google-apis-serviceusage_v1beta1 gem
19
- GEM_VERSION = "0.42.0"
19
+ GEM_VERSION = "0.44.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 = "20230710"
25
+ REVISION = "20230806"
26
26
  end
27
27
  end
28
28
  end
@@ -286,6 +286,12 @@ module Google
286
286
  include Google::Apis::Core::JsonObjectSupport
287
287
  end
288
288
 
289
+ class FieldPolicy
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
289
295
  class GetServiceIdentityMetadata
290
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
297
 
@@ -478,6 +484,12 @@ module Google
478
484
  include Google::Apis::Core::JsonObjectSupport
479
485
  end
480
486
 
487
+ class MethodPolicy
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
481
493
  class MethodSettings
482
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
495
 
@@ -694,12 +706,6 @@ module Google
694
706
  include Google::Apis::Core::JsonObjectSupport
695
707
  end
696
708
 
697
- class UpdateConsumerPolicyLroMetadata
698
- class Representation < Google::Apis::Core::JsonRepresentation; end
699
-
700
- include Google::Apis::Core::JsonObjectSupport
701
- end
702
-
703
709
  class UpdateConsumerPolicyMetadata
704
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
705
711
 
@@ -974,6 +980,8 @@ module Google
974
980
  # @private
975
981
  class Representation < Google::Apis::Core::JsonRepresentation
976
982
  property :environment, as: 'environment'
983
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServiceusageV1beta1::MethodPolicy, decorator: Google::Apis::ServiceusageV1beta1::MethodPolicy::Representation
984
+
977
985
  end
978
986
  end
979
987
 
@@ -1165,6 +1173,15 @@ module Google
1165
1173
  end
1166
1174
  end
1167
1175
 
1176
+ class FieldPolicy
1177
+ # @private
1178
+ class Representation < Google::Apis::Core::JsonRepresentation
1179
+ property :resource_permission, as: 'resourcePermission'
1180
+ property :resource_type, as: 'resourceType'
1181
+ property :selector, as: 'selector'
1182
+ end
1183
+ end
1184
+
1168
1185
  class GetServiceIdentityMetadata
1169
1186
  # @private
1170
1187
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1520,6 +1537,15 @@ module Google
1520
1537
  end
1521
1538
  end
1522
1539
 
1540
+ class MethodPolicy
1541
+ # @private
1542
+ class Representation < Google::Apis::Core::JsonRepresentation
1543
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServiceusageV1beta1::FieldPolicy, decorator: Google::Apis::ServiceusageV1beta1::FieldPolicy::Representation
1544
+
1545
+ property :selector, as: 'selector'
1546
+ end
1547
+ end
1548
+
1523
1549
  class MethodSettings
1524
1550
  # @private
1525
1551
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1887,12 +1913,6 @@ module Google
1887
1913
  end
1888
1914
  end
1889
1915
 
1890
- class UpdateConsumerPolicyLroMetadata
1891
- # @private
1892
- class Representation < Google::Apis::Core::JsonRepresentation
1893
- end
1894
- end
1895
-
1896
1916
  class UpdateConsumerPolicyMetadata
1897
1917
  # @private
1898
1918
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-serviceusage_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.0
4
+ version: 0.44.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-07-16 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-serviceusage_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1beta1/v0.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1beta1/v0.44.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceusage_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []