google-apis-orgpolicy_v2 0.12.0 → 0.15.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: f63c0eebe65aa8a12f09eb1b46b57ec920f340b5b13cc6bac3ceecba00aac589
4
- data.tar.gz: '096770bc86f9fa2136ca0d03944705ff059d2b25a9c8a3811e0a850eaa6d9460'
3
+ metadata.gz: 0abe5ceb74d6945cd0938aed47143cabbe02fdc7698c6b9d639a16d757032324
4
+ data.tar.gz: 4d8005c9e5abf3499626aab0aabf4c4225ca25dcd102a1423d91d47326371c1d
5
5
  SHA512:
6
- metadata.gz: 4e8331ebedd0e889c55214474ee5d8d22641f07765610684d10d3dc1c19872380704c9214ec781d6c63d0d9c9e312c9171d4f6006e1e12db9e9e6546b70d5e30
7
- data.tar.gz: 5dc5936e4689d08f0e2beba036c271d58c7b2b67dce22ecea4d2e47f78684f232fd210453bf87e88c778e6bcb5cc86a8e67aa04cc538cb77f4a0f366c2d21f39
6
+ metadata.gz: ab917d6975adb40ad2edf9b643344a0ad5d06cc2ec7142faa57f38e6a0e3609374162e1dc2e3b321c870782c9ef446c05ae4d01c2ec42bf938b8268cfb9e0b3e
7
+ data.tar.gz: f1f7d2336e3e2e7acb508f70dcf5ef29dde3f2585f6581af63cea075b56644c525c210509ed3f462d921121c545450ad684a3b18fce90fb450cb3522e152778d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.15.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2022-03-22)
8
+
9
+ * Regenerated from discovery document revision 20220319
10
+
11
+ ### v0.13.0 (2022-02-01)
12
+
13
+ * Regenerated from discovery document revision 20220129
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.12.0 (2022-01-11)
4
17
 
5
18
  * 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
@@ -498,8 +435,7 @@ module Google
498
435
  # A generic empty message that you can re-use to avoid defining duplicated empty
499
436
  # messages in your APIs. A typical example is to use it as the request or the
500
437
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
501
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
502
- # `Empty` is empty JSON object ````.
438
+ # protobuf.Empty) returns (google.protobuf.Empty); `
503
439
  class GoogleProtobufEmpty
504
440
  include Google::Apis::Core::Hashable
505
441
 
@@ -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.15.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 = "20220319"
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.15.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-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.15.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.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Organization Policy API V2