google-apis-orgpolicy_v2 0.29.0 → 0.30.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: 71d5e4f8cc675f96836b4aa96489a8134a1fb7c64b0b7d91417e4cefc71bc54f
4
- data.tar.gz: da31f8c41c6316d733b8684b52b48e146111329ca1825526385995366bd61129
3
+ metadata.gz: e36c75d86a96503db823efccea4dbc947adc2f75d7a1b2240b87cda000fdbc9c
4
+ data.tar.gz: c5668ec02d9d2f6e049be41f914584e9a3561e8dbc64c2248d257b6d19df714a
5
5
  SHA512:
6
- metadata.gz: 276c7e92adafb65d61a25aa021dd40841b7bdd49535d13d82771f0c78928431a1ac77e091650234592ca33948566c91be66553b9b4433f062430c41e0df1d7aa
7
- data.tar.gz: 521b5c7326588a89fa995be223bd30d5bac80b147de23cc1c2c72dac7394f29802acf6804df6e2e7589bfd611f5899f3ada17268caa5b121208075a2a5a61f45
6
+ metadata.gz: c4c48023e3c40695d505e1e3a5582b791688edddb480f94220c76b6d64f81e6abd5073e34a3b1fdf6e5510e7aab61eb29e63e89d2b1e26c335c05af7f508c5f0
7
+ data.tar.gz: af18525feb3a1b98a1944eda15debe47052d4d3241c297fdd05cb4ce6babaf514402888954618c83fdf87c355c21dd859f0543d334c72292b6839ba898a56f94
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.30.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231209
6
+
3
7
  ### v0.29.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230806
@@ -346,6 +346,14 @@ module Google
346
346
  # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
347
347
  attr_accessor :dry_run_spec
348
348
 
349
+ # Optional. An opaque tag indicating the current state of the policy, used for
350
+ # concurrency control. This 'etag' is computed by the server based on the value
351
+ # of other fields, and may be sent on update and delete requests to ensure the
352
+ # client has an up-to-date value before proceeding.
353
+ # Corresponds to the JSON property `etag`
354
+ # @return [String]
355
+ attr_accessor :etag
356
+
349
357
  # Immutable. The resource name of the policy. Must be one of the following forms,
350
358
  # where `constraint_name` is the name of the constraint which this policy
351
359
  # configures: * `projects/`project_number`/policies/`constraint_name`` * `
@@ -372,6 +380,7 @@ module Google
372
380
  def update!(**args)
373
381
  @alternate = args[:alternate] if args.key?(:alternate)
374
382
  @dry_run_spec = args[:dry_run_spec] if args.key?(:dry_run_spec)
383
+ @etag = args[:etag] if args.key?(:etag)
375
384
  @name = args[:name] if args.key?(:name)
376
385
  @spec = args[:spec] if args.key?(:spec)
377
386
  end
@@ -382,11 +391,11 @@ module Google
382
391
  class GoogleCloudOrgpolicyV2PolicySpec
383
392
  include Google::Apis::Core::Hashable
384
393
 
385
- # An opaque tag indicating the current version of the policy, used for
394
+ # An opaque tag indicating the current version of the policySpec, used for
386
395
  # concurrency control. This field is ignored if used in a `CreatePolicy` request.
387
- # When the policy` is returned from either a `GetPolicy` or a `ListPolicies`
388
- # request, this `etag` indicates the version of the current policy to use when
389
- # executing a read-modify-write loop. When the policy is returned from a `
396
+ # When the policy is returned from either a `GetPolicy` or a `ListPolicies`
397
+ # request, this `etag` indicates the version of the current policySpec to use
398
+ # when executing a read-modify-write loop. When the policy is returned from a `
390
399
  # GetEffectivePolicy` request, the `etag` will be unset.
391
400
  # Corresponds to the JSON property `etag`
392
401
  # @return [String]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OrgpolicyV2
18
18
  # Version of the google-apis-orgpolicy_v2 gem
19
- GEM_VERSION = "0.29.0"
19
+ GEM_VERSION = "0.30.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 = "20230806"
25
+ REVISION = "20231209"
26
26
  end
27
27
  end
28
28
  end
@@ -192,6 +192,7 @@ module Google
192
192
 
193
193
  property :dry_run_spec, as: 'dryRunSpec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
