google-apis-orgpolicy_v2 0.11.0 → 0.12.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: d3e107bb05cf848ff56cbcc332172ca4102b6710fe19b453ddc29e738fd5eef5
4
- data.tar.gz: 35c53b5da0091256168d061f4a1148318db60505ae26a2ef7c9efe6abac876d8
3
+ metadata.gz: f63c0eebe65aa8a12f09eb1b46b57ec920f340b5b13cc6bac3ceecba00aac589
4
+ data.tar.gz: '096770bc86f9fa2136ca0d03944705ff059d2b25a9c8a3811e0a850eaa6d9460'
5
5
  SHA512:
6
- metadata.gz: 79898add4a6b78cbc09e5ba576f0fa06cb4772223efcb338e84d4eb79c2514ec1e61fa1f41fd56bd0f58e89344db42676a48337e0e09ea02af0b0c0cd263358e
7
- data.tar.gz: a7698cc7bea154c4079c826d758bd3ad06653c7e781be0508b921df46aa872ac8b4e8e3b5496fa336480c19a602cff7c41151a2ef79d6a08d5960295360c11b6
6
+ metadata.gz: 4e8331ebedd0e889c55214474ee5d8d22641f07765610684d10d3dc1c19872380704c9214ec781d6c63d0d9c9e312c9171d4f6006e1e12db9e9e6546b70d5e30
7
+ data.tar.gz: 5dc5936e4689d08f0e2beba036c271d58c7b2b67dce22ecea4d2e47f78684f232fd210453bf87e88c778e6bcb5cc86a8e67aa04cc538cb77f4a0f366c2d21f39
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.12.0 (2022-01-11)
4
+
5
+ * Regenerated from discovery document revision 20220107
6
+
3
7
  ### v0.11.0 (2021-12-14)
4
8
 
5
9
  * Unspecified changes
@@ -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.11.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 = "20211130"
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.11.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-10 00:00:00.000000000 Z
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.11.0
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.4
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