google-apis-orgpolicy_v2 0.20.0 → 0.22.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: 8052236b9f0fb3d44a7e88f9d50cd97d975be9a8b7099c3262c95719d943e4dc
|
4
|
+
data.tar.gz: 6e8fec4234ca1caad9b46aeb88407da67afbcbaf2a6640b8f33f1d140ec15ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef87de27b661eae4264afb210e449d0c1924ae3aa7e2acc73ad5ea31daad8c25fafb96178b383c1cee88e982b5d9ebc3c3ebb253ba9cf4b05f5a9cc45292ccb4
|
7
|
+
data.tar.gz: ad2d34b2c42edb009344389ff4592c6f72aae1d0ad5d2b27a5cc2dc8103bde057d89f000234c2329e5b8542dbbb2546aa6739c5a3b31770ba4a362062bd853a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-orgpolicy_v2
|
2
2
|
|
3
|
+
### v0.22.0 (2023-01-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230116
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
8
|
+
### v0.21.0 (2022-10-27)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20221024
|
11
|
+
* Regenerated using generator version 0.11.0
|
12
|
+
|
3
13
|
### v0.20.0 (2022-10-03)
|
4
14
|
|
5
15
|
* Regenerated using generator version 0.10.0
|
@@ -179,16 +179,19 @@ module Google
|
|
179
179
|
|
180
180
|
# Org policy condition/expression. For example: `resource.instanceName.matches("[
|
181
181
|
# production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`
|
182
|
+
# The max length of the condition is 1000 characters.
|
182
183
|
# Corresponds to the JSON property `condition`
|
183
184
|
# @return [String]
|
184
185
|
attr_accessor :condition
|
185
186
|
|
186
|
-
# Detailed information about this custom policy constraint.
|
187
|
+
# Detailed information about this custom policy constraint. The max length of
|
188
|
+
# the description is 2000 characters.
|
187
189
|
# Corresponds to the JSON property `description`
|
188
190
|
# @return [String]
|
189
191
|
attr_accessor :description
|
190
192
|
|
191
|
-
# One line display name for the UI.
|
193
|
+
# One line display name for the UI. The max length of the display_name is 200
|
194
|
+
# characters.
|
192
195
|
# Corresponds to the JSON property `displayName`
|
193
196
|
# @return [String]
|
194
197
|
attr_accessor :display_name
|
@@ -201,7 +204,9 @@ module Google
|
|
201
204
|
# Immutable. Name of the constraint. This is unique within the organization.
|
202
205
|
# Format of the name should be * `organizations/`organization_id`/
|
203
206
|
# customConstraints/`custom_constraint_id`` Example : "organizations/123/
|
204
|
-
# customConstraints/custom.createOnlyE2TypeVms"
|
207
|
+
# customConstraints/custom.createOnlyE2TypeVms" The max length is 70 characters
|
208
|
+
# and the min length is 1. Note that the prefix "organizations/`organization_id`/
|
209
|
+
# customConstraints/" is not counted.
|
205
210
|
# Corresponds to the JSON property `name`
|
206
211
|
# @return [String]
|
207
212
|
attr_accessor :name
|
@@ -328,6 +333,12 @@ module Google
|
|
328
333
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
|
329
334
|
attr_accessor :alternate
|
330
335
|
|
336
|
+
# Defines a Cloud Organization `PolicySpec` which is used to specify `
|
337
|
+
# Constraints` for configurations of Cloud Platform resources.
|
338
|
+
# Corresponds to the JSON property `dryRunSpec`
|
339
|
+
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
|
340
|
+
attr_accessor :dry_run_spec
|
341
|
+
|
331
342
|
# Immutable. The resource name of the Policy. Must be one of the following forms,
|
332
343
|
# where constraint_name is the name of the constraint which this Policy
|
333
344
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
@@ -353,6 +364,7 @@ module Google
|
|
353
364
|
# Update properties of this object
|
354
365
|
def update!(**args)
|
355
366
|
@alternate = args[:alternate] if args.key?(:alternate)
|
367
|
+
@dry_run_spec = args[:dry_run_spec] if args.key?(:dry_run_spec)
|
356
368
|
@name = args[:name] if args.key?(:name)
|
357
369
|
@spec = args[:spec] if args.key?(:spec)
|
358
370
|
end
|
@@ -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.22.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230116"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -189,6 +189,8 @@ module Google
|
|
189
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
190
190
|
property :alternate, as: 'alternate', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec::Representation
|
191
191
|
|
192
|
+
property :dry_run_spec, as: 'dryRunSpec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
|
193
|
+
|
192
194
|
property :name, as: 'name'
|
193
195
|
property :spec, as: 'spec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
|
194
196
|
|
@@ -281,6 +281,10 @@ module Google
|
|
281
281
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
282
282
|
# responses will return the name using the equivalent project number.
|
283
283
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
284
|
+
# @param [String] update_mask
|
285
|
+
# Field mask used to specify the fields to be overwritten in the policy by the
|
286
|
+
# set. The fields specified in the update_mask are relative to the policy, not
|
287
|
+
# the full request.
|
284
288
|
# @param [String] fields
|
285
289
|
# Selector specifying which fields to include in a partial response.
|
286
290
|
# @param [String] quota_user
|
@@ -298,13 +302,14 @@ module Google
|
|
298
302
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
299
303
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
300
304
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
301
|
-
def patch_folder_policy(name, google_cloud_orgpolicy_v2_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
305
|
+
def patch_folder_policy(name, google_cloud_orgpolicy_v2_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
302
306
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
303
307
|
command.request_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
304
308
|
command.request_object = google_cloud_orgpolicy_v2_policy_object
|
305
309
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
306
310
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy
|
307
311
|
command.params['name'] = name unless name.nil?
|
312
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
308
313
|
command.query['fields'] = fields unless fields.nil?
|
309
314
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
310
315
|
execute_or_queue_command(command, &block)
|
@@ -498,7 +503,9 @@ module Google
|
|
498
503
|
# Immutable. Name of the constraint. This is unique within the organization.
|
499
504
|
# Format of the name should be * `organizations/`organization_id`/
|
500
505
|
# customConstraints/`custom_constraint_id`` Example : "organizations/123/
|
501
|
-
# customConstraints/custom.createOnlyE2TypeVms"
|
506
|
+
# customConstraints/custom.createOnlyE2TypeVms" The max length is 70 characters
|
507
|
+
# and the min length is 1. Note that the prefix "organizations/`organization_id`/
|
508
|
+
# customConstraints/" is not counted.
|
502
509
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint] google_cloud_orgpolicy_v2_custom_constraint_object
|
503
510
|
# @param [String] fields
|
504
511
|
# Selector specifying which fields to include in a partial response.
|
@@ -720,6 +727,10 @@ module Google
|
|
720
727
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
721
728
|
# responses will return the name using the equivalent project number.
|
722
729
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
730
|
+
# @param [String] update_mask
|
731
|
+
# Field mask used to specify the fields to be overwritten in the policy by the
|
732
|
+
# set. The fields specified in the update_mask are relative to the policy, not
|
733
|
+
# the full request.
|
723
734
|
# @param [String] fields
|
724
735
|
# Selector specifying which fields to include in a partial response.
|
725
736
|
# @param [String] quota_user
|
@@ -737,13 +748,14 @@ module Google
|
|
737
748
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
749
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
750
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
740
|
-
def patch_organization_policy(name, google_cloud_orgpolicy_v2_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
751
|
+
def patch_organization_policy(name, google_cloud_orgpolicy_v2_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
741
752
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
742
753
|
command.request_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
743
754
|
command.request_object = google_cloud_orgpolicy_v2_policy_object
|
744
755
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
745
756
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy
|
746
757
|
command.params['name'] = name unless name.nil?
|
758
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
747
759
|
command.query['fields'] = fields unless fields.nil?
|
748
760
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
749
761
|
execute_or_queue_command(command, &block)
|
@@ -980,6 +992,10 @@ module Google
|
|
980
992
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
981
993
|
# responses will return the name using the equivalent project number.
|
982
994
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
995
|
+
# @param [String] update_mask
|
996
|
+
# Field mask used to specify the fields to be overwritten in the policy by the
|
997
|
+
# set. The fields specified in the update_mask are relative to the policy, not
|
998
|
+
# the full request.
|
983
999
|
# @param [String] fields
|
984
1000
|
# Selector specifying which fields to include in a partial response.
|
985
1001
|
# @param [String] quota_user
|
@@ -997,13 +1013,14 @@ module Google
|
|
997
1013
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
998
1014
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
999
1015
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1000
|
-
def patch_project_policy(name, google_cloud_orgpolicy_v2_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1016
|
+
def patch_project_policy(name, google_cloud_orgpolicy_v2_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1001
1017
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1002
1018
|
command.request_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
1003
1019
|
command.request_object = google_cloud_orgpolicy_v2_policy_object
|
1004
1020
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
1005
1021
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy
|
1006
1022
|
command.params['name'] = name unless name.nil?
|
1023
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1007
1024
|
command.query['fields'] = fields unless fields.nil?
|
1008
1025
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1009
1026
|
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.
|
4
|
+
version: 0.22.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:
|
11
|
+
date: 2023-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.22.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.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Organization Policy API V2
|