194
194
 
195
+ property :etag, as: 'etag'
195
196
  property :name, as: 'name'
196
197
  property :spec, as: 'spec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
197
198
 
@@ -132,6 +132,10 @@ module Google
132
132
  # NOT_FOUND` if the constraint or organization policy does not exist.
133
133
  # @param [String] name
134
134
  # Required. Name of the policy to delete. See the policy entry for naming rules.
135
+ # @param [String] etag
136
+ # Optional. The current etag of policy. If an etag is provided and does not
137
+ # match the current etag of the policy, deletion will be blocked and an ABORTED
138
+ # error will be returned.
135
139
  # @param [String] fields
136
140
  # Selector specifying which fields to include in a partial response.
137
141
  # @param [String] quota_user
@@ -149,11 +153,12 @@ module Google
149
153
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
154
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
155
  # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def delete_folder_policy(name, fields: nil, quota_user: nil, options: nil, &block)
156
+ def delete_folder_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
153
157
  command = make_simple_command(:delete, 'v2/{+name}', options)
154
158
  command.response_representation = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty::Representation
155
159
  command.response_class = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty
156
160
  command.params['name'] = name unless name.nil?
161
+ command.query['etag'] = etag unless etag.nil?
157
162
  command.query['fields'] = fields unless fields.nil?
158
163
  command.query['quotaUser'] = quota_user unless quota_user.nil?
159
164
  execute_or_queue_command(command, &block)
@@ -578,6 +583,10 @@ module Google
578
583
  # NOT_FOUND` if the constraint or organization policy does not exist.
579
584
  # @param [String] name
580
585
  # Required. Name of the policy to delete. See the policy entry for naming rules.
586
+ # @param [String] etag
587
+ # Optional. The current etag of policy. If an etag is provided and does not
588
+ # match the current etag of the policy, deletion will be blocked and an ABORTED
589
+ # error will be returned.
581
590
  # @param [String] fields
582
591
  # Selector specifying which fields to include in a partial response.
583
592
  # @param [String] quota_user
@@ -595,11 +604,12 @@ module Google
595
604
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
596
605
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
597
606
  # @raise [Google::Apis::AuthorizationError] Authorization is required
598
- def delete_organization_policy(name, fields: nil, quota_user: nil, options: nil, &block)
607
+ def delete_organization_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
599
608
  command = make_simple_command(:delete, 'v2/{+name}', options)
600
609
  command.response_representation = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty::Representation
601
610
  command.response_class = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty
602
611
  command.params['name'] = name unless name.nil?
612
+ command.query['etag'] = etag unless etag.nil?
603
613
  command.query['fields'] = fields unless fields.nil?
604
614
  command.query['quotaUser'] = quota_user unless quota_user.nil?
605
615
  execute_or_queue_command(command, &block)
@@ -843,6 +853,10 @@ module Google
843
853
  # NOT_FOUND` if the constraint or organization policy does not exist.
844
854
  # @param [String] name
845
855
  # Required. Name of the policy to delete. See the policy entry for naming rules.
856
+ # @param [String] etag
857
+ # Optional. The current etag of policy. If an etag is provided and does not
858
+ # match the current etag of the policy, deletion will be blocked and an ABORTED
859
+ # error will be returned.
846
860
  # @param [String] fields
847
861
  # Selector specifying which fields to include in a partial response.
848
862
  # @param [String] quota_user
@@ -860,11 +874,12 @@ module Google
860
874
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
861
875
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
862
876
  # @raise [Google::Apis::AuthorizationError] Authorization is required
863
- def delete_project_policy(name, fields: nil, quota_user: nil, options: nil, &block)
877
+ def delete_project_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
864
878
  command = make_simple_command(:delete, 'v2/{+name}', options)
865
879
  command.response_representation = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty::Representation
866
880
  command.response_class = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty
867
881
  command.params['name'] = name unless name.nil?
882
+ command.query['etag'] = etag unless etag.nil?
868
883
  command.query['fields'] = fields unless fields.nil?
869
884
  command.query['quotaUser'] = quota_user unless quota_user.nil?
870
885
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-orgpolicy_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.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-08-20 00:00:00.000000000 Z
11
+ date: 2023-12-10 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-orgpolicy_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Organization Policy API V2