google-apis-orgpolicy_v2 0.21.0 → 0.22.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:
|
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,10 @@
|
|
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
|
+
|
3
8
|
### v0.21.0 (2022-10-27)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20221024
|
@@ -333,6 +333,12 @@ module Google
|
|
333
333
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
|
334
334
|
attr_accessor :alternate
|
335
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
|
+
|
336
342
|
# Immutable. The resource name of the Policy. Must be one of the following forms,
|
337
343
|
# where constraint_name is the name of the constraint which this Policy
|
338
344
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
@@ -358,6 +364,7 @@ module Google
|
|
358
364
|
# Update properties of this object
|
359
365
|
def update!(**args)
|
360
366
|
@alternate = args[:alternate] if args.key?(:alternate)
|
367
|
+
@dry_run_spec = args[:dry_run_spec] if args.key?(:dry_run_spec)
|
361
368
|
@name = args[:name] if args.key?(:name)
|
362
369
|
@spec = args[:spec] if args.key?(:spec)
|
363
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.11.
|
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)
|
@@ -722,6 +727,10 @@ module Google
|
|
722
727
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
723
728
|
# responses will return the name using the equivalent project number.
|
724
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.
|
725
734
|
# @param [String] fields
|
726
735
|
# Selector specifying which fields to include in a partial response.
|
727
736
|
# @param [String] quota_user
|
@@ -739,13 +748,14 @@ module Google
|
|
739
748
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
740
749
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
741
750
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
742
|
-
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)
|
743
752
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
744
753
|
command.request_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
745
754
|
command.request_object = google_cloud_orgpolicy_v2_policy_object
|
746
755
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
747
756
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy
|
748
757
|
command.params['name'] = name unless name.nil?
|
758
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
749
759
|
command.query['fields'] = fields unless fields.nil?
|
750
760
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
751
761
|
execute_or_queue_command(command, &block)
|
@@ -982,6 +992,10 @@ module Google
|
|
982
992
|
# policies/`constraint_name`` is also an acceptable name for API requests, but
|
983
993
|
# responses will return the name using the equivalent project number.
|
984
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.
|
985
999
|
# @param [String] fields
|
986
1000
|
# Selector specifying which fields to include in a partial response.
|
987
1001
|
# @param [String] quota_user
|
@@ -999,13 +1013,14 @@ module Google
|
|
999
1013
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1000
1014
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1001
1015
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1002
|
-
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)
|
1003
1017
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1004
1018
|
command.request_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
1005
1019
|
command.request_object = google_cloud_orgpolicy_v2_policy_object
|
1006
1020
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy::Representation
|
1007
1021
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy
|
1008
1022
|
command.params['name'] = name unless name.nil?
|
1023
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1009
1024
|
command.query['fields'] = fields unless fields.nil?
|
1010
1025
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1011
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
|
@@ -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
|