google-apis-orgpolicy_v2 0.28.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e36c75d86a96503db823efccea4dbc947adc2f75d7a1b2240b87cda000fdbc9c
|
4
|
+
data.tar.gz: c5668ec02d9d2f6e049be41f914584e9a3561e8dbc64c2248d257b6d19df714a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4c48023e3c40695d505e1e3a5582b791688edddb480f94220c76b6d64f81e6abd5073e34a3b1fdf6e5510e7aab61eb29e63e89d2b1e26c335c05af7f508c5f0
|
7
|
+
data.tar.gz: af18525feb3a1b98a1944eda15debe47052d4d3241c297fdd05cb4ce6babaf514402888954618c83fdf87c355c21dd859f0543d334c72292b6839ba898a56f94
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
7
|
+
### v0.29.0 (2023-08-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230806
|
10
|
+
|
3
11
|
### v0.28.0 (2023-07-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230625
|
@@ -185,7 +185,7 @@ module Google
|
|
185
185
|
attr_accessor :action_type
|
186
186
|
|
187
187
|
# Org policy condition/expression. For example: `resource.instanceName.matches("[
|
188
|
-
# production|test]_.*_(\d)+")
|
188
|
+
# production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
|
189
189
|
# The max length of the condition is 1000 characters.
|
190
190
|
# Corresponds to the JSON property `condition`
|
191
191
|
# @return [String]
|
@@ -346,12 +346,20 @@ 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
|
-
# where constraint_name is the name of the constraint which this policy
|
358
|
+
# where `constraint_name` is the name of the constraint which this policy
|
351
359
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
352
360
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
353
|
-
# organization_id`/policies/`constraint_name`` For example,
|
354
|
-
# policies/compute.disableSerialPortAccess
|
361
|
+
# organization_id`/policies/`constraint_name`` For example, `projects/123/
|
362
|
+
# policies/compute.disableSerialPortAccess`. Note: `projects/`project_id`/
|
355
363
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
356
364
|
# responses will return the name using the equivalent project number.
|
357
365
|
# Corresponds to the JSON property `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
|
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
|
388
|
-
# request, this `etag` indicates the version of the current
|
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]
|
@@ -491,10 +500,11 @@ module Google
|
|
491
500
|
# prefix is used to denote resource subtree values. The `is:` prefix is used to
|
492
501
|
# denote specific values, and is required only if the value contains a ":".
|
493
502
|
# Values prefixed with "is:" are treated the same as values with no prefix.
|
494
|
-
# Ancestry subtrees must be in one of the following formats: -
|
495
|
-
#
|
496
|
-
#
|
497
|
-
# Constraint` defines whether ancestry prefixes can be
|
503
|
+
# Ancestry subtrees must be in one of the following formats: - `projects/` (for
|
504
|
+
# example, `projects/tokyo-rain-123`) - `folders/` (for example, `folders/1234`)
|
505
|
+
# - `organizations/` (for example, `organizations/1234`) The `supports_under`
|
506
|
+
# field of the associated `Constraint` defines whether ancestry prefixes can be
|
507
|
+
# used.
|
498
508
|
# Corresponds to the JSON property `values`
|
499
509
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues]
|
500
510
|
attr_accessor :values
|
@@ -520,10 +530,11 @@ module Google
|
|
520
530
|
# prefix is used to denote resource subtree values. The `is:` prefix is used to
|
521
531
|
# denote specific values, and is required only if the value contains a ":".
|
522
532
|
# Values prefixed with "is:" are treated the same as values with no prefix.
|
523
|
-
# Ancestry subtrees must be in one of the following formats: -
|
524
|
-
#
|
525
|
-
#
|
526
|
-
# Constraint` defines whether ancestry prefixes can be
|
533
|
+
# Ancestry subtrees must be in one of the following formats: - `projects/` (for
|
534
|
+
# example, `projects/tokyo-rain-123`) - `folders/` (for example, `folders/1234`)
|
535
|
+
# - `organizations/` (for example, `organizations/1234`) The `supports_under`
|
536
|
+
# field of the associated `Constraint` defines whether ancestry prefixes can be
|
537
|
+
# used.
|
527
538
|
class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
|
528
539
|
include Google::Apis::Core::Hashable
|
529
540
|
|
@@ -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.
|
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 = "
|
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)
|
@@ -163,7 +168,7 @@ module Google
|
|
163
168
|
# is returned. The `etag` value can be used with `UpdatePolicy()` to update a
|
164
169
|
# policy during read-modify-write.
|
165
170
|
# @param [String] name
|
166
|
-
# Required. Resource name of the policy. See
|
171
|
+
# Required. Resource name of the policy. See Policy for naming requirements.
|
167
172
|
# @param [String] fields
|
168
173
|
# Selector specifying which fields to include in a partial response.
|
169
174
|
# @param [String] quota_user
|
@@ -197,7 +202,7 @@ module Google
|
|
197
202
|
# policy across multiple resources. Subtrees of Resource Manager resource
|
198
203
|
# hierarchy with 'under:' prefix will not be expanded.
|
199
204
|
# @param [String] name
|
200
|
-
# Required. The effective policy to compute. See
|
205
|
+
# Required. The effective policy to compute. See Policy for naming requirements.
|
201
206
|
# @param [String] fields
|
202
207
|
# Selector specifying which fields to include in a partial response.
|
203
208
|
# @param [String] quota_user
|
@@ -273,11 +278,11 @@ module Google
|
|
273
278
|
# perform a full overwrite of all fields.
|
274
279
|
# @param [String] name
|
275
280
|
# Immutable. The resource name of the policy. Must be one of the following forms,
|
276
|
-
# where constraint_name is the name of the constraint which this policy
|
281
|
+
# where `constraint_name` is the name of the constraint which this policy
|
277
282
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
278
283
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
279
|
-
# organization_id`/policies/`constraint_name`` For example,
|
280
|
-
# policies/compute.disableSerialPortAccess
|
284
|
+
# organization_id`/policies/`constraint_name`` For example, `projects/123/
|
285
|
+
# policies/compute.disableSerialPortAccess`. Note: `projects/`project_id`/
|
281
286
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
282
287
|
# responses will return the name using the equivalent project number.
|
283
288
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
@@ -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)
|
@@ -609,7 +619,7 @@ module Google
|
|
609
619
|
# is returned. The `etag` value can be used with `UpdatePolicy()` to update a
|
610
620
|
# policy during read-modify-write.
|
611
621
|
# @param [String] name
|
612
|
-
# Required. Resource name of the policy. See
|
622
|
+
# Required. Resource name of the policy. See Policy for naming requirements.
|
613
623
|
# @param [String] fields
|
614
624
|
# Selector specifying which fields to include in a partial response.
|
615
625
|
# @param [String] quota_user
|
@@ -643,7 +653,7 @@ module Google
|
|
643
653
|
# policy across multiple resources. Subtrees of Resource Manager resource
|
644
654
|
# hierarchy with 'under:' prefix will not be expanded.
|
645
655
|
# @param [String] name
|
646
|
-
# Required. The effective policy to compute. See
|
656
|
+
# Required. The effective policy to compute. See Policy for naming requirements.
|
647
657
|
# @param [String] fields
|
648
658
|
# Selector specifying which fields to include in a partial response.
|
649
659
|
# @param [String] quota_user
|
@@ -719,11 +729,11 @@ module Google
|
|
719
729
|
# perform a full overwrite of all fields.
|
720
730
|
# @param [String] name
|
721
731
|
# Immutable. The resource name of the policy. Must be one of the following forms,
|
722
|
-
# where constraint_name is the name of the constraint which this policy
|
732
|
+
# where `constraint_name` is the name of the constraint which this policy
|
723
733
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
724
734
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
725
|
-
# organization_id`/policies/`constraint_name`` For example,
|
726
|
-
# policies/compute.disableSerialPortAccess
|
735
|
+
# organization_id`/policies/`constraint_name`` For example, `projects/123/
|
736
|
+
# policies/compute.disableSerialPortAccess`. Note: `projects/`project_id`/
|
727
737
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
728
738
|
# responses will return the name using the equivalent project number.
|
729
739
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
@@ -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)
|
@@ -874,7 +889,7 @@ module Google
|
|
874
889
|
# is returned. The `etag` value can be used with `UpdatePolicy()` to update a
|
875
890
|
# policy during read-modify-write.
|
876
891
|
# @param [String] name
|
877
|
-
# Required. Resource name of the policy. See
|
892
|
+
# Required. Resource name of the policy. See Policy for naming requirements.
|
878
893
|
# @param [String] fields
|
879
894
|
# Selector specifying which fields to include in a partial response.
|
880
895
|
# @param [String] quota_user
|
@@ -908,7 +923,7 @@ module Google
|
|
908
923
|
# policy across multiple resources. Subtrees of Resource Manager resource
|
909
924
|
# hierarchy with 'under:' prefix will not be expanded.
|
910
925
|
# @param [String] name
|
911
|
-
# Required. The effective policy to compute. See
|
926
|
+
# Required. The effective policy to compute. See Policy for naming requirements.
|
912
927
|
# @param [String] fields
|
913
928
|
# Selector specifying which fields to include in a partial response.
|
914
929
|
# @param [String] quota_user
|
@@ -984,11 +999,11 @@ module Google
|
|
984
999
|
# perform a full overwrite of all fields.
|
985
1000
|
# @param [String] name
|
986
1001
|
# Immutable. The resource name of the policy. Must be one of the following forms,
|
987
|
-
# where constraint_name is the name of the constraint which this policy
|
1002
|
+
# where `constraint_name` is the name of the constraint which this policy
|
988
1003
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
989
1004
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
990
|
-
# organization_id`/policies/`constraint_name`` For example,
|
991
|
-
# policies/compute.disableSerialPortAccess
|
1005
|
+
# organization_id`/policies/`constraint_name`` For example, `projects/123/
|
1006
|
+
# policies/compute.disableSerialPortAccess`. Note: `projects/`project_id`/
|
992
1007
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
993
1008
|
# responses will return the name using the equivalent project number.
|
994
1009
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
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.
|
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-
|
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.
|
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.
|
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
|