google-apis-orgpolicy_v2 0.35.0 → 0.37.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: d8beb5ef885437db565cd65f9ae98776a3238e948f9b9de8f5c47ba9e9f591ef
4
- data.tar.gz: 6ffc994b812302bb3a104482caf7e3120cf76e30699919462a6b6f7d569eae26
3
+ metadata.gz: b8f0ec4f109224e89e8bd99194f91fe384137e1d4af8f96e5af1d4631488e976
4
+ data.tar.gz: 542532f6a560d1a30f927ed9325c40e86b3c84aa548110cef17278b65ad685a9
5
5
  SHA512:
6
- metadata.gz: 1d45d12207ed28dc56d6a729af9fbcacf46efbd43b3b66b01b2814e61065c701e99d2fcdeefe719bc7c5558aed63abae2517bc5d05423776facfdee4bdec9fb8
7
- data.tar.gz: 2531759368f5bd819e3c8679c6aec87612ad1ea9185e1c64b4a80070fcc7ecc0a4be7282191e11951c8589feaba0b61f1868c2677ac7ddb22684f527b673af5e
6
+ metadata.gz: 74f868c493b7e8f68a51185662c066b7984e334ed7fc7f7a05c7267952039ad33054149a5fb25ce5a05b61f49dc26637d22eb3207259aa5653ddca2c8489a6e2
7
+ data.tar.gz: 86385b586a2a4b3fd3cbf41c7e528295f3c57e382896be8d94f1cfb66851a6f6b51c8cf61579dea91b6a704105b9d9573d3d90661e0e4f9c6fe92a25020a4107
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.37.0 (2024-12-08)
4
+
5
+ * Regenerated from discovery document revision 20241129
6
+
7
+ ### v0.36.0 (2024-10-27)
8
+
9
+ * Regenerated from discovery document revision 20241021
10
+ * Regenerated using generator version 0.15.1
11
+
3
12
  ### v0.35.0 (2024-05-19)
4
13
 
5
14
  * Regenerated from discovery document revision 20240513
@@ -109,6 +109,12 @@ module Google
109
109
  attr_accessor :supports_dry_run
110
110
  alias_method :supports_dry_run?, :supports_dry_run
111
111
 
112
+ # Shows if simulation is supported for this constraint or not.
113
+ # Corresponds to the JSON property `supportsSimulation`
114
+ # @return [Boolean]
115
+ attr_accessor :supports_simulation
116
+ alias_method :supports_simulation?, :supports_simulation
117
+
112
118
  def initialize(**args)
113
119
  update!(**args)
114
120
  end
@@ -122,6 +128,7 @@ module Google
122
128
  @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
123
129
  @name = args[:name] if args.key?(:name)
124
130
  @supports_dry_run = args[:supports_dry_run] if args.key?(:supports_dry_run)
131
+ @supports_simulation = args[:supports_simulation] if args.key?(:supports_simulation)
125
132
  end
126
133
  end
127
134
 
@@ -131,12 +138,132 @@ module Google
131
138
  class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
132
139
  include Google::Apis::Core::Hashable
133
140
 
141
+ # Currently used for Managed Constraints. This represents a subset of fields
142
+ # missing from Constraint proto that are required to describe CustomConstraint
143
+ # Corresponds to the JSON property `customConstraintDefinition`
144
+ # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition]
145
+ attr_accessor :custom_constraint_definition
146
+
147
+ def initialize(**args)
148
+ update!(**args)
149
+ end
150
+
151
+ # Update properties of this object
152
+ def update!(**args)
153
+ @custom_constraint_definition = args[:custom_constraint_definition] if args.key?(:custom_constraint_definition)
154
+ end
155
+ end
156
+
157
+ # Currently used for Managed Constraints. This represents a subset of fields
158
+ # missing from Constraint proto that are required to describe CustomConstraint
159
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
160
+ include Google::Apis::Core::Hashable
161
+
162
+ # Allow or deny type.
163
+ # Corresponds to the JSON property `actionType`
164
+ # @return [String]
165
+ attr_accessor :action_type
166
+
167
+ # Org policy condition/expression. For example: `resource.instanceName.matches("[
168
+ # production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
169
+ # The max length of the condition is 1000 characters.
170
+ # Corresponds to the JSON property `condition`
171
+ # @return [String]
172
+ attr_accessor :condition
173
+
174
+ # All the operations being applied for this constraint.
175
+ # Corresponds to the JSON property `methodTypes`
176
+ # @return [Array<String>]
177
+ attr_accessor :method_types
178
+
179
+ # Stores Structure of parameters used by Constraint condition. Key of map
180
+ # represents name of the parameter.
181
+ # Corresponds to the JSON property `parameters`
182
+ # @return [Hash<String,Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>]
183
+ attr_accessor :parameters
184
+
185
+ # The resource instance type on which this policy applies. Format will be of the
186
+ # form : `/` Example: * `compute.googleapis.com/Instance`.
187
+ # Corresponds to the JSON property `resourceTypes`
188
+ # @return [Array<String>]
189
+ attr_accessor :resource_types
190
+
191
+ def initialize(**args)
192
+ update!(**args)
193
+ end
194
+
195
+ # Update properties of this object
196
+ def update!(**args)
197
+ @action_type = args[:action_type] if args.key?(:action_type)
198
+ @condition = args[:condition] if args.key?(:condition)
199
+ @method_types = args[:method_types] if args.key?(:method_types)
200
+ @parameters = args[:parameters] if args.key?(:parameters)
201
+ @resource_types = args[:resource_types] if args.key?(:resource_types)
202
+ end
203
+ end
204
+
205
+ # Defines a parameter structure.
206
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter
207
+ include Google::Apis::Core::Hashable
208
+
209
+ # Sets the value of the parameter in an assignment if no value is given.
210
+ # Corresponds to the JSON property `defaultValue`
211
+ # @return [Object]
212
+ attr_accessor :default_value
213
+
214
+ # Determines the parameter’s value structure. For example, LIST can be specified
215
+ # by defining type : LIST, and item type as : STRING.
216
+ # Corresponds to the JSON property `item`
217
+ # @return [String]
218
+ attr_accessor :item
219
+
220
+ # Defines Medata structure.
221
+ # Corresponds to the JSON property `metadata`
222
+ # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata]
223
+ attr_accessor :metadata
224
+
225
+ # Type of the parameter.
226
+ # Corresponds to the JSON property `type`
227
+ # @return [String]
228
+ attr_accessor :type
229
+
230
+ # Provides a CEL expression to specify the acceptable parameter values during
231
+ # assignment. For example, parameterName in ("parameterValue1", "parameterValue2"
232
+ # )
233
+ # Corresponds to the JSON property `validValuesExpr`
234
+ # @return [String]
235
+ attr_accessor :valid_values_expr
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @default_value = args[:default_value] if args.key?(:default_value)
244
+ @item = args[:item] if args.key?(:item)
245
+ @metadata = args[:metadata] if args.key?(:metadata)
246
+ @type = args[:type] if args.key?(:type)
247
+ @valid_values_expr = args[:valid_values_expr] if args.key?(:valid_values_expr)
248
+ end
249
+ end
250
+
251
+ # Defines Medata structure.
252
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
253
+ include Google::Apis::Core::Hashable
254
+
255
+ # Detailed description of what this `parameter` is and use of it. Mutable.
256
+ # Corresponds to the JSON property `description`
257
+ # @return [String]
258
+ attr_accessor :description
259
+
134
260
  def initialize(**args)
135
261
  update!(**args)
136
262
  end
137
263
 
138
264
  # Update properties of this object
139
265
  def update!(**args)
266
+ @description = args[:description] if args.key?(:description)
140
267
  end
141
268
  end
142
269
 
@@ -493,6 +620,14 @@ module Google
493
620
  attr_accessor :enforce
494
621
  alias_method :enforce?, :enforce
495
622
 
623
+ # Optional. Required for GMCs if parameters defined in constraints. Pass
624
+ # parameter values when policy enforcement is enabled. Ensure that parameter
625
+ # value types match those defined in the constraint definition. For example: ` "
626
+ # allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true `
627
+ # Corresponds to the JSON property `parameters`
628
+ # @return [Hash<String,Object>]
629
+ attr_accessor :parameters
630
+
496
631
  # A message that holds specific allowed and denied values. This message can
497
632
  # define specific values and subtrees of the Resource Manager resource hierarchy
498
633
  # (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is
@@ -519,6 +654,7 @@ module Google
519
654
  @condition = args[:condition] if args.key?(:condition)
520
655
  @deny_all = args[:deny_all] if args.key?(:deny_all)
521
656
  @enforce = args[:enforce] if args.key?(:enforce)
657
+ @parameters = args[:parameters] if args.key?(:parameters)
522
658
  @values = args[:values] if args.key?(:values)
523
659
  end
524
660
  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.35.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240513"
25
+ REVISION = "20241129"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,24 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class GoogleCloudOrgpolicyV2ConstraintListConstraint
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
@@ -127,12 +145,46 @@ module Google
127
145
 
128
146
  property :name, as: 'name'
129
147
  property :supports_dry_run, as: 'supportsDryRun'
148
+ property :supports_simulation, as: 'supportsSimulation'
130
149
  end
131
150
  end
132
151
 
133
152
  class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
134
153
  # @private
135
154
  class Representation < Google::Apis::Core::JsonRepresentation
155
+ property :custom_constraint_definition, as: 'customConstraintDefinition', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition::Representation
156
+
157
+ end
158
+ end
159
+
160
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
161
+ # @private
162
+ class Representation < Google::Apis::Core::JsonRepresentation
163
+ property :action_type, as: 'actionType'
164
+ property :condition, as: 'condition'
165
+ collection :method_types, as: 'methodTypes'
166
+ hash :parameters, as: 'parameters', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter::Representation
167
+
168
+ collection :resource_types, as: 'resourceTypes'
169
+ end
170
+ end
171
+
172
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ property :default_value, as: 'defaultValue'
176
+ property :item, as: 'item'
177
+ property :metadata, as: 'metadata', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata::Representation
178
+
179
+ property :type, as: 'type'
180
+ property :valid_values_expr, as: 'validValuesExpr'
181
+ end
182
+ end
183
+
184
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :description, as: 'description'
136
188
  end
137
189
  end
138
190
 
@@ -219,6 +271,7 @@ module Google
219
271
 
220
272
  property :deny_all, as: 'denyAll'
221
273
  property :enforce, as: 'enforce'
274
+ hash :parameters, as: 'parameters'
222
275
  property :values, as: 'values', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::Representation
223
276
 
224
277
  end
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.35.0
4
+ version: 0.37.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: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-12-08 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.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.37.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.5.6
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Organization Policy API V2