@maxim_mazurok/gapi.client.policysimulator-v1beta 0.0.20230708 → 0.0.20230723
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 +506 -1
- package/package.json +1 -1
- package/tests.ts +17 -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: 20230723
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -22,6 +22,363 @@ declare namespace gapi.client {
|
|
|
22
22
|
function load(name: "policysimulator", version: "v1beta", callback: () => any): void;
|
|
23
23
|
|
|
24
24
|
namespace policysimulator {
|
|
25
|
+
interface GoogleCloudOrgpolicyV2AlternatePolicySpec {
|
|
26
|
+
/** Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy. */
|
|
27
|
+
launch?:
|
|
28
|
+
string;
|
|
29
|
+
/** Specify constraint for configurations of Google Cloud resources. */
|
|
30
|
+
spec?:
|
|
31
|
+
GoogleCloudOrgpolicyV2PolicySpec;
|
|
32
|
+
}
|
|
33
|
+
interface GoogleCloudOrgpolicyV2CustomConstraint {
|
|
34
|
+
/** Allow or deny type. */
|
|
35
|
+
actionType?:
|
|
36
|
+
string;
|
|
37
|
+
/**
|
|
38
|
+
* Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true` The max length of the
|
|
39
|
+
* condition is 1000 characters.
|
|
40
|
+
*/
|
|
41
|
+
condition?:
|
|
42
|
+
string;
|
|
43
|
+
/** Detailed information about this custom policy constraint. The max length of the description is 2000 characters. */
|
|
44
|
+
description?:
|
|
45
|
+
string;
|
|
46
|
+
/** One line display name for the UI. The max length of the display_name is 200 characters. */
|
|
47
|
+
displayName?:
|
|
48
|
+
string;
|
|
49
|
+
/** All the operations being applied for this constraint. */
|
|
50
|
+
methodTypes?:
|
|
51
|
+
string[];
|
|
52
|
+
/**
|
|
53
|
+
* Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
|
|
54
|
+
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix
|
|
55
|
+
* `organizations/{organization_id}/customConstraints/` is not counted.
|
|
56
|
+
*/
|
|
57
|
+
name?:
|
|
58
|
+
string;
|
|
59
|
+
/** Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`. */
|
|
60
|
+
resourceTypes?:
|
|
61
|
+
string[];
|
|
62
|
+
/** Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called */
|
|
63
|
+
updateTime?:
|
|
64
|
+
string;
|
|
65
|
+
}
|
|
66
|
+
interface GoogleCloudOrgpolicyV2Policy {
|
|
67
|
+
/** Deprecated. */
|
|
68
|
+
alternate?:
|
|
69
|
+
GoogleCloudOrgpolicyV2AlternatePolicySpec;
|
|
70
|
+
/** 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. */
|
|
71
|
+
dryRunSpec?:
|
|
72
|
+
GoogleCloudOrgpolicyV2PolicySpec;
|
|
73
|
+
/**
|
|
74
|
+
* 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: *
|
|
75
|
+
* `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example,
|
|
76
|
+
* "projects/123/policies/compute.disableSerialPortAccess". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will
|
|
77
|
+
* return the name using the equivalent project number.
|
|
78
|
+
*/
|
|
79
|
+
name?:
|
|
80
|
+
string;
|
|
81
|
+
/** Basic information about the Organization Policy. */
|
|
82
|
+
spec?:
|
|
83
|
+
GoogleCloudOrgpolicyV2PolicySpec;
|
|
84
|
+
}
|
|
85
|
+
interface GoogleCloudOrgpolicyV2PolicySpec {
|
|
86
|
+
/**
|
|
87
|
+
* An opaque tag indicating the current version of the policy, used for concurrency control. This field is ignored if used in a `CreatePolicy` request. When the policy` is returned
|
|
88
|
+
* from either a `GetPolicy` or a `ListPolicies` request, this `etag` indicates the version of the current policy to use when executing a read-modify-write loop. When the policy is
|
|
89
|
+
* returned from a `GetEffectivePolicy` request, the `etag` will be unset.
|
|
90
|
+
*/
|
|
91
|
+
etag?:
|
|
92
|
+
string;
|
|
93
|
+
/**
|
|
94
|
+
* 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
|
|
95
|
+
* 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
|
|
96
|
+
* list constraints.
|
|
97
|
+
*/
|
|
98
|
+
inheritFromParent?:
|
|
99
|
+
boolean;
|
|
100
|
+
/**
|
|
101
|
+
* 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
|
|
102
|
+
* for either list or boolean constraints. If set, `rules` must be empty and `inherit_from_parent` must be set to false.
|
|
103
|
+
*/
|
|
104
|
+
reset?:
|
|
105
|
+
boolean;
|
|
106
|
+
/**
|
|
107
|
+
* 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
|
|
108
|
+
* 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
|
|
109
|
+
* precedence.
|
|
110
|
+
*/
|
|
111
|
+
rules?:
|
|
112
|
+
GoogleCloudOrgpolicyV2PolicySpecPolicyRule[];
|
|
113
|
+
/** 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. */
|
|
114
|
+
updateTime?:
|
|
115
|
+
string;
|
|
116
|
+
}
|
|
117
|
+
interface GoogleCloudOrgpolicyV2PolicySpecPolicyRule {
|
|
118
|
+
/** Setting this to true means that all values are allowed. This field can be set only in policies for list constraints. */
|
|
119
|
+
allowAll?:
|
|
120
|
+
boolean;
|
|
121
|
+
/**
|
|
122
|
+
* 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,
|
|
123
|
+
* joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or
|
|
124
|
+
* "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
|
|
125
|
+
* Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
|
|
126
|
+
*/
|
|
127
|
+
condition?:
|
|
128
|
+
GoogleTypeExpr;
|
|
129
|
+
/** Setting this to true means that all values are denied. This field can be set only in policies for list constraints. */
|
|
130
|
+
denyAll?:
|
|
131
|
+
boolean;
|
|
132
|
+
/** 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. */
|
|
133
|
+
enforce?:
|
|
134
|
+
boolean;
|
|
135
|
+
/** List of values to be used for this policy rule. This field can be set only in policies for list constraints. */
|
|
136
|
+
values?:
|
|
137
|
+
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues;
|
|
138
|
+
}
|
|
139
|
+
interface GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues {
|
|
140
|
+
/** List of values allowed at this resource. */
|
|
141
|
+
allowedValues?:
|
|
142
|
+
string[];
|
|
143
|
+
/** List of values denied at this resource. */
|
|
144
|
+
deniedValues?:
|
|
145
|
+
string[];
|
|
146
|
+
}
|
|
147
|
+
interface GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata {
|
|
148
|
+
/** Time when the request was received. */
|
|
149
|
+
requestTime?:
|
|
150
|
+
string;
|
|
151
|
+
/** Total number of resources that need scanning. Should equal resource_scanned + resources_pending */
|
|
152
|
+
resourcesFound?:
|
|
153
|
+
number;
|
|
154
|
+
/** Number of resources still to scan. */
|
|
155
|
+
resourcesPending?:
|
|
156
|
+
number;
|
|
157
|
+
/** Number of resources already scanned. */
|
|
158
|
+
resourcesScanned?:
|
|
159
|
+
number;
|
|
160
|
+
/** Time when the request started processing, i.e. when the state was set to RUNNING. */
|
|
161
|
+
startTime?:
|
|
162
|
+
string;
|
|
163
|
+
/** The current state of the operation. */
|
|
164
|
+
state?:
|
|
165
|
+
string;
|
|
166
|
+
}
|
|
167
|
+
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay {
|
|
168
|
+
/**
|
|
169
|
+
* 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
|
|
170
|
+
* determined as if all custom constraints in the overlay were instantiated.
|
|
171
|
+
*/
|
|
172
|
+
customConstraints?:
|
|
173
|
+
GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay[];
|
|
174
|
+
/**
|
|
175
|
+
* 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
|
|
176
|
+
* policies in the overlay were created or updated.
|
|
177
|
+
*/
|
|
178
|
+
policies?:
|
|
179
|
+
GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay[];
|
|
180
|
+
}
|
|
181
|
+
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay {
|
|
182
|
+
/** The new or updated custom constraint. */
|
|
183
|
+
customConstraint?:
|
|
184
|
+
GoogleCloudOrgpolicyV2CustomConstraint;
|
|
185
|
+
/** Resource the constraint is attached to. Example: "organization/987654" */
|
|
186
|
+
customConstraintParent?:
|
|
187
|
+
string;
|
|
188
|
+
}
|
|
189
|
+
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay {
|
|
190
|
+
/** The new or updated OrgPolicy. */
|
|
191
|
+
policy?:
|
|
192
|
+
GoogleCloudOrgpolicyV2Policy;
|
|
193
|
+
/** The parent of the policy we are attaching to. Example: "projects/123456" */
|
|
194
|
+
policyParent?:
|
|
195
|
+
string;
|
|
196
|
+
}
|
|
197
|
+
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview {
|
|
198
|
+
/**
|
|
199
|
+
* Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the following format:
|
|
200
|
+
* `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example:
|
|
201
|
+
* `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
|
|
202
|
+
*/
|
|
203
|
+
name?:
|
|
204
|
+
string;
|
|
205
|
+
/** Required. The proposed changes we are previewing violations for. */
|
|
206
|
+
overlay?:
|
|
207
|
+
GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay;
|
|
208
|
+
/** Output only. A summary of the state of all resources scanned for compliance with the changed OrgPolicy. */
|
|
209
|
+
resourceCounts?:
|
|
210
|
+
GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts;
|
|
211
|
+
/** Output only. The state of the `OrgPolicyViolationsPreview`. */
|
|
212
|
+
state?:
|
|
213
|
+
string;
|
|
214
|
+
/**
|
|
215
|
+
* Output only. The number of OrgPolicyViolations in this `OrgPolicyViolationsPreview`. This count may differ from `resource_summary.noncompliant_count` because each OrgPolicyViolation
|
|
216
|
+
* 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
|
|
217
|
+
* constraints.
|
|
218
|
+
*/
|
|
219
|
+
violationsCount?:
|
|
220
|
+
number;
|
|
221
|
+
}
|
|
222
|
+
interface GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts {
|
|
223
|
+
/** Number of scanned resources with zero violations. */
|
|
224
|
+
compliant?:
|
|
225
|
+
number;
|
|
226
|
+
/** Number of resources that returned an error when scanned. */
|
|
227
|
+
errors?:
|
|
228
|
+
number;
|
|
229
|
+
/** Number of scanned resources with at least one violation. */
|
|
230
|
+
noncompliant?:
|
|
231
|
+
number;
|
|
232
|
+
/** Number of resources checked for compliance. Must equal: unenforced + noncompliant + compliant + error */
|
|
233
|
+
scanned?:
|
|
234
|
+
number;
|
|
235
|
+
/** Number of resources where the constraint was not enforced, i.e. the Policy set `enforced: false` for that resource. */
|
|
236
|
+
unenforced?:
|
|
237
|
+
number;
|
|
238
|
+
}
|
|
239
|
+
interface GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata {
|
|
240
|
+
/** Time when the request was received. */
|
|
241
|
+
requestTime?:
|
|
242
|
+
string;
|
|
243
|
+
/** Total number of resources that need scanning. Should equal resource_scanned + resources_pending */
|
|
244
|
+
resourcesFound?:
|
|
245
|
+
number;
|
|
246
|
+
/** Number of resources still to scan. */
|
|
247
|
+
resourcesPending?:
|
|
248
|
+
number;
|
|
249
|
+
/** Number of resources already scanned. */
|
|
250
|
+
resourcesScanned?:
|
|
251
|
+
number;
|
|
252
|
+
/** Time when the request started processing, i.e. when the state was set to RUNNING. */
|
|
253
|
+
startTime?:
|
|
254
|
+
string;
|
|
255
|
+
/** The current state of the operation. */
|
|
256
|
+
state?:
|
|
257
|
+
string;
|
|
258
|
+
}
|
|
259
|
+
interface GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse {
|
|
260
|
+
/** A token that you can use to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */
|
|
261
|
+
nextPageToken?:
|
|
262
|
+
string;
|
|
263
|
+
/** The list of OrgPolicyViolationsPreview */
|
|
264
|
+
orgPolicyViolationsPreviews?:
|
|
265
|
+
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?:
|
|
270
|
+
string;
|
|
271
|
+
/** The list of OrgPolicyViolations */
|
|
272
|
+
orgPolicyViolations?:
|
|
273
|
+
GoogleCloudPolicysimulatorV1betaOrgPolicyViolation[];
|
|
274
|
+
}
|
|
275
|
+
interface GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay {
|
|
276
|
+
/**
|
|
277
|
+
* 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
|
|
278
|
+
* determined as if all custom constraints in the overlay were instantiated.
|
|
279
|
+
*/
|
|
280
|
+
customConstraints?:
|
|
281
|
+
GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay[];
|
|
282
|
+
/**
|
|
283
|
+
* 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
|
|
284
|
+
* policies in the overlay were created or updated.
|
|
285
|
+
*/
|
|
286
|
+
policies?:
|
|
287
|
+
GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay[];
|
|
288
|
+
}
|
|
289
|
+
interface GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay {
|
|
290
|
+
/** The new or updated custom constraint. */
|
|
291
|
+
customConstraint?:
|
|
292
|
+
GoogleCloudOrgpolicyV2CustomConstraint;
|
|
293
|
+
/** Resource the constraint is attached to. Example: "organization/987654" */
|
|
294
|
+
customConstraintParent?:
|
|
295
|
+
string;
|
|
296
|
+
}
|
|
297
|
+
interface GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay {
|
|
298
|
+
/** The new or updated OrgPolicy. */
|
|
299
|
+
policy?:
|
|
300
|
+
GoogleCloudOrgpolicyV2Policy;
|
|
301
|
+
/** The parent of the policy we are attaching to. Example: "projects/123456" */
|
|
302
|
+
policyParent?:
|
|
303
|
+
string;
|
|
304
|
+
}
|
|
305
|
+
interface GoogleCloudPolicysimulatorV1betaOrgPolicyViolation {
|
|
306
|
+
/** The custom constraint being violated. */
|
|
307
|
+
customConstraint?:
|
|
308
|
+
GoogleCloudOrgpolicyV2CustomConstraint;
|
|
309
|
+
/** Any error encountered during the evaluation. */
|
|
310
|
+
error?:
|
|
311
|
+
GoogleRpcStatus;
|
|
312
|
+
/** The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce` */
|
|
313
|
+
name?:
|
|
314
|
+
string;
|
|
315
|
+
/** The resource violating the constraint. */
|
|
316
|
+
resource?:
|
|
317
|
+
GoogleCloudPolicysimulatorV1betaResourceContext;
|
|
318
|
+
}
|
|
319
|
+
interface GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview {
|
|
320
|
+
/**
|
|
321
|
+
* Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the following format:
|
|
322
|
+
* `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example:
|
|
323
|
+
* `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
|
|
324
|
+
*/
|
|
325
|
+
name?:
|
|
326
|
+
string;
|
|
327
|
+
/** Required. The proposed changes we are previewing violations for. */
|
|
328
|
+
overlay?:
|
|
329
|
+
GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay;
|
|
330
|
+
/** Output only. A summary of the state of all resources scanned for compliance with the changed OrgPolicy. */
|
|
331
|
+
resourceCounts?:
|
|
332
|
+
GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts;
|
|
333
|
+
/** Output only. The state of the `OrgPolicyViolationsPreview`. */
|
|
334
|
+
state?:
|
|
335
|
+
string;
|
|
336
|
+
/**
|
|
337
|
+
* Output only. The number of OrgPolicyViolations in this `OrgPolicyViolationsPreview`. This count may differ from `resource_summary.noncompliant_count` because each OrgPolicyViolation
|
|
338
|
+
* 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
|
|
339
|
+
* constraints.
|
|
340
|
+
*/
|
|
341
|
+
violationsCount?:
|
|
342
|
+
number;
|
|
343
|
+
}
|
|
344
|
+
interface GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts {
|
|
345
|
+
/** Number of scanned resources with zero violations. */
|
|
346
|
+
compliant?:
|
|
347
|
+
number;
|
|
348
|
+
/** Number of resources that returned an error when scanned. */
|
|
349
|
+
errors?:
|
|
350
|
+
number;
|
|
351
|
+
/** Number of scanned resources with at least one violation. */
|
|
352
|
+
noncompliant?:
|
|
353
|
+
number;
|
|
354
|
+
/** Number of resources checked for compliance. Must equal: unenforced + noncompliant + compliant + error */
|
|
355
|
+
scanned?:
|
|
356
|
+
number;
|
|
357
|
+
/** Number of resources where the constraint was not enforced, i.e. the Policy set `enforced: false` for that resource. */
|
|
358
|
+
unenforced?:
|
|
359
|
+
number;
|
|
360
|
+
}
|
|
361
|
+
interface GoogleCloudPolicysimulatorV1betaResourceContext {
|
|
362
|
+
/**
|
|
363
|
+
* 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
|
|
364
|
+
* 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
|
|
365
|
+
* path starts from the resource itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
|
|
366
|
+
*/
|
|
367
|
+
ancestors?:
|
|
368
|
+
string[];
|
|
369
|
+
/**
|
|
370
|
+
* The asset type of the resource as defined by CAIS. Example: `compute.googleapis.com/Firewall` See [Supported asset
|
|
371
|
+
* types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
|
|
372
|
+
*/
|
|
373
|
+
assetType?:
|
|
374
|
+
string;
|
|
375
|
+
/**
|
|
376
|
+
* The full name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource
|
|
377
|
+
* names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
|
|
378
|
+
*/
|
|
379
|
+
resource?:
|
|
380
|
+
string;
|
|
381
|
+
}
|
|
25
382
|
interface GoogleCloudPolicysimulatorV1Replay {
|
|
26
383
|
/** Required. The configuration used for the `Replay`. */
|
|
27
384
|
config?:
|
|
@@ -511,9 +868,157 @@ declare namespace gapi.client {
|
|
|
511
868
|
string;
|
|
512
869
|
}): Request<GoogleLongrunningOperation>;
|
|
513
870
|
}
|
|
871
|
+
interface OrgPolicyViolationsResource {
|
|
872
|
+
/** ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview. */
|
|
873
|
+
list(request?: {
|
|
874
|
+
/** V1 error format. */
|
|
875
|
+
"$.xgafv"?:
|
|
876
|
+
string;
|
|
877
|
+
/** OAuth access token. */
|
|
878
|
+
access_token?:
|
|
879
|
+
string;
|
|
880
|
+
/** Data format for response. */
|
|
881
|
+
alt?:
|
|
882
|
+
string;
|
|
883
|
+
/** JSONP */
|
|
884
|
+
callback?:
|
|
885
|
+
string;
|
|
886
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
887
|
+
fields?:
|
|
888
|
+
string;
|
|
889
|
+
/** 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. */
|
|
890
|
+
key?:
|
|
891
|
+
string;
|
|
892
|
+
/** OAuth 2.0 token for the current user. */
|
|
893
|
+
oauth_token?:
|
|
894
|
+
string;
|
|
895
|
+
/**
|
|
896
|
+
* 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
|
|
897
|
+
* 1000 will be coerced to 1000.
|
|
898
|
+
*/
|
|
899
|
+
pageSize?:
|
|
900
|
+
number;
|
|
901
|
+
/**
|
|
902
|
+
* 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
|
|
903
|
+
* token.
|
|
904
|
+
*/
|
|
905
|
+
pageToken?:
|
|
906
|
+
string;
|
|
907
|
+
/**
|
|
908
|
+
* Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format:
|
|
909
|
+
* organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}
|
|
910
|
+
*/
|
|
911
|
+
parent:
|
|
912
|
+
string;
|
|
913
|
+
/** Returns response with indentations and line breaks. */
|
|
914
|
+
prettyPrint?:
|
|
915
|
+
boolean;
|
|
916
|
+
/** 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. */
|
|
917
|
+
quotaUser?:
|
|
918
|
+
string;
|
|
919
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
920
|
+
upload_protocol?:
|
|
921
|
+
string;
|
|
922
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
923
|
+
uploadType?:
|
|
924
|
+
string;
|
|
925
|
+
}): Request<GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse>;
|
|
926
|
+
}
|
|
514
927
|
interface OrgPolicyViolationsPreviewsResource {
|
|
928
|
+
/** GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days. */
|
|
929
|
+
get(request?: {
|
|
930
|
+
/** V1 error format. */
|
|
931
|
+
"$.xgafv"?:
|
|
932
|
+
string;
|
|
933
|
+
/** OAuth access token. */
|
|
934
|
+
access_token?:
|
|
935
|
+
string;
|
|
936
|
+
/** Data format for response. */
|
|
937
|
+
alt?:
|
|
938
|
+
string;
|
|
939
|
+
/** JSONP */
|
|
940
|
+
callback?:
|
|
941
|
+
string;
|
|
942
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
943
|
+
fields?:
|
|
944
|
+
string;
|
|
945
|
+
/** 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. */
|
|
946
|
+
key?:
|
|
947
|
+
string;
|
|
948
|
+
/** Required. The name of the OrgPolicyViolationsPreview to get. */
|
|
949
|
+
name:
|
|
950
|
+
string;
|
|
951
|
+
/** OAuth 2.0 token for the current user. */
|
|
952
|
+
oauth_token?:
|
|
953
|
+
string;
|
|
954
|
+
/** Returns response with indentations and line breaks. */
|
|
955
|
+
prettyPrint?:
|
|
956
|
+
boolean;
|
|
957
|
+
/** 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. */
|
|
958
|
+
quotaUser?:
|
|
959
|
+
string;
|
|
960
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
961
|
+
upload_protocol?:
|
|
962
|
+
string;
|
|
963
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
964
|
+
uploadType?:
|
|
965
|
+
string;
|
|
966
|
+
}): Request<GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview>;
|
|
967
|
+
/** ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days. */
|
|
968
|
+
list(request?: {
|
|
969
|
+
/** V1 error format. */
|
|
970
|
+
"$.xgafv"?:
|
|
971
|
+
string;
|
|
972
|
+
/** OAuth access token. */
|
|
973
|
+
access_token?:
|
|
974
|
+
string;
|
|
975
|
+
/** Data format for response. */
|
|
976
|
+
alt?:
|
|
977
|
+
string;
|
|
978
|
+
/** JSONP */
|
|
979
|
+
callback?:
|
|
980
|
+
string;
|
|
981
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
982
|
+
fields?:
|
|
983
|
+
string;
|
|
984
|
+
/** 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. */
|
|
985
|
+
key?:
|
|
986
|
+
string;
|
|
987
|
+
/** OAuth 2.0 token for the current user. */
|
|
988
|
+
oauth_token?:
|
|
989
|
+
string;
|
|
990
|
+
/**
|
|
991
|
+
* 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
|
|
992
|
+
* will be coerced to 10.
|
|
993
|
+
*/
|
|
994
|
+
pageSize?:
|
|
995
|
+
number;
|
|
996
|
+
/**
|
|
997
|
+
* 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
|
|
998
|
+
* token.
|
|
999
|
+
*/
|
|
1000
|
+
pageToken?:
|
|
1001
|
+
string;
|
|
1002
|
+
/** Required. The parent the violations are scoped to. Format: organizations/{organization} */
|
|
1003
|
+
parent:
|
|
1004
|
+
string;
|
|
1005
|
+
/** Returns response with indentations and line breaks. */
|
|
1006
|
+
prettyPrint?:
|
|
1007
|
+
boolean;
|
|
1008
|
+
/** 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. */
|
|
1009
|
+
quotaUser?:
|
|
1010
|
+
string;
|
|
1011
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1012
|
+
upload_protocol?:
|
|
1013
|
+
string;
|
|
1014
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1015
|
+
uploadType?:
|
|
1016
|
+
string;
|
|
1017
|
+
}): Request<GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse>;
|
|
515
1018
|
operations:
|
|
516
1019
|
OperationsResource;
|
|
1020
|
+
orgPolicyViolations:
|
|
1021
|
+
OrgPolicyViolationsResource;
|
|
517
1022
|
}
|
|
518
1023
|
interface OperationsResource {
|
|
519
1024
|
/** 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. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230723
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -55,10 +55,26 @@ gapi.load('client', async () => {
|
|
|
55
55
|
pageSize: 42,
|
|
56
56
|
pageToken: "Test string",
|
|
57
57
|
});
|
|
58
|
+
/** GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days. */
|
|
59
|
+
await gapi.client.policysimulator.organizations.locations.orgPolicyViolationsPreviews.get({
|
|
60
|
+
name: "Test string",
|
|
61
|
+
});
|
|
62
|
+
/** ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days. */
|
|
63
|
+
await gapi.client.policysimulator.organizations.locations.orgPolicyViolationsPreviews.list({
|
|
64
|
+
pageSize: 42,
|
|
65
|
+
pageToken: "Test string",
|
|
66
|
+
parent: "Test string",
|
|
67
|
+
});
|
|
58
68
|
/** 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. */
|
|
59
69
|
await gapi.client.policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get({
|
|
60
70
|
name: "Test string",
|
|
61
71
|
});
|
|
72
|
+
/** ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview. */
|
|
73
|
+
await gapi.client.policysimulator.organizations.locations.orgPolicyViolationsPreviews.orgPolicyViolations.list({
|
|
74
|
+
pageSize: 42,
|
|
75
|
+
pageToken: "Test string",
|
|
76
|
+
parent: "Test string",
|
|
77
|
+
});
|
|
62
78
|
/** 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. */
|
|
63
79
|
await gapi.client.policysimulator.organizations.locations.replays.operations.get({
|
|
64
80
|
name: "Test string",
|