google-cloud-policy_simulator-v1 1.3.0 → 1.4.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 +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +4 -4
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/client.rb +848 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/credentials.rb +47 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/operations.rb +813 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/paths.rb +138 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest/client.rb +794 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest/operations.rb +998 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest/service_stub.rb +326 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest.rb +63 -0
- data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service.rb +66 -0
- data/lib/google/cloud/policy_simulator/v1/rest.rb +2 -1
- data/lib/google/cloud/policy_simulator/v1/simulator/rest/operations.rb +42 -0
- data/lib/google/cloud/policy_simulator/v1/version.rb +1 -1
- data/lib/google/cloud/policy_simulator/v1.rb +3 -2
- data/lib/google/cloud/policysimulator/v1/explanations_pb.rb +1 -1
- data/lib/google/cloud/policysimulator/v1/orgpolicy_pb.rb +70 -0
- data/lib/google/cloud/policysimulator/v1/orgpolicy_services_pb.rb +76 -0
- data/lib/google/cloud/policysimulator/v1/simulator_pb.rb +1 -1
- data/proto_docs/google/cloud/orgpolicy/v2/constraint.rb +370 -0
- data/proto_docs/google/cloud/orgpolicy/v2/orgpolicy.rb +454 -0
- data/proto_docs/google/cloud/policysimulator/v1/explanations.rb +3 -3
- data/proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb +380 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- metadata +32 -2
@@ -0,0 +1,454 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module OrgPolicy
|
23
|
+
module V2
|
24
|
+
# Defines an organization policy which is used to specify constraints
|
25
|
+
# for configurations of Google Cloud resources.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# Immutable. The resource name of the policy. Must be one of the following
|
29
|
+
# forms, where `constraint_name` is the name of the constraint which this
|
30
|
+
# policy configures:
|
31
|
+
#
|
32
|
+
# * `projects/{project_number}/policies/{constraint_name}`
|
33
|
+
# * `folders/{folder_id}/policies/{constraint_name}`
|
34
|
+
# * `organizations/{organization_id}/policies/{constraint_name}`
|
35
|
+
#
|
36
|
+
# For example, `projects/123/policies/compute.disableSerialPortAccess`.
|
37
|
+
#
|
38
|
+
# Note: `projects/{project_id}/policies/{constraint_name}` is also an
|
39
|
+
# acceptable name for API requests, but responses will return the name using
|
40
|
+
# the equivalent project number.
|
41
|
+
# @!attribute [rw] spec
|
42
|
+
# @return [::Google::Cloud::OrgPolicy::V2::PolicySpec]
|
43
|
+
# Basic information about the organization policy.
|
44
|
+
# @!attribute [rw] alternate
|
45
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
46
|
+
# @return [::Google::Cloud::OrgPolicy::V2::AlternatePolicySpec]
|
47
|
+
# Deprecated.
|
48
|
+
# @!attribute [rw] dry_run_spec
|
49
|
+
# @return [::Google::Cloud::OrgPolicy::V2::PolicySpec]
|
50
|
+
# Dry-run policy.
|
51
|
+
# Audit-only policy, can be used to monitor how the policy would have
|
52
|
+
# impacted the existing and future resources if it's enforced.
|
53
|
+
# @!attribute [rw] etag
|
54
|
+
# @return [::String]
|
55
|
+
# Optional. An opaque tag indicating the current state of the policy, used
|
56
|
+
# for concurrency control. This 'etag' is computed by the server based on the
|
57
|
+
# value of other fields, and may be sent on update and delete requests to
|
58
|
+
# ensure the client has an up-to-date value before proceeding.
|
59
|
+
class Policy
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
65
|
+
# The PolicySpec here is specific for dry-run.
|
66
|
+
# @!attribute [rw] launch
|
67
|
+
# @return [::String]
|
68
|
+
# Reference to the launch that will be used while audit logging and to
|
69
|
+
# control the launch.
|
70
|
+
# Should be set only in the alternate policy.
|
71
|
+
# @!attribute [rw] spec
|
72
|
+
# @return [::Google::Cloud::OrgPolicy::V2::PolicySpec]
|
73
|
+
# Specify constraint for configurations of Google Cloud resources.
|
74
|
+
class AlternatePolicySpec
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
|
79
|
+
# Defines a Google Cloud policy specification which is used to specify
|
80
|
+
# constraints for configurations of Google Cloud resources.
|
81
|
+
# @!attribute [rw] etag
|
82
|
+
# @return [::String]
|
83
|
+
# An opaque tag indicating the current version of the policySpec, used for
|
84
|
+
# concurrency control.
|
85
|
+
#
|
86
|
+
# This field is ignored if used in a `CreatePolicy` request.
|
87
|
+
#
|
88
|
+
# When the policy is returned from either a `GetPolicy` or a
|
89
|
+
# `ListPolicies` request, this `etag` indicates the version of the
|
90
|
+
# current policySpec to use when executing a read-modify-write loop.
|
91
|
+
#
|
92
|
+
# When the policy is returned from a `GetEffectivePolicy` request, the
|
93
|
+
# `etag` will be unset.
|
94
|
+
# @!attribute [r] update_time
|
95
|
+
# @return [::Google::Protobuf::Timestamp]
|
96
|
+
# Output only. The time stamp this was previously updated. This
|
97
|
+
# represents the last time a call to `CreatePolicy` or `UpdatePolicy` was
|
98
|
+
# made for that policy.
|
99
|
+
# @!attribute [rw] rules
|
100
|
+
# @return [::Array<::Google::Cloud::OrgPolicy::V2::PolicySpec::PolicyRule>]
|
101
|
+
# In policies for boolean constraints, the following requirements apply:
|
102
|
+
#
|
103
|
+
# - There must be one and only one policy rule where condition is unset.
|
104
|
+
# - Boolean policy rules with conditions must set `enforced` to the
|
105
|
+
# opposite of the policy rule without a condition.
|
106
|
+
# - During policy evaluation, policy rules with conditions that are
|
107
|
+
# true for a target resource take precedence.
|
108
|
+
# @!attribute [rw] inherit_from_parent
|
109
|
+
# @return [::Boolean]
|
110
|
+
# Determines the inheritance behavior for this policy.
|
111
|
+
#
|
112
|
+
# If `inherit_from_parent` is true, policy rules set higher up in the
|
113
|
+
# hierarchy (up to the closest root) are inherited and present in the
|
114
|
+
# effective policy. If it is false, then no rules are inherited, and this
|
115
|
+
# policy becomes the new root for evaluation.
|
116
|
+
# This field can be set only for policies which configure list constraints.
|
117
|
+
# @!attribute [rw] reset
|
118
|
+
# @return [::Boolean]
|
119
|
+
# Ignores policies set above this resource and restores the
|
120
|
+
# `constraint_default` enforcement behavior of the specific constraint at
|
121
|
+
# this resource.
|
122
|
+
# This field can be set in policies for either list or boolean
|
123
|
+
# constraints. If set, `rules` must be empty and `inherit_from_parent`
|
124
|
+
# must be set to false.
|
125
|
+
class PolicySpec
|
126
|
+
include ::Google::Protobuf::MessageExts
|
127
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
128
|
+
|
129
|
+
# A rule used to express this policy.
|
130
|
+
# @!attribute [rw] values
|
131
|
+
# @return [::Google::Cloud::OrgPolicy::V2::PolicySpec::PolicyRule::StringValues]
|
132
|
+
# List of values to be used for this policy rule. This field can be set
|
133
|
+
# only in policies for list constraints.
|
134
|
+
#
|
135
|
+
# Note: The following fields are mutually exclusive: `values`, `allow_all`, `deny_all`, `enforce`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
136
|
+
# @!attribute [rw] allow_all
|
137
|
+
# @return [::Boolean]
|
138
|
+
# Setting this to true means that all values are allowed. This field can
|
139
|
+
# be set only in policies for list constraints.
|
140
|
+
#
|
141
|
+
# Note: The following fields are mutually exclusive: `allow_all`, `values`, `deny_all`, `enforce`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
142
|
+
# @!attribute [rw] deny_all
|
143
|
+
# @return [::Boolean]
|
144
|
+
# Setting this to true means that all values are denied. This field can
|
145
|
+
# be set only in policies for list constraints.
|
146
|
+
#
|
147
|
+
# Note: The following fields are mutually exclusive: `deny_all`, `values`, `allow_all`, `enforce`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
148
|
+
# @!attribute [rw] enforce
|
149
|
+
# @return [::Boolean]
|
150
|
+
# If `true`, then the policy is enforced. If `false`, then any
|
151
|
+
# configuration is acceptable.
|
152
|
+
# This field can be set only in policies for boolean constraints.
|
153
|
+
#
|
154
|
+
# Note: The following fields are mutually exclusive: `enforce`, `values`, `allow_all`, `deny_all`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
155
|
+
# @!attribute [rw] condition
|
156
|
+
# @return [::Google::Type::Expr]
|
157
|
+
# A condition which determines whether this rule is used
|
158
|
+
# in the evaluation of the policy. When set, the `expression` field in
|
159
|
+
# the `Expr' must include from 1 to 10 subexpressions, joined by the "||"
|
160
|
+
# or "&&" operators. Each subexpression must be of the form
|
161
|
+
# "resource.matchTag('<ORG_ID>/tag_key_short_name,
|
162
|
+
# 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id',
|
163
|
+
# 'tagValues/value_id')". where key_name and value_name are the resource
|
164
|
+
# names for Label Keys and Values. These names are available from the Tag
|
165
|
+
# Manager Service. An example expression is:
|
166
|
+
# "resource.matchTag('123456789/environment,
|
167
|
+
# 'prod')". or "resource.matchTagId('tagKeys/123',
|
168
|
+
# 'tagValues/456')".
|
169
|
+
# @!attribute [rw] parameters
|
170
|
+
# @return [::Google::Protobuf::Struct]
|
171
|
+
# Optional. Required for managed constraints if parameters are defined.
|
172
|
+
# Passes parameter values when policy enforcement is enabled. Ensure that
|
173
|
+
# parameter value types match those defined in the constraint definition.
|
174
|
+
# For example:
|
175
|
+
# {
|
176
|
+
# "allowedLocations" : ["us-east1", "us-west1"],
|
177
|
+
# "allowAll" : true
|
178
|
+
# }
|
179
|
+
class PolicyRule
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
182
|
+
|
183
|
+
# A message that holds specific allowed and denied values.
|
184
|
+
# This message can define specific values and subtrees of the Resource
|
185
|
+
# Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
|
186
|
+
# are allowed or denied. This is achieved by using the `under:` and
|
187
|
+
# optional `is:` prefixes.
|
188
|
+
# The `under:` prefix is used to denote resource subtree values.
|
189
|
+
# The `is:` prefix is used to denote specific values, and is required only
|
190
|
+
# if the value contains a ":". Values prefixed with "is:" are treated the
|
191
|
+
# same as values with no prefix.
|
192
|
+
# Ancestry subtrees must be in one of the following formats:
|
193
|
+
#
|
194
|
+
# - `projects/<project-id>` (for example, `projects/tokyo-rain-123`)
|
195
|
+
# - `folders/<folder-id>` (for example, `folders/1234`)
|
196
|
+
# - `organizations/<organization-id>` (for example, `organizations/1234`)
|
197
|
+
#
|
198
|
+
# The `supports_under` field of the associated `Constraint` defines
|
199
|
+
# whether ancestry prefixes can be used.
|
200
|
+
# @!attribute [rw] allowed_values
|
201
|
+
# @return [::Array<::String>]
|
202
|
+
# List of values allowed at this resource.
|
203
|
+
# @!attribute [rw] denied_values
|
204
|
+
# @return [::Array<::String>]
|
205
|
+
# List of values denied at this resource.
|
206
|
+
class StringValues
|
207
|
+
include ::Google::Protobuf::MessageExts
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# The request sent to the [ListConstraints]
|
214
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
|
215
|
+
# @!attribute [rw] parent
|
216
|
+
# @return [::String]
|
217
|
+
# Required. The Google Cloud resource that parents the constraint. Must be in
|
218
|
+
# one of the following forms:
|
219
|
+
#
|
220
|
+
# * `projects/{project_number}`
|
221
|
+
# * `projects/{project_id}`
|
222
|
+
# * `folders/{folder_id}`
|
223
|
+
# * `organizations/{organization_id}`
|
224
|
+
# @!attribute [rw] page_size
|
225
|
+
# @return [::Integer]
|
226
|
+
# Size of the pages to be returned. This is currently unsupported and will
|
227
|
+
# be ignored. The server may at any point start using this field to limit
|
228
|
+
# page size.
|
229
|
+
# @!attribute [rw] page_token
|
230
|
+
# @return [::String]
|
231
|
+
# Page token used to retrieve the next page. This is currently unsupported
|
232
|
+
# and will be ignored. The server may at any point start using this field.
|
233
|
+
class ListConstraintsRequest
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
237
|
+
|
238
|
+
# The response returned from the [ListConstraints]
|
239
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
|
240
|
+
# @!attribute [rw] constraints
|
241
|
+
# @return [::Array<::Google::Cloud::OrgPolicy::V2::Constraint>]
|
242
|
+
# The collection of constraints that are available on the targeted resource.
|
243
|
+
# @!attribute [rw] next_page_token
|
244
|
+
# @return [::String]
|
245
|
+
# Page token used to retrieve the next page. This is currently not used.
|
246
|
+
class ListConstraintsResponse
|
247
|
+
include ::Google::Protobuf::MessageExts
|
248
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
249
|
+
end
|
250
|
+
|
251
|
+
# The request sent to the [ListPolicies]
|
252
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method.
|
253
|
+
# @!attribute [rw] parent
|
254
|
+
# @return [::String]
|
255
|
+
# Required. The target Google Cloud resource that parents the set of
|
256
|
+
# constraints and policies that will be returned from this call. Must be in
|
257
|
+
# one of the following forms:
|
258
|
+
#
|
259
|
+
# * `projects/{project_number}`
|
260
|
+
# * `projects/{project_id}`
|
261
|
+
# * `folders/{folder_id}`
|
262
|
+
# * `organizations/{organization_id}`
|
263
|
+
# @!attribute [rw] page_size
|
264
|
+
# @return [::Integer]
|
265
|
+
# Size of the pages to be returned. This is currently unsupported and will
|
266
|
+
# be ignored. The server may at any point start using this field to limit
|
267
|
+
# page size.
|
268
|
+
# @!attribute [rw] page_token
|
269
|
+
# @return [::String]
|
270
|
+
# Page token used to retrieve the next page. This is currently unsupported
|
271
|
+
# and will be ignored. The server may at any point start using this field.
|
272
|
+
class ListPoliciesRequest
|
273
|
+
include ::Google::Protobuf::MessageExts
|
274
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
275
|
+
end
|
276
|
+
|
277
|
+
# The response returned from the [ListPolicies]
|
278
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty
|
279
|
+
# if no policies are set on the resource.
|
280
|
+
# @!attribute [rw] policies
|
281
|
+
# @return [::Array<::Google::Cloud::OrgPolicy::V2::Policy>]
|
282
|
+
# All policies that exist on the resource. It will be empty if no
|
283
|
+
# policies are set.
|
284
|
+
# @!attribute [rw] next_page_token
|
285
|
+
# @return [::String]
|
286
|
+
# Page token used to retrieve the next page. This is currently not used, but
|
287
|
+
# the server may at any point start supplying a valid token.
|
288
|
+
class ListPoliciesResponse
|
289
|
+
include ::Google::Protobuf::MessageExts
|
290
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
291
|
+
end
|
292
|
+
|
293
|
+
# The request sent to the [GetPolicy]
|
294
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method.
|
295
|
+
# @!attribute [rw] name
|
296
|
+
# @return [::String]
|
297
|
+
# Required. Resource name of the policy. See
|
298
|
+
# {::Google::Cloud::OrgPolicy::V2::Policy Policy} for naming requirements.
|
299
|
+
class GetPolicyRequest
|
300
|
+
include ::Google::Protobuf::MessageExts
|
301
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
302
|
+
end
|
303
|
+
|
304
|
+
# The request sent to the [GetEffectivePolicy]
|
305
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy] method.
|
306
|
+
# @!attribute [rw] name
|
307
|
+
# @return [::String]
|
308
|
+
# Required. The effective policy to compute. See
|
309
|
+
# {::Google::Cloud::OrgPolicy::V2::Policy Policy} for naming requirements.
|
310
|
+
class GetEffectivePolicyRequest
|
311
|
+
include ::Google::Protobuf::MessageExts
|
312
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
313
|
+
end
|
314
|
+
|
315
|
+
# The request sent to the [CreatePolicyRequest]
|
316
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.
|
317
|
+
# @!attribute [rw] parent
|
318
|
+
# @return [::String]
|
319
|
+
# Required. The Google Cloud resource that will parent the new policy. Must
|
320
|
+
# be in one of the following forms:
|
321
|
+
#
|
322
|
+
# * `projects/{project_number}`
|
323
|
+
# * `projects/{project_id}`
|
324
|
+
# * `folders/{folder_id}`
|
325
|
+
# * `organizations/{organization_id}`
|
326
|
+
# @!attribute [rw] policy
|
327
|
+
# @return [::Google::Cloud::OrgPolicy::V2::Policy]
|
328
|
+
# Required. Policy to create.
|
329
|
+
class CreatePolicyRequest
|
330
|
+
include ::Google::Protobuf::MessageExts
|
331
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
332
|
+
end
|
333
|
+
|
334
|
+
# The request sent to the [UpdatePolicyRequest]
|
335
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.
|
336
|
+
# @!attribute [rw] policy
|
337
|
+
# @return [::Google::Cloud::OrgPolicy::V2::Policy]
|
338
|
+
# Required. Policy to update.
|
339
|
+
# @!attribute [rw] update_mask
|
340
|
+
# @return [::Google::Protobuf::FieldMask]
|
341
|
+
# Field mask used to specify the fields to be overwritten in the policy
|
342
|
+
# by the set. The fields specified in the update_mask are relative to the
|
343
|
+
# policy, not the full request.
|
344
|
+
class UpdatePolicyRequest
|
345
|
+
include ::Google::Protobuf::MessageExts
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
347
|
+
end
|
348
|
+
|
349
|
+
# The request sent to the [DeletePolicy]
|
350
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method.
|
351
|
+
# @!attribute [rw] name
|
352
|
+
# @return [::String]
|
353
|
+
# Required. Name of the policy to delete.
|
354
|
+
# See the policy entry for naming rules.
|
355
|
+
# @!attribute [rw] etag
|
356
|
+
# @return [::String]
|
357
|
+
# Optional. The current etag of policy. If an etag is provided and does not
|
358
|
+
# match the current etag of the policy, deletion will be blocked and an
|
359
|
+
# ABORTED error will be returned.
|
360
|
+
class DeletePolicyRequest
|
361
|
+
include ::Google::Protobuf::MessageExts
|
362
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
363
|
+
end
|
364
|
+
|
365
|
+
# The request sent to the [CreateCustomConstraintRequest]
|
366
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint] method.
|
367
|
+
# @!attribute [rw] parent
|
368
|
+
# @return [::String]
|
369
|
+
# Required. Must be in the following form:
|
370
|
+
#
|
371
|
+
# * `organizations/{organization_id}`
|
372
|
+
# @!attribute [rw] custom_constraint
|
373
|
+
# @return [::Google::Cloud::OrgPolicy::V2::CustomConstraint]
|
374
|
+
# Required. Custom constraint to create.
|
375
|
+
class CreateCustomConstraintRequest
|
376
|
+
include ::Google::Protobuf::MessageExts
|
377
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
378
|
+
end
|
379
|
+
|
380
|
+
# The request sent to the [GetCustomConstraint]
|
381
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint] method.
|
382
|
+
# @!attribute [rw] name
|
383
|
+
# @return [::String]
|
384
|
+
# Required. Resource name of the custom or managed constraint. See the custom
|
385
|
+
# constraint entry for naming requirements.
|
386
|
+
class GetCustomConstraintRequest
|
387
|
+
include ::Google::Protobuf::MessageExts
|
388
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
389
|
+
end
|
390
|
+
|
391
|
+
# The request sent to the [ListCustomConstraints]
|
392
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method.
|
393
|
+
# @!attribute [rw] parent
|
394
|
+
# @return [::String]
|
395
|
+
# Required. The target Google Cloud resource that parents the set of custom
|
396
|
+
# constraints that will be returned from this call. Must be in one of the
|
397
|
+
# following forms:
|
398
|
+
#
|
399
|
+
# * `organizations/{organization_id}`
|
400
|
+
# @!attribute [rw] page_size
|
401
|
+
# @return [::Integer]
|
402
|
+
# Size of the pages to be returned. This is currently unsupported and will
|
403
|
+
# be ignored. The server may at any point start using this field to limit
|
404
|
+
# page size.
|
405
|
+
# @!attribute [rw] page_token
|
406
|
+
# @return [::String]
|
407
|
+
# Page token used to retrieve the next page. This is currently unsupported
|
408
|
+
# and will be ignored. The server may at any point start using this field.
|
409
|
+
class ListCustomConstraintsRequest
|
410
|
+
include ::Google::Protobuf::MessageExts
|
411
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
412
|
+
end
|
413
|
+
|
414
|
+
# The response returned from the [ListCustomConstraints]
|
415
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method. It will
|
416
|
+
# be empty if no custom or managed constraints are set on the organization
|
417
|
+
# resource.
|
418
|
+
# @!attribute [rw] custom_constraints
|
419
|
+
# @return [::Array<::Google::Cloud::OrgPolicy::V2::CustomConstraint>]
|
420
|
+
# All custom and managed constraints that exist on the organization resource.
|
421
|
+
# It will be empty if no custom constraints are set.
|
422
|
+
# @!attribute [rw] next_page_token
|
423
|
+
# @return [::String]
|
424
|
+
# Page token used to retrieve the next page. This is currently not used, but
|
425
|
+
# the server may at any point start supplying a valid token.
|
426
|
+
class ListCustomConstraintsResponse
|
427
|
+
include ::Google::Protobuf::MessageExts
|
428
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
429
|
+
end
|
430
|
+
|
431
|
+
# The request sent to the [UpdateCustomConstraintRequest]
|
432
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint] method.
|
433
|
+
# @!attribute [rw] custom_constraint
|
434
|
+
# @return [::Google::Cloud::OrgPolicy::V2::CustomConstraint]
|
435
|
+
# Required. `CustomConstraint` to update.
|
436
|
+
class UpdateCustomConstraintRequest
|
437
|
+
include ::Google::Protobuf::MessageExts
|
438
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
439
|
+
end
|
440
|
+
|
441
|
+
# The request sent to the [DeleteCustomConstraint]
|
442
|
+
# [google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint] method.
|
443
|
+
# @!attribute [rw] name
|
444
|
+
# @return [::String]
|
445
|
+
# Required. Name of the custom constraint to delete.
|
446
|
+
# See the custom constraint entry for naming rules.
|
447
|
+
class DeleteCustomConstraintRequest
|
448
|
+
include ::Google::Protobuf::MessageExts
|
449
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
450
|
+
end
|
451
|
+
end
|
452
|
+
end
|
453
|
+
end
|
454
|
+
end
|
@@ -64,7 +64,7 @@ module Google
|
|
64
64
|
# permission for the resource. There might be another policy that overrides
|
65
65
|
# this policy. To determine whether the principal actually has the
|
66
66
|
# permission, use the `access` field in the
|
67
|
-
# [TroubleshootIamPolicyResponse][
|
67
|
+
# [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
|
68
68
|
# @!attribute [rw] full_resource_name
|
69
69
|
# @return [::String]
|
70
70
|
# The full resource name that identifies the resource. For example,
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
# @!attribute [rw] relevance
|
95
95
|
# @return [::Google::Cloud::PolicySimulator::V1::HeuristicRelevance]
|
96
96
|
# The relevance of this policy to the overall determination in the
|
97
|
-
# [TroubleshootIamPolicyResponse][
|
97
|
+
# [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
|
98
98
|
#
|
99
99
|
# If the user who created the
|
100
100
|
# {::Google::Cloud::PolicySimulator::V1::Replay Replay} does not have
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
# permission for the resource. There might be another binding that overrides
|
116
116
|
# this binding. To determine whether the principal actually has the
|
117
117
|
# permission, use the `access` field in the
|
118
|
-
# [TroubleshootIamPolicyResponse][
|
118
|
+
# [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.v3.TroubleshootIamPolicyResponse].
|
119
119
|
# @!attribute [rw] role
|
120
120
|
# @return [::String]
|
121
121
|
# The role that this binding grants. For example,
|