google-apis-orgpolicy_v2 0.29.0 → 0.31.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: 503164da8fc725040530d9987d8ed1682dce86cb56e97206b06132a426d92cf8
|
4
|
+
data.tar.gz: adf6c1d57c9c0671d332943efeb4eae27f4f8085dfec63aa58f9308eb49b6b65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7345cead9f97b3eb0a15483b1075c81a500d21777db3977a2e1ed750d4280d6b6a38a740a438cb3496d592ad96f5d9ec51efbd3cdd20beff7bf0e517f5ca0d
|
7
|
+
data.tar.gz: e319c3cb235bd7277dcd696d992bda37b6cfb03a6d3e14c804bb16ad5ffdc37d4c8bfabda4a877215dd572592fa1fbafa42eb99002094a19f05ce5f9bb265e9d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-orgpolicy_v2
|
2
2
|
|
3
|
+
### v0.31.0 (2024-01-22)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.13.0
|
6
|
+
|
7
|
+
### v0.30.0 (2023-12-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231209
|
10
|
+
|
3
11
|
### v0.29.0 (2023-08-13)
|
4
12
|
|
5
13
|
* 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
|
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]
|
@@ -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.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.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
|
|
@@ -33,6 +33,8 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://cloud.google.com/orgpolicy/docs/reference/rest/index.html
|
35
35
|
class OrgPolicyAPIService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://orgpolicy.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
36
38
|
# @return [String]
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -44,7 +46,7 @@ module Google
|
|
44
46
|
attr_accessor :quota_user
|
45
47
|
|
46
48
|
def initialize
|
47
|
-
super(
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
48
50
|
client_name: 'google-apis-orgpolicy_v2',
|
49
51
|
client_version: Google::Apis::OrgpolicyV2::GEM_VERSION)
|
50
52
|
@batch_path = 'batch'
|
@@ -132,6 +134,10 @@ module Google
|
|
132
134
|
# NOT_FOUND` if the constraint or organization policy does not exist.
|
133
135
|
# @param [String] name
|
134
136
|
# Required. Name of the policy to delete. See the policy entry for naming rules.
|
137
|
+
# @param [String] etag
|
138
|
+
# Optional. The current etag of policy. If an etag is provided and does not
|
139
|
+
# match the current etag of the policy, deletion will be blocked and an ABORTED
|
140
|
+
# error will be returned.
|
135
141
|
# @param [String] fields
|
136
142
|
# Selector specifying which fields to include in a partial response.
|
137
143
|
# @param [String] quota_user
|
@@ -149,11 +155,12 @@ module Google
|
|
149
155
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
156
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
157
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
-
def delete_folder_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
158
|
+
def delete_folder_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
159
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
154
160
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty::Representation
|
155
161
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty
|
156
162
|
command.params['name'] = name unless name.nil?
|
163
|
+
command.query['etag'] = etag unless etag.nil?
|
157
164
|
command.query['fields'] = fields unless fields.nil?
|
158
165
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
166
|
execute_or_queue_command(command, &block)
|
@@ -578,6 +585,10 @@ module Google
|
|
578
585
|
# NOT_FOUND` if the constraint or organization policy does not exist.
|
579
586
|
# @param [String] name
|
580
587
|
# Required. Name of the policy to delete. See the policy entry for naming rules.
|
588
|
+
# @param [String] etag
|
589
|
+
# Optional. The current etag of policy. If an etag is provided and does not
|
590
|
+
# match the current etag of the policy, deletion will be blocked and an ABORTED
|
591
|
+
# error will be returned.
|
581
592
|
# @param [String] fields
|
582
593
|
# Selector specifying which fields to include in a partial response.
|
583
594
|
# @param [String] quota_user
|
@@ -595,11 +606,12 @@ module Google
|
|
595
606
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
596
607
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
597
608
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
598
|
-
def delete_organization_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
609
|
+
def delete_organization_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
599
610
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
600
611
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty::Representation
|
601
612
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty
|
602
613
|
command.params['name'] = name unless name.nil?
|
614
|
+
command.query['etag'] = etag unless etag.nil?
|
603
615
|
command.query['fields'] = fields unless fields.nil?
|
604
616
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
605
617
|
execute_or_queue_command(command, &block)
|
@@ -843,6 +855,10 @@ module Google
|
|
843
855
|
# NOT_FOUND` if the constraint or organization policy does not exist.
|
844
856
|
# @param [String] name
|
845
857
|
# Required. Name of the policy to delete. See the policy entry for naming rules.
|
858
|
+
# @param [String] etag
|
859
|
+
# Optional. The current etag of policy. If an etag is provided and does not
|
860
|
+
# match the current etag of the policy, deletion will be blocked and an ABORTED
|
861
|
+
# error will be returned.
|
846
862
|
# @param [String] fields
|
847
863
|
# Selector specifying which fields to include in a partial response.
|
848
864
|
# @param [String] quota_user
|
@@ -860,11 +876,12 @@ module Google
|
|
860
876
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
861
877
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
862
878
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
863
|
-
def delete_project_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
879
|
+
def delete_project_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
864
880
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
865
881
|
command.response_representation = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty::Representation
|
866
882
|
command.response_class = Google::Apis::OrgpolicyV2::GoogleProtobufEmpty
|
867
883
|
command.params['name'] = name unless name.nil?
|
884
|
+
command.query['etag'] = etag unless etag.nil?
|
868
885
|
command.query['fields'] = fields unless fields.nil?
|
869
886
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
870
887
|
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.31.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: 2024-01-23 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.
|
19
|
+
version: 0.12.0
|
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.
|
29
|
+
version: 0.12.0
|
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.31.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.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Organization Policy API V2
|