google-apis-orgpolicy_v2 0.35.0 → 0.36.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: fa053dea3206c0a71cd1d3cba1b43519b957a85ca8d5f3f1d7246800aed7c568
4
+ data.tar.gz: 6a6dc6fa9a793c6e177e3128d232fd5a7ba5b0d9c904939c198fa5b40001b1f6
5
5
  SHA512:
6
- metadata.gz: 1d45d12207ed28dc56d6a729af9fbcacf46efbd43b3b66b01b2814e61065c701e99d2fcdeefe719bc7c5558aed63abae2517bc5d05423776facfdee4bdec9fb8
7
- data.tar.gz: 2531759368f5bd819e3c8679c6aec87612ad1ea9185e1c64b4a80070fcc7ecc0a4be7282191e11951c8589feaba0b61f1868c2677ac7ddb22684f527b673af5e
6
+ metadata.gz: f03c2562e2c83eaffee4547ab78c5bfaaa1b1c9d4b256c0f604d1ff56f84b5f5373559e48ff21a74397bc8584075e89962a69071adc4a4e639ac85ca620e6faf
7
+ data.tar.gz: 78ccb0791b1d686be3c55874647c2857aa87388f1409dd3488a363f91fc0476dd98672a762e1c7cb76453ea009ef0b639842ec65a9b81932bb71fab460974531
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.36.0 (2024-10-27)
4
+
5
+ * Regenerated from discovery document revision 20241021
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.35.0 (2024-05-19)
4
9
 
5
10
  * Regenerated from discovery document revision 20240513
@@ -131,12 +131,132 @@ module Google
131
131
  class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
132
132
  include Google::Apis::Core::Hashable
133
133
 
134
+ # Currently used for Managed Constraints. This represents a subset of fields
135
+ # missing from Constraint proto that are required to describe CustomConstraint
136
+ # Corresponds to the JSON property `customConstraintDefinition`
137
+ # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition]
138
+ attr_accessor :custom_constraint_definition
139
+
134
140
  def initialize(**args)
135
141
  update!(**args)
136
142
  end
137
143
 
138
144
  # Update properties of this object
139
145
  def update!(**args)
146
+ @custom_constraint_definition = args[:custom_constraint_definition] if args.key?(:custom_constraint_definition)
147
+ end
148
+ end
149
+
150
+ # Currently used for Managed Constraints. This represents a subset of fields
151
+ # missing from Constraint proto that are required to describe CustomConstraint
152
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
153
+ include Google::Apis::Core::Hashable
154
+
155
+ # Allow or deny type.
156
+ # Corresponds to the JSON property `actionType`
157
+ # @return [String]
158
+ attr_accessor :action_type
159
+
160
+ # Org policy condition/expression. For example: `resource.instanceName.matches("[
161
+ # production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
162
+ # The max length of the condition is 1000 characters.
163
+ # Corresponds to the JSON property `condition`
164
+ # @return [String]
165
+ attr_accessor :condition
166
+
167
+ # All the operations being applied for this constraint.
168
+ # Corresponds to the JSON property `methodTypes`
169
+ # @return [Array<String>]
170
+ attr_accessor :method_types
171
+
172
+ # Stores Structure of parameters used by Constraint condition. Key of map
173
+ # represents name of the parameter.
174
+ # Corresponds to the JSON property `parameters`
175
+ # @return [Hash<String,Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>]
176
+ attr_accessor :parameters
177
+
178
+ # The resource instance type on which this policy applies. Format will be of the
179
+ # form : `/` Example: * `compute.googleapis.com/Instance`.
180
+ # Corresponds to the JSON property `resourceTypes`
181
+ # @return [Array<String>]
182
+ attr_accessor :resource_types
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @action_type = args[:action_type] if args.key?(:action_type)
191
+ @condition = args[:condition] if args.key?(:condition)
192
+ @method_types = args[:method_types] if args.key?(:method_types)
193
+ @parameters = args[:parameters] if args.key?(:parameters)
194
+ @resource_types = args[:resource_types] if args.key?(:resource_types)
195
+ end
196
+ end
197
+
198
+ # Defines a parameter structure.
199
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # Sets the value of the parameter in an assignment if no value is given.
203
+ # Corresponds to the JSON property `defaultValue`
204
+ # @return [Object]
205
+ attr_accessor :default_value
206
+
207
+ # Determines the parameter’s value structure. For example, LIST can be specified
208
+ # by defining type : LIST, and item type as : STRING.
209
+ # Corresponds to the JSON property `item`
210
+ # @return [String]
211
+ attr_accessor :item
212
+
213
+ # Defines Medata structure.
214
+ # Corresponds to the JSON property `metadata`
215
+ # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata]
216
+ attr_accessor :metadata
217
+
218
+ # Type of the parameter.
219
+ # Corresponds to the JSON property `type`
220
+ # @return [String]
221
+ attr_accessor :type
222
+
223
+ # Provides a CEL expression to specify the acceptable parameter values during
224
+ # assignment. For example, parameterName in ("parameterValue1", "parameterValue2"
225
+ # )
226
+ # Corresponds to the JSON property `validValuesExpr`
227
+ # @return [String]
228
+ attr_accessor :valid_values_expr
229
+
230
+ def initialize(**args)
231
+ update!(**args)
232
+ end
233
+
234
+ # Update properties of this object
235
+ def update!(**args)
236
+ @default_value = args[:default_value] if args.key?(:default_value)
237
+ @item = args[:item] if args.key?(:item)
238
+ @metadata = args[:metadata] if args.key?(:metadata)
239
+ @type = args[:type] if args.key?(:type)
240
+ @valid_values_expr = args[:valid_values_expr] if args.key?(:valid_values_expr)
241
+ end
242
+ end
243
+
244
+ # Defines Medata structure.
245
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
246
+ include Google::Apis::Core::Hashable
247
+
248
+ # Detailed description of what this `parameter` is and use of it. Mutable.
249
+ # Corresponds to the JSON property `description`
250
+ # @return [String]
251
+ attr_accessor :description
252
+
253
+ def initialize(**args)
254
+ update!(**args)
255
+ end
256
+
257
+ # Update properties of this object
258
+ def update!(**args)
259
+ @description = args[:description] if args.key?(:description)
140
260
  end
141
261
  end
142
262
 
@@ -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.36.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 = "20241021"
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
 
@@ -133,6 +151,39 @@ module Google
133
151
  class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
134
152
  # @private
135
153
  class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :custom_constraint_definition, as: 'customConstraintDefinition', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition::Representation
155
+
156
+ end
157
+ end
158
+
159
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
160
+ # @private
161
+ class Representation < Google::Apis::Core::JsonRepresentation
162
+ property :action_type, as: 'actionType'
163
+ property :condition, as: 'condition'
164
+ collection :method_types, as: 'methodTypes'
165
+ hash :parameters, as: 'parameters', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter::Representation
166
+
167
+ collection :resource_types, as: 'resourceTypes'
168
+ end
169
+ end
170
+
171
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter
172
+ # @private
173
+ class Representation < Google::Apis::Core::JsonRepresentation
174
+ property :default_value, as: 'defaultValue'
175
+ property :item, as: 'item'
176
+ property :metadata, as: 'metadata', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata::Representation
177
+
178
+ property :type, as: 'type'
179
+ property :valid_values_expr, as: 'validValuesExpr'
180
+ end
181
+ end
182
+
183
+ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ property :description, as: 'description'
136
187
  end
137
188
  end
138
189
 
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.36.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-10-27 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.36.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.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Organization Policy API V2