google-apis-serviceusage_v1 0.40.0 → 0.41.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: 773226d956951a7cd5d27e49a9537c67ffb60540487bd471bff588efc2ca3e3e
4
- data.tar.gz: 2f9c44323d19263279c3833c3a8feaa5dc0fb60bb4aa72ee30ab8691aae6d3d6
3
+ metadata.gz: c5445dc9872ed02df167a875756e130156ac38f0aa8adb04f43931886957c1b9
4
+ data.tar.gz: 93ed219e922df3e1d589b7647cb6b7cf9f9eb30720329c33f51b2a69163cf4a1
5
5
  SHA512:
6
- metadata.gz: b22afc2cf5ba9e7514dc371c57748826e7a9bb4629b4b4713b0d61d689c41908a506e5f54c78a58d01db4d39f7531877043835f73826df582a9da9ee61934ede
7
- data.tar.gz: d69eaf3a14b7215d507406f926165a50a8104dd836e66458b27d8bf50ffc4f37c33471ea07d919f6f5bdb398d47a1d97a306efab29d8cc934574916216d0eb1e
6
+ metadata.gz: 1fcbca97af4969d8391077932d11f034f86b08825c1b6da716a0e5992efb3c0a06dfe968c469935c59c89d5187c5941aefe552645640495e66daa94e3275c330
7
+ data.tar.gz: 8be9908d34634f4c5d710143751afe63ea8711f87976b98a35a6cb485bfc0e4a9774d0ae712b1dd8d45c247ca42966d20061da402545de4eac208ec85b0d76c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-serviceusage_v1
2
2
 
3
+ ### v0.41.0 (2023-07-23)
4
+
5
+ * Regenerated from discovery document revision 20230719
6
+
3
7
  ### v0.40.0 (2023-07-16)
4
8
 
5
9
  * 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
@@ -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.41.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 = "20230719"
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
 
@@ -906,6 +918,8 @@ module Google
906
918
  # @private
907
919
  class Representation < Google::Apis::Core::JsonRepresentation
908
920
  property :environment, as: 'environment'
921
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServiceusageV1::MethodPolicy, decorator: Google::Apis::ServiceusageV1::MethodPolicy::Representation
922
+
909
923
  end
910
924
  end
911
925
 
@@ -1099,6 +1113,15 @@ module Google
1099
1113
  end
1100
1114
  end
1101
1115
 
1116
+ class FieldPolicy
1117
+ # @private
1118
+ class Representation < Google::Apis::Core::JsonRepresentation
1119
+ property :resource_permission, as: 'resourcePermission'
1120
+ property :resource_type, as: 'resourceType'
1121
+ property :selector, as: 'selector'
1122
+ end
1123
+ end
1124
+
1102
1125
  class GetServiceIdentityMetadata
1103
1126
  # @private
1104
1127
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1407,6 +1430,15 @@ module Google
1407
1430
  end
1408
1431
  end
1409
1432
 
1433
+ class MethodPolicy
1434
+ # @private
1435
+ class Representation < Google::Apis::Core::JsonRepresentation
1436
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServiceusageV1::FieldPolicy, decorator: Google::Apis::ServiceusageV1::FieldPolicy::Representation
1437
+
1438
+ property :selector, as: 'selector'
1439
+ end
1440
+ end
1441
+
1410
1442
  class MethodSettings
1411
1443
  # @private
1412
1444
  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.41.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-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-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.41.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: []