@maxim_mazurok/gapi.client.securityposture-v1 0.0.20241212
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 +1355 -0
- package/package.json +20 -0
- package/readme.md +73 -0
package/index.d.ts
ADDED
@@ -0,0 +1,1355 @@
|
|
1
|
+
/* Type definitions for non-npm package Security Posture API v1 0.0 */
|
2
|
+
// Project: https://cloud.google.com/security-command-center
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
7
|
+
|
8
|
+
// IMPORTANT
|
9
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
10
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
11
|
+
// Generated from: https://securityposture.googleapis.com/$discovery/rest?version=v1
|
12
|
+
// Revision: 20241212
|
13
|
+
|
14
|
+
/// <reference types="gapi.client" />
|
15
|
+
|
16
|
+
declare namespace gapi.client {
|
17
|
+
/** Load Security Posture API v1 */
|
18
|
+
function load(
|
19
|
+
urlOrObject: 'https://securityposture.googleapis.com/$discovery/rest?version=v1'
|
20
|
+
): Promise<void>;
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
22
|
+
function load(name: 'securityposture', version: 'v1'): Promise<void>;
|
23
|
+
/** @deprecated Please load APIs with discovery documents. */
|
24
|
+
function load(
|
25
|
+
name: 'securityposture',
|
26
|
+
version: 'v1',
|
27
|
+
callback: () => any
|
28
|
+
): void;
|
29
|
+
|
30
|
+
namespace securityposture {
|
31
|
+
interface AssetDetails {
|
32
|
+
/** Information about the Cloud Asset Inventory asset that violated a policy. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way. */
|
33
|
+
asset?: string;
|
34
|
+
/** The type of Cloud Asset Inventory asset. For a list of asset types, see [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types). */
|
35
|
+
assetType?: string;
|
36
|
+
}
|
37
|
+
interface CancelOperationRequest {}
|
38
|
+
interface ComplianceStandard {
|
39
|
+
/** Optional. The control in the compliance standard that the policy helps enforce. For example, `AC-3`. */
|
40
|
+
control?: string;
|
41
|
+
/** Optional. The compliance standard that the policy helps enforce. For example, `NIST SP 800-53`. */
|
42
|
+
standard?: string;
|
43
|
+
}
|
44
|
+
interface Constraint {
|
45
|
+
/** Optional. A predefined organization policy constraint. */
|
46
|
+
orgPolicyConstraint?: OrgPolicyConstraint;
|
47
|
+
/** Optional. A custom organization policy constraint. */
|
48
|
+
orgPolicyConstraintCustom?: OrgPolicyConstraintCustom;
|
49
|
+
/** Optional. A custom module for Security Health Analytics. */
|
50
|
+
securityHealthAnalyticsCustomModule?: SecurityHealthAnalyticsCustomModule;
|
51
|
+
/** Optional. A built-in detector for Security Health Analytics. */
|
52
|
+
securityHealthAnalyticsModule?: SecurityHealthAnalyticsModule;
|
53
|
+
}
|
54
|
+
interface CreateIaCValidationReportRequest {
|
55
|
+
/** Required. The infrastructure-as-code (IaC) configuration to validate. */
|
56
|
+
iac?: IaC;
|
57
|
+
}
|
58
|
+
interface CustomConfig {
|
59
|
+
/** Optional. Definitions of custom source properties to include in findings. */
|
60
|
+
customOutput?: CustomOutputSpec;
|
61
|
+
/** Optional. A description of the vulnerability or misconfiguration that the custom module detects. The description appears in each finding. Provide enough information to help an investigator understand the finding. The value must be enclosed in quotation marks. */
|
62
|
+
description?: string;
|
63
|
+
/** Required. The Common Expression Language (CEL) expression to evaluate. When the expression evaluates to `true` for a resource, a finding is generated. */
|
64
|
+
predicate?: Expr;
|
65
|
+
/** Required. An explanation of the steps that security teams can take to resolve the detected issue. The explanation appears in each finding. */
|
66
|
+
recommendation?: string;
|
67
|
+
/** Required. The resource types that the custom module operates on. */
|
68
|
+
resourceSelector?: ResourceSelector;
|
69
|
+
/** Required. The severity of findings generated by the custom module. */
|
70
|
+
severity?: string;
|
71
|
+
}
|
72
|
+
interface CustomOutputSpec {
|
73
|
+
/** Optional. The custom source properties that can appear in findings. */
|
74
|
+
properties?: Property[];
|
75
|
+
}
|
76
|
+
interface Empty {}
|
77
|
+
interface Expr {
|
78
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
79
|
+
description?: string;
|
80
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
81
|
+
expression?: string;
|
82
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
83
|
+
location?: string;
|
84
|
+
/** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
|
85
|
+
title?: string;
|
86
|
+
}
|
87
|
+
interface ExtractPostureRequest {
|
88
|
+
/** Required. An identifier for the posture. */
|
89
|
+
postureId?: string;
|
90
|
+
/** Required. The organization, folder, or project from which policies are extracted. Must be within the organization defined in parent. Use one of the following formats: * `organization/{organization_number}` * `folder/{folder_number}` * `project/{project_number}` */
|
91
|
+
workload?: string;
|
92
|
+
}
|
93
|
+
interface GoogleCloudSecuritypostureV1CustomConstraint {
|
94
|
+
/** Whether to allow or deny the action. */
|
95
|
+
actionType?: string;
|
96
|
+
/** A Common Expression Language (CEL) condition expression that must evaluate to `true` for the constraint to be enforced. The maximum length is 1000 characters. For example: + `resource.instanceName.matches('(production|test)_(.+_)?[\d]+')`: Evaluates to `true` if the resource's `instanceName` attribute contains the following: + The prefix `production` or `test` + An underscore (`_`) + Optional: One or more characters, followed by an underscore (`_`) + One or more digits + `resource.management.auto_upgrade == true`: Evaluates to `true` if the resource's `management.auto_upgrade` attribute is `true`. */
|
97
|
+
condition?: string;
|
98
|
+
/** A description of the constraint. The maximum length is 2000 characters. */
|
99
|
+
description?: string;
|
100
|
+
/** A display name for the constraint. The maximum length is 200 characters. */
|
101
|
+
displayName?: string;
|
102
|
+
/** The types of operations that the constraint applies to. */
|
103
|
+
methodTypes?: string[];
|
104
|
+
/** Immutable. The name of the constraint, in the format `organizations/{organization_id}/customConstraints/custom.{custom_constraint_id}`. For example, `organizations/123456789012/customConstraints/custom.createOnlyE2TypeVms`. Must contain 1 to 62 characters, excluding the prefix `organizations/{organization_id}/customConstraints/custom.`. */
|
105
|
+
name?: string;
|
106
|
+
/** Immutable. The resource type that the constraint applies to, in the format `{canonical_service_name}/{resource_type_name}`. For example, `compute.googleapis.com/Instance`. */
|
107
|
+
resourceTypes?: string[];
|
108
|
+
/** Output only. The last time at which the constraint was updated or created. */
|
109
|
+
updateTime?: string;
|
110
|
+
}
|
111
|
+
interface GoogleCloudSecuritypostureV1PolicyRule {
|
112
|
+
/** Whether to allow any value for a list constraint. Valid only for list constraints. */
|
113
|
+
allowAll?: boolean;
|
114
|
+
/** A condition that determines whether this rule is used to evaluate the policy. When set, the google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or `&&` operators. Each subexpression must use the `resource.matchTag()` or `resource.matchTagId()` Common Expression Language (CEL) function. The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example, `123456789012/environment` * `value_name`: the short name of the tag value For example: `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function takes the following arguments: * `key_id`: the permanent ID of the tag key; for example, `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example, `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012', 'tagValues/567890123456')` */
|
115
|
+
condition?: Expr;
|
116
|
+
/** Whether to deny all values for a list constraint. Valid only for list constraints. */
|
117
|
+
denyAll?: boolean;
|
118
|
+
/** Whether to enforce the constraint. Valid only for boolean constraints. */
|
119
|
+
enforce?: boolean;
|
120
|
+
/** Optional. Required for GMCs if parameters defined in constraints. Pass 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 } */
|
121
|
+
parameters?: {[P in string]: any};
|
122
|
+
/** Optional. The resource types policy can support, only used for Google managed constraint and method type is GOVERN_TAGS. */
|
123
|
+
resourceTypes?: ResourceTypes;
|
124
|
+
/** The allowed and denied values for a list constraint. Valid only for list constraints. */
|
125
|
+
values?: GoogleCloudSecuritypostureV1PolicyRuleStringValues;
|
126
|
+
}
|
127
|
+
interface GoogleCloudSecuritypostureV1PolicyRuleStringValues {
|
128
|
+
/** The allowed values for the constraint. */
|
129
|
+
allowedValues?: string[];
|
130
|
+
/** The denied values for the constraint. */
|
131
|
+
deniedValues?: string[];
|
132
|
+
}
|
133
|
+
interface IaC {
|
134
|
+
/** Optional. A Terraform plan file, formatted as a stringified JSON object. To learn how to generate a Terraform plan file in JSON format, see [JSON output format](https://developer.hashicorp.com/terraform/internals/json-format) in the Terraform documentation. */
|
135
|
+
tfPlan?: string;
|
136
|
+
}
|
137
|
+
interface IaCValidationReport {
|
138
|
+
/** Additional information about the report. */
|
139
|
+
note?: string;
|
140
|
+
/** A list of every Violation found in the IaC configuration. */
|
141
|
+
violations?: Violation[];
|
142
|
+
}
|
143
|
+
interface ListLocationsResponse {
|
144
|
+
/** A list of locations that matches the specified filter in the request. */
|
145
|
+
locations?: Location[];
|
146
|
+
/** The standard List next-page token. */
|
147
|
+
nextPageToken?: string;
|
148
|
+
}
|
149
|
+
interface ListOperationsResponse {
|
150
|
+
/** The standard List next-page token. */
|
151
|
+
nextPageToken?: string;
|
152
|
+
/** A list of operations that matches the specified filter in the request. */
|
153
|
+
operations?: Operation[];
|
154
|
+
}
|
155
|
+
interface ListPostureDeploymentsResponse {
|
156
|
+
/** A pagination token. To retrieve the next page of results, call the method again with this token. */
|
157
|
+
nextPageToken?: string;
|
158
|
+
/** The list of PostureDeployment resources. */
|
159
|
+
postureDeployments?: PostureDeployment[];
|
160
|
+
/** Locations that were temporarily unavailable and could not be reached. */
|
161
|
+
unreachable?: string[];
|
162
|
+
}
|
163
|
+
interface ListPostureRevisionsResponse {
|
164
|
+
/** A pagination token. To retrieve the next page of results, call the method again with this token. */
|
165
|
+
nextPageToken?: string;
|
166
|
+
/** The list of revisions for the Posture. */
|
167
|
+
revisions?: Posture[];
|
168
|
+
}
|
169
|
+
interface ListPosturesResponse {
|
170
|
+
/** A pagination token. To retrieve the next page of results, call the method again with this token. */
|
171
|
+
nextPageToken?: string;
|
172
|
+
/** The list of Posture resources. */
|
173
|
+
postures?: Posture[];
|
174
|
+
/** Locations that were temporarily unavailable and could not be reached. */
|
175
|
+
unreachable?: string[];
|
176
|
+
}
|
177
|
+
interface ListPostureTemplatesResponse {
|
178
|
+
/** A pagination token. To retrieve the next page of results, call the method again with this token. */
|
179
|
+
nextPageToken?: string;
|
180
|
+
/** The list of PostureTemplate resources. */
|
181
|
+
postureTemplates?: PostureTemplate[];
|
182
|
+
}
|
183
|
+
interface ListReportsResponse {
|
184
|
+
/** A pagination token. To retrieve the next page of results, call the method again with this token. */
|
185
|
+
nextPageToken?: string;
|
186
|
+
/** The list of Report resources. */
|
187
|
+
reports?: Report[];
|
188
|
+
/** Locations that were temporarily unavailable and could not be reached. */
|
189
|
+
unreachable?: string[];
|
190
|
+
}
|
191
|
+
interface Location {
|
192
|
+
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
193
|
+
displayName?: string;
|
194
|
+
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
195
|
+
labels?: {[P in string]: string};
|
196
|
+
/** The canonical id for this location. For example: `"us-east1"`. */
|
197
|
+
locationId?: string;
|
198
|
+
/** Service-specific metadata. For example the available capacity at the given location. */
|
199
|
+
metadata?: {[P in string]: any};
|
200
|
+
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
201
|
+
name?: string;
|
202
|
+
}
|
203
|
+
interface Operation {
|
204
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
205
|
+
done?: boolean;
|
206
|
+
/** The error result of the operation in case of failure or cancellation. */
|
207
|
+
error?: Status;
|
208
|
+
/** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */
|
209
|
+
metadata?: {[P in string]: any};
|
210
|
+
/** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
|
211
|
+
name?: string;
|
212
|
+
/** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
|
213
|
+
response?: {[P in string]: any};
|
214
|
+
}
|
215
|
+
interface OperationMetadata {
|
216
|
+
/** Output only. The API version used to start the operation. */
|
217
|
+
apiVersion?: string;
|
218
|
+
/** Output only. The time at which the operation was created. */
|
219
|
+
createTime?: string;
|
220
|
+
/** Output only. The time at which the operation finished running. */
|
221
|
+
endTime?: string;
|
222
|
+
/** Output only. An error message. Returned when a PostureDeployment enters a failure state like UPDATE_FAILED. */
|
223
|
+
errorMessage?: string;
|
224
|
+
/** Output only. Whether a request to cancel the operation has been received. For operations that have been cancelled successfully, the Operation.error field contains the error code CANCELLED. */
|
225
|
+
requestedCancellation?: boolean;
|
226
|
+
/** Output only. The status of the operation, if any. */
|
227
|
+
statusMessage?: string;
|
228
|
+
/** Output only. The server-defined resource path for the target of the operation. */
|
229
|
+
target?: string;
|
230
|
+
/** Output only. The name of the action executed by the operation. */
|
231
|
+
verb?: string;
|
232
|
+
}
|
233
|
+
interface OrgPolicyConstraint {
|
234
|
+
/** Required. A unique identifier for the constraint. */
|
235
|
+
cannedConstraintId?: string;
|
236
|
+
/** Required. The rules enforced by the constraint. */
|
237
|
+
policyRules?: GoogleCloudSecuritypostureV1PolicyRule[];
|
238
|
+
}
|
239
|
+
interface OrgPolicyConstraintCustom {
|
240
|
+
/** Required. Metadata for the constraint. */
|
241
|
+
customConstraint?: GoogleCloudSecuritypostureV1CustomConstraint;
|
242
|
+
/** Required. The rules enforced by the constraint. */
|
243
|
+
policyRules?: GoogleCloudSecuritypostureV1PolicyRule[];
|
244
|
+
}
|
245
|
+
interface Policy {
|
246
|
+
/** Optional. The compliance standards that the policy helps enforce. */
|
247
|
+
complianceStandards?: ComplianceStandard[];
|
248
|
+
/** Required. The constraints that the policy includes. */
|
249
|
+
constraint?: Constraint;
|
250
|
+
/** Optional. A description of the policy. */
|
251
|
+
description?: string;
|
252
|
+
/** Required. A user-specified identifier for the policy. In a PolicySet, each policy must have a unique identifier. */
|
253
|
+
policyId?: string;
|
254
|
+
}
|
255
|
+
interface PolicyDetails {
|
256
|
+
/** The compliance standards that the policy maps to. For example, `CIS-2.0 1.15`. */
|
257
|
+
complianceStandards?: string[];
|
258
|
+
/** Information about the constraint that was violated. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way. */
|
259
|
+
constraint?: string;
|
260
|
+
/** The type of constraint that was violated. */
|
261
|
+
constraintType?: string;
|
262
|
+
/** A description of the policy. */
|
263
|
+
description?: string;
|
264
|
+
}
|
265
|
+
interface PolicySet {
|
266
|
+
/** Optional. A description of the policy set. */
|
267
|
+
description?: string;
|
268
|
+
/** Required. The Policy resources in the policy set. Each policy must have a policy_id that's unique within the policy set. */
|
269
|
+
policies?: Policy[];
|
270
|
+
/** Required. An identifier for the policy set. */
|
271
|
+
policySetId?: string;
|
272
|
+
}
|
273
|
+
interface Posture {
|
274
|
+
/** Optional. The user-specified annotations for the posture. For details about the values you can use in an annotation, see [AIP-148: Standard fields](https://google.aip.dev/148#annotations). */
|
275
|
+
annotations?: {[P in string]: string};
|
276
|
+
/** Output only. The categories that the posture belongs to, as determined by the Security Posture API. */
|
277
|
+
categories?: string[];
|
278
|
+
/** Output only. The time at which the posture was created. */
|
279
|
+
createTime?: string;
|
280
|
+
/** Optional. A description of the posture. */
|
281
|
+
description?: string;
|
282
|
+
/** Optional. An opaque identifier for the current version of the posture at the specified `revision_id`. To prevent concurrent updates from overwriting each other, always provide the `etag` when you update a posture. You can also provide the `etag` when you delete a posture, to help ensure that you're deleting the intended version of the posture. */
|
283
|
+
etag?: string;
|
284
|
+
/** Required. Identifier. The name of the posture, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
285
|
+
name?: string;
|
286
|
+
/** Required. The PolicySet resources that the posture includes. */
|
287
|
+
policySets?: PolicySet[];
|
288
|
+
/** Output only. Whether the posture is in the process of being updated. */
|
289
|
+
reconciling?: boolean;
|
290
|
+
/** Output only. Immutable. An opaque eight-character string that identifies the revision of the posture. A posture can have multiple revisions; when you deploy a posture, you deploy a specific revision of the posture. */
|
291
|
+
revisionId?: string;
|
292
|
+
/** Required. The state of the posture at the specified `revision_id`. */
|
293
|
+
state?: string;
|
294
|
+
/** Output only. The time at which the posture was last updated. */
|
295
|
+
updateTime?: string;
|
296
|
+
}
|
297
|
+
interface PostureDeployment {
|
298
|
+
/** Optional. The user-specified annotations for the posture deployment. For details about the values you can use in an annotation, see [AIP-148: Standard fields](https://google.aip.dev/148#annotations). */
|
299
|
+
annotations?: {[P in string]: string};
|
300
|
+
/** Output only. The categories that the posture deployment belongs to, as determined by the Security Posture API. */
|
301
|
+
categories?: string[];
|
302
|
+
/** Output only. The time at which the posture deployment was created. */
|
303
|
+
createTime?: string;
|
304
|
+
/** Optional. A description of the posture deployment. */
|
305
|
+
description?: string;
|
306
|
+
/** Output only. The posture ID that was specified for the deployment. Present only if the posture deployment is in a failed state. */
|
307
|
+
desiredPostureId?: string;
|
308
|
+
/** Output only. The revision ID of the posture that was specified for the deployment. Present only if the deployment is in a failed state. */
|
309
|
+
desiredPostureRevisionId?: string;
|
310
|
+
/** Optional. An opaque identifier for the current version of the posture deployment. To prevent concurrent updates from overwriting each other, always provide the `etag` when you update a posture deployment. You can also provide the `etag` when you delete a posture deployment, to help ensure that you're deleting the intended posture deployment. */
|
311
|
+
etag?: string;
|
312
|
+
/** Output only. A description of why the posture deployment failed. Present only if the deployment is in a failed state. */
|
313
|
+
failureMessage?: string;
|
314
|
+
/** Required. Identifier. The name of the posture deployment, in the format `organizations/{organization}/locations/global/postureDeployments/{deployment_id}`. */
|
315
|
+
name?: string;
|
316
|
+
/** Required. The posture used in the deployment, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
317
|
+
postureId?: string;
|
318
|
+
/** Required. The revision ID of the posture used in the deployment. */
|
319
|
+
postureRevisionId?: string;
|
320
|
+
/** Output only. Whether the posture deployment is in the process of being updated. */
|
321
|
+
reconciling?: boolean;
|
322
|
+
/** Output only. The state of the posture deployment. */
|
323
|
+
state?: string;
|
324
|
+
/** Required. The organization, folder, or project where the posture is deployed. Uses one of the following formats: * `organizations/{organization_number}` * `folders/{folder_number}` * `projects/{project_number}` */
|
325
|
+
targetResource?: string;
|
326
|
+
/** Output only. The time at which the posture deployment was last updated. */
|
327
|
+
updateTime?: string;
|
328
|
+
}
|
329
|
+
interface PostureDetails {
|
330
|
+
/** The identifier for the PolicySet that the relevant policy belongs to. */
|
331
|
+
policySet?: string;
|
332
|
+
/** The posture used in the deployment, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
333
|
+
posture?: string;
|
334
|
+
/** The name of the posture deployment, in the format `organizations/{organization}/locations/global/postureDeployments/{deployment_id}`. */
|
335
|
+
postureDeployment?: string;
|
336
|
+
/** The organization, folder, or project where the posture is deployed. Uses one of the following formats: * `organizations/{organization_number}` * `folders/{folder_number}` * `projects/{project_number}` */
|
337
|
+
postureDeploymentTargetResource?: string;
|
338
|
+
/** The revision ID of the posture used in the deployment. */
|
339
|
+
postureRevisionId?: string;
|
340
|
+
}
|
341
|
+
interface PostureTemplate {
|
342
|
+
/** Output only. The categories that the posture template belongs to, as determined by the Security Posture API. */
|
343
|
+
categories?: string[];
|
344
|
+
/** Output only. A description of the posture template. */
|
345
|
+
description?: string;
|
346
|
+
/** Output only. Identifier. The name of the posture template, in the format `organizations/{organization}/locations/global/postureTemplates/{posture_template}`. */
|
347
|
+
name?: string;
|
348
|
+
/** Output only. The PolicySet resources that the posture template includes. */
|
349
|
+
policySets?: PolicySet[];
|
350
|
+
/** Output only. A string that identifies the revision of the posture template. */
|
351
|
+
revisionId?: string;
|
352
|
+
/** Output only. The state of the posture template at the specified `revision_id`. */
|
353
|
+
state?: string;
|
354
|
+
}
|
355
|
+
interface Property {
|
356
|
+
/** Required. The name of the custom source property. */
|
357
|
+
name?: string;
|
358
|
+
/** Optional. The CEL expression for the value of the custom source property. For resource properties, you can return the value of the property or a string enclosed in quotation marks. */
|
359
|
+
valueExpression?: Expr;
|
360
|
+
}
|
361
|
+
interface Report {
|
362
|
+
/** Output only. The time at which the report was created. */
|
363
|
+
createTime?: string;
|
364
|
+
/** Output only. An infrastructure-as-code (IaC) validation report. */
|
365
|
+
iacValidationReport?: IaCValidationReport;
|
366
|
+
/** Required. The name of the report, in the format `organizations/{organization}/locations/global/reports/{report_id}`. */
|
367
|
+
name?: string;
|
368
|
+
/** Output only. The time at which the report was last updated. */
|
369
|
+
updateTime?: string;
|
370
|
+
}
|
371
|
+
interface ResourceSelector {
|
372
|
+
/** Required. The resource types to run the detector on. Each custom module can specify up to 5 resource types. */
|
373
|
+
resourceTypes?: string[];
|
374
|
+
}
|
375
|
+
interface ResourceTypes {
|
376
|
+
/** Optional. The resource type we currently support. cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext */
|
377
|
+
included?: string[];
|
378
|
+
}
|
379
|
+
interface SecurityHealthAnalyticsCustomModule {
|
380
|
+
/** Required. Configuration settings for the custom module. */
|
381
|
+
config?: CustomConfig;
|
382
|
+
/** Optional. The display name of the custom module. This value is used as the finding category for all the asset violation findings that the custom module returns. The display name must contain between 1 and 128 alphanumeric characters or underscores, and it must start with a lowercase letter. */
|
383
|
+
displayName?: string;
|
384
|
+
/** Output only. Immutable. The unique identifier for the custom module. Contains 1 to 20 digits. */
|
385
|
+
id?: string;
|
386
|
+
/** Whether the custom module is enabled at a specified level of the resource hierarchy. */
|
387
|
+
moduleEnablementState?: string;
|
388
|
+
}
|
389
|
+
interface SecurityHealthAnalyticsModule {
|
390
|
+
/** Whether the detector is enabled at a specified level of the resource hierarchy. */
|
391
|
+
moduleEnablementState?: string;
|
392
|
+
/** Required. The name of the detector. For example, `BIGQUERY_TABLE_CMEK_DISABLED`. This field is also used as the finding category for all the asset violation findings that the detector returns. */
|
393
|
+
moduleName?: string;
|
394
|
+
}
|
395
|
+
interface Status {
|
396
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
397
|
+
code?: number;
|
398
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
399
|
+
details?: Array<{[P in string]: any}>;
|
400
|
+
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
401
|
+
message?: string;
|
402
|
+
}
|
403
|
+
interface Violation {
|
404
|
+
/** The full resource name of the asset that caused the violation. For details about the format of the full resource name for each asset type, see [Resource name format](https://cloud.google.com/asset-inventory/docs/resource-name-format). */
|
405
|
+
assetId?: string;
|
406
|
+
/** A description of the steps that you can take to fix the violation. */
|
407
|
+
nextSteps?: string;
|
408
|
+
/** The policy that was violated. */
|
409
|
+
policyId?: string;
|
410
|
+
/** The severity of the violation. */
|
411
|
+
severity?: string;
|
412
|
+
/** Details of the Cloud Asset Inventory asset that caused the violation. */
|
413
|
+
violatedAsset?: AssetDetails;
|
414
|
+
/** Details of the policy that was violated. */
|
415
|
+
violatedPolicy?: PolicyDetails;
|
416
|
+
/** Details for the posture that was violated. This field is present only if the violated policy belongs to a deployed posture. */
|
417
|
+
violatedPosture?: PostureDetails;
|
418
|
+
}
|
419
|
+
interface OperationsResource {
|
420
|
+
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
421
|
+
cancel(request: {
|
422
|
+
/** V1 error format. */
|
423
|
+
'$.xgafv'?: string;
|
424
|
+
/** OAuth access token. */
|
425
|
+
access_token?: string;
|
426
|
+
/** Data format for response. */
|
427
|
+
alt?: string;
|
428
|
+
/** JSONP */
|
429
|
+
callback?: string;
|
430
|
+
/** Selector specifying which fields to include in a partial response. */
|
431
|
+
fields?: string;
|
432
|
+
/** 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. */
|
433
|
+
key?: string;
|
434
|
+
/** The name of the operation resource to be cancelled. */
|
435
|
+
name: string;
|
436
|
+
/** OAuth 2.0 token for the current user. */
|
437
|
+
oauth_token?: string;
|
438
|
+
/** Returns response with indentations and line breaks. */
|
439
|
+
prettyPrint?: boolean;
|
440
|
+
/** 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. */
|
441
|
+
quotaUser?: string;
|
442
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
443
|
+
upload_protocol?: string;
|
444
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
445
|
+
uploadType?: string;
|
446
|
+
/** Request body */
|
447
|
+
resource: CancelOperationRequest;
|
448
|
+
}): Request<{}>;
|
449
|
+
cancel(
|
450
|
+
request: {
|
451
|
+
/** V1 error format. */
|
452
|
+
'$.xgafv'?: string;
|
453
|
+
/** OAuth access token. */
|
454
|
+
access_token?: string;
|
455
|
+
/** Data format for response. */
|
456
|
+
alt?: string;
|
457
|
+
/** JSONP */
|
458
|
+
callback?: string;
|
459
|
+
/** Selector specifying which fields to include in a partial response. */
|
460
|
+
fields?: string;
|
461
|
+
/** 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. */
|
462
|
+
key?: string;
|
463
|
+
/** The name of the operation resource to be cancelled. */
|
464
|
+
name: string;
|
465
|
+
/** OAuth 2.0 token for the current user. */
|
466
|
+
oauth_token?: string;
|
467
|
+
/** Returns response with indentations and line breaks. */
|
468
|
+
prettyPrint?: boolean;
|
469
|
+
/** 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. */
|
470
|
+
quotaUser?: string;
|
471
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
472
|
+
upload_protocol?: string;
|
473
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
474
|
+
uploadType?: string;
|
475
|
+
},
|
476
|
+
body: CancelOperationRequest
|
477
|
+
): Request<{}>;
|
478
|
+
/** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
479
|
+
delete(request?: {
|
480
|
+
/** V1 error format. */
|
481
|
+
'$.xgafv'?: string;
|
482
|
+
/** OAuth access token. */
|
483
|
+
access_token?: string;
|
484
|
+
/** Data format for response. */
|
485
|
+
alt?: string;
|
486
|
+
/** JSONP */
|
487
|
+
callback?: string;
|
488
|
+
/** Selector specifying which fields to include in a partial response. */
|
489
|
+
fields?: string;
|
490
|
+
/** 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. */
|
491
|
+
key?: string;
|
492
|
+
/** The name of the operation resource to be deleted. */
|
493
|
+
name: string;
|
494
|
+
/** OAuth 2.0 token for the current user. */
|
495
|
+
oauth_token?: string;
|
496
|
+
/** Returns response with indentations and line breaks. */
|
497
|
+
prettyPrint?: boolean;
|
498
|
+
/** 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. */
|
499
|
+
quotaUser?: string;
|
500
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
501
|
+
upload_protocol?: string;
|
502
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
503
|
+
uploadType?: string;
|
504
|
+
}): Request<{}>;
|
505
|
+
/** 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. */
|
506
|
+
get(request?: {
|
507
|
+
/** V1 error format. */
|
508
|
+
'$.xgafv'?: string;
|
509
|
+
/** OAuth access token. */
|
510
|
+
access_token?: string;
|
511
|
+
/** Data format for response. */
|
512
|
+
alt?: string;
|
513
|
+
/** JSONP */
|
514
|
+
callback?: string;
|
515
|
+
/** Selector specifying which fields to include in a partial response. */
|
516
|
+
fields?: string;
|
517
|
+
/** 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. */
|
518
|
+
key?: string;
|
519
|
+
/** The name of the operation resource. */
|
520
|
+
name: string;
|
521
|
+
/** OAuth 2.0 token for the current user. */
|
522
|
+
oauth_token?: string;
|
523
|
+
/** Returns response with indentations and line breaks. */
|
524
|
+
prettyPrint?: boolean;
|
525
|
+
/** 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. */
|
526
|
+
quotaUser?: string;
|
527
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
528
|
+
upload_protocol?: string;
|
529
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
530
|
+
uploadType?: string;
|
531
|
+
}): Request<Operation>;
|
532
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
533
|
+
list(request?: {
|
534
|
+
/** V1 error format. */
|
535
|
+
'$.xgafv'?: string;
|
536
|
+
/** OAuth access token. */
|
537
|
+
access_token?: string;
|
538
|
+
/** Data format for response. */
|
539
|
+
alt?: string;
|
540
|
+
/** JSONP */
|
541
|
+
callback?: string;
|
542
|
+
/** Selector specifying which fields to include in a partial response. */
|
543
|
+
fields?: string;
|
544
|
+
/** The standard list filter. */
|
545
|
+
filter?: string;
|
546
|
+
/** 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. */
|
547
|
+
key?: string;
|
548
|
+
/** The name of the operation's parent resource. */
|
549
|
+
name: string;
|
550
|
+
/** OAuth 2.0 token for the current user. */
|
551
|
+
oauth_token?: string;
|
552
|
+
/** The standard list page size. */
|
553
|
+
pageSize?: number;
|
554
|
+
/** The standard list page token. */
|
555
|
+
pageToken?: string;
|
556
|
+
/** Returns response with indentations and line breaks. */
|
557
|
+
prettyPrint?: boolean;
|
558
|
+
/** 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. */
|
559
|
+
quotaUser?: string;
|
560
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
561
|
+
upload_protocol?: string;
|
562
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
563
|
+
uploadType?: string;
|
564
|
+
}): Request<ListOperationsResponse>;
|
565
|
+
}
|
566
|
+
interface PostureDeploymentsResource {
|
567
|
+
/** Creates a new PostureDeployment in a given project and location. */
|
568
|
+
create(request: {
|
569
|
+
/** V1 error format. */
|
570
|
+
'$.xgafv'?: string;
|
571
|
+
/** OAuth access token. */
|
572
|
+
access_token?: string;
|
573
|
+
/** Data format for response. */
|
574
|
+
alt?: string;
|
575
|
+
/** JSONP */
|
576
|
+
callback?: string;
|
577
|
+
/** Selector specifying which fields to include in a partial response. */
|
578
|
+
fields?: string;
|
579
|
+
/** 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. */
|
580
|
+
key?: string;
|
581
|
+
/** OAuth 2.0 token for the current user. */
|
582
|
+
oauth_token?: string;
|
583
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
584
|
+
parent: string;
|
585
|
+
/** Required. An identifier for the posture deployment. */
|
586
|
+
postureDeploymentId?: string;
|
587
|
+
/** Returns response with indentations and line breaks. */
|
588
|
+
prettyPrint?: boolean;
|
589
|
+
/** 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. */
|
590
|
+
quotaUser?: string;
|
591
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
592
|
+
upload_protocol?: string;
|
593
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
594
|
+
uploadType?: string;
|
595
|
+
/** Request body */
|
596
|
+
resource: PostureDeployment;
|
597
|
+
}): Request<Operation>;
|
598
|
+
create(
|
599
|
+
request: {
|
600
|
+
/** V1 error format. */
|
601
|
+
'$.xgafv'?: string;
|
602
|
+
/** OAuth access token. */
|
603
|
+
access_token?: string;
|
604
|
+
/** Data format for response. */
|
605
|
+
alt?: string;
|
606
|
+
/** JSONP */
|
607
|
+
callback?: string;
|
608
|
+
/** Selector specifying which fields to include in a partial response. */
|
609
|
+
fields?: string;
|
610
|
+
/** 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. */
|
611
|
+
key?: string;
|
612
|
+
/** OAuth 2.0 token for the current user. */
|
613
|
+
oauth_token?: string;
|
614
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
615
|
+
parent: string;
|
616
|
+
/** Required. An identifier for the posture deployment. */
|
617
|
+
postureDeploymentId?: string;
|
618
|
+
/** Returns response with indentations and line breaks. */
|
619
|
+
prettyPrint?: boolean;
|
620
|
+
/** 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. */
|
621
|
+
quotaUser?: string;
|
622
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
623
|
+
upload_protocol?: string;
|
624
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
625
|
+
uploadType?: string;
|
626
|
+
},
|
627
|
+
body: PostureDeployment
|
628
|
+
): Request<Operation>;
|
629
|
+
/** Deletes a PostureDeployment. */
|
630
|
+
delete(request?: {
|
631
|
+
/** V1 error format. */
|
632
|
+
'$.xgafv'?: string;
|
633
|
+
/** OAuth access token. */
|
634
|
+
access_token?: string;
|
635
|
+
/** Data format for response. */
|
636
|
+
alt?: string;
|
637
|
+
/** JSONP */
|
638
|
+
callback?: string;
|
639
|
+
/** Optional. An opaque identifier for the current version of the posture deployment. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture deployment is deleted regardless of its current `etag` value. */
|
640
|
+
etag?: string;
|
641
|
+
/** Selector specifying which fields to include in a partial response. */
|
642
|
+
fields?: string;
|
643
|
+
/** 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. */
|
644
|
+
key?: string;
|
645
|
+
/** Required. The name of the posture deployment, in the format `organizations/{organization}/locations/global/postureDeployments/{posture_id}`. */
|
646
|
+
name: string;
|
647
|
+
/** OAuth 2.0 token for the current user. */
|
648
|
+
oauth_token?: string;
|
649
|
+
/** Returns response with indentations and line breaks. */
|
650
|
+
prettyPrint?: boolean;
|
651
|
+
/** 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. */
|
652
|
+
quotaUser?: string;
|
653
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
654
|
+
upload_protocol?: string;
|
655
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
656
|
+
uploadType?: string;
|
657
|
+
}): Request<Operation>;
|
658
|
+
/** Gets details for a PostureDeployment. */
|
659
|
+
get(request?: {
|
660
|
+
/** V1 error format. */
|
661
|
+
'$.xgafv'?: string;
|
662
|
+
/** OAuth access token. */
|
663
|
+
access_token?: string;
|
664
|
+
/** Data format for response. */
|
665
|
+
alt?: string;
|
666
|
+
/** JSONP */
|
667
|
+
callback?: string;
|
668
|
+
/** Selector specifying which fields to include in a partial response. */
|
669
|
+
fields?: string;
|
670
|
+
/** 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. */
|
671
|
+
key?: string;
|
672
|
+
/** Required. The name of the PostureDeployment, in the format `organizations/{organization}/locations/global/postureDeployments/{posture_deployment_id}`. */
|
673
|
+
name: string;
|
674
|
+
/** OAuth 2.0 token for the current user. */
|
675
|
+
oauth_token?: string;
|
676
|
+
/** Returns response with indentations and line breaks. */
|
677
|
+
prettyPrint?: boolean;
|
678
|
+
/** 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. */
|
679
|
+
quotaUser?: string;
|
680
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
681
|
+
upload_protocol?: string;
|
682
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
683
|
+
uploadType?: string;
|
684
|
+
}): Request<PostureDeployment>;
|
685
|
+
/** Lists every PostureDeployment in a project and location. */
|
686
|
+
list(request?: {
|
687
|
+
/** V1 error format. */
|
688
|
+
'$.xgafv'?: string;
|
689
|
+
/** OAuth access token. */
|
690
|
+
access_token?: string;
|
691
|
+
/** Data format for response. */
|
692
|
+
alt?: string;
|
693
|
+
/** JSONP */
|
694
|
+
callback?: string;
|
695
|
+
/** Selector specifying which fields to include in a partial response. */
|
696
|
+
fields?: string;
|
697
|
+
/** Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160). */
|
698
|
+
filter?: string;
|
699
|
+
/** 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. */
|
700
|
+
key?: string;
|
701
|
+
/** OAuth 2.0 token for the current user. */
|
702
|
+
oauth_token?: string;
|
703
|
+
/** Optional. The maximum number of posture deployments to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value. */
|
704
|
+
pageSize?: number;
|
705
|
+
/** Optional. A pagination token returned from a previous request to list posture deployments. Provide this token to retrieve the next page of results. */
|
706
|
+
pageToken?: string;
|
707
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
708
|
+
parent: 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<ListPostureDeploymentsResponse>;
|
718
|
+
/** Updates an existing PostureDeployment. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture deployment: 1. Call GetPostureDeployment to get the current version of the deployment. 2. Update the fields in the deployment as needed. 3. Call UpdatePostureDeployment to update the deployment. Ensure that your request includes the `etag` value from the GetPostureDeployment response. **Important:** If you omit the `etag` when you call UpdatePostureDeployment, then the updated deployment unconditionally overwrites the existing deployment. */
|
719
|
+
patch(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
|
+
/** Required. Identifier. The name of the posture deployment, in the format `organizations/{organization}/locations/global/postureDeployments/{deployment_id}`. */
|
733
|
+
name: string;
|
734
|
+
/** OAuth 2.0 token for the current user. */
|
735
|
+
oauth_token?: string;
|
736
|
+
/** Returns response with indentations and line breaks. */
|
737
|
+
prettyPrint?: boolean;
|
738
|
+
/** 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. */
|
739
|
+
quotaUser?: string;
|
740
|
+
/** Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id */
|
741
|
+
updateMask?: string;
|
742
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
743
|
+
upload_protocol?: string;
|
744
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
745
|
+
uploadType?: string;
|
746
|
+
/** Request body */
|
747
|
+
resource: PostureDeployment;
|
748
|
+
}): Request<Operation>;
|
749
|
+
patch(
|
750
|
+
request: {
|
751
|
+
/** V1 error format. */
|
752
|
+
'$.xgafv'?: string;
|
753
|
+
/** OAuth access token. */
|
754
|
+
access_token?: string;
|
755
|
+
/** Data format for response. */
|
756
|
+
alt?: string;
|
757
|
+
/** JSONP */
|
758
|
+
callback?: string;
|
759
|
+
/** Selector specifying which fields to include in a partial response. */
|
760
|
+
fields?: string;
|
761
|
+
/** 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. */
|
762
|
+
key?: string;
|
763
|
+
/** Required. Identifier. The name of the posture deployment, in the format `organizations/{organization}/locations/global/postureDeployments/{deployment_id}`. */
|
764
|
+
name: string;
|
765
|
+
/** OAuth 2.0 token for the current user. */
|
766
|
+
oauth_token?: string;
|
767
|
+
/** Returns response with indentations and line breaks. */
|
768
|
+
prettyPrint?: boolean;
|
769
|
+
/** 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. */
|
770
|
+
quotaUser?: string;
|
771
|
+
/** Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id */
|
772
|
+
updateMask?: string;
|
773
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
774
|
+
upload_protocol?: string;
|
775
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
776
|
+
uploadType?: string;
|
777
|
+
},
|
778
|
+
body: PostureDeployment
|
779
|
+
): Request<Operation>;
|
780
|
+
}
|
781
|
+
interface PosturesResource {
|
782
|
+
/** Creates a new Posture. */
|
783
|
+
create(request: {
|
784
|
+
/** V1 error format. */
|
785
|
+
'$.xgafv'?: string;
|
786
|
+
/** OAuth access token. */
|
787
|
+
access_token?: string;
|
788
|
+
/** Data format for response. */
|
789
|
+
alt?: string;
|
790
|
+
/** JSONP */
|
791
|
+
callback?: string;
|
792
|
+
/** Selector specifying which fields to include in a partial response. */
|
793
|
+
fields?: string;
|
794
|
+
/** 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. */
|
795
|
+
key?: string;
|
796
|
+
/** OAuth 2.0 token for the current user. */
|
797
|
+
oauth_token?: string;
|
798
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
799
|
+
parent: string;
|
800
|
+
/** Required. An identifier for the posture. */
|
801
|
+
postureId?: string;
|
802
|
+
/** Returns response with indentations and line breaks. */
|
803
|
+
prettyPrint?: boolean;
|
804
|
+
/** 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. */
|
805
|
+
quotaUser?: string;
|
806
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
807
|
+
upload_protocol?: string;
|
808
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
809
|
+
uploadType?: string;
|
810
|
+
/** Request body */
|
811
|
+
resource: Posture;
|
812
|
+
}): Request<Operation>;
|
813
|
+
create(
|
814
|
+
request: {
|
815
|
+
/** V1 error format. */
|
816
|
+
'$.xgafv'?: string;
|
817
|
+
/** OAuth access token. */
|
818
|
+
access_token?: string;
|
819
|
+
/** Data format for response. */
|
820
|
+
alt?: string;
|
821
|
+
/** JSONP */
|
822
|
+
callback?: string;
|
823
|
+
/** Selector specifying which fields to include in a partial response. */
|
824
|
+
fields?: string;
|
825
|
+
/** 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. */
|
826
|
+
key?: string;
|
827
|
+
/** OAuth 2.0 token for the current user. */
|
828
|
+
oauth_token?: string;
|
829
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
830
|
+
parent: string;
|
831
|
+
/** Required. An identifier for the posture. */
|
832
|
+
postureId?: string;
|
833
|
+
/** Returns response with indentations and line breaks. */
|
834
|
+
prettyPrint?: boolean;
|
835
|
+
/** 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. */
|
836
|
+
quotaUser?: string;
|
837
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
838
|
+
upload_protocol?: string;
|
839
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
840
|
+
uploadType?: string;
|
841
|
+
},
|
842
|
+
body: Posture
|
843
|
+
): Request<Operation>;
|
844
|
+
/** Deletes all revisions of a Posture. You can only delete a posture if none of its revisions are deployed. */
|
845
|
+
delete(request?: {
|
846
|
+
/** V1 error format. */
|
847
|
+
'$.xgafv'?: string;
|
848
|
+
/** OAuth access token. */
|
849
|
+
access_token?: string;
|
850
|
+
/** Data format for response. */
|
851
|
+
alt?: string;
|
852
|
+
/** JSONP */
|
853
|
+
callback?: string;
|
854
|
+
/** Optional. An opaque identifier for the current version of the posture. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture is deleted regardless of its current `etag` value. */
|
855
|
+
etag?: string;
|
856
|
+
/** Selector specifying which fields to include in a partial response. */
|
857
|
+
fields?: string;
|
858
|
+
/** 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. */
|
859
|
+
key?: string;
|
860
|
+
/** Required. The name of the Posture, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
861
|
+
name: string;
|
862
|
+
/** OAuth 2.0 token for the current user. */
|
863
|
+
oauth_token?: string;
|
864
|
+
/** Returns response with indentations and line breaks. */
|
865
|
+
prettyPrint?: boolean;
|
866
|
+
/** 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. */
|
867
|
+
quotaUser?: string;
|
868
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
869
|
+
upload_protocol?: string;
|
870
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
871
|
+
uploadType?: string;
|
872
|
+
}): Request<Operation>;
|
873
|
+
/** Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a Posture. If the other organization, folder, or project already has a posture, then the result of the long-running operation is an ALREADY_EXISTS error. */
|
874
|
+
extract(request: {
|
875
|
+
/** V1 error format. */
|
876
|
+
'$.xgafv'?: string;
|
877
|
+
/** OAuth access token. */
|
878
|
+
access_token?: string;
|
879
|
+
/** Data format for response. */
|
880
|
+
alt?: string;
|
881
|
+
/** JSONP */
|
882
|
+
callback?: string;
|
883
|
+
/** Selector specifying which fields to include in a partial response. */
|
884
|
+
fields?: string;
|
885
|
+
/** 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. */
|
886
|
+
key?: string;
|
887
|
+
/** OAuth 2.0 token for the current user. */
|
888
|
+
oauth_token?: string;
|
889
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
890
|
+
parent: string;
|
891
|
+
/** Returns response with indentations and line breaks. */
|
892
|
+
prettyPrint?: boolean;
|
893
|
+
/** 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. */
|
894
|
+
quotaUser?: string;
|
895
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
896
|
+
upload_protocol?: string;
|
897
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
898
|
+
uploadType?: string;
|
899
|
+
/** Request body */
|
900
|
+
resource: ExtractPostureRequest;
|
901
|
+
}): Request<Operation>;
|
902
|
+
extract(
|
903
|
+
request: {
|
904
|
+
/** V1 error format. */
|
905
|
+
'$.xgafv'?: string;
|
906
|
+
/** OAuth access token. */
|
907
|
+
access_token?: string;
|
908
|
+
/** Data format for response. */
|
909
|
+
alt?: string;
|
910
|
+
/** JSONP */
|
911
|
+
callback?: string;
|
912
|
+
/** Selector specifying which fields to include in a partial response. */
|
913
|
+
fields?: string;
|
914
|
+
/** 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. */
|
915
|
+
key?: string;
|
916
|
+
/** OAuth 2.0 token for the current user. */
|
917
|
+
oauth_token?: string;
|
918
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
919
|
+
parent: string;
|
920
|
+
/** Returns response with indentations and line breaks. */
|
921
|
+
prettyPrint?: boolean;
|
922
|
+
/** 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. */
|
923
|
+
quotaUser?: string;
|
924
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
925
|
+
upload_protocol?: string;
|
926
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
927
|
+
uploadType?: string;
|
928
|
+
},
|
929
|
+
body: ExtractPostureRequest
|
930
|
+
): Request<Operation>;
|
931
|
+
/** Gets a single revision of a Posture. */
|
932
|
+
get(request?: {
|
933
|
+
/** V1 error format. */
|
934
|
+
'$.xgafv'?: string;
|
935
|
+
/** OAuth access token. */
|
936
|
+
access_token?: string;
|
937
|
+
/** Data format for response. */
|
938
|
+
alt?: string;
|
939
|
+
/** JSONP */
|
940
|
+
callback?: string;
|
941
|
+
/** Selector specifying which fields to include in a partial response. */
|
942
|
+
fields?: string;
|
943
|
+
/** 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. */
|
944
|
+
key?: string;
|
945
|
+
/** Required. The name of the Posture, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
946
|
+
name: string;
|
947
|
+
/** OAuth 2.0 token for the current user. */
|
948
|
+
oauth_token?: string;
|
949
|
+
/** Returns response with indentations and line breaks. */
|
950
|
+
prettyPrint?: boolean;
|
951
|
+
/** 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. */
|
952
|
+
quotaUser?: string;
|
953
|
+
/** Optional. The posture revision to retrieve. If not specified, the most recently updated revision is retrieved. */
|
954
|
+
revisionId?: string;
|
955
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
956
|
+
upload_protocol?: string;
|
957
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
958
|
+
uploadType?: string;
|
959
|
+
}): Request<Posture>;
|
960
|
+
/** Lists the most recent revisions of all Posture resources in a specified organization and location. */
|
961
|
+
list(request?: {
|
962
|
+
/** V1 error format. */
|
963
|
+
'$.xgafv'?: string;
|
964
|
+
/** OAuth access token. */
|
965
|
+
access_token?: string;
|
966
|
+
/** Data format for response. */
|
967
|
+
alt?: string;
|
968
|
+
/** JSONP */
|
969
|
+
callback?: string;
|
970
|
+
/** Selector specifying which fields to include in a partial response. */
|
971
|
+
fields?: string;
|
972
|
+
/** Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160). */
|
973
|
+
filter?: string;
|
974
|
+
/** 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. */
|
975
|
+
key?: string;
|
976
|
+
/** OAuth 2.0 token for the current user. */
|
977
|
+
oauth_token?: string;
|
978
|
+
/** The maximum number of postures to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value. */
|
979
|
+
pageSize?: number;
|
980
|
+
/** A pagination token returned from a previous request to list postures. Provide this token to retrieve the next page of results. */
|
981
|
+
pageToken?: string;
|
982
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
983
|
+
parent: string;
|
984
|
+
/** Returns response with indentations and line breaks. */
|
985
|
+
prettyPrint?: boolean;
|
986
|
+
/** 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. */
|
987
|
+
quotaUser?: string;
|
988
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
989
|
+
upload_protocol?: string;
|
990
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
991
|
+
uploadType?: string;
|
992
|
+
}): Request<ListPosturesResponse>;
|
993
|
+
/** Lists all revisions of a single Posture. */
|
994
|
+
listRevisions(request?: {
|
995
|
+
/** V1 error format. */
|
996
|
+
'$.xgafv'?: string;
|
997
|
+
/** OAuth access token. */
|
998
|
+
access_token?: string;
|
999
|
+
/** Data format for response. */
|
1000
|
+
alt?: string;
|
1001
|
+
/** JSONP */
|
1002
|
+
callback?: string;
|
1003
|
+
/** Selector specifying which fields to include in a partial response. */
|
1004
|
+
fields?: string;
|
1005
|
+
/** 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. */
|
1006
|
+
key?: string;
|
1007
|
+
/** Required. The name of the Posture, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
1008
|
+
name: string;
|
1009
|
+
/** OAuth 2.0 token for the current user. */
|
1010
|
+
oauth_token?: string;
|
1011
|
+
/** Optional. The maximum number of posture revisions to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value. */
|
1012
|
+
pageSize?: number;
|
1013
|
+
/** Optional. A pagination token from a previous request to list posture revisions. Provide this token to retrieve the next page of results. */
|
1014
|
+
pageToken?: string;
|
1015
|
+
/** Returns response with indentations and line breaks. */
|
1016
|
+
prettyPrint?: boolean;
|
1017
|
+
/** 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. */
|
1018
|
+
quotaUser?: string;
|
1019
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1020
|
+
upload_protocol?: string;
|
1021
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1022
|
+
uploadType?: string;
|
1023
|
+
}): Request<ListPostureRevisionsResponse>;
|
1024
|
+
/** Updates a revision of an existing Posture. If the posture revision that you update is currently deployed, then a new revision of the posture is created. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture: 1. Call GetPosture to get the current version of the posture. 2. Update the fields in the posture as needed. 3. Call UpdatePosture to update the posture. Ensure that your request includes the `etag` value from the GetPosture response. **Important:** If you omit the `etag` when you call UpdatePosture, then the updated posture unconditionally overwrites the existing posture. */
|
1025
|
+
patch(request: {
|
1026
|
+
/** V1 error format. */
|
1027
|
+
'$.xgafv'?: string;
|
1028
|
+
/** OAuth access token. */
|
1029
|
+
access_token?: string;
|
1030
|
+
/** Data format for response. */
|
1031
|
+
alt?: string;
|
1032
|
+
/** JSONP */
|
1033
|
+
callback?: string;
|
1034
|
+
/** Selector specifying which fields to include in a partial response. */
|
1035
|
+
fields?: string;
|
1036
|
+
/** 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. */
|
1037
|
+
key?: string;
|
1038
|
+
/** Required. Identifier. The name of the posture, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
1039
|
+
name: string;
|
1040
|
+
/** OAuth 2.0 token for the current user. */
|
1041
|
+
oauth_token?: string;
|
1042
|
+
/** Returns response with indentations and line breaks. */
|
1043
|
+
prettyPrint?: boolean;
|
1044
|
+
/** 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. */
|
1045
|
+
quotaUser?: string;
|
1046
|
+
/** Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created. */
|
1047
|
+
revisionId?: string;
|
1048
|
+
/** Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state */
|
1049
|
+
updateMask?: string;
|
1050
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1051
|
+
upload_protocol?: string;
|
1052
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1053
|
+
uploadType?: string;
|
1054
|
+
/** Request body */
|
1055
|
+
resource: Posture;
|
1056
|
+
}): Request<Operation>;
|
1057
|
+
patch(
|
1058
|
+
request: {
|
1059
|
+
/** V1 error format. */
|
1060
|
+
'$.xgafv'?: string;
|
1061
|
+
/** OAuth access token. */
|
1062
|
+
access_token?: string;
|
1063
|
+
/** Data format for response. */
|
1064
|
+
alt?: string;
|
1065
|
+
/** JSONP */
|
1066
|
+
callback?: string;
|
1067
|
+
/** Selector specifying which fields to include in a partial response. */
|
1068
|
+
fields?: string;
|
1069
|
+
/** 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. */
|
1070
|
+
key?: string;
|
1071
|
+
/** Required. Identifier. The name of the posture, in the format `organizations/{organization}/locations/global/postures/{posture_id}`. */
|
1072
|
+
name: string;
|
1073
|
+
/** OAuth 2.0 token for the current user. */
|
1074
|
+
oauth_token?: string;
|
1075
|
+
/** Returns response with indentations and line breaks. */
|
1076
|
+
prettyPrint?: boolean;
|
1077
|
+
/** 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. */
|
1078
|
+
quotaUser?: string;
|
1079
|
+
/** Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created. */
|
1080
|
+
revisionId?: string;
|
1081
|
+
/** Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state */
|
1082
|
+
updateMask?: string;
|
1083
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1084
|
+
upload_protocol?: string;
|
1085
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1086
|
+
uploadType?: string;
|
1087
|
+
},
|
1088
|
+
body: Posture
|
1089
|
+
): Request<Operation>;
|
1090
|
+
}
|
1091
|
+
interface PostureTemplatesResource {
|
1092
|
+
/** Gets a single revision of a PostureTemplate. */
|
1093
|
+
get(request?: {
|
1094
|
+
/** V1 error format. */
|
1095
|
+
'$.xgafv'?: string;
|
1096
|
+
/** OAuth access token. */
|
1097
|
+
access_token?: string;
|
1098
|
+
/** Data format for response. */
|
1099
|
+
alt?: string;
|
1100
|
+
/** JSONP */
|
1101
|
+
callback?: string;
|
1102
|
+
/** Selector specifying which fields to include in a partial response. */
|
1103
|
+
fields?: string;
|
1104
|
+
/** 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. */
|
1105
|
+
key?: string;
|
1106
|
+
/** Required. The name of the PostureTemplate, in the format `organizations/{organization}/locations/global/postureTemplates/{posture_template}`. */
|
1107
|
+
name: string;
|
1108
|
+
/** OAuth 2.0 token for the current user. */
|
1109
|
+
oauth_token?: string;
|
1110
|
+
/** Returns response with indentations and line breaks. */
|
1111
|
+
prettyPrint?: boolean;
|
1112
|
+
/** 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. */
|
1113
|
+
quotaUser?: string;
|
1114
|
+
/** Optional. The posture template revision to retrieve. If not specified, the most recently updated revision is retrieved. */
|
1115
|
+
revisionId?: string;
|
1116
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1117
|
+
upload_protocol?: string;
|
1118
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1119
|
+
uploadType?: string;
|
1120
|
+
}): Request<PostureTemplate>;
|
1121
|
+
/** Lists every PostureTemplate in a given organization and location. */
|
1122
|
+
list(request?: {
|
1123
|
+
/** V1 error format. */
|
1124
|
+
'$.xgafv'?: string;
|
1125
|
+
/** OAuth access token. */
|
1126
|
+
access_token?: string;
|
1127
|
+
/** Data format for response. */
|
1128
|
+
alt?: string;
|
1129
|
+
/** JSONP */
|
1130
|
+
callback?: string;
|
1131
|
+
/** Selector specifying which fields to include in a partial response. */
|
1132
|
+
fields?: string;
|
1133
|
+
/** Optional. A filter to apply to the list of postures, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160). */
|
1134
|
+
filter?: string;
|
1135
|
+
/** 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. */
|
1136
|
+
key?: string;
|
1137
|
+
/** OAuth 2.0 token for the current user. */
|
1138
|
+
oauth_token?: string;
|
1139
|
+
/** Optional. The maximum number of posture templates to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value. */
|
1140
|
+
pageSize?: number;
|
1141
|
+
/** Optional. A pagination token returned from a previous request to list posture templates. Provide this token to retrieve the next page of results. */
|
1142
|
+
pageToken?: string;
|
1143
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
1144
|
+
parent: string;
|
1145
|
+
/** Returns response with indentations and line breaks. */
|
1146
|
+
prettyPrint?: boolean;
|
1147
|
+
/** 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. */
|
1148
|
+
quotaUser?: string;
|
1149
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1150
|
+
upload_protocol?: string;
|
1151
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1152
|
+
uploadType?: string;
|
1153
|
+
}): Request<ListPostureTemplatesResponse>;
|
1154
|
+
}
|
1155
|
+
interface ReportsResource {
|
1156
|
+
/** Validates a specified infrastructure-as-code (IaC) configuration, and creates a Report with the validation results. Only Terraform configurations are supported. Only modified assets are validated. */
|
1157
|
+
createIaCValidationReport(request: {
|
1158
|
+
/** V1 error format. */
|
1159
|
+
'$.xgafv'?: string;
|
1160
|
+
/** OAuth access token. */
|
1161
|
+
access_token?: string;
|
1162
|
+
/** Data format for response. */
|
1163
|
+
alt?: string;
|
1164
|
+
/** JSONP */
|
1165
|
+
callback?: string;
|
1166
|
+
/** Selector specifying which fields to include in a partial response. */
|
1167
|
+
fields?: string;
|
1168
|
+
/** 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. */
|
1169
|
+
key?: string;
|
1170
|
+
/** OAuth 2.0 token for the current user. */
|
1171
|
+
oauth_token?: string;
|
1172
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
1173
|
+
parent: string;
|
1174
|
+
/** Returns response with indentations and line breaks. */
|
1175
|
+
prettyPrint?: boolean;
|
1176
|
+
/** 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. */
|
1177
|
+
quotaUser?: string;
|
1178
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1179
|
+
upload_protocol?: string;
|
1180
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1181
|
+
uploadType?: string;
|
1182
|
+
/** Request body */
|
1183
|
+
resource: CreateIaCValidationReportRequest;
|
1184
|
+
}): Request<Operation>;
|
1185
|
+
createIaCValidationReport(
|
1186
|
+
request: {
|
1187
|
+
/** V1 error format. */
|
1188
|
+
'$.xgafv'?: string;
|
1189
|
+
/** OAuth access token. */
|
1190
|
+
access_token?: string;
|
1191
|
+
/** Data format for response. */
|
1192
|
+
alt?: string;
|
1193
|
+
/** JSONP */
|
1194
|
+
callback?: string;
|
1195
|
+
/** Selector specifying which fields to include in a partial response. */
|
1196
|
+
fields?: string;
|
1197
|
+
/** 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. */
|
1198
|
+
key?: string;
|
1199
|
+
/** OAuth 2.0 token for the current user. */
|
1200
|
+
oauth_token?: string;
|
1201
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
1202
|
+
parent: string;
|
1203
|
+
/** Returns response with indentations and line breaks. */
|
1204
|
+
prettyPrint?: boolean;
|
1205
|
+
/** 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. */
|
1206
|
+
quotaUser?: string;
|
1207
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1208
|
+
upload_protocol?: string;
|
1209
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1210
|
+
uploadType?: string;
|
1211
|
+
},
|
1212
|
+
body: CreateIaCValidationReportRequest
|
1213
|
+
): Request<Operation>;
|
1214
|
+
/** Gets details for a Report. */
|
1215
|
+
get(request?: {
|
1216
|
+
/** V1 error format. */
|
1217
|
+
'$.xgafv'?: string;
|
1218
|
+
/** OAuth access token. */
|
1219
|
+
access_token?: string;
|
1220
|
+
/** Data format for response. */
|
1221
|
+
alt?: string;
|
1222
|
+
/** JSONP */
|
1223
|
+
callback?: string;
|
1224
|
+
/** Selector specifying which fields to include in a partial response. */
|
1225
|
+
fields?: string;
|
1226
|
+
/** 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. */
|
1227
|
+
key?: string;
|
1228
|
+
/** Required. The name of the report, in the format `organizations/{organization}/locations/global/reports/{report_id}`. */
|
1229
|
+
name: string;
|
1230
|
+
/** OAuth 2.0 token for the current user. */
|
1231
|
+
oauth_token?: string;
|
1232
|
+
/** Returns response with indentations and line breaks. */
|
1233
|
+
prettyPrint?: boolean;
|
1234
|
+
/** 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. */
|
1235
|
+
quotaUser?: string;
|
1236
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1237
|
+
upload_protocol?: string;
|
1238
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1239
|
+
uploadType?: string;
|
1240
|
+
}): Request<Report>;
|
1241
|
+
/** Lists every Report in a given organization and location. */
|
1242
|
+
list(request?: {
|
1243
|
+
/** V1 error format. */
|
1244
|
+
'$.xgafv'?: string;
|
1245
|
+
/** OAuth access token. */
|
1246
|
+
access_token?: string;
|
1247
|
+
/** Data format for response. */
|
1248
|
+
alt?: string;
|
1249
|
+
/** JSONP */
|
1250
|
+
callback?: string;
|
1251
|
+
/** Selector specifying which fields to include in a partial response. */
|
1252
|
+
fields?: string;
|
1253
|
+
/** Optional. A filter to apply to the list of reports, in the format defined in [AIP-160: Filtering](https://google.aip.dev/160). */
|
1254
|
+
filter?: string;
|
1255
|
+
/** 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. */
|
1256
|
+
key?: string;
|
1257
|
+
/** OAuth 2.0 token for the current user. */
|
1258
|
+
oauth_token?: string;
|
1259
|
+
/** Optional. The maximum number of reports to return. The default value is `500`. If you exceed the maximum value of `1000`, then the service uses the maximum value. */
|
1260
|
+
pageSize?: number;
|
1261
|
+
/** Optional. A pagination token returned from a previous request to list reports. Provide this token to retrieve the next page of results. */
|
1262
|
+
pageToken?: string;
|
1263
|
+
/** Required. The parent resource name, in the format `organizations/{organization}/locations/global`. */
|
1264
|
+
parent: string;
|
1265
|
+
/** Returns response with indentations and line breaks. */
|
1266
|
+
prettyPrint?: boolean;
|
1267
|
+
/** 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. */
|
1268
|
+
quotaUser?: string;
|
1269
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1270
|
+
upload_protocol?: string;
|
1271
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1272
|
+
uploadType?: string;
|
1273
|
+
}): Request<ListReportsResponse>;
|
1274
|
+
}
|
1275
|
+
interface LocationsResource {
|
1276
|
+
operations: OperationsResource;
|
1277
|
+
postureDeployments: PostureDeploymentsResource;
|
1278
|
+
postures: PosturesResource;
|
1279
|
+
postureTemplates: PostureTemplatesResource;
|
1280
|
+
reports: ReportsResource;
|
1281
|
+
}
|
1282
|
+
interface OrganizationsResource {
|
1283
|
+
locations: LocationsResource;
|
1284
|
+
}
|
1285
|
+
interface LocationsResource {
|
1286
|
+
/** Gets information about a location. */
|
1287
|
+
get(request?: {
|
1288
|
+
/** V1 error format. */
|
1289
|
+
'$.xgafv'?: string;
|
1290
|
+
/** OAuth access token. */
|
1291
|
+
access_token?: string;
|
1292
|
+
/** Data format for response. */
|
1293
|
+
alt?: string;
|
1294
|
+
/** JSONP */
|
1295
|
+
callback?: string;
|
1296
|
+
/** Selector specifying which fields to include in a partial response. */
|
1297
|
+
fields?: string;
|
1298
|
+
/** 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. */
|
1299
|
+
key?: string;
|
1300
|
+
/** Resource name for the location. */
|
1301
|
+
name: string;
|
1302
|
+
/** OAuth 2.0 token for the current user. */
|
1303
|
+
oauth_token?: string;
|
1304
|
+
/** Returns response with indentations and line breaks. */
|
1305
|
+
prettyPrint?: boolean;
|
1306
|
+
/** 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. */
|
1307
|
+
quotaUser?: string;
|
1308
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1309
|
+
upload_protocol?: string;
|
1310
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1311
|
+
uploadType?: string;
|
1312
|
+
}): Request<Location>;
|
1313
|
+
/** Lists information about the supported locations for this service. */
|
1314
|
+
list(request?: {
|
1315
|
+
/** V1 error format. */
|
1316
|
+
'$.xgafv'?: string;
|
1317
|
+
/** OAuth access token. */
|
1318
|
+
access_token?: string;
|
1319
|
+
/** Data format for response. */
|
1320
|
+
alt?: string;
|
1321
|
+
/** JSONP */
|
1322
|
+
callback?: string;
|
1323
|
+
/** Selector specifying which fields to include in a partial response. */
|
1324
|
+
fields?: string;
|
1325
|
+
/** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
|
1326
|
+
filter?: string;
|
1327
|
+
/** 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. */
|
1328
|
+
key?: string;
|
1329
|
+
/** The resource that owns the locations collection, if applicable. */
|
1330
|
+
name: string;
|
1331
|
+
/** OAuth 2.0 token for the current user. */
|
1332
|
+
oauth_token?: string;
|
1333
|
+
/** The maximum number of results to return. If not set, the service selects a default. */
|
1334
|
+
pageSize?: number;
|
1335
|
+
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
1336
|
+
pageToken?: string;
|
1337
|
+
/** Returns response with indentations and line breaks. */
|
1338
|
+
prettyPrint?: boolean;
|
1339
|
+
/** 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. */
|
1340
|
+
quotaUser?: string;
|
1341
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1342
|
+
upload_protocol?: string;
|
1343
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1344
|
+
uploadType?: string;
|
1345
|
+
}): Request<ListLocationsResponse>;
|
1346
|
+
}
|
1347
|
+
interface ProjectsResource {
|
1348
|
+
locations: LocationsResource;
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
const organizations: OrganizationsResource;
|
1352
|
+
|
1353
|
+
const projects: ProjectsResource;
|
1354
|
+
}
|
1355
|
+
}
|