google-apis-orgpolicy_v2 0.11.0 → 0.12.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: f63c0eebe65aa8a12f09eb1b46b57ec920f340b5b13cc6bac3ceecba00aac589
|
4
|
+
data.tar.gz: '096770bc86f9fa2136ca0d03944705ff059d2b25a9c8a3811e0a850eaa6d9460'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e8331ebedd0e889c55214474ee5d8d22641f07765610684d10d3dc1c19872380704c9214ec781d6c63d0d9c9e312c9171d4f6006e1e12db9e9e6546b70d5e30
|
7
|
+
data.tar.gz: 5dc5936e4689d08f0e2beba036c271d58c7b2b67dce22ecea4d2e47f78684f232fd210453bf87e88c778e6bcb5cc86a8e67aa04cc538cb77f4a0f366c2d21f39
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,34 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module OrgpolicyV2
|
24
24
|
|
25
|
+
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
26
|
+
# The PolicySpec here is specific for dry-run/darklaunch.
|
27
|
+
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# Reference to the launch that will be used while audit logging and to control
|
31
|
+
# the launch. Should be set only in the alternate policy.
|
32
|
+
# Corresponds to the JSON property `launch`
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :launch
|
35
|
+
|
36
|
+
# Defines a Cloud Organization `PolicySpec` which is used to specify `
|
37
|
+
# Constraints` for configurations of Cloud Platform resources.
|
38
|
+
# Corresponds to the JSON property `spec`
|
39
|
+
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
|
40
|
+
attr_accessor :spec
|
41
|
+
|
42
|
+
def initialize(**args)
|
43
|
+
update!(**args)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Update properties of this object
|
47
|
+
def update!(**args)
|
48
|
+
@launch = args[:launch] if args.key?(:launch)
|
49
|
+
@spec = args[:spec] if args.key?(:spec)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
25
53
|
# A `constraint` describes a way to restrict resource's configuration. For
|
26
54
|
# example, you could enforce a constraint that controls which cloud services can
|
27
55
|
# be activated across an organization, or whether a Compute Engine instance can
|
@@ -258,6 +286,12 @@ module Google
|
|
258
286
|
class GoogleCloudOrgpolicyV2Policy
|
259
287
|
include Google::Apis::Core::Hashable
|
260
288
|
|
289
|
+
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
290
|
+
# The PolicySpec here is specific for dry-run/darklaunch.
|
291
|
+
# Corresponds to the JSON property `alternate`
|
292
|
+
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
|
293
|
+
attr_accessor :alternate
|
294
|
+
|
261
295
|
# Immutable. The resource name of the Policy. Must be one of the following forms,
|
262
296
|
# where constraint_name is the name of the constraint which this Policy
|
263
297
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
@@ -282,6 +316,7 @@ module Google
|
|
282
316
|
|
283
317
|
# Update properties of this object
|
284
318
|
def update!(**args)
|
319
|
+
@alternate = args[:alternate] if args.key?(:alternate)
|
285
320
|
@name = args[:name] if args.key?(:name)
|
286
321
|
@spec = args[:spec] if args.key?(:spec)
|
287
322
|
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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220107"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module OrgpolicyV2
|
24
24
|
|
25
|
+
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class GoogleCloudOrgpolicyV2Constraint
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -94,6 +100,15 @@ module Google
|
|
94
100
|
include Google::Apis::Core::JsonObjectSupport
|
95
101
|
end
|
96
102
|
|
103
|
+
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
104
|
+
# @private
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
106
|
+
property :launch, as: 'launch'
|
107
|
+
property :spec, as: 'spec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
97
112
|
class GoogleCloudOrgpolicyV2Constraint
|
98
113
|
# @private
|
99
114
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -156,6 +171,8 @@ module Google
|
|
156
171
|
class GoogleCloudOrgpolicyV2Policy
|
157
172
|
# @private
|
158
173
|
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :alternate, as: 'alternate', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec::Representation
|
175
|
+
|
159
176
|
property :name, as: 'name'
|
160
177
|
property :spec, as: 'spec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
|
161
178
|
|
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.12.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: 2022-01-
|
11
|
+
date: 2022-01-17 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.12.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.3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Organization Policy API V2
|