google-apis-servicemanagement_v1 0.45.0 → 0.46.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: 0e76e9293d6779e0710ab2402566b5a4b3785d22714224af61372c3afe559e90
4
- data.tar.gz: 4c0d2af3765b91e11f20628bc654d08b106cd24da662dcdae349051b508f55b4
3
+ metadata.gz: 04ce2ba12f75821f5d4334c74f1e7c245b2424098671000ffc14267a631d15cc
4
+ data.tar.gz: fea31c7acc3d7fb9b6af49114c3ddefee8a0161d02dc54029c73dd93f4f0838e
5
5
  SHA512:
6
- metadata.gz: 7a0486a333fa1f11ae698dafa2e551c405dc3da830a6338d910e69c37f4ba5e54ab1cce8314a6e4eee241820ed2f35e2b6770b9cfc1d6a1bb5852cada9104b06
7
- data.tar.gz: b0cfe3d86dd6de625094d3984febfd388bc3d1caa7b62a9dc97a5560947b324d3d5cdcf4769f28fe1aca883732c9dbfec2d11402939e771921aa9ef86fe0b336
6
+ metadata.gz: 3c8ecd14c3b065e5e50710fbf79cfb2e98cbe7ce9120847cc0a9e3aebbc50b4489d9dc958835f1b03f170062f574399f234bbcd3487ce2e3561870e73a048227
7
+ data.tar.gz: 31aacc49fe845aab487bbfa32d43f6fd8030c6df48cdb26fd6c6c6fb3f7baaacff2dd71e26052aaf8b94bada68def974953e39d5e089c5919195d9b8aaf50817
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-servicemanagement_v1
2
2
 
3
+ ### v0.46.0 (2023-08-03)
4
+
5
+ * Regenerated from discovery document revision 20230721
6
+
3
7
  ### v0.45.0 (2023-06-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20230609
@@ -1005,6 +1005,11 @@ module Google
1005
1005
  # @return [String]
1006
1006
  attr_accessor :environment
1007
1007
 
1008
+ # Defines policies applying to the API methods of the service.
1009
+ # Corresponds to the JSON property `methodPolicies`
1010
+ # @return [Array<Google::Apis::ServicemanagementV1::MethodPolicy>]
1011
+ attr_accessor :method_policies
1012
+
1008
1013
  def initialize(**args)
1009
1014
  update!(**args)
1010
1015
  end
@@ -1012,6 +1017,7 @@ module Google
1012
1017
  # Update properties of this object
1013
1018
  def update!(**args)
1014
1019
  @environment = args[:environment] if args.key?(:environment)
1020
+ @method_policies = args[:method_policies] if args.key?(:method_policies)
1015
1021
  end
1016
1022
  end
1017
1023
 
@@ -1641,6 +1647,50 @@ module Google
1641
1647
  end
1642
1648
  end
1643
1649
 
1650
+ # Google API Policy Annotation This message defines a simple API policy
1651
+ # annotation that can be used to annotate API request and response message
1652
+ # fields with applicable policies. One field may have multiple applicable
1653
+ # policies that must all be satisfied before a request can be processed. This
1654
+ # policy annotation is used to generate the overall policy that will be used for
1655
+ # automatic runtime policy enforcement and documentation generation.
1656
+ class FieldPolicy
1657
+ include Google::Apis::Core::Hashable
1658
+
1659
+ # Specifies the required permission(s) for the resource referred to by the field.
1660
+ # It requires the field contains a valid resource reference, and the request
1661
+ # must pass the permission checks to proceed. For example, "resourcemanager.
1662
+ # projects.get".
1663
+ # Corresponds to the JSON property `resourcePermission`
1664
+ # @return [String]
1665
+ attr_accessor :resource_permission
1666
+
1667
+ # Specifies the resource type for the resource referred to by the field.
1668
+ # Corresponds to the JSON property `resourceType`
1669
+ # @return [String]
1670
+ attr_accessor :resource_type
1671
+
1672
+ # Selects one or more request or response message fields to apply this `
1673
+ # FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
1674
+ # must be left as empty. The service config generator will automatically fill
1675
+ # the correct value. When a `FieldPolicy` is used in service config, the
1676
+ # selector must be a comma-separated string with valid request or response field
1677
+ # paths, such as "foo.bar" or "foo.bar,foo.baz".
1678
+ # Corresponds to the JSON property `selector`
1679
+ # @return [String]
1680
+ attr_accessor :selector
1681
+
1682
+ def initialize(**args)
1683
+ update!(**args)
1684
+ end
1685
+
1686
+ # Update properties of this object
1687
+ def update!(**args)
1688
+ @resource_permission = args[:resource_permission] if args.key?(:resource_permission)
1689
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1690
+ @selector = args[:selector] if args.key?(:selector)
1691
+ end
1692
+ end
1693
+
1644
1694
  # Encapsulation of flow-specific error details for debugging. Used as a details
1645
1695
  # field on an error Status, not intended for external use.
1646
1696
  class FlowErrorDetails
@@ -2501,6 +2551,34 @@ module Google
2501
2551
  end
2502
2552
  end
2503
2553
 
2554
+ # Defines policies applying to an RPC method.
2555
+ class MethodPolicy
2556
+ include Google::Apis::Core::Hashable
2557
+
2558
+ # Policies that are applicable to the request message.
2559
+ # Corresponds to the JSON property `requestPolicies`
2560
+ # @return [Array<Google::Apis::ServicemanagementV1::FieldPolicy>]
2561
+ attr_accessor :request_policies
2562
+
2563
+ # Selects a method to which these policies should be enforced, for example, "
2564
+ # google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
2565
+ # details. NOTE: This field must not be set in the proto annotation. It will be
2566
+ # automatically filled by the service config compiler .
2567
+ # Corresponds to the JSON property `selector`
2568
+ # @return [String]
2569
+ attr_accessor :selector
2570
+
2571
+ def initialize(**args)
2572
+ update!(**args)
2573
+ end
2574
+
2575
+ # Update properties of this object
2576
+ def update!(**args)
2577
+ @request_policies = args[:request_policies] if args.key?(:request_policies)
2578
+ @selector = args[:selector] if args.key?(:selector)
2579
+ end
2580
+ end
2581
+
2504
2582
  # Describes the generator configuration for a method.
2505
2583
  class MethodSettings
2506
2584
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServicemanagementV1
18
18
  # Version of the google-apis-servicemanagement_v1 gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.46.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 = "20230609"
25
+ REVISION = "20230721"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,12 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class FieldPolicy
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
253
259
  class FlowErrorDetails
254
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
261
 
@@ -376,6 +382,12 @@ module Google
376
382
  include Google::Apis::Core::JsonObjectSupport
377
383
  end
378
384
 
385
+ class MethodPolicy
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
379
391
  class MethodSettings
380
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
393
 
@@ -864,6 +876,8 @@ module Google
864
876
  # @private
865
877
  class Representation < Google::Apis::Core::JsonRepresentation
866
878
  property :environment, as: 'environment'
879
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServicemanagementV1::MethodPolicy, decorator: Google::Apis::ServicemanagementV1::MethodPolicy::Representation
880
+
867
881
  end
868
882
  end
869
883
 
@@ -1022,6 +1036,15 @@ module Google
1022
1036
  end
1023
1037
  end
1024
1038
 
1039
+ class FieldPolicy
1040
+ # @private
1041
+ class Representation < Google::Apis::Core::JsonRepresentation
1042
+ property :resource_permission, as: 'resourcePermission'
1043
+ property :resource_type, as: 'resourceType'
1044
+ property :selector, as: 'selector'
1045
+ end
1046
+ end
1047
+
1025
1048
  class FlowErrorDetails
1026
1049
  # @private
1027
1050
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1226,6 +1249,15 @@ module Google
1226
1249
  end
1227
1250
  end
1228
1251
 
1252
+ class MethodPolicy
1253
+ # @private
1254
+ class Representation < Google::Apis::Core::JsonRepresentation
1255
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServicemanagementV1::FieldPolicy, decorator: Google::Apis::ServicemanagementV1::FieldPolicy::Representation
1256
+
1257
+ property :selector, as: 'selector'
1258
+ end
1259
+ end
1260
+
1229
1261
  class MethodSettings
1230
1262
  # @private
1231
1263
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-servicemanagement_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.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-06 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-servicemanagement_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-servicemanagement_v1/v0.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicemanagement_v1/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicemanagement_v1
63
63
  post_install_message:
64
64
  rdoc_options: []