google-apis-orgpolicy_v2 0.12.0 → 0.13.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: f63c0eebe65aa8a12f09eb1b46b57ec920f340b5b13cc6bac3ceecba00aac589
4
- data.tar.gz: '096770bc86f9fa2136ca0d03944705ff059d2b25a9c8a3811e0a850eaa6d9460'
3
+ metadata.gz: d079407cdbdba57c17d784e8871e67a943106ac65c7b905e9977bc5e2ec849e6
4
+ data.tar.gz: 88f74782381b9a2884c657c2dbeaab393fd3839e92e4bbd8996da3b8792a37a2
5
5
  SHA512:
6
- metadata.gz: 4e8331ebedd0e889c55214474ee5d8d22641f07765610684d10d3dc1c19872380704c9214ec781d6c63d0d9c9e312c9171d4f6006e1e12db9e9e6546b70d5e30
7
- data.tar.gz: 5dc5936e4689d08f0e2beba036c271d58c7b2b67dce22ecea4d2e47f78684f232fd210453bf87e88c778e6bcb5cc86a8e67aa04cc538cb77f4a0f366c2d21f39
6
+ metadata.gz: c196e3697bcb8bc7be9d5586fbc56ac46e3685fa12a6c578d841dba033bfaf1dce6dbf006cfc809ebcd7d2955e686fffd1eebd1c1032d3e584f82a76773a1156
7
+ data.tar.gz: 32922b3ba111e5578f5dfc0d16c8fa2d5cfdc3e4c17f7296179cfbb98ec4c2950d92a02def8407f123c2355a0e780b72e21de414a6d67e312447556c0d3ffa48
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.13.0 (2022-02-01)
4
+
5
+ * Regenerated from discovery document revision 20220129
6
+ * Regenerated using generator version 0.4.1
7
+
3
8
  ### v0.12.0 (2022-01-11)
4
9
 
5
10
  * Regenerated from discovery document revision 20220107
@@ -165,69 +165,6 @@ module Google
165
165
  end
166
166
  end
167
167
 
168
- # A custom constraint defined by customers which can *only* be applied to the
169
- # given resource types and organization. By creating a custom constraint,
170
- # customers can applied policies of this custom constraint. *Creating a custom
171
- # constraint itself does NOT apply any policy enforcement*.
172
- class GoogleCloudOrgpolicyV2CustomConstraint
173
- include Google::Apis::Core::Hashable
174
-
175
- # Allow or deny type.
176
- # Corresponds to the JSON property `actionType`
177
- # @return [String]
178
- attr_accessor :action_type
179
-
180
- # Org policy condition/expression. For example: `resource.instanceName.matches("[
181
- # production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`
182
- # Corresponds to the JSON property `condition`
183
- # @return [String]
184
- attr_accessor :condition
185
-
186
- # Detailed information about this custom policy constraint.
187
- # Corresponds to the JSON property `description`
188
- # @return [String]
189
- attr_accessor :description
190
-
191
- # One line display name for the UI.
192
- # Corresponds to the JSON property `displayName`
193
- # @return [String]
194
- attr_accessor :display_name
195
-
196
- # All the operations being applied for this constraint.
197
- # Corresponds to the JSON property `methodTypes`
198
- # @return [Array<String>]
199
- attr_accessor :method_types
200
-
201
- # Immutable. Name of the constraint. This is unique within the organization.
202
- # Format of the name should be * `organizations/`organization_id`/
203
- # customConstraints/`custom_constraint_id`` Example : "organizations/123/
204
- # customConstraints/custom.createOnlyE2TypeVms"
205
- # Corresponds to the JSON property `name`
206
- # @return [String]
207
- attr_accessor :name
208
-
209
- # Immutable. The Resource Instance type on which this policy applies to. Format
210
- # will be of the form : "/" Example: * `compute.googleapis.com/Instance`.
211
- # Corresponds to the JSON property `resourceTypes`
212
- # @return [Array<String>]
213
- attr_accessor :resource_types
214
-
215
- def initialize(**args)
216
- update!(**args)
217
- end
218
-
219
- # Update properties of this object
220
- def update!(**args)
221
- @action_type = args[:action_type] if args.key?(:action_type)
222
- @condition = args[:condition] if args.key?(:condition)
223
- @description = args[:description] if args.key?(:description)
224
- @display_name = args[:display_name] if args.key?(:display_name)
225
- @method_types = args[:method_types] if args.key?(:method_types)
226
- @name = args[:name] if args.key?(:name)
227
- @resource_types = args[:resource_types] if args.key?(:resource_types)
228
- end
229
- end
230
-
231
168
  # The response returned from the ListConstraints method.
232
169
  class GoogleCloudOrgpolicyV2ListConstraintsResponse
233
170
  include Google::Apis::Core::Hashable
@@ -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.12.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220107"
25
+ REVISION = "20220129"
26
26
  end
27
27
  end
28
28
  end
@@ -46,12 +46,6 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class GoogleCloudOrgpolicyV2CustomConstraint
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
49
  class GoogleCloudOrgpolicyV2ListConstraintsResponse
56
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
51
 
@@ -137,19 +131,6 @@ module Google
137
131
  end
138
132
  end
139
133
 
140
- class GoogleCloudOrgpolicyV2CustomConstraint
141
- # @private
142
- class Representation < Google::Apis::Core::JsonRepresentation
143
- property :action_type, as: 'actionType'
144
- property :condition, as: 'condition'
145
- property :description, as: 'description'
146
- property :display_name, as: 'displayName'
147
- collection :method_types, as: 'methodTypes'
148
- property :name, as: 'name'
149
- collection :resource_types, as: 'resourceTypes'
150
- end
151
- end
152
-
153
134
  class GoogleCloudOrgpolicyV2ListConstraintsResponse
154
135
  # @private
155
136
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -350,44 +350,6 @@ module Google
350
350
  execute_or_queue_command(command, &block)
351
351
  end
352
352
 
353
- # Updates a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.
354
- # Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy
355
- # will perform a full overwrite of all fields.
356
- # @param [String] name
357
- # Immutable. Name of the constraint. This is unique within the organization.
358
- # Format of the name should be * `organizations/`organization_id`/
359
- # customConstraints/`custom_constraint_id`` Example : "organizations/123/
360
- # customConstraints/custom.createOnlyE2TypeVms"
361
- # @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint] google_cloud_orgpolicy_v2_custom_constraint_object
362
- # @param [String] fields
363
- # Selector specifying which fields to include in a partial response.
364
- # @param [String] quota_user
365
- # Available to use for quota purposes for server-side applications. Can be any
366
- # arbitrary string assigned to a user, but should not exceed 40 characters.
367
- # @param [Google::Apis::RequestOptions] options
368
- # Request-specific options
369
- #
370
- # @yield [result, err] Result & error if block supplied
371
- # @yieldparam result [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint] parsed result object
372
- # @yieldparam err [StandardError] error object if request failed
373
- #
374
- # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint]
375
- #
376
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
- # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def patch_organization_custom_constraint(name, google_cloud_orgpolicy_v2_custom_constraint_object = nil, fields: nil, quota_user: nil, options: nil, &block)
380
- command = make_simple_command(:patch, 'v2/{+name}', options)
381
- command.request_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint::Representation
382
- command.request_object = google_cloud_orgpolicy_v2_custom_constraint_object
383
- command.response_representation = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint::Representation
384
- command.response_class = Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint
385
- command.params['name'] = name unless name.nil?
386
- command.query['fields'] = fields unless fields.nil?
387
- command.query['quotaUser'] = quota_user unless quota_user.nil?
388
- execute_or_queue_command(command, &block)
389
- end
390
-
391
353
  # Creates a Policy. Returns a `google.rpc.Status` with `google.rpc.Code.
392
354
  # NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status`
393
355
  # with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the
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.12.0
4
+ version: 0.13.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-17 00:00:00.000000000 Z
11
+ date: 2022-02-07 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.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.13.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: []