google-apis-servicemanagement_v1 0.45.0 → 0.47.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: 0e76e9293d6779e0710ab2402566b5a4b3785d22714224af61372c3afe559e90
4
- data.tar.gz: 4c0d2af3765b91e11f20628bc654d08b106cd24da662dcdae349051b508f55b4
3
+ metadata.gz: f8b08076d2517ea0167227394dafcdf6bccaab65bd5447ac045c7baed03eb768
4
+ data.tar.gz: effa06db5d04bc964b488b6a7c620963aedf73d1a3d89d36da284cfff178e728
5
5
  SHA512:
6
- metadata.gz: 7a0486a333fa1f11ae698dafa2e551c405dc3da830a6338d910e69c37f4ba5e54ab1cce8314a6e4eee241820ed2f35e2b6770b9cfc1d6a1bb5852cada9104b06
7
- data.tar.gz: b0cfe3d86dd6de625094d3984febfd388bc3d1caa7b62a9dc97a5560947b324d3d5cdcf4769f28fe1aca883732c9dbfec2d11402939e771921aa9ef86fe0b336
6
+ metadata.gz: 609a5fb21e485d67dc4a7ce2400e7303a3724fc51cd5097ffe901af711c181ad69643f11e56728a9e10668d141c56c901fe7d55004e77db0a5f8d227fa6de4da
7
+ data.tar.gz: eb7d88605b4e39999cdf6a6d97e711cd532f43b6edbf55c958b5153a329c1a7ecdc88f184f1958137787aef1289500a0b4ebec7f260c653045093c6a37988f6f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-servicemanagement_v1
2
2
 
3
+ ### v0.47.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230804
6
+
7
+ ### v0.46.0 (2023-08-03)
8
+
9
+ * Regenerated from discovery document revision 20230721
10
+
3
11
  ### v0.45.0 (2023-06-18)
4
12
 
5
13
  * 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
@@ -3036,13 +3114,13 @@ module Google
3036
3114
  # @return [String]
3037
3115
  attr_accessor :name
3038
3116
 
3039
- # The normal response of the operation in case of success. If the original
3040
- # method returns no data on success, such as `Delete`, the response is `google.
3041
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3042
- # the response should be the resource. For other methods, the response should
3043
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
3044
- # example, if the original method name is `TakeSnapshot()`, the inferred
3045
- # response type is `TakeSnapshotResponse`.
3117
+ # The normal, successful response of the operation. If the original method
3118
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
3119
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
3120
+ # response should be the resource. For other methods, the response should have
3121
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
3122
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
3123
+ # `TakeSnapshotResponse`.
3046
3124
  # Corresponds to the JSON property `response`
3047
3125
  # @return [Hash<String,Object>]
3048
3126
  attr_accessor :response
@@ -3236,22 +3314,22 @@ module Google
3236
3314
  # evaluates to `true`. A condition can add constraints based on attributes of
3237
3315
  # the request, the resource, or both. To learn which resources support
3238
3316
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3239
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3317
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
3240
3318
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3241
3319
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3242
3320
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3243
3321
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3244
3322
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
3245
3323
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3246
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3247
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
3248
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3249
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3250
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3251
- # access description: Does not grant access after Sep 2020 expression: request.
3252
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3253
- # a description of IAM and its features, see the [IAM documentation](https://
3254
- # cloud.google.com/iam/docs/).
3324
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
3325
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
3326
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
3327
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
3328
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
3329
+ # title: expirable access description: Does not grant access after Sep 2020
3330
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
3331
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
3332
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
3255
3333
  class Policy
3256
3334
  include Google::Apis::Core::Hashable
3257
3335
 
@@ -4051,22 +4129,22 @@ module Google
4051
4129
  # evaluates to `true`. A condition can add constraints based on attributes of
4052
4130
  # the request, the resource, or both. To learn which resources support
4053
4131
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
4054
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
4132
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
4055
4133
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
4056
4134
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
4057
4135
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
4058
4136
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
4059
4137
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
4060
4138
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
4061
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
4062
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
4063
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
4064
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
4065
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
4066
- # access description: Does not grant access after Sep 2020 expression: request.
4067
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
4068
- # a description of IAM and its features, see the [IAM documentation](https://
4069
- # cloud.google.com/iam/docs/).
4139
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
4140
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
4141
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
4142
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
4143
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
4144
+ # title: expirable access description: Does not grant access after Sep 2020
4145
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
4146
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
4147
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
4070
4148
  # Corresponds to the JSON property `policy`
4071
4149
  # @return [Google::Apis::ServicemanagementV1::Policy]
4072
4150
  attr_accessor :policy
@@ -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.47.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 = "20230804"
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.47.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-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.47.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: []