@maxim_mazurok/gapi.client.policysimulator-v1beta 0.0.20250309 → 0.0.20250412
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.
- package/index.d.ts +1 -1029
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://policysimulator.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250412
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,372 +28,6 @@ declare namespace gapi.client {
|
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace policysimulator {
|
|
31
|
-
interface GoogleCloudOrgpolicyV2AlternatePolicySpec {
|
|
32
|
-
/** Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy. */
|
|
33
|
-
launch?: string;
|
|
34
|
-
/** Specify constraint for configurations of Google Cloud resources. */
|
|
35
|
-
spec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
36
|
-
}
|
|
37
|
-
interface GoogleCloudOrgpolicyV2CustomConstraint {
|
|
38
|
-
/** Allow or deny type. */
|
|
39
|
-
actionType?: string;
|
|
40
|
-
/** A Common Expression Language (CEL) condition which is used in the evaluation of the constraint. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters. */
|
|
41
|
-
condition?: string;
|
|
42
|
-
/** Detailed information about this custom policy constraint. The max length of the description is 2000 characters. */
|
|
43
|
-
description?: string;
|
|
44
|
-
/** One line display name for the UI. The max length of the display_name is 200 characters. */
|
|
45
|
-
displayName?: string;
|
|
46
|
-
/** All the operations being applied for this constraint. */
|
|
47
|
-
methodTypes?: string[];
|
|
48
|
-
/** Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted. */
|
|
49
|
-
name?: string;
|
|
50
|
-
/** Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`. */
|
|
51
|
-
resourceTypes?: string[];
|
|
52
|
-
/** Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called. */
|
|
53
|
-
updateTime?: string;
|
|
54
|
-
}
|
|
55
|
-
interface GoogleCloudOrgpolicyV2Policy {
|
|
56
|
-
/** Deprecated. */
|
|
57
|
-
alternate?: GoogleCloudOrgpolicyV2AlternatePolicySpec;
|
|
58
|
-
/** Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced. */
|
|
59
|
-
dryRunSpec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
60
|
-
/** Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This 'etag' is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
|
|
61
|
-
etag?: string;
|
|
62
|
-
/** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
|
|
63
|
-
name?: string;
|
|
64
|
-
/** Basic information about the organization policy. */
|
|
65
|
-
spec?: GoogleCloudOrgpolicyV2PolicySpec;
|
|
66
|
-
}
|
|
67
|
-
interface GoogleCloudOrgpolicyV2PolicySpec {
|
|
68
|
-
/** An opaque tag indicating the current version of the policySpec, used for concurrency control. This field is ignored if used in a `CreatePolicy` request. When the policy is returned from either a `GetPolicy` or a `ListPolicies` request, this `etag` indicates the version of the current policySpec to use when executing a read-modify-write loop. When the policy is returned from a `GetEffectivePolicy` request, the `etag` will be unset. */
|
|
69
|
-
etag?: string;
|
|
70
|
-
/** Determines the inheritance behavior for this policy. If `inherit_from_parent` is true, policy rules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this policy becomes the new root for evaluation. This field can be set only for policies which configure list constraints. */
|
|
71
|
-
inheritFromParent?: boolean;
|
|
72
|
-
/** Ignores policies set above this resource and restores the `constraint_default` enforcement behavior of the specific constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false. */
|
|
73
|
-
reset?: boolean;
|
|
74
|
-
/** In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set `enforced` to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. */
|
|
75
|
-
rules?: GoogleCloudOrgpolicyV2PolicySpecPolicyRule[];
|
|
76
|
-
/** Output only. The time stamp this was previously updated. This represents the last time a call to `CreatePolicy` or `UpdatePolicy` was made for that policy. */
|
|
77
|
-
updateTime?: string;
|
|
78
|
-
}
|
|
79
|
-
interface GoogleCloudOrgpolicyV2PolicySpecPolicyRule {
|
|
80
|
-
/** Setting this to true means that all values are allowed. This field can be set only in policies for list constraints. */
|
|
81
|
-
allowAll?: boolean;
|
|
82
|
-
/** A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')". */
|
|
83
|
-
condition?: GoogleTypeExpr;
|
|
84
|
-
/** Setting this to true means that all values are denied. This field can be set only in policies for list constraints. */
|
|
85
|
-
denyAll?: boolean;
|
|
86
|
-
/** If `true`, then the policy is enforced. If `false`, then any configuration is acceptable. This field can be set only in policies for boolean constraints. */
|
|
87
|
-
enforce?: boolean;
|
|
88
|
-
/** Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true } */
|
|
89
|
-
parameters?: {[P in string]: any};
|
|
90
|
-
/** List of values to be used for this policy rule. This field can be set only in policies for list constraints. */
|
|
91
|
-
values?: GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues;
|
|
92
|
-
}
|
|
93
|
-
interface GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues {
|
|
94
|
-
/** List of values allowed at this resource. */
|
|
95
|
-
allowedValues?: string[];
|
|
96
|
-
/** List of values denied at this resource. */
|
|
97
|
-
deniedValues?: string[];
|
|
98
|
-
}
|
|
99
|
-
interface GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata {
|
|
100
|
-
/** Time when the request was received. */
|
|
101
|
-
requestTime?: string;
|
|
102
|
-
/** Total number of resources that need scanning. Should equal resource_scanned + resources_pending */
|
|
103
|
-
resourcesFound?: number;
|
|
104
|
-
/** Number of resources still to scan. */
|
|
105
|
-
resourcesPending?: number;
|
|
106
|
-
/** Number of resources already scanned. */
|
|
107
|
-
resourcesScanned?: number;
|
|
108
|
-
/** Time when the request started processing, i.e., when the state was set to RUNNING. */
|
|
109
|
-
startTime?: string;
|
|
110
|
-
/** Output only. The current state of the operation. */
|
|
111
|
-
state?: string;
|
|
112
|
-
}
|
|
113
|
-
interface GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata {
|
|
114
|
-
/** Time when the request was received. */
|
|
115
|
-
requestTime?: string;
|
|
116
|
-
/** Total number of resources that need scanning. Should equal resource_scanned + resources_pending */
|
|
117
|
-
resourcesFound?: number;
|
|
118
|
-
/** Number of resources still to scan. */
|
|
119
|
-
resourcesPending?: number;
|
|
120
|
-
/** Number of resources already scanned. */
|
|
121
|
-
resourcesScanned?: number;
|
|
122
|
-
/** Time when the request started processing, i.e. when the state was set to RUNNING. */
|
|
123
|
-
startTime?: string;
|
|
124
|
-
/** The current state of the operation. */
|
|
125
|
-
state?: string;
|
|
126
|
-
}
|
|
127
|
-
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay {
|
|
128
|
-
/** Optional. The OrgPolicy CustomConstraint changes to preview violations for. Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated. Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each request evaluates a single constraint. */
|
|
129
|
-
customConstraints?: GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay[];
|
|
130
|
-
/** Optional. The OrgPolicy changes to preview violations for. Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated. */
|
|
131
|
-
policies?: GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay[];
|
|
132
|
-
}
|
|
133
|
-
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay {
|
|
134
|
-
/** Optional. The new or updated custom constraint. */
|
|
135
|
-
customConstraint?: GoogleCloudOrgpolicyV2CustomConstraint;
|
|
136
|
-
/** Optional. Resource the constraint is attached to. Example: "organization/987654" */
|
|
137
|
-
customConstraintParent?: string;
|
|
138
|
-
}
|
|
139
|
-
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay {
|
|
140
|
-
/** Optional. The new or updated OrgPolicy. */
|
|
141
|
-
policy?: GoogleCloudOrgpolicyV2Policy;
|
|
142
|
-
/** Optional. The parent of the policy we are attaching to. Example: "projects/123456" */
|
|
143
|
-
policyParent?: string;
|
|
144
|
-
}
|
|
145
|
-
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview {
|
|
146
|
-
/** Output only. Time when this `OrgPolicyViolationsPreview` was created. */
|
|
147
|
-
createTime?: string;
|
|
148
|
-
/** Output only. The names of the constraints against which all `OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains the name of the configured custom constraint, applicable to the specified policies. Otherwise it contains the name of the constraint specified in `CustomConstraintOverlay`. Format: `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` */
|
|
149
|
-
customConstraints?: string[];
|
|
150
|
-
/** Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the following format: `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example: `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f` */
|
|
151
|
-
name?: string;
|
|
152
|
-
/** Required. The proposed changes we are previewing violations for. */
|
|
153
|
-
overlay?: GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay;
|
|
154
|
-
/** Output only. A summary of the state of all resources scanned for compliance with the changed OrgPolicy. */
|
|
155
|
-
resourceCounts?: GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts;
|
|
156
|
-
/** Output only. The state of the `OrgPolicyViolationsPreview`. */
|
|
157
|
-
state?: string;
|
|
158
|
-
/** Output only. The number of OrgPolicyViolations in this `OrgPolicyViolationsPreview`. This count may differ from `resource_summary.noncompliant_count` because each OrgPolicyViolation is specific to a resource **and** constraint. If there are multiple constraints being evaluated (i.e. multiple policies in the overlay), a single resource may violate multiple constraints. */
|
|
159
|
-
violationsCount?: number;
|
|
160
|
-
}
|
|
161
|
-
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts {
|
|
162
|
-
/** Output only. Number of scanned resources with zero violations. */
|
|
163
|
-
compliant?: number;
|
|
164
|
-
/** Output only. Number of resources that returned an error when scanned. */
|
|
165
|
-
errors?: number;
|
|
166
|
-
/** Output only. Number of scanned resources with at least one violation. */
|
|
167
|
-
noncompliant?: number;
|
|
168
|
-
/** Output only. Number of resources checked for compliance. Must equal: unenforced + noncompliant + compliant + error */
|
|
169
|
-
scanned?: number;
|
|
170
|
-
/** Output only. Number of resources where the constraint was not enforced, i.e. the Policy set `enforced: false` for that resource. */
|
|
171
|
-
unenforced?: number;
|
|
172
|
-
}
|
|
173
|
-
interface GoogleCloudPolicysimulatorV1betaAccessStateDiff {
|
|
174
|
-
/** How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies. */
|
|
175
|
-
accessChange?: string;
|
|
176
|
-
/** The results of evaluating the access tuple under the current (baseline) policies. If the AccessState couldn't be fully evaluated, this field explains why. */
|
|
177
|
-
baseline?: GoogleCloudPolicysimulatorV1betaExplainedAccess;
|
|
178
|
-
/** The results of evaluating the access tuple under the proposed (simulated) policies. If the AccessState couldn't be fully evaluated, this field explains why. */
|
|
179
|
-
simulated?: GoogleCloudPolicysimulatorV1betaExplainedAccess;
|
|
180
|
-
}
|
|
181
|
-
interface GoogleCloudPolicysimulatorV1betaAccessTuple {
|
|
182
|
-
/** Required. The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. */
|
|
183
|
-
fullResourceName?: string;
|
|
184
|
-
/** Required. The IAM permission to check for the specified principal and resource. For a complete list of IAM permissions, see https://cloud.google.com/iam/help/permissions/reference. For a complete list of predefined IAM roles and the permissions in each role, see https://cloud.google.com/iam/help/roles/reference. */
|
|
185
|
-
permission?: string;
|
|
186
|
-
/** Required. The principal whose access you want to check, in the form of the email address that represents that principal. For example, `alice@example.com` or `my-service-account@my-project.iam.gserviceaccount.com`. The principal must be a Google Account or a service account. Other types of principals are not supported. */
|
|
187
|
-
principal?: string;
|
|
188
|
-
}
|
|
189
|
-
interface GoogleCloudPolicysimulatorV1betaBindingExplanation {
|
|
190
|
-
/** Required. Indicates whether _this binding_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another binding that overrides this binding. To determine whether the principal actually has the permission, use the `access` field in the TroubleshootIamPolicyResponse. */
|
|
191
|
-
access?: string;
|
|
192
|
-
/** A condition expression that prevents this binding from granting access unless the expression evaluates to `true`. To learn about IAM Conditions, see https://cloud.google.com/iam/docs/conditions-overview. */
|
|
193
|
-
condition?: GoogleTypeExpr;
|
|
194
|
-
/** Indicates whether each principal in the binding includes the principal specified in the request, either directly or indirectly. Each key identifies a principal in the binding, and each value indicates whether the principal in the binding includes the principal in the request. For example, suppose that a binding includes the following principals: * `user:alice@example.com` * `group:product-eng@example.com` The principal in the replayed access tuple is `user:bob@example.com`. This user is a principal of the group `group:product-eng@example.com`. For the first principal in the binding, the key is `user:alice@example.com`, and the `membership` field in the value is set to `MEMBERSHIP_NOT_INCLUDED`. For the second principal in the binding, the key is `group:product-eng@example.com`, and the `membership` field in the value is set to `MEMBERSHIP_INCLUDED`. */
|
|
195
|
-
memberships?: {
|
|
196
|
-
[P in string]: GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership;
|
|
197
|
-
};
|
|
198
|
-
/** The relevance of this binding to the overall determination for the entire policy. */
|
|
199
|
-
relevance?: string;
|
|
200
|
-
/** The role that this binding grants. For example, `roles/compute.serviceAgent`. For a complete list of predefined IAM roles, as well as the permissions in each role, see https://cloud.google.com/iam/help/roles/reference. */
|
|
201
|
-
role?: string;
|
|
202
|
-
/** Indicates whether the role granted by this binding contains the specified permission. */
|
|
203
|
-
rolePermission?: string;
|
|
204
|
-
/** The relevance of the permission's existence, or nonexistence, in the role to the overall determination for the entire policy. */
|
|
205
|
-
rolePermissionRelevance?: string;
|
|
206
|
-
}
|
|
207
|
-
interface GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership {
|
|
208
|
-
/** Indicates whether the binding includes the principal. */
|
|
209
|
-
membership?: string;
|
|
210
|
-
/** The relevance of the principal's status to the overall determination for the binding. */
|
|
211
|
-
relevance?: string;
|
|
212
|
-
}
|
|
213
|
-
interface GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata {
|
|
214
|
-
/** Time when the request was received. */
|
|
215
|
-
requestTime?: string;
|
|
216
|
-
/** Total number of resources that need scanning. Should equal resource_scanned + resources_pending */
|
|
217
|
-
resourcesFound?: number;
|
|
218
|
-
/** Number of resources still to scan. */
|
|
219
|
-
resourcesPending?: number;
|
|
220
|
-
/** Number of resources already scanned. */
|
|
221
|
-
resourcesScanned?: number;
|
|
222
|
-
/** Time when the request started processing, i.e., when the state was set to RUNNING. */
|
|
223
|
-
startTime?: string;
|
|
224
|
-
/** Output only. The current state of the operation. */
|
|
225
|
-
state?: string;
|
|
226
|
-
}
|
|
227
|
-
interface GoogleCloudPolicysimulatorV1betaExplainedAccess {
|
|
228
|
-
/** Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies. */
|
|
229
|
-
accessState?: string;
|
|
230
|
-
/** If the AccessState is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is omitted. */
|
|
231
|
-
errors?: GoogleRpcStatus[];
|
|
232
|
-
/** If the AccessState is `UNKNOWN`, this field contains the policies that led to that result. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is omitted. */
|
|
233
|
-
policies?: GoogleCloudPolicysimulatorV1betaExplainedPolicy[];
|
|
234
|
-
}
|
|
235
|
-
interface GoogleCloudPolicysimulatorV1betaExplainedPolicy {
|
|
236
|
-
/** Indicates whether _this policy_ provides the specified permission to the specified principal for the specified resource. This field does _not_ indicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use the `access` field in the TroubleshootIamPolicyResponse. */
|
|
237
|
-
access?: string;
|
|
238
|
-
/** Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the user who created the Replay does not have access to the policy, this field is omitted. */
|
|
239
|
-
bindingExplanations?: GoogleCloudPolicysimulatorV1betaBindingExplanation[];
|
|
240
|
-
/** The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the user who created the Replay does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. */
|
|
241
|
-
fullResourceName?: string;
|
|
242
|
-
/** The IAM policy attached to the resource. If the user who created the Replay does not have access to the policy, this field is empty. */
|
|
243
|
-
policy?: GoogleIamV1Policy;
|
|
244
|
-
/** The relevance of this policy to the overall determination in the TroubleshootIamPolicyResponse. If the user who created the Replay does not have access to the policy, this field is omitted. */
|
|
245
|
-
relevance?: string;
|
|
246
|
-
}
|
|
247
|
-
interface GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata {
|
|
248
|
-
/** Time when the request was received. */
|
|
249
|
-
requestTime?: string;
|
|
250
|
-
/** Total number of resources that need scanning. Should equal resource_scanned + resources_pending */
|
|
251
|
-
resourcesFound?: number;
|
|
252
|
-
/** Number of resources still to scan. */
|
|
253
|
-
resourcesPending?: number;
|
|
254
|
-
/** Number of resources already scanned. */
|
|
255
|
-
resourcesScanned?: number;
|
|
256
|
-
/** Time when the request started processing, i.e. when the state was set to RUNNING. */
|
|
257
|
-
startTime?: string;
|
|
258
|
-
/** The current state of the operation. */
|
|
259
|
-
state?: string;
|
|
260
|
-
}
|
|
261
|
-
interface GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse {
|
|
262
|
-
/** A token that you can use to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */
|
|
263
|
-
nextPageToken?: string;
|
|
264
|
-
/** The list of OrgPolicyViolationsPreview */
|
|
265
|
-
orgPolicyViolationsPreviews?: GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview[];
|
|
266
|
-
}
|
|
267
|
-
interface GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse {
|
|
268
|
-
/** A token that you can use to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */
|
|
269
|
-
nextPageToken?: string;
|
|
270
|
-
/** The list of OrgPolicyViolations */
|
|
271
|
-
orgPolicyViolations?: GoogleCloudPolicysimulatorV1betaOrgPolicyViolation[];
|
|
272
|
-
}
|
|
273
|
-
interface GoogleCloudPolicysimulatorV1betaListReplayResultsResponse {
|
|
274
|
-
/** A token that you can use to retrieve the next page of ReplayResult objects. If this field is omitted, there are no subsequent pages. */
|
|
275
|
-
nextPageToken?: string;
|
|
276
|
-
/** The results of running a Replay. */
|
|
277
|
-
replayResults?: GoogleCloudPolicysimulatorV1betaReplayResult[];
|
|
278
|
-
}
|
|
279
|
-
interface GoogleCloudPolicysimulatorV1betaListReplaysResponse {
|
|
280
|
-
/** A token that you can use to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */
|
|
281
|
-
nextPageToken?: string;
|
|
282
|
-
/** The list of Replay objects. */
|
|
283
|
-
replays?: GoogleCloudPolicysimulatorV1betaReplay[];
|
|
284
|
-
}
|
|
285
|
-
interface GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay {
|
|
286
|
-
/** Optional. The OrgPolicy CustomConstraint changes to preview violations for. Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated. Only a single custom_constraint is supported in the overlay at a time. For evaluating multiple constraints, multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each request evaluates a single constraint. */
|
|
287
|
-
customConstraints?: GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay[];
|
|
288
|
-
/** Optional. The OrgPolicy changes to preview violations for. Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated. */
|
|
289
|
-
policies?: GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay[];
|
|
290
|
-
}
|
|
291
|
-
interface GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay {
|
|
292
|
-
/** Optional. The new or updated custom constraint. */
|
|
293
|
-
customConstraint?: GoogleCloudOrgpolicyV2CustomConstraint;
|
|
294
|
-
/** Optional. Resource the constraint is attached to. Example: "organization/987654" */
|
|
295
|
-
customConstraintParent?: string;
|
|
296
|
-
}
|
|
297
|
-
interface GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay {
|
|
298
|
-
/** Optional. The new or updated OrgPolicy. */
|
|
299
|
-
policy?: GoogleCloudOrgpolicyV2Policy;
|
|
300
|
-
/** Optional. The parent of the policy we are attaching to. Example: "projects/123456" */
|
|
301
|
-
policyParent?: string;
|
|
302
|
-
}
|
|
303
|
-
interface GoogleCloudPolicysimulatorV1betaOrgPolicyViolation {
|
|
304
|
-
/** The custom constraint being violated. */
|
|
305
|
-
customConstraint?: GoogleCloudOrgpolicyV2CustomConstraint;
|
|
306
|
-
/** Any error encountered during the evaluation. */
|
|
307
|
-
error?: GoogleRpcStatus;
|
|
308
|
-
/** The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce` */
|
|
309
|
-
name?: string;
|
|
310
|
-
/** The resource violating the constraint. */
|
|
311
|
-
resource?: GoogleCloudPolicysimulatorV1betaResourceContext;
|
|
312
|
-
}
|
|
313
|
-
interface GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview {
|
|
314
|
-
/** Output only. Time when this `OrgPolicyViolationsPreview` was created. */
|
|
315
|
-
createTime?: string;
|
|
316
|
-
/** Output only. The names of the constraints against which all `OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains the name of the configured custom constraint, applicable to the specified policies. Otherwise it contains the name of the constraint specified in `CustomConstraintOverlay`. Format: `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` */
|
|
317
|
-
customConstraints?: string[];
|
|
318
|
-
/** Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the following format: `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example: `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f` */
|
|
319
|
-
name?: string;
|
|
320
|
-
/** Required. The proposed changes we are previewing violations for. */
|
|
321
|
-
overlay?: GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay;
|
|
322
|
-
/** Output only. A summary of the state of all resources scanned for compliance with the changed OrgPolicy. */
|
|
323
|
-
resourceCounts?: GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts;
|
|
324
|
-
/** Output only. The state of the `OrgPolicyViolationsPreview`. */
|
|
325
|
-
state?: string;
|
|
326
|
-
/** Output only. The number of OrgPolicyViolations in this `OrgPolicyViolationsPreview`. This count may differ from `resource_summary.noncompliant_count` because each OrgPolicyViolation is specific to a resource **and** constraint. If there are multiple constraints being evaluated (i.e. multiple policies in the overlay), a single resource may violate multiple constraints. */
|
|
327
|
-
violationsCount?: number;
|
|
328
|
-
}
|
|
329
|
-
interface GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts {
|
|
330
|
-
/** Output only. Number of scanned resources with zero violations. */
|
|
331
|
-
compliant?: number;
|
|
332
|
-
/** Output only. Number of resources that returned an error when scanned. */
|
|
333
|
-
errors?: number;
|
|
334
|
-
/** Output only. Number of scanned resources with at least one violation. */
|
|
335
|
-
noncompliant?: number;
|
|
336
|
-
/** Output only. Number of resources checked for compliance. Must equal: unenforced + noncompliant + compliant + error */
|
|
337
|
-
scanned?: number;
|
|
338
|
-
/** Output only. Number of resources where the constraint was not enforced, i.e. the Policy set `enforced: false` for that resource. */
|
|
339
|
-
unenforced?: number;
|
|
340
|
-
}
|
|
341
|
-
interface GoogleCloudPolicysimulatorV1betaReplay {
|
|
342
|
-
/** Required. The configuration used for the `Replay`. */
|
|
343
|
-
config?: GoogleCloudPolicysimulatorV1betaReplayConfig;
|
|
344
|
-
/** Output only. The resource name of the `Replay`, which has the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
345
|
-
name?: string;
|
|
346
|
-
/** Output only. Summary statistics about the replayed log entries. */
|
|
347
|
-
resultsSummary?: GoogleCloudPolicysimulatorV1betaReplayResultsSummary;
|
|
348
|
-
/** Output only. The current state of the `Replay`. */
|
|
349
|
-
state?: string;
|
|
350
|
-
}
|
|
351
|
-
interface GoogleCloudPolicysimulatorV1betaReplayConfig {
|
|
352
|
-
/** The logs to use as input for the Replay. */
|
|
353
|
-
logSource?: string;
|
|
354
|
-
/** A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay. */
|
|
355
|
-
policyOverlay?: {[P in string]: GoogleIamV1Policy};
|
|
356
|
-
}
|
|
357
|
-
interface GoogleCloudPolicysimulatorV1betaReplayDiff {
|
|
358
|
-
/** A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple. The evaluation of the principal's access is reported in the AccessState field. */
|
|
359
|
-
accessDiff?: GoogleCloudPolicysimulatorV1betaAccessStateDiff;
|
|
360
|
-
}
|
|
361
|
-
interface GoogleCloudPolicysimulatorV1betaReplayResult {
|
|
362
|
-
/** The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt. */
|
|
363
|
-
accessTuple?: GoogleCloudPolicysimulatorV1betaAccessTuple;
|
|
364
|
-
/** The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies. This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies. */
|
|
365
|
-
diff?: GoogleCloudPolicysimulatorV1betaReplayDiff;
|
|
366
|
-
/** The error that caused the access tuple replay to fail. This field is only included for access tuples that were not replayed successfully. */
|
|
367
|
-
error?: GoogleRpcStatus;
|
|
368
|
-
/** The latest date this access tuple was seen in the logs. */
|
|
369
|
-
lastSeenDate?: GoogleTypeDate;
|
|
370
|
-
/** The resource name of the `ReplayResult`, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234` */
|
|
371
|
-
name?: string;
|
|
372
|
-
/** The Replay that the access tuple was included in. */
|
|
373
|
-
parent?: string;
|
|
374
|
-
}
|
|
375
|
-
interface GoogleCloudPolicysimulatorV1betaReplayResultsSummary {
|
|
376
|
-
/** The number of replayed log entries with a difference between baseline and simulated policies. */
|
|
377
|
-
differenceCount?: number;
|
|
378
|
-
/** The number of log entries that could not be replayed. */
|
|
379
|
-
errorCount?: number;
|
|
380
|
-
/** The total number of log entries replayed. */
|
|
381
|
-
logCount?: number;
|
|
382
|
-
/** The date of the newest log entry replayed. */
|
|
383
|
-
newestDate?: GoogleTypeDate;
|
|
384
|
-
/** The date of the oldest log entry replayed. */
|
|
385
|
-
oldestDate?: GoogleTypeDate;
|
|
386
|
-
/** The number of replayed log entries with no difference between baseline and simulated policies. */
|
|
387
|
-
unchangedCount?: number;
|
|
388
|
-
}
|
|
389
|
-
interface GoogleCloudPolicysimulatorV1betaResourceContext {
|
|
390
|
-
/** The ancestry path of the resource in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the resource is a project, folder, or organization, the ancestry path starts from the resource itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]` */
|
|
391
|
-
ancestors?: string[];
|
|
392
|
-
/** The asset type of the resource as defined by CAIS. Example: `compute.googleapis.com/Firewall` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information. */
|
|
393
|
-
assetType?: string;
|
|
394
|
-
/** The full name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information. */
|
|
395
|
-
resource?: string;
|
|
396
|
-
}
|
|
397
31
|
interface GoogleCloudPolicysimulatorV1Replay {
|
|
398
32
|
/** Required. The configuration used for the `Replay`. */
|
|
399
33
|
config?: GoogleCloudPolicysimulatorV1ReplayConfig;
|
|
@@ -596,158 +230,8 @@ declare namespace gapi.client {
|
|
|
596
230
|
uploadType?: string;
|
|
597
231
|
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
598
232
|
}
|
|
599
|
-
interface ResultsResource {
|
|
600
|
-
/** Lists the results of running a Replay. */
|
|
601
|
-
list(request?: {
|
|
602
|
-
/** V1 error format. */
|
|
603
|
-
'$.xgafv'?: string;
|
|
604
|
-
/** OAuth access token. */
|
|
605
|
-
access_token?: string;
|
|
606
|
-
/** Data format for response. */
|
|
607
|
-
alt?: string;
|
|
608
|
-
/** JSONP */
|
|
609
|
-
callback?: string;
|
|
610
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
611
|
-
fields?: string;
|
|
612
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
613
|
-
key?: string;
|
|
614
|
-
/** OAuth 2.0 token for the current user. */
|
|
615
|
-
oauth_token?: string;
|
|
616
|
-
/** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; values above 5000 are rounded down to 5000. */
|
|
617
|
-
pageSize?: number;
|
|
618
|
-
/** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to retrieve the next page of results. When paginating, all other parameters provided to [Simulator.ListReplayResults[] must match the call that provided the page token. */
|
|
619
|
-
pageToken?: string;
|
|
620
|
-
/** Required. The Replay whose results are listed, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
621
|
-
parent: string;
|
|
622
|
-
/** Returns response with indentations and line breaks. */
|
|
623
|
-
prettyPrint?: boolean;
|
|
624
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
625
|
-
quotaUser?: string;
|
|
626
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
627
|
-
upload_protocol?: string;
|
|
628
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
629
|
-
uploadType?: string;
|
|
630
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListReplayResultsResponse>;
|
|
631
|
-
}
|
|
632
233
|
interface ReplaysResource {
|
|
633
|
-
/** Creates and starts a Replay using the given ReplayConfig. */
|
|
634
|
-
create(request: {
|
|
635
|
-
/** V1 error format. */
|
|
636
|
-
'$.xgafv'?: string;
|
|
637
|
-
/** OAuth access token. */
|
|
638
|
-
access_token?: string;
|
|
639
|
-
/** Data format for response. */
|
|
640
|
-
alt?: string;
|
|
641
|
-
/** JSONP */
|
|
642
|
-
callback?: string;
|
|
643
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
644
|
-
fields?: string;
|
|
645
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
646
|
-
key?: string;
|
|
647
|
-
/** OAuth 2.0 token for the current user. */
|
|
648
|
-
oauth_token?: string;
|
|
649
|
-
/** Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` */
|
|
650
|
-
parent: string;
|
|
651
|
-
/** Returns response with indentations and line breaks. */
|
|
652
|
-
prettyPrint?: boolean;
|
|
653
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
654
|
-
quotaUser?: string;
|
|
655
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
656
|
-
upload_protocol?: string;
|
|
657
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
658
|
-
uploadType?: string;
|
|
659
|
-
/** Request body */
|
|
660
|
-
resource: GoogleCloudPolicysimulatorV1betaReplay;
|
|
661
|
-
}): Request<GoogleLongrunningOperation>;
|
|
662
|
-
create(
|
|
663
|
-
request: {
|
|
664
|
-
/** V1 error format. */
|
|
665
|
-
'$.xgafv'?: string;
|
|
666
|
-
/** OAuth access token. */
|
|
667
|
-
access_token?: string;
|
|
668
|
-
/** Data format for response. */
|
|
669
|
-
alt?: string;
|
|
670
|
-
/** JSONP */
|
|
671
|
-
callback?: string;
|
|
672
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
673
|
-
fields?: string;
|
|
674
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
675
|
-
key?: string;
|
|
676
|
-
/** OAuth 2.0 token for the current user. */
|
|
677
|
-
oauth_token?: string;
|
|
678
|
-
/** Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` */
|
|
679
|
-
parent: string;
|
|
680
|
-
/** Returns response with indentations and line breaks. */
|
|
681
|
-
prettyPrint?: boolean;
|
|
682
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
683
|
-
quotaUser?: string;
|
|
684
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
685
|
-
upload_protocol?: string;
|
|
686
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
687
|
-
uploadType?: string;
|
|
688
|
-
},
|
|
689
|
-
body: GoogleCloudPolicysimulatorV1betaReplay,
|
|
690
|
-
): Request<GoogleLongrunningOperation>;
|
|
691
|
-
/** Gets the specified Replay. Each `Replay` is available for at least 7 days. */
|
|
692
|
-
get(request?: {
|
|
693
|
-
/** V1 error format. */
|
|
694
|
-
'$.xgafv'?: string;
|
|
695
|
-
/** OAuth access token. */
|
|
696
|
-
access_token?: string;
|
|
697
|
-
/** Data format for response. */
|
|
698
|
-
alt?: string;
|
|
699
|
-
/** JSONP */
|
|
700
|
-
callback?: string;
|
|
701
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
702
|
-
fields?: string;
|
|
703
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
704
|
-
key?: string;
|
|
705
|
-
/** Required. The name of the Replay to retrieve, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
706
|
-
name: string;
|
|
707
|
-
/** OAuth 2.0 token for the current user. */
|
|
708
|
-
oauth_token?: string;
|
|
709
|
-
/** Returns response with indentations and line breaks. */
|
|
710
|
-
prettyPrint?: boolean;
|
|
711
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
712
|
-
quotaUser?: string;
|
|
713
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
714
|
-
upload_protocol?: string;
|
|
715
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
716
|
-
uploadType?: string;
|
|
717
|
-
}): Request<GoogleCloudPolicysimulatorV1betaReplay>;
|
|
718
|
-
/** Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least 7 days. */
|
|
719
|
-
list(request?: {
|
|
720
|
-
/** V1 error format. */
|
|
721
|
-
'$.xgafv'?: string;
|
|
722
|
-
/** OAuth access token. */
|
|
723
|
-
access_token?: string;
|
|
724
|
-
/** Data format for response. */
|
|
725
|
-
alt?: string;
|
|
726
|
-
/** JSONP */
|
|
727
|
-
callback?: string;
|
|
728
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
729
|
-
fields?: string;
|
|
730
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
731
|
-
key?: string;
|
|
732
|
-
/** OAuth 2.0 token for the current user. */
|
|
733
|
-
oauth_token?: string;
|
|
734
|
-
/** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values above 1000 are rounded down to 1000. */
|
|
735
|
-
pageSize?: number;
|
|
736
|
-
/** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match the call that provided the page token. */
|
|
737
|
-
pageToken?: string;
|
|
738
|
-
/** Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only `Replay` objects that are direct children of the provided parent are listed. In other words, `Replay` objects that are children of a project will not be included when the parent is a folder of that project. */
|
|
739
|
-
parent: string;
|
|
740
|
-
/** Returns response with indentations and line breaks. */
|
|
741
|
-
prettyPrint?: boolean;
|
|
742
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
743
|
-
quotaUser?: string;
|
|
744
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
745
|
-
upload_protocol?: string;
|
|
746
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
747
|
-
uploadType?: string;
|
|
748
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListReplaysResponse>;
|
|
749
234
|
operations: OperationsResource;
|
|
750
|
-
results: ResultsResource;
|
|
751
235
|
}
|
|
752
236
|
interface LocationsResource {
|
|
753
237
|
orgPolicyViolationsPreviews: OrgPolicyViolationsPreviewsResource;
|
|
@@ -847,220 +331,8 @@ declare namespace gapi.client {
|
|
|
847
331
|
uploadType?: string;
|
|
848
332
|
}): Request<GoogleLongrunningOperation>;
|
|
849
333
|
}
|
|
850
|
-
interface OrgPolicyViolationsResource {
|
|
851
|
-
/** ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview. */
|
|
852
|
-
list(request?: {
|
|
853
|
-
/** V1 error format. */
|
|
854
|
-
'$.xgafv'?: string;
|
|
855
|
-
/** OAuth access token. */
|
|
856
|
-
access_token?: string;
|
|
857
|
-
/** Data format for response. */
|
|
858
|
-
alt?: string;
|
|
859
|
-
/** JSONP */
|
|
860
|
-
callback?: string;
|
|
861
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
862
|
-
fields?: string;
|
|
863
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
864
|
-
key?: string;
|
|
865
|
-
/** OAuth 2.0 token for the current user. */
|
|
866
|
-
oauth_token?: string;
|
|
867
|
-
/** Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
868
|
-
pageSize?: number;
|
|
869
|
-
/** Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters must match the call that provided the page token. */
|
|
870
|
-
pageToken?: string;
|
|
871
|
-
/** Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} */
|
|
872
|
-
parent: string;
|
|
873
|
-
/** Returns response with indentations and line breaks. */
|
|
874
|
-
prettyPrint?: boolean;
|
|
875
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
876
|
-
quotaUser?: string;
|
|
877
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
878
|
-
upload_protocol?: string;
|
|
879
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
880
|
-
uploadType?: string;
|
|
881
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse>;
|
|
882
|
-
}
|
|
883
334
|
interface OrgPolicyViolationsPreviewsResource {
|
|
884
|
-
/** CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified changes. */
|
|
885
|
-
create(request: {
|
|
886
|
-
/** V1 error format. */
|
|
887
|
-
'$.xgafv'?: string;
|
|
888
|
-
/** OAuth access token. */
|
|
889
|
-
access_token?: string;
|
|
890
|
-
/** Data format for response. */
|
|
891
|
-
alt?: string;
|
|
892
|
-
/** JSONP */
|
|
893
|
-
callback?: string;
|
|
894
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
895
|
-
fields?: string;
|
|
896
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
897
|
-
key?: string;
|
|
898
|
-
/** OAuth 2.0 token for the current user. */
|
|
899
|
-
oauth_token?: string;
|
|
900
|
-
/** Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated. */
|
|
901
|
-
orgPolicyViolationsPreviewId?: string;
|
|
902
|
-
/** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: `organizations/my-example-org/locations/global` */
|
|
903
|
-
parent: string;
|
|
904
|
-
/** Returns response with indentations and line breaks. */
|
|
905
|
-
prettyPrint?: boolean;
|
|
906
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
907
|
-
quotaUser?: string;
|
|
908
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
909
|
-
upload_protocol?: string;
|
|
910
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
911
|
-
uploadType?: string;
|
|
912
|
-
/** Request body */
|
|
913
|
-
resource: GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview;
|
|
914
|
-
}): Request<GoogleLongrunningOperation>;
|
|
915
|
-
create(
|
|
916
|
-
request: {
|
|
917
|
-
/** V1 error format. */
|
|
918
|
-
'$.xgafv'?: string;
|
|
919
|
-
/** OAuth access token. */
|
|
920
|
-
access_token?: string;
|
|
921
|
-
/** Data format for response. */
|
|
922
|
-
alt?: string;
|
|
923
|
-
/** JSONP */
|
|
924
|
-
callback?: string;
|
|
925
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
926
|
-
fields?: string;
|
|
927
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
928
|
-
key?: string;
|
|
929
|
-
/** OAuth 2.0 token for the current user. */
|
|
930
|
-
oauth_token?: string;
|
|
931
|
-
/** Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated. */
|
|
932
|
-
orgPolicyViolationsPreviewId?: string;
|
|
933
|
-
/** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: `organizations/my-example-org/locations/global` */
|
|
934
|
-
parent: string;
|
|
935
|
-
/** Returns response with indentations and line breaks. */
|
|
936
|
-
prettyPrint?: boolean;
|
|
937
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
938
|
-
quotaUser?: string;
|
|
939
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
940
|
-
upload_protocol?: string;
|
|
941
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
942
|
-
uploadType?: string;
|
|
943
|
-
},
|
|
944
|
-
body: GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview,
|
|
945
|
-
): Request<GoogleLongrunningOperation>;
|
|
946
|
-
/** GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for the proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified changes. */
|
|
947
|
-
generate(request: {
|
|
948
|
-
/** V1 error format. */
|
|
949
|
-
'$.xgafv'?: string;
|
|
950
|
-
/** OAuth access token. */
|
|
951
|
-
access_token?: string;
|
|
952
|
-
/** Data format for response. */
|
|
953
|
-
alt?: string;
|
|
954
|
-
/** JSONP */
|
|
955
|
-
callback?: string;
|
|
956
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
957
|
-
fields?: string;
|
|
958
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
959
|
-
key?: string;
|
|
960
|
-
/** OAuth 2.0 token for the current user. */
|
|
961
|
-
oauth_token?: string;
|
|
962
|
-
/** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: `organizations/my-example-org/locations/global` */
|
|
963
|
-
parent: string;
|
|
964
|
-
/** Returns response with indentations and line breaks. */
|
|
965
|
-
prettyPrint?: boolean;
|
|
966
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
967
|
-
quotaUser?: string;
|
|
968
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
969
|
-
upload_protocol?: string;
|
|
970
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
971
|
-
uploadType?: string;
|
|
972
|
-
/** Request body */
|
|
973
|
-
resource: GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview;
|
|
974
|
-
}): Request<GoogleLongrunningOperation>;
|
|
975
|
-
generate(
|
|
976
|
-
request: {
|
|
977
|
-
/** V1 error format. */
|
|
978
|
-
'$.xgafv'?: string;
|
|
979
|
-
/** OAuth access token. */
|
|
980
|
-
access_token?: string;
|
|
981
|
-
/** Data format for response. */
|
|
982
|
-
alt?: string;
|
|
983
|
-
/** JSONP */
|
|
984
|
-
callback?: string;
|
|
985
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
986
|
-
fields?: string;
|
|
987
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
988
|
-
key?: string;
|
|
989
|
-
/** OAuth 2.0 token for the current user. */
|
|
990
|
-
oauth_token?: string;
|
|
991
|
-
/** Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: `organizations/my-example-org/locations/global` */
|
|
992
|
-
parent: string;
|
|
993
|
-
/** Returns response with indentations and line breaks. */
|
|
994
|
-
prettyPrint?: boolean;
|
|
995
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
996
|
-
quotaUser?: string;
|
|
997
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
998
|
-
upload_protocol?: string;
|
|
999
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1000
|
-
uploadType?: string;
|
|
1001
|
-
},
|
|
1002
|
-
body: GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview,
|
|
1003
|
-
): Request<GoogleLongrunningOperation>;
|
|
1004
|
-
/** GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days. */
|
|
1005
|
-
get(request?: {
|
|
1006
|
-
/** V1 error format. */
|
|
1007
|
-
'$.xgafv'?: string;
|
|
1008
|
-
/** OAuth access token. */
|
|
1009
|
-
access_token?: string;
|
|
1010
|
-
/** Data format for response. */
|
|
1011
|
-
alt?: string;
|
|
1012
|
-
/** JSONP */
|
|
1013
|
-
callback?: string;
|
|
1014
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1015
|
-
fields?: string;
|
|
1016
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1017
|
-
key?: string;
|
|
1018
|
-
/** Required. The name of the OrgPolicyViolationsPreview to get. */
|
|
1019
|
-
name: string;
|
|
1020
|
-
/** OAuth 2.0 token for the current user. */
|
|
1021
|
-
oauth_token?: string;
|
|
1022
|
-
/** Returns response with indentations and line breaks. */
|
|
1023
|
-
prettyPrint?: boolean;
|
|
1024
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1025
|
-
quotaUser?: string;
|
|
1026
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1027
|
-
upload_protocol?: string;
|
|
1028
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1029
|
-
uploadType?: string;
|
|
1030
|
-
}): Request<GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview>;
|
|
1031
|
-
/** ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days. */
|
|
1032
|
-
list(request?: {
|
|
1033
|
-
/** V1 error format. */
|
|
1034
|
-
'$.xgafv'?: string;
|
|
1035
|
-
/** OAuth access token. */
|
|
1036
|
-
access_token?: string;
|
|
1037
|
-
/** Data format for response. */
|
|
1038
|
-
alt?: string;
|
|
1039
|
-
/** JSONP */
|
|
1040
|
-
callback?: string;
|
|
1041
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1042
|
-
fields?: string;
|
|
1043
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1044
|
-
key?: string;
|
|
1045
|
-
/** OAuth 2.0 token for the current user. */
|
|
1046
|
-
oauth_token?: string;
|
|
1047
|
-
/** Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be coerced to 10. */
|
|
1048
|
-
pageSize?: number;
|
|
1049
|
-
/** Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters must match the call that provided the page token. */
|
|
1050
|
-
pageToken?: string;
|
|
1051
|
-
/** Required. The parent the violations are scoped to. Format: `organizations/{organization}/locations/{location}` Example: `organizations/my-example-org/locations/global` */
|
|
1052
|
-
parent: string;
|
|
1053
|
-
/** Returns response with indentations and line breaks. */
|
|
1054
|
-
prettyPrint?: boolean;
|
|
1055
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1056
|
-
quotaUser?: string;
|
|
1057
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1058
|
-
upload_protocol?: string;
|
|
1059
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1060
|
-
uploadType?: string;
|
|
1061
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse>;
|
|
1062
335
|
operations: OperationsResource;
|
|
1063
|
-
orgPolicyViolations: OrgPolicyViolationsResource;
|
|
1064
336
|
}
|
|
1065
337
|
interface OperationsResource {
|
|
1066
338
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
@@ -1124,158 +396,8 @@ declare namespace gapi.client {
|
|
|
1124
396
|
uploadType?: string;
|
|
1125
397
|
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1126
398
|
}
|
|
1127
|
-
interface ResultsResource {
|
|
1128
|
-
/** Lists the results of running a Replay. */
|
|
1129
|
-
list(request?: {
|
|
1130
|
-
/** V1 error format. */
|
|
1131
|
-
'$.xgafv'?: string;
|
|
1132
|
-
/** OAuth access token. */
|
|
1133
|
-
access_token?: string;
|
|
1134
|
-
/** Data format for response. */
|
|
1135
|
-
alt?: string;
|
|
1136
|
-
/** JSONP */
|
|
1137
|
-
callback?: string;
|
|
1138
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1139
|
-
fields?: string;
|
|
1140
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1141
|
-
key?: string;
|
|
1142
|
-
/** OAuth 2.0 token for the current user. */
|
|
1143
|
-
oauth_token?: string;
|
|
1144
|
-
/** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; values above 5000 are rounded down to 5000. */
|
|
1145
|
-
pageSize?: number;
|
|
1146
|
-
/** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to retrieve the next page of results. When paginating, all other parameters provided to [Simulator.ListReplayResults[] must match the call that provided the page token. */
|
|
1147
|
-
pageToken?: string;
|
|
1148
|
-
/** Required. The Replay whose results are listed, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
1149
|
-
parent: string;
|
|
1150
|
-
/** Returns response with indentations and line breaks. */
|
|
1151
|
-
prettyPrint?: boolean;
|
|
1152
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1153
|
-
quotaUser?: string;
|
|
1154
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1155
|
-
upload_protocol?: string;
|
|
1156
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1157
|
-
uploadType?: string;
|
|
1158
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListReplayResultsResponse>;
|
|
1159
|
-
}
|
|
1160
399
|
interface ReplaysResource {
|
|
1161
|
-
/** Creates and starts a Replay using the given ReplayConfig. */
|
|
1162
|
-
create(request: {
|
|
1163
|
-
/** V1 error format. */
|
|
1164
|
-
'$.xgafv'?: string;
|
|
1165
|
-
/** OAuth access token. */
|
|
1166
|
-
access_token?: string;
|
|
1167
|
-
/** Data format for response. */
|
|
1168
|
-
alt?: string;
|
|
1169
|
-
/** JSONP */
|
|
1170
|
-
callback?: string;
|
|
1171
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1172
|
-
fields?: string;
|
|
1173
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1174
|
-
key?: string;
|
|
1175
|
-
/** OAuth 2.0 token for the current user. */
|
|
1176
|
-
oauth_token?: string;
|
|
1177
|
-
/** Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` */
|
|
1178
|
-
parent: string;
|
|
1179
|
-
/** Returns response with indentations and line breaks. */
|
|
1180
|
-
prettyPrint?: boolean;
|
|
1181
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1182
|
-
quotaUser?: string;
|
|
1183
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1184
|
-
upload_protocol?: string;
|
|
1185
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1186
|
-
uploadType?: string;
|
|
1187
|
-
/** Request body */
|
|
1188
|
-
resource: GoogleCloudPolicysimulatorV1betaReplay;
|
|
1189
|
-
}): Request<GoogleLongrunningOperation>;
|
|
1190
|
-
create(
|
|
1191
|
-
request: {
|
|
1192
|
-
/** V1 error format. */
|
|
1193
|
-
'$.xgafv'?: string;
|
|
1194
|
-
/** OAuth access token. */
|
|
1195
|
-
access_token?: string;
|
|
1196
|
-
/** Data format for response. */
|
|
1197
|
-
alt?: string;
|
|
1198
|
-
/** JSONP */
|
|
1199
|
-
callback?: string;
|
|
1200
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1201
|
-
fields?: string;
|
|
1202
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1203
|
-
key?: string;
|
|
1204
|
-
/** OAuth 2.0 token for the current user. */
|
|
1205
|
-
oauth_token?: string;
|
|
1206
|
-
/** Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` */
|
|
1207
|
-
parent: string;
|
|
1208
|
-
/** Returns response with indentations and line breaks. */
|
|
1209
|
-
prettyPrint?: boolean;
|
|
1210
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1211
|
-
quotaUser?: string;
|
|
1212
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1213
|
-
upload_protocol?: string;
|
|
1214
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1215
|
-
uploadType?: string;
|
|
1216
|
-
},
|
|
1217
|
-
body: GoogleCloudPolicysimulatorV1betaReplay,
|
|
1218
|
-
): Request<GoogleLongrunningOperation>;
|
|
1219
|
-
/** Gets the specified Replay. Each `Replay` is available for at least 7 days. */
|
|
1220
|
-
get(request?: {
|
|
1221
|
-
/** V1 error format. */
|
|
1222
|
-
'$.xgafv'?: string;
|
|
1223
|
-
/** OAuth access token. */
|
|
1224
|
-
access_token?: string;
|
|
1225
|
-
/** Data format for response. */
|
|
1226
|
-
alt?: string;
|
|
1227
|
-
/** JSONP */
|
|
1228
|
-
callback?: string;
|
|
1229
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1230
|
-
fields?: string;
|
|
1231
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1232
|
-
key?: string;
|
|
1233
|
-
/** Required. The name of the Replay to retrieve, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
1234
|
-
name: string;
|
|
1235
|
-
/** OAuth 2.0 token for the current user. */
|
|
1236
|
-
oauth_token?: string;
|
|
1237
|
-
/** Returns response with indentations and line breaks. */
|
|
1238
|
-
prettyPrint?: boolean;
|
|
1239
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1240
|
-
quotaUser?: string;
|
|
1241
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1242
|
-
upload_protocol?: string;
|
|
1243
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1244
|
-
uploadType?: string;
|
|
1245
|
-
}): Request<GoogleCloudPolicysimulatorV1betaReplay>;
|
|
1246
|
-
/** Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least 7 days. */
|
|
1247
|
-
list(request?: {
|
|
1248
|
-
/** V1 error format. */
|
|
1249
|
-
'$.xgafv'?: string;
|
|
1250
|
-
/** OAuth access token. */
|
|
1251
|
-
access_token?: string;
|
|
1252
|
-
/** Data format for response. */
|
|
1253
|
-
alt?: string;
|
|
1254
|
-
/** JSONP */
|
|
1255
|
-
callback?: string;
|
|
1256
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1257
|
-
fields?: string;
|
|
1258
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1259
|
-
key?: string;
|
|
1260
|
-
/** OAuth 2.0 token for the current user. */
|
|
1261
|
-
oauth_token?: string;
|
|
1262
|
-
/** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values above 1000 are rounded down to 1000. */
|
|
1263
|
-
pageSize?: number;
|
|
1264
|
-
/** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match the call that provided the page token. */
|
|
1265
|
-
pageToken?: string;
|
|
1266
|
-
/** Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only `Replay` objects that are direct children of the provided parent are listed. In other words, `Replay` objects that are children of a project will not be included when the parent is a folder of that project. */
|
|
1267
|
-
parent: string;
|
|
1268
|
-
/** Returns response with indentations and line breaks. */
|
|
1269
|
-
prettyPrint?: boolean;
|
|
1270
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1271
|
-
quotaUser?: string;
|
|
1272
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1273
|
-
upload_protocol?: string;
|
|
1274
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1275
|
-
uploadType?: string;
|
|
1276
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListReplaysResponse>;
|
|
1277
400
|
operations: OperationsResource;
|
|
1278
|
-
results: ResultsResource;
|
|
1279
401
|
}
|
|
1280
402
|
interface LocationsResource {
|
|
1281
403
|
orgPolicyViolationsPreviews: OrgPolicyViolationsPreviewsResource;
|
|
@@ -1378,158 +500,8 @@ declare namespace gapi.client {
|
|
|
1378
500
|
uploadType?: string;
|
|
1379
501
|
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
1380
502
|
}
|
|
1381
|
-
interface ResultsResource {
|
|
1382
|
-
/** Lists the results of running a Replay. */
|
|
1383
|
-
list(request?: {
|
|
1384
|
-
/** V1 error format. */
|
|
1385
|
-
'$.xgafv'?: string;
|
|
1386
|
-
/** OAuth access token. */
|
|
1387
|
-
access_token?: string;
|
|
1388
|
-
/** Data format for response. */
|
|
1389
|
-
alt?: string;
|
|
1390
|
-
/** JSONP */
|
|
1391
|
-
callback?: string;
|
|
1392
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1393
|
-
fields?: string;
|
|
1394
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1395
|
-
key?: string;
|
|
1396
|
-
/** OAuth 2.0 token for the current user. */
|
|
1397
|
-
oauth_token?: string;
|
|
1398
|
-
/** The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; values above 5000 are rounded down to 5000. */
|
|
1399
|
-
pageSize?: number;
|
|
1400
|
-
/** A page token, received from a previous Simulator.ListReplayResults call. Provide this token to retrieve the next page of results. When paginating, all other parameters provided to [Simulator.ListReplayResults[] must match the call that provided the page token. */
|
|
1401
|
-
pageToken?: string;
|
|
1402
|
-
/** Required. The Replay whose results are listed, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
1403
|
-
parent: string;
|
|
1404
|
-
/** Returns response with indentations and line breaks. */
|
|
1405
|
-
prettyPrint?: boolean;
|
|
1406
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1407
|
-
quotaUser?: string;
|
|
1408
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1409
|
-
upload_protocol?: string;
|
|
1410
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1411
|
-
uploadType?: string;
|
|
1412
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListReplayResultsResponse>;
|
|
1413
|
-
}
|
|
1414
503
|
interface ReplaysResource {
|
|
1415
|
-
/** Creates and starts a Replay using the given ReplayConfig. */
|
|
1416
|
-
create(request: {
|
|
1417
|
-
/** V1 error format. */
|
|
1418
|
-
'$.xgafv'?: string;
|
|
1419
|
-
/** OAuth access token. */
|
|
1420
|
-
access_token?: string;
|
|
1421
|
-
/** Data format for response. */
|
|
1422
|
-
alt?: string;
|
|
1423
|
-
/** JSONP */
|
|
1424
|
-
callback?: string;
|
|
1425
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1426
|
-
fields?: string;
|
|
1427
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1428
|
-
key?: string;
|
|
1429
|
-
/** OAuth 2.0 token for the current user. */
|
|
1430
|
-
oauth_token?: string;
|
|
1431
|
-
/** Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` */
|
|
1432
|
-
parent: string;
|
|
1433
|
-
/** Returns response with indentations and line breaks. */
|
|
1434
|
-
prettyPrint?: boolean;
|
|
1435
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1436
|
-
quotaUser?: string;
|
|
1437
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1438
|
-
upload_protocol?: string;
|
|
1439
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1440
|
-
uploadType?: string;
|
|
1441
|
-
/** Request body */
|
|
1442
|
-
resource: GoogleCloudPolicysimulatorV1betaReplay;
|
|
1443
|
-
}): Request<GoogleLongrunningOperation>;
|
|
1444
|
-
create(
|
|
1445
|
-
request: {
|
|
1446
|
-
/** V1 error format. */
|
|
1447
|
-
'$.xgafv'?: string;
|
|
1448
|
-
/** OAuth access token. */
|
|
1449
|
-
access_token?: string;
|
|
1450
|
-
/** Data format for response. */
|
|
1451
|
-
alt?: string;
|
|
1452
|
-
/** JSONP */
|
|
1453
|
-
callback?: string;
|
|
1454
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1455
|
-
fields?: string;
|
|
1456
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1457
|
-
key?: string;
|
|
1458
|
-
/** OAuth 2.0 token for the current user. */
|
|
1459
|
-
oauth_token?: string;
|
|
1460
|
-
/** Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` */
|
|
1461
|
-
parent: string;
|
|
1462
|
-
/** Returns response with indentations and line breaks. */
|
|
1463
|
-
prettyPrint?: boolean;
|
|
1464
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1465
|
-
quotaUser?: string;
|
|
1466
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1467
|
-
upload_protocol?: string;
|
|
1468
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1469
|
-
uploadType?: string;
|
|
1470
|
-
},
|
|
1471
|
-
body: GoogleCloudPolicysimulatorV1betaReplay,
|
|
1472
|
-
): Request<GoogleLongrunningOperation>;
|
|
1473
|
-
/** Gets the specified Replay. Each `Replay` is available for at least 7 days. */
|
|
1474
|
-
get(request?: {
|
|
1475
|
-
/** V1 error format. */
|
|
1476
|
-
'$.xgafv'?: string;
|
|
1477
|
-
/** OAuth access token. */
|
|
1478
|
-
access_token?: string;
|
|
1479
|
-
/** Data format for response. */
|
|
1480
|
-
alt?: string;
|
|
1481
|
-
/** JSONP */
|
|
1482
|
-
callback?: string;
|
|
1483
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1484
|
-
fields?: string;
|
|
1485
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1486
|
-
key?: string;
|
|
1487
|
-
/** Required. The name of the Replay to retrieve, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` */
|
|
1488
|
-
name: string;
|
|
1489
|
-
/** OAuth 2.0 token for the current user. */
|
|
1490
|
-
oauth_token?: string;
|
|
1491
|
-
/** Returns response with indentations and line breaks. */
|
|
1492
|
-
prettyPrint?: boolean;
|
|
1493
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1494
|
-
quotaUser?: string;
|
|
1495
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1496
|
-
upload_protocol?: string;
|
|
1497
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1498
|
-
uploadType?: string;
|
|
1499
|
-
}): Request<GoogleCloudPolicysimulatorV1betaReplay>;
|
|
1500
|
-
/** Lists each Replay in a project, folder, or organization. Each `Replay` is available for at least 7 days. */
|
|
1501
|
-
list(request?: {
|
|
1502
|
-
/** V1 error format. */
|
|
1503
|
-
'$.xgafv'?: string;
|
|
1504
|
-
/** OAuth access token. */
|
|
1505
|
-
access_token?: string;
|
|
1506
|
-
/** Data format for response. */
|
|
1507
|
-
alt?: string;
|
|
1508
|
-
/** JSONP */
|
|
1509
|
-
callback?: string;
|
|
1510
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1511
|
-
fields?: string;
|
|
1512
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1513
|
-
key?: string;
|
|
1514
|
-
/** OAuth 2.0 token for the current user. */
|
|
1515
|
-
oauth_token?: string;
|
|
1516
|
-
/** The maximum number of Replay objects to return. Defaults to 50. The maximum value is 1000; values above 1000 are rounded down to 1000. */
|
|
1517
|
-
pageSize?: number;
|
|
1518
|
-
/** A page token, received from a previous Simulator.ListReplays call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to Simulator.ListReplays must match the call that provided the page token. */
|
|
1519
|
-
pageToken?: string;
|
|
1520
|
-
/** Required. The parent resource, in the following format: `{projects|folders|organizations}/{resource-id}/locations/global`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global` Only `Replay` objects that are direct children of the provided parent are listed. In other words, `Replay` objects that are children of a project will not be included when the parent is a folder of that project. */
|
|
1521
|
-
parent: string;
|
|
1522
|
-
/** Returns response with indentations and line breaks. */
|
|
1523
|
-
prettyPrint?: boolean;
|
|
1524
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1525
|
-
quotaUser?: string;
|
|
1526
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1527
|
-
upload_protocol?: string;
|
|
1528
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1529
|
-
uploadType?: string;
|
|
1530
|
-
}): Request<GoogleCloudPolicysimulatorV1betaListReplaysResponse>;
|
|
1531
504
|
operations: OperationsResource;
|
|
1532
|
-
results: ResultsResource;
|
|
1533
505
|
}
|
|
1534
506
|
interface LocationsResource {
|
|
1535
507
|
orgPolicyViolationsPreviews: OrgPolicyViolationsPreviewsResource;
|