google-apis-serviceusage_v1 0.40.0 → 0.42.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: 773226d956951a7cd5d27e49a9537c67ffb60540487bd471bff588efc2ca3e3e
4
- data.tar.gz: 2f9c44323d19263279c3833c3a8feaa5dc0fb60bb4aa72ee30ab8691aae6d3d6
3
+ metadata.gz: d05eabc9008c5d385778a6c8a48591b0a5f9f3d6dba9c3d811d27e9434975be3
4
+ data.tar.gz: c4172764270829c82094a5463c11b68c4669e6c34d8028995803db1a73888c2d
5
5
  SHA512:
6
- metadata.gz: b22afc2cf5ba9e7514dc371c57748826e7a9bb4629b4b4713b0d61d689c41908a506e5f54c78a58d01db4d39f7531877043835f73826df582a9da9ee61934ede
7
- data.tar.gz: d69eaf3a14b7215d507406f926165a50a8104dd836e66458b27d8bf50ffc4f37c33471ea07d919f6f5bdb398d47a1d97a306efab29d8cc934574916216d0eb1e
6
+ metadata.gz: 79d82421a237b620ccb5e2e6992573b33db2ed6c1083aca3e48307079dce854bf2116d9dd0fc8ca689f8ca75ede17b6522076b3d72c507065f70576c05a15d2a
7
+ data.tar.gz: 7d07f664509d0f02894165654aabf5d0b561c0727818a293c5e1f94cee0ea5f537698caaa3322da9dfb4a81ab23a960d6eb91dc3d488e17d81ecfbf91bb0a5b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceusage_v1
2
2
 
3
+ ### v0.42.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.41.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230719
10
+
3
11
  ### v0.40.0 (2023-07-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230710
@@ -954,6 +954,11 @@ module Google
954
954
  # @return [String]
955
955
  attr_accessor :environment
956
956
 
957
+ # Defines policies applying to the API methods of the service.
958
+ # Corresponds to the JSON property `methodPolicies`
959
+ # @return [Array<Google::Apis::ServiceusageV1::MethodPolicy>]
960
+ attr_accessor :method_policies
961
+
957
962
  def initialize(**args)
958
963
  update!(**args)
959
964
  end
@@ -961,6 +966,7 @@ module Google
961
966
  # Update properties of this object
962
967
  def update!(**args)
963
968
  @environment = args[:environment] if args.key?(:environment)
969
+ @method_policies = args[:method_policies] if args.key?(:method_policies)
964
970
  end
965
971
  end
966
972
 
@@ -1674,6 +1680,50 @@ module Google
1674
1680
  end
1675
1681
  end
1676
1682
 
1683
+ # Google API Policy Annotation This message defines a simple API policy
1684
+ # annotation that can be used to annotate API request and response message
1685
+ # fields with applicable policies. One field may have multiple applicable
1686
+ # policies that must all be satisfied before a request can be processed. This
1687
+ # policy annotation is used to generate the overall policy that will be used for
1688
+ # automatic runtime policy enforcement and documentation generation.
1689
+ class FieldPolicy
1690
+ include Google::Apis::Core::Hashable
1691
+
1692
+ # Specifies the required permission(s) for the resource referred to by the field.
1693
+ # It requires the field contains a valid resource reference, and the request
1694
+ # must pass the permission checks to proceed. For example, "resourcemanager.
1695
+ # projects.get".
1696
+ # Corresponds to the JSON property `resourcePermission`
1697
+ # @return [String]
1698
+ attr_accessor :resource_permission
1699
+
1700
+ # Specifies the resource type for the resource referred to by the field.
1701
+ # Corresponds to the JSON property `resourceType`
1702
+ # @return [String]
1703
+ attr_accessor :resource_type
1704
+
1705
+ # Selects one or more request or response message fields to apply this `
1706
+ # FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
1707
+ # must be left as empty. The service config generator will automatically fill
1708
+ # the correct value. When a `FieldPolicy` is used in service config, the
1709
+ # selector must be a comma-separated string with valid request or response field
1710
+ # paths, such as "foo.bar" or "foo.bar,foo.baz".
1711
+ # Corresponds to the JSON property `selector`
1712
+ # @return [String]
1713
+ attr_accessor :selector
1714
+
1715
+ def initialize(**args)
1716
+ update!(**args)
1717
+ end
1718
+
1719
+ # Update properties of this object
1720
+ def update!(**args)
1721
+ @resource_permission = args[:resource_permission] if args.key?(:resource_permission)
1722
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1723
+ @selector = args[:selector] if args.key?(:selector)
1724
+ end
1725
+ end
1726
+
1677
1727
  # Metadata for the `GetServiceIdentity` method.
1678
1728
  class GetServiceIdentityMetadata
1679
1729
  include Google::Apis::Core::Hashable
@@ -3047,6 +3097,34 @@ module Google
3047
3097
  end
3048
3098
  end
3049
3099
 
3100
+ # Defines policies applying to an RPC method.
3101
+ class MethodPolicy
3102
+ include Google::Apis::Core::Hashable
3103
+
3104
+ # Policies that are applicable to the request message.
3105
+ # Corresponds to the JSON property `requestPolicies`
3106
+ # @return [Array<Google::Apis::ServiceusageV1::FieldPolicy>]
3107
+ attr_accessor :request_policies
3108
+
3109
+ # Selects a method to which these policies should be enforced, for example, "
3110
+ # google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
3111
+ # details. NOTE: This field must not be set in the proto annotation. It will be
3112
+ # automatically filled by the service config compiler .
3113
+ # Corresponds to the JSON property `selector`
3114
+ # @return [String]
3115
+ attr_accessor :selector
3116
+
3117
+ def initialize(**args)
3118
+ update!(**args)
3119
+ end
3120
+
3121
+ # Update properties of this object
3122
+ def update!(**args)
3123
+ @request_policies = args[:request_policies] if args.key?(:request_policies)
3124
+ @selector = args[:selector] if args.key?(:selector)
3125
+ end
3126
+ end
3127
+
3050
3128
  # Describes the generator configuration for a method.
3051
3129
  class MethodSettings
3052
3130
  include Google::Apis::Core::Hashable
@@ -3582,13 +3660,13 @@ module Google
3582
3660
  # @return [String]
3583
3661
  attr_accessor :name
3584
3662
 
3585
- # The normal response of the operation in case of success. If the original
3586
- # method returns no data on success, such as `Delete`, the response is `google.
3587
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3588
- # the response should be the resource. For other methods, the response should
3589
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
3590
- # example, if the original method name is `TakeSnapshot()`, the inferred
3591
- # response type is `TakeSnapshotResponse`.
3663
+ # The normal, successful response of the operation. If the original method
3664
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
3665
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
3666
+ # response should be the resource. For other methods, the response should have
3667
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
3668
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
3669
+ # `TakeSnapshotResponse`.
3592
3670
  # Corresponds to the JSON property `response`
3593
3671
  # @return [Hash<String,Object>]
3594
3672
  attr_accessor :response
@@ -4379,19 +4457,6 @@ module Google
4379
4457
  end
4380
4458
  end
4381
4459
 
4382
- # Metadata for the `UpdateConsumerPolicyLRO` method.
4383
- class UpdateConsumerPolicyLroMetadata
4384
- include Google::Apis::Core::Hashable
4385
-
4386
- def initialize(**args)
4387
- update!(**args)
4388
- end
4389
-
4390
- # Update properties of this object
4391
- def update!(**args)
4392
- end
4393
- end
4394
-
4395
4460
  # Metadata for the `UpdateConsumerPolicy` method.
4396
4461
  class UpdateConsumerPolicyMetadata
4397
4462
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServiceusageV1
18
18
  # Version of the google-apis-serviceusage_v1 gem
19
- GEM_VERSION = "0.40.0"
19
+ GEM_VERSION = "0.42.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
 
@@ -448,6 +454,12 @@ module Google
448
454
  include Google::Apis::Core::JsonObjectSupport
449
455
  end
450
456
 
457
+ class MethodPolicy
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
451
463
  class MethodSettings
452
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
465
 
@@ -640,12 +652,6 @@ module Google
640
652
  include Google::Apis::Core::JsonObjectSupport
641
653
  end
642
654
 
643
- class UpdateConsumerPolicyLroMetadata
644
- class Representation < Google::Apis::Core::JsonRepresentation; end
645
-
646
- include Google::Apis::Core::JsonObjectSupport
647
- end
648
-
649
655
  class UpdateConsumerPolicyMetadata
650
656
  class Representation < Google::Apis::Core::JsonRepresentation; end
651
657
 
@@ -906,6 +912,8 @@ module Google
906
912
  # @private
907
913
  class Representation < Google::Apis::Core::JsonRepresentation
908
914
  property :environment, as: 'environment'
915
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServiceusageV1::MethodPolicy, decorator: Google::Apis::ServiceusageV1::MethodPolicy::Representation
916
+
909
917
  end
910
918
  end
911
919
 
@@ -1099,6 +1107,15 @@ module Google
1099
1107
  end
1100
1108
  end
1101
1109
 
1110
+ class FieldPolicy
1111
+ # @private
1112
+ class Representation < Google::Apis::Core::JsonRepresentation
1113
+ property :resource_permission, as: 'resourcePermission'
1114
+ property :resource_type, as: 'resourceType'
1115
+ property :selector, as: 'selector'
1116
+ end
1117
+ end
1118
+
1102
1119
  class GetServiceIdentityMetadata
1103
1120
  # @private
1104
1121
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1407,6 +1424,15 @@ module Google
1407
1424
  end
1408
1425
  end
1409
1426
 
1427
+ class MethodPolicy
1428
+ # @private
1429
+ class Representation < Google::Apis::Core::JsonRepresentation
1430
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServiceusageV1::FieldPolicy, decorator: Google::Apis::ServiceusageV1::FieldPolicy::Representation
1431
+
1432
+ property :selector, as: 'selector'
1433
+ end
1434
+ end
1435
+
1410
1436
  class MethodSettings
1411
1437
  # @private
1412
1438
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1716,12 +1742,6 @@ module Google
1716
1742
  end
1717
1743
  end
1718
1744
 
1719
- class UpdateConsumerPolicyLroMetadata
1720
- # @private
1721
- class Representation < Google::Apis::Core::JsonRepresentation
1722
- end
1723
- end
1724
-
1725
1745
  class UpdateConsumerPolicyMetadata
1726
1746
  # @private
1727
1747
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-serviceusage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.42.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-20 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1/v0.40.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1/v0.42.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceusage_v1
63
63
  post_install_message:
64
64
  rdoc_options: []