@maxim_mazurok/gapi.client.auditmanager-v1 0.0.0 → 0.0.20260826

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.
Files changed (4) hide show
  1. package/index.d.ts +1842 -1
  2. package/package.json +16 -3
  3. package/readme.md +95 -0
  4. package/README.md +0 -3
package/index.d.ts CHANGED
@@ -1 +1,1842 @@
1
- export {};
1
+ /* Type definitions for non-npm package Audit Manager API v1 0.0 */
2
+ // Project: https://cloud.google.com/assured-workloads/docs/audit-manager
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://auditmanager.googleapis.com/$discovery/rest?version=v1
12
+ // Revision: 20260826
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Audit Manager API v1 */
18
+ function load(
19
+ urlOrObject: 'https://auditmanager.googleapis.com/$discovery/rest?version=v1',
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'auditmanager', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(name: 'auditmanager', version: 'v1', callback: () => any): void;
25
+
26
+ namespace auditmanager {
27
+ interface AuditReport {
28
+ /** Output only. Compliance framework to use for the audit report. For example, `CIS_GCP_FOUNDATIONS_V1_2_0`. */
29
+ complianceFramework?: string;
30
+ /** Output only. Deprecated. Compliance standard to be audited against. Use the `compliance_framework` field instead. */
31
+ complianceStandard?: string;
32
+ /** Output only. Overall status of the controls. */
33
+ controlDetails?: ControlDetails[];
34
+ /** Output only. Creation time of the audit report. */
35
+ createTime?: string;
36
+ /** Output only. Cloud Storage bucket where the audit report is uploaded to. */
37
+ destinationDetails?: DestinationDetails;
38
+ /** Identifier. Name of the audit report, in one of the following formats: * `projects/{project}/locations/{location}/auditReports/{audit_report}` * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` */
39
+ name?: string;
40
+ /** Output only. Client operation ID for the audit report. */
41
+ operationId?: string;
42
+ /** Output only. State of audit report generation. */
43
+ reportGenerationState?:
44
+ | 'REPORT_GENERATION_STATE_UNSPECIFIED'
45
+ | 'IN_PROGRESS'
46
+ | 'COMPLETED'
47
+ | 'FAILED'
48
+ | 'SUMMARY_UNKNOWN';
49
+ /** Output only. Report summary that includes information about compliance and violation counts. */
50
+ reportSummary?: ReportSummary;
51
+ /** Output only. Organization, folder, or project that the report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
52
+ scope?: string;
53
+ /** Output only. Project number, folder ID, or organization ID that the audit report was generated for. */
54
+ scopeId?: string;
55
+ }
56
+ interface AuditScopeReport {
57
+ /** Identifier. Name for the audit scope report, in one of the following formats: * `projects/{project}/locations/{location}/auditScopeReports/{audit_scope_report}` * `folders/{folder}/locations/{location}/auditScopeReports/{audit_scope_report}` * `organizations/{organization}/locations/{location}/auditScopeReports/{audit_scope_report}` */
58
+ name?: string;
59
+ /** Audit scope report content in byte format. */
60
+ scopeReportContents?: string;
61
+ }
62
+ interface CancelOperationRequest {}
63
+ interface Control {
64
+ /** Output only. Regulatory family of the control. */
65
+ controlFamily?: ControlFamily;
66
+ /** Output only. A description of your responsibility for this control. */
67
+ customerResponsibilityDescription?: string;
68
+ /** Output only. A description of how you can implement your responsibility for this control. */
69
+ customerResponsibilityImplementation?: string;
70
+ /** Output only. Description of the control. */
71
+ description?: string;
72
+ /** Output only. Display name of the control. */
73
+ displayName?: string;
74
+ /** Output only. Category that the control belongs to. */
75
+ family?:
76
+ | 'FAMILY_UNSPECIFIED'
77
+ | 'AC'
78
+ | 'AT'
79
+ | 'AU'
80
+ | 'CA'
81
+ | 'CM'
82
+ | 'CP'
83
+ | 'IA'
84
+ | 'IR'
85
+ | 'MA'
86
+ | 'MP'
87
+ | 'PE'
88
+ | 'PL'
89
+ | 'PS'
90
+ | 'RA'
91
+ | 'SA'
92
+ | 'SC'
93
+ | 'SI'
94
+ | 'SR';
95
+ /** Output only. A description of Google's responsibility for this control. */
96
+ googleResponsibilityDescription?: string;
97
+ /** Output only. A description of how Google implements its responsibility for this control. */
98
+ googleResponsibilityImplementation?: string;
99
+ /** Output only. Control identifier that's used to fetch the findings. The identifier is the same as the control report name. */
100
+ id?: string;
101
+ /** Output only. Who is responsible for implementing this control. Set to one of the following values: `GOOGLE`, `CUSTOMER`, or `SHARED`. */
102
+ responsibilityType?: string;
103
+ }
104
+ interface ControlDetails {
105
+ /** Output only. Overall status of the findings for the control. */
106
+ complianceState?:
107
+ | 'COMPLIANCE_STATE_UNSPECIFIED'
108
+ | 'COMPLIANT'
109
+ | 'VIOLATION'
110
+ | 'MANUAL_REVIEW_NEEDED'
111
+ | 'ERROR'
112
+ | 'AUDIT_NOT_SUPPORTED';
113
+ /** Control that the findings are being reported for. */
114
+ control?: Control;
115
+ /** A control report summary that provides a high-level overview of the compliance controls and the assessment status. */
116
+ controlReportSummary?: ReportSummary;
117
+ }
118
+ interface ControlFamily {
119
+ /** Display name of the regulatory control family. */
120
+ displayName?: string;
121
+ /** ID of the regulatory control family. To find the list of supported control families, use the ListControls method and review the `control_family` field in the response. */
122
+ familyId?: string;
123
+ }
124
+ interface DestinationDetails {
125
+ /** URI for the Cloud Storage bucket, in the format `gs://{bucket_name}`. */
126
+ gcsBucketUri?: string;
127
+ }
128
+ interface EligibleDestination {
129
+ /** The location of the Cloud Storage bucket where you want to upload the audit report and evidence during the GenerateAuditReport API call. */
130
+ eligibleGcsBucket?: string;
131
+ }
132
+ interface Empty {}
133
+ interface Enrollment {
134
+ /** Output only. Cloud Storage buckets where you want to upload the audit reports. */
135
+ destinationDetails?: DestinationDetails[];
136
+ /** Identifier. Name of the enrollment, in one of the following formats: * `projects/{project}/locations/{location}/enrollments/{enrollment}` * `folders/{folder}/locations/{location}/enrollments/{enrollment}` * `organizations/{organization}/locations/{location}/enrollments/{enrollment}` */
137
+ name?: string;
138
+ }
139
+ interface EnrollResourceRequest {
140
+ /** Required. Cloud Storage buckets that you can upload your audit reports to during the audit process. When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available. */
141
+ destinations?: EligibleDestination[];
142
+ }
143
+ interface GenerateAuditReportRequest {
144
+ /** Required. The framework that's used for the audit report. For example, `NIST_800_53`. */
145
+ complianceFramework?: string;
146
+ /** Optional. Deprecated. Compliance standard for the audit report. Use the `compliance_framework` field instead. */
147
+ complianceStandard?: string;
148
+ /** URL for the Cloud Storage bucket where the report and evidence is uploaded. You must select a bucket that was provided during the enrollment process. */
149
+ gcsUri?: string;
150
+ /** Required. Format for the audit report. */
151
+ reportFormat?:
152
+ 'AUDIT_REPORT_FORMAT_UNSPECIFIED' | 'AUDIT_REPORT_FORMAT_ODF';
153
+ /** Optional. If `true`, only validates the request and does not generate the audit report. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without triggering expensive Long-Running Operations (LROs) or consuming resource quotas. */
154
+ validateOnly?: boolean;
155
+ }
156
+ interface GenerateAuditScopeReportRequest {
157
+ /** Required. Framework (set of controls) that the audit scope report is generated against. For example, `NIST_800_53`. */
158
+ complianceFramework?: string;
159
+ /** Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against. Use the `compliance_framework` field instead. */
160
+ complianceStandard?: string;
161
+ /** Required. Format for the audit scope report. */
162
+ reportFormat?:
163
+ | 'AUDIT_SCOPE_REPORT_FORMAT_UNSPECIFIED'
164
+ | 'AUDIT_SCOPE_REPORT_FORMAT_ODF';
165
+ /** Optional. If `true`, only validates the request and does not generate the audit scope report. This executes standard request validation (such as schema, framework existence, scope, and IAM checks) and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, and parameters safely without consuming resource quotas. */
166
+ validateOnly?: boolean;
167
+ }
168
+ interface ListAuditReportsResponse {
169
+ /** Output only. Audit reports. */
170
+ auditReports?: AuditReport[];
171
+ /** Output only. A token that you can send as the `page_token` in a subsequent request to retrieve the next page of results. If this field is empty, there are no subsequent pages. */
172
+ nextPageToken?: string;
173
+ }
174
+ interface ListControlsResponse {
175
+ /** Output only. Controls for a given regulatory standard. */
176
+ controls?: Control[];
177
+ /** Output only. A token that you can send as the `page_token` in a subsequent request to retrieve the next page of results. If this field is empty, there are no subsequent pages. */
178
+ nextPageToken?: string;
179
+ }
180
+ interface ListLocationsResponse {
181
+ /** A list of locations that matches the specified filter in the request. */
182
+ locations?: Location[];
183
+ /** The standard List next-page token. */
184
+ nextPageToken?: string;
185
+ }
186
+ interface ListOperationsResponse {
187
+ /** The standard List next-page token. */
188
+ nextPageToken?: string;
189
+ /** A list of operations that matches the specified filter in the request. */
190
+ operations?: Operation[];
191
+ /** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. */
192
+ unreachable?: string[];
193
+ }
194
+ interface ListResourceEnrollmentStatusesResponse {
195
+ /** Output only. A token that you can send as the `page_token` in a subsequent request to retrieve the next page of results. If this field is empty, there are no subsequent pages. */
196
+ nextPageToken?: string;
197
+ /** Resources with their enrollment status. */
198
+ resourceEnrollmentStatuses?: ResourceEnrollmentStatus[];
199
+ }
200
+ interface Location {
201
+ /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
202
+ displayName?: string;
203
+ /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
204
+ labels?: {[P in string]: string};
205
+ /** The canonical id for this location. For example: `"us-east1"`. */
206
+ locationId?: string;
207
+ /** Service-specific metadata. For example the available capacity at the given location. */
208
+ metadata?: {[P in string]: any};
209
+ /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
210
+ name?: string;
211
+ }
212
+ interface Operation {
213
+ /** 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. */
214
+ done?: boolean;
215
+ /** The error result of the operation in case of failure or cancellation. */
216
+ error?: Status;
217
+ /** 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. */
218
+ metadata?: {[P in string]: any};
219
+ /** 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}`. */
220
+ name?: string;
221
+ /** 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`. */
222
+ response?: {[P in string]: any};
223
+ }
224
+ interface OperationMetadata {
225
+ /** Output only. The API version used to start the operation. For example, `v1`. */
226
+ apiVersion?: string;
227
+ /** Output only. Time that the operation was created. */
228
+ createTime?: string;
229
+ /** Output only. Time that the operation finished running. */
230
+ endTime?: string;
231
+ /** Output only. Whether you requested that the operation be cancelled. Operations that were cancelled successfully have an Operation.error value with a status code Code.CANCELLED. */
232
+ requestedCancellation?: boolean;
233
+ /** Output only. A human-readable status of the operation, if any. */
234
+ statusMessage?: string;
235
+ /** Output only. A server-defined resource path for the target of the operation. */
236
+ target?: string;
237
+ /** Output only. The name of the verb that was executed by the operation. */
238
+ verb?: string;
239
+ }
240
+ interface ReportGenerationProgress {
241
+ /** Output only. Name of the audit report. */
242
+ auditReport?: string;
243
+ /** Output only. Cloud Storage bucket where the audit report is uploaded to after the evaluation process is completed. */
244
+ destinationGcsBucket?: string;
245
+ /** Progress of the evaluation process. The progress is defined in terms of percentage complete. */
246
+ evaluationPercentComplete?: number;
247
+ /** Output only. Reason for failure during the audit report generation process. This field is set only if the `OperationState` attribute is `OPERATION_STATE_FAILED`. */
248
+ failureReason?: string;
249
+ /** Report generation progress, defined in terms of percentage complete. Until evaluation is complete, this value is always `0`. */
250
+ reportGenerationPercentComplete?: number;
251
+ /** Report uploading progress, defined in terms of percentage complete. Until evaluation and report generation are complete, this value is always `0`. */
252
+ reportUploadingPercentComplete?: number;
253
+ /** Output only. Current state of execution for report generation. */
254
+ state?:
255
+ | 'OPERATION_STATE_UNSPECIFIED'
256
+ | 'OPERATION_STATE_NOT_STARTED'
257
+ | 'OPERATION_STATE_EVALUATION_IN_PROGRESS'
258
+ | 'OPERATION_STATE_EVALUATION_DONE'
259
+ | 'OPERATION_STATE_EVIDENCE_REPORT_GENERATION_IN_PROGRESS'
260
+ | 'OPERATION_STATE_EVIDENCE_REPORT_GENERATION_DONE'
261
+ | 'OPERATION_STATE_EVIDENCE_UPLOAD_IN_PROGRESS'
262
+ | 'OPERATION_STATE_DONE'
263
+ | 'OPERATION_STATE_FAILED';
264
+ }
265
+ interface ReportSummary {
266
+ /** Number of compliant checks. */
267
+ compliantCount?: number;
268
+ /** Number of checks that can't be performed due to errors. */
269
+ errorCount?: number;
270
+ /** Number of checks that require a manual review. */
271
+ manualReviewNeededCount?: number;
272
+ /** Total number of evaluated checks. */
273
+ totalCount?: number;
274
+ /** Number of checks with violations. */
275
+ violationCount?: number;
276
+ }
277
+ interface ResourceEnrollmentStatus {
278
+ /** Output only. Display name for the organization, folder, or project. */
279
+ displayName?: string;
280
+ /** Output only. Deprecated. Whether the organization, folder, or project is enrolled. Use `enrollment_state` instead. */
281
+ enrolled?: boolean;
282
+ /** Output only. Enrolled destination details for the organization, folder, or project. */
283
+ enrollment?: Enrollment;
284
+ /** Output only. Enrollment state of the organization, folder, or project. */
285
+ enrollmentState?:
286
+ | 'RESOURCE_ENROLLMENT_STATE_UNSPECIFIED'
287
+ | 'NOT_ENROLLED'
288
+ | 'INHERITED'
289
+ | 'ENROLLED';
290
+ /** Identifier. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` */
291
+ name?: string;
292
+ }
293
+ interface Status {
294
+ /** The status code, which should be an enum value of google.rpc.Code. */
295
+ code?: number;
296
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
297
+ details?: {[P in string]: any}[];
298
+ /** 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. */
299
+ message?: string;
300
+ }
301
+ interface AuditReportsResource {
302
+ /** Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. */
303
+ generate(request: {
304
+ /** V1 error format. */
305
+ '$.xgafv'?: '1' | '2';
306
+ /** OAuth access token. */
307
+ access_token?: string;
308
+ /** Data format for response. */
309
+ alt?: 'json' | 'media' | 'proto';
310
+ /** JSONP */
311
+ callback?: string;
312
+ /** Selector specifying which fields to include in a partial response. */
313
+ fields?: string;
314
+ /** 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. */
315
+ key?: string;
316
+ /** OAuth 2.0 token for the current user. */
317
+ oauth_token?: string;
318
+ /** Returns response with indentations and line breaks. */
319
+ prettyPrint?: boolean;
320
+ /** 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. */
321
+ quotaUser?: string;
322
+ /** Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
323
+ scope: string;
324
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
325
+ upload_protocol?: string;
326
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
327
+ uploadType?: string;
328
+ /** Request body */
329
+ resource: GenerateAuditReportRequest;
330
+ }): Request<Operation>;
331
+ generate(
332
+ request: {
333
+ /** V1 error format. */
334
+ '$.xgafv'?: '1' | '2';
335
+ /** OAuth access token. */
336
+ access_token?: string;
337
+ /** Data format for response. */
338
+ alt?: 'json' | 'media' | 'proto';
339
+ /** JSONP */
340
+ callback?: string;
341
+ /** Selector specifying which fields to include in a partial response. */
342
+ fields?: string;
343
+ /** 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. */
344
+ key?: string;
345
+ /** OAuth 2.0 token for the current user. */
346
+ oauth_token?: string;
347
+ /** Returns response with indentations and line breaks. */
348
+ prettyPrint?: boolean;
349
+ /** 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. */
350
+ quotaUser?: string;
351
+ /** Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
352
+ scope: string;
353
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
354
+ upload_protocol?: string;
355
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
356
+ uploadType?: string;
357
+ },
358
+ body: GenerateAuditReportRequest,
359
+ ): Request<Operation>;
360
+ /** Gets the full metadata and findings for an audit report. */
361
+ get(request?: {
362
+ /** V1 error format. */
363
+ '$.xgafv'?: '1' | '2';
364
+ /** OAuth access token. */
365
+ access_token?: string;
366
+ /** Data format for response. */
367
+ alt?: 'json' | 'media' | 'proto';
368
+ /** JSONP */
369
+ callback?: string;
370
+ /** Selector specifying which fields to include in a partial response. */
371
+ fields?: string;
372
+ /** 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. */
373
+ key?: string;
374
+ /** Required. Name of the audit report, in one of the following formats: * `projects/{project}/locations/{location}/auditReports/{audit_report}` * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` */
375
+ name: string;
376
+ /** OAuth 2.0 token for the current user. */
377
+ oauth_token?: string;
378
+ /** Returns response with indentations and line breaks. */
379
+ prettyPrint?: boolean;
380
+ /** 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. */
381
+ quotaUser?: string;
382
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
383
+ upload_protocol?: string;
384
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
385
+ uploadType?: string;
386
+ }): Request<AuditReport>;
387
+ /** Lists the audit reports for the organization, folder, or project that you specify as the parent scope. */
388
+ list(request?: {
389
+ /** V1 error format. */
390
+ '$.xgafv'?: '1' | '2';
391
+ /** OAuth access token. */
392
+ access_token?: string;
393
+ /** Data format for response. */
394
+ alt?: 'json' | 'media' | 'proto';
395
+ /** JSONP */
396
+ callback?: string;
397
+ /** Selector specifying which fields to include in a partial response. */
398
+ fields?: string;
399
+ /** 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. */
400
+ key?: string;
401
+ /** OAuth 2.0 token for the current user. */
402
+ oauth_token?: string;
403
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
404
+ pageSize?: number;
405
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
406
+ pageToken?: string;
407
+ /** Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
408
+ parent: string;
409
+ /** Returns response with indentations and line breaks. */
410
+ prettyPrint?: boolean;
411
+ /** 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. */
412
+ quotaUser?: string;
413
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
414
+ upload_protocol?: string;
415
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
416
+ uploadType?: string;
417
+ }): Request<ListAuditReportsResponse>;
418
+ }
419
+ interface AuditScopeReportsResource {
420
+ /** Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. */
421
+ generate(request: {
422
+ /** V1 error format. */
423
+ '$.xgafv'?: '1' | '2';
424
+ /** OAuth access token. */
425
+ access_token?: string;
426
+ /** Data format for response. */
427
+ alt?: 'json' | 'media' | 'proto';
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
+ /** OAuth 2.0 token for the current user. */
435
+ oauth_token?: string;
436
+ /** Returns response with indentations and line breaks. */
437
+ prettyPrint?: boolean;
438
+ /** 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. */
439
+ quotaUser?: string;
440
+ /** Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
441
+ scope: 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: GenerateAuditScopeReportRequest;
448
+ }): Request<AuditScopeReport>;
449
+ generate(
450
+ request: {
451
+ /** V1 error format. */
452
+ '$.xgafv'?: '1' | '2';
453
+ /** OAuth access token. */
454
+ access_token?: string;
455
+ /** Data format for response. */
456
+ alt?: 'json' | 'media' | 'proto';
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
+ /** OAuth 2.0 token for the current user. */
464
+ oauth_token?: string;
465
+ /** Returns response with indentations and line breaks. */
466
+ prettyPrint?: boolean;
467
+ /** 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. */
468
+ quotaUser?: string;
469
+ /** Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
470
+ scope: 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: GenerateAuditScopeReportRequest,
477
+ ): Request<AuditScopeReport>;
478
+ }
479
+ interface OperationDetailsResource {
480
+ /** Gets details about the long-running operation to generate audit reports. */
481
+ get(request?: {
482
+ /** V1 error format. */
483
+ '$.xgafv'?: '1' | '2';
484
+ /** OAuth access token. */
485
+ access_token?: string;
486
+ /** Data format for response. */
487
+ alt?: 'json' | 'media' | 'proto';
488
+ /** JSONP */
489
+ callback?: string;
490
+ /** Selector specifying which fields to include in a partial response. */
491
+ fields?: string;
492
+ /** 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. */
493
+ key?: string;
494
+ /** The name of the operation resource. */
495
+ name: string;
496
+ /** OAuth 2.0 token for the current user. */
497
+ oauth_token?: string;
498
+ /** Returns response with indentations and line breaks. */
499
+ prettyPrint?: boolean;
500
+ /** 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. */
501
+ quotaUser?: string;
502
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
503
+ upload_protocol?: string;
504
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
505
+ uploadType?: string;
506
+ }): Request<Operation>;
507
+ }
508
+ interface OperationIdsResource {
509
+ /** Gets details about the long-running operation to generate audit reports. */
510
+ get(request?: {
511
+ /** V1 error format. */
512
+ '$.xgafv'?: '1' | '2';
513
+ /** OAuth access token. */
514
+ access_token?: string;
515
+ /** Data format for response. */
516
+ alt?: 'json' | 'media' | 'proto';
517
+ /** JSONP */
518
+ callback?: string;
519
+ /** Selector specifying which fields to include in a partial response. */
520
+ fields?: string;
521
+ /** 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. */
522
+ key?: string;
523
+ /** The name of the operation resource. */
524
+ name: string;
525
+ /** OAuth 2.0 token for the current user. */
526
+ oauth_token?: string;
527
+ /** Returns response with indentations and line breaks. */
528
+ prettyPrint?: boolean;
529
+ /** 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. */
530
+ quotaUser?: string;
531
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
532
+ upload_protocol?: string;
533
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
534
+ uploadType?: string;
535
+ }): Request<Operation>;
536
+ }
537
+ interface ResourceEnrollmentStatusesResource {
538
+ /** Gets a resource and its enrollment status. */
539
+ get(request?: {
540
+ /** V1 error format. */
541
+ '$.xgafv'?: '1' | '2';
542
+ /** OAuth access token. */
543
+ access_token?: string;
544
+ /** Data format for response. */
545
+ alt?: 'json' | 'media' | 'proto';
546
+ /** JSONP */
547
+ callback?: string;
548
+ /** Selector specifying which fields to include in a partial response. */
549
+ fields?: string;
550
+ /** 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. */
551
+ key?: string;
552
+ /** Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` */
553
+ name: string;
554
+ /** OAuth 2.0 token for the current user. */
555
+ oauth_token?: 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<ResourceEnrollmentStatus>;
565
+ /** Lists all the folders and projects in an organization or folder, along with their enrollments. */
566
+ list(request?: {
567
+ /** V1 error format. */
568
+ '$.xgafv'?: '1' | '2';
569
+ /** OAuth access token. */
570
+ access_token?: string;
571
+ /** Data format for response. */
572
+ alt?: 'json' | 'media' | 'proto';
573
+ /** JSONP */
574
+ callback?: string;
575
+ /** Selector specifying which fields to include in a partial response. */
576
+ fields?: string;
577
+ /** 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. */
578
+ key?: string;
579
+ /** OAuth 2.0 token for the current user. */
580
+ oauth_token?: string;
581
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
582
+ pageSize?: number;
583
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
584
+ pageToken?: string;
585
+ /** Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
586
+ parent: 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<ListResourceEnrollmentStatusesResponse>;
596
+ }
597
+ interface ControlsResource {
598
+ /** Lists the controls that you must implement to become compliant to a regulatory standard. */
599
+ list(request?: {
600
+ /** V1 error format. */
601
+ '$.xgafv'?: '1' | '2';
602
+ /** OAuth access token. */
603
+ access_token?: string;
604
+ /** Data format for response. */
605
+ alt?: 'json' | 'media' | 'proto';
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
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
615
+ pageSize?: number;
616
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
617
+ pageToken?: string;
618
+ /** Required. Standard to list controls for, in one of the following formats: * `projects/{project}/locations/{location}/standards/{standard}` * `folders/{folder}/locations/{location}/standards/{standard}` * `organizations/{organization}/locations/{location}/standards/{standard}` */
619
+ parent: string;
620
+ /** Returns response with indentations and line breaks. */
621
+ prettyPrint?: boolean;
622
+ /** 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. */
623
+ quotaUser?: string;
624
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
625
+ upload_protocol?: string;
626
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
627
+ uploadType?: string;
628
+ }): Request<ListControlsResponse>;
629
+ }
630
+ interface StandardsResource {
631
+ controls: ControlsResource;
632
+ }
633
+ interface LocationsResource {
634
+ /** Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. */
635
+ enrollResource(request: {
636
+ /** V1 error format. */
637
+ '$.xgafv'?: '1' | '2';
638
+ /** OAuth access token. */
639
+ access_token?: string;
640
+ /** Data format for response. */
641
+ alt?: 'json' | 'media' | 'proto';
642
+ /** JSONP */
643
+ callback?: string;
644
+ /** Selector specifying which fields to include in a partial response. */
645
+ fields?: string;
646
+ /** 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. */
647
+ key?: string;
648
+ /** OAuth 2.0 token for the current user. */
649
+ oauth_token?: string;
650
+ /** Returns response with indentations and line breaks. */
651
+ prettyPrint?: boolean;
652
+ /** 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. */
653
+ quotaUser?: string;
654
+ /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
655
+ scope: string;
656
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
657
+ upload_protocol?: string;
658
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
659
+ uploadType?: string;
660
+ /** Request body */
661
+ resource: EnrollResourceRequest;
662
+ }): Request<Enrollment>;
663
+ enrollResource(
664
+ request: {
665
+ /** V1 error format. */
666
+ '$.xgafv'?: '1' | '2';
667
+ /** OAuth access token. */
668
+ access_token?: string;
669
+ /** Data format for response. */
670
+ alt?: 'json' | 'media' | 'proto';
671
+ /** JSONP */
672
+ callback?: string;
673
+ /** Selector specifying which fields to include in a partial response. */
674
+ fields?: string;
675
+ /** 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. */
676
+ key?: string;
677
+ /** OAuth 2.0 token for the current user. */
678
+ oauth_token?: string;
679
+ /** Returns response with indentations and line breaks. */
680
+ prettyPrint?: boolean;
681
+ /** 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. */
682
+ quotaUser?: string;
683
+ /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
684
+ scope: string;
685
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
686
+ upload_protocol?: string;
687
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
688
+ uploadType?: string;
689
+ },
690
+ body: EnrollResourceRequest,
691
+ ): Request<Enrollment>;
692
+ auditReports: AuditReportsResource;
693
+ auditScopeReports: AuditScopeReportsResource;
694
+ operationDetails: OperationDetailsResource;
695
+ operationIds: OperationIdsResource;
696
+ resourceEnrollmentStatuses: ResourceEnrollmentStatusesResource;
697
+ standards: StandardsResource;
698
+ }
699
+ interface FoldersResource {
700
+ locations: LocationsResource;
701
+ }
702
+ interface AuditReportsResource {
703
+ /** Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. */
704
+ generate(request: {
705
+ /** V1 error format. */
706
+ '$.xgafv'?: '1' | '2';
707
+ /** OAuth access token. */
708
+ access_token?: string;
709
+ /** Data format for response. */
710
+ alt?: 'json' | 'media' | 'proto';
711
+ /** JSONP */
712
+ callback?: string;
713
+ /** Selector specifying which fields to include in a partial response. */
714
+ fields?: string;
715
+ /** 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. */
716
+ key?: string;
717
+ /** OAuth 2.0 token for the current user. */
718
+ oauth_token?: string;
719
+ /** Returns response with indentations and line breaks. */
720
+ prettyPrint?: boolean;
721
+ /** 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. */
722
+ quotaUser?: string;
723
+ /** Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
724
+ scope: string;
725
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
726
+ upload_protocol?: string;
727
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
728
+ uploadType?: string;
729
+ /** Request body */
730
+ resource: GenerateAuditReportRequest;
731
+ }): Request<Operation>;
732
+ generate(
733
+ request: {
734
+ /** V1 error format. */
735
+ '$.xgafv'?: '1' | '2';
736
+ /** OAuth access token. */
737
+ access_token?: string;
738
+ /** Data format for response. */
739
+ alt?: 'json' | 'media' | 'proto';
740
+ /** JSONP */
741
+ callback?: string;
742
+ /** Selector specifying which fields to include in a partial response. */
743
+ fields?: string;
744
+ /** 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. */
745
+ key?: string;
746
+ /** OAuth 2.0 token for the current user. */
747
+ oauth_token?: string;
748
+ /** Returns response with indentations and line breaks. */
749
+ prettyPrint?: boolean;
750
+ /** 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. */
751
+ quotaUser?: string;
752
+ /** Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
753
+ scope: string;
754
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
755
+ upload_protocol?: string;
756
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
757
+ uploadType?: string;
758
+ },
759
+ body: GenerateAuditReportRequest,
760
+ ): Request<Operation>;
761
+ /** Gets the full metadata and findings for an audit report. */
762
+ get(request?: {
763
+ /** V1 error format. */
764
+ '$.xgafv'?: '1' | '2';
765
+ /** OAuth access token. */
766
+ access_token?: string;
767
+ /** Data format for response. */
768
+ alt?: 'json' | 'media' | 'proto';
769
+ /** JSONP */
770
+ callback?: string;
771
+ /** Selector specifying which fields to include in a partial response. */
772
+ fields?: string;
773
+ /** 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. */
774
+ key?: string;
775
+ /** Required. Name of the audit report, in one of the following formats: * `projects/{project}/locations/{location}/auditReports/{audit_report}` * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` */
776
+ name: string;
777
+ /** OAuth 2.0 token for the current user. */
778
+ oauth_token?: string;
779
+ /** Returns response with indentations and line breaks. */
780
+ prettyPrint?: boolean;
781
+ /** 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. */
782
+ quotaUser?: string;
783
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
784
+ upload_protocol?: string;
785
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
786
+ uploadType?: string;
787
+ }): Request<AuditReport>;
788
+ /** Lists the audit reports for the organization, folder, or project that you specify as the parent scope. */
789
+ list(request?: {
790
+ /** V1 error format. */
791
+ '$.xgafv'?: '1' | '2';
792
+ /** OAuth access token. */
793
+ access_token?: string;
794
+ /** Data format for response. */
795
+ alt?: 'json' | 'media' | 'proto';
796
+ /** JSONP */
797
+ callback?: string;
798
+ /** Selector specifying which fields to include in a partial response. */
799
+ fields?: string;
800
+ /** 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. */
801
+ key?: string;
802
+ /** OAuth 2.0 token for the current user. */
803
+ oauth_token?: string;
804
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
805
+ pageSize?: number;
806
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
807
+ pageToken?: string;
808
+ /** Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
809
+ parent: string;
810
+ /** Returns response with indentations and line breaks. */
811
+ prettyPrint?: boolean;
812
+ /** 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. */
813
+ quotaUser?: string;
814
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
815
+ upload_protocol?: string;
816
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
817
+ uploadType?: string;
818
+ }): Request<ListAuditReportsResponse>;
819
+ }
820
+ interface AuditScopeReportsResource {
821
+ /** Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. */
822
+ generate(request: {
823
+ /** V1 error format. */
824
+ '$.xgafv'?: '1' | '2';
825
+ /** OAuth access token. */
826
+ access_token?: string;
827
+ /** Data format for response. */
828
+ alt?: 'json' | 'media' | 'proto';
829
+ /** JSONP */
830
+ callback?: string;
831
+ /** Selector specifying which fields to include in a partial response. */
832
+ fields?: string;
833
+ /** 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. */
834
+ key?: string;
835
+ /** OAuth 2.0 token for the current user. */
836
+ oauth_token?: string;
837
+ /** Returns response with indentations and line breaks. */
838
+ prettyPrint?: boolean;
839
+ /** 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. */
840
+ quotaUser?: string;
841
+ /** Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
842
+ scope: string;
843
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
844
+ upload_protocol?: string;
845
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
846
+ uploadType?: string;
847
+ /** Request body */
848
+ resource: GenerateAuditScopeReportRequest;
849
+ }): Request<AuditScopeReport>;
850
+ generate(
851
+ request: {
852
+ /** V1 error format. */
853
+ '$.xgafv'?: '1' | '2';
854
+ /** OAuth access token. */
855
+ access_token?: string;
856
+ /** Data format for response. */
857
+ alt?: 'json' | 'media' | 'proto';
858
+ /** JSONP */
859
+ callback?: string;
860
+ /** Selector specifying which fields to include in a partial response. */
861
+ fields?: string;
862
+ /** 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. */
863
+ key?: string;
864
+ /** OAuth 2.0 token for the current user. */
865
+ oauth_token?: string;
866
+ /** Returns response with indentations and line breaks. */
867
+ prettyPrint?: boolean;
868
+ /** 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. */
869
+ quotaUser?: string;
870
+ /** Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
871
+ scope: string;
872
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
873
+ upload_protocol?: string;
874
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
875
+ uploadType?: string;
876
+ },
877
+ body: GenerateAuditScopeReportRequest,
878
+ ): Request<AuditScopeReport>;
879
+ }
880
+ interface OperationDetailsResource {
881
+ /** Gets details about the long-running operation to generate audit reports. */
882
+ get(request?: {
883
+ /** V1 error format. */
884
+ '$.xgafv'?: '1' | '2';
885
+ /** OAuth access token. */
886
+ access_token?: string;
887
+ /** Data format for response. */
888
+ alt?: 'json' | 'media' | 'proto';
889
+ /** JSONP */
890
+ callback?: string;
891
+ /** Selector specifying which fields to include in a partial response. */
892
+ fields?: string;
893
+ /** 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. */
894
+ key?: string;
895
+ /** The name of the operation resource. */
896
+ name: string;
897
+ /** OAuth 2.0 token for the current user. */
898
+ oauth_token?: string;
899
+ /** Returns response with indentations and line breaks. */
900
+ prettyPrint?: boolean;
901
+ /** 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. */
902
+ quotaUser?: string;
903
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
904
+ upload_protocol?: string;
905
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
906
+ uploadType?: string;
907
+ }): Request<Operation>;
908
+ }
909
+ interface OperationIdsResource {
910
+ /** Gets details about the long-running operation to generate audit reports. */
911
+ get(request?: {
912
+ /** V1 error format. */
913
+ '$.xgafv'?: '1' | '2';
914
+ /** OAuth access token. */
915
+ access_token?: string;
916
+ /** Data format for response. */
917
+ alt?: 'json' | 'media' | 'proto';
918
+ /** JSONP */
919
+ callback?: string;
920
+ /** Selector specifying which fields to include in a partial response. */
921
+ fields?: string;
922
+ /** 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. */
923
+ key?: string;
924
+ /** The name of the operation resource. */
925
+ name: string;
926
+ /** OAuth 2.0 token for the current user. */
927
+ oauth_token?: string;
928
+ /** Returns response with indentations and line breaks. */
929
+ prettyPrint?: boolean;
930
+ /** 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. */
931
+ quotaUser?: string;
932
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
933
+ upload_protocol?: string;
934
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
935
+ uploadType?: string;
936
+ }): Request<Operation>;
937
+ }
938
+ interface OperationsResource {
939
+ /** 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`. */
940
+ cancel(request: {
941
+ /** V1 error format. */
942
+ '$.xgafv'?: '1' | '2';
943
+ /** OAuth access token. */
944
+ access_token?: string;
945
+ /** Data format for response. */
946
+ alt?: 'json' | 'media' | 'proto';
947
+ /** JSONP */
948
+ callback?: string;
949
+ /** Selector specifying which fields to include in a partial response. */
950
+ fields?: string;
951
+ /** 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. */
952
+ key?: string;
953
+ /** The name of the operation resource to be cancelled. */
954
+ name: string;
955
+ /** OAuth 2.0 token for the current user. */
956
+ oauth_token?: string;
957
+ /** Returns response with indentations and line breaks. */
958
+ prettyPrint?: boolean;
959
+ /** 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. */
960
+ quotaUser?: string;
961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
962
+ upload_protocol?: string;
963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
964
+ uploadType?: string;
965
+ /** Request body */
966
+ resource: CancelOperationRequest;
967
+ }): Request<{}>;
968
+ cancel(
969
+ request: {
970
+ /** V1 error format. */
971
+ '$.xgafv'?: '1' | '2';
972
+ /** OAuth access token. */
973
+ access_token?: string;
974
+ /** Data format for response. */
975
+ alt?: 'json' | 'media' | 'proto';
976
+ /** JSONP */
977
+ callback?: string;
978
+ /** Selector specifying which fields to include in a partial response. */
979
+ fields?: string;
980
+ /** 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. */
981
+ key?: string;
982
+ /** The name of the operation resource to be cancelled. */
983
+ name: string;
984
+ /** OAuth 2.0 token for the current user. */
985
+ oauth_token?: string;
986
+ /** Returns response with indentations and line breaks. */
987
+ prettyPrint?: boolean;
988
+ /** 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. */
989
+ quotaUser?: string;
990
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
991
+ upload_protocol?: string;
992
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
993
+ uploadType?: string;
994
+ },
995
+ body: CancelOperationRequest,
996
+ ): Request<{}>;
997
+ /** 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`. */
998
+ delete(request?: {
999
+ /** V1 error format. */
1000
+ '$.xgafv'?: '1' | '2';
1001
+ /** OAuth access token. */
1002
+ access_token?: string;
1003
+ /** Data format for response. */
1004
+ alt?: 'json' | 'media' | 'proto';
1005
+ /** JSONP */
1006
+ callback?: string;
1007
+ /** Selector specifying which fields to include in a partial response. */
1008
+ fields?: string;
1009
+ /** 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. */
1010
+ key?: string;
1011
+ /** The name of the operation resource to be deleted. */
1012
+ name: string;
1013
+ /** OAuth 2.0 token for the current user. */
1014
+ oauth_token?: 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<{}>;
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. */
1025
+ get(request?: {
1026
+ /** V1 error format. */
1027
+ '$.xgafv'?: '1' | '2';
1028
+ /** OAuth access token. */
1029
+ access_token?: string;
1030
+ /** Data format for response. */
1031
+ alt?: 'json' | 'media' | 'proto';
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
+ /** The name of the operation resource. */
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
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1047
+ upload_protocol?: string;
1048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1049
+ uploadType?: string;
1050
+ }): Request<Operation>;
1051
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1052
+ list(request?: {
1053
+ /** V1 error format. */
1054
+ '$.xgafv'?: '1' | '2';
1055
+ /** OAuth access token. */
1056
+ access_token?: string;
1057
+ /** Data format for response. */
1058
+ alt?: 'json' | 'media' | 'proto';
1059
+ /** JSONP */
1060
+ callback?: string;
1061
+ /** Selector specifying which fields to include in a partial response. */
1062
+ fields?: string;
1063
+ /** The standard list filter. */
1064
+ filter?: string;
1065
+ /** 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. */
1066
+ key?: string;
1067
+ /** The name of the operation's parent resource. */
1068
+ name: string;
1069
+ /** OAuth 2.0 token for the current user. */
1070
+ oauth_token?: string;
1071
+ /** The standard list page size. */
1072
+ pageSize?: number;
1073
+ /** The standard list page token. */
1074
+ pageToken?: 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
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1080
+ returnPartialSuccess?: boolean;
1081
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1082
+ upload_protocol?: string;
1083
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1084
+ uploadType?: string;
1085
+ }): Request<ListOperationsResponse>;
1086
+ }
1087
+ interface ResourceEnrollmentStatusesResource {
1088
+ /** Gets a resource and its enrollment status. */
1089
+ get(request?: {
1090
+ /** V1 error format. */
1091
+ '$.xgafv'?: '1' | '2';
1092
+ /** OAuth access token. */
1093
+ access_token?: string;
1094
+ /** Data format for response. */
1095
+ alt?: 'json' | 'media' | 'proto';
1096
+ /** JSONP */
1097
+ callback?: string;
1098
+ /** Selector specifying which fields to include in a partial response. */
1099
+ fields?: string;
1100
+ /** 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. */
1101
+ key?: string;
1102
+ /** Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` */
1103
+ name: string;
1104
+ /** OAuth 2.0 token for the current user. */
1105
+ oauth_token?: string;
1106
+ /** Returns response with indentations and line breaks. */
1107
+ prettyPrint?: boolean;
1108
+ /** 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. */
1109
+ quotaUser?: string;
1110
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1111
+ upload_protocol?: string;
1112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1113
+ uploadType?: string;
1114
+ }): Request<ResourceEnrollmentStatus>;
1115
+ /** Lists all the folders and projects in an organization or folder, along with their enrollments. */
1116
+ list(request?: {
1117
+ /** V1 error format. */
1118
+ '$.xgafv'?: '1' | '2';
1119
+ /** OAuth access token. */
1120
+ access_token?: string;
1121
+ /** Data format for response. */
1122
+ alt?: 'json' | 'media' | 'proto';
1123
+ /** JSONP */
1124
+ callback?: string;
1125
+ /** Selector specifying which fields to include in a partial response. */
1126
+ fields?: string;
1127
+ /** 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. */
1128
+ key?: string;
1129
+ /** OAuth 2.0 token for the current user. */
1130
+ oauth_token?: string;
1131
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
1132
+ pageSize?: number;
1133
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
1134
+ pageToken?: string;
1135
+ /** Required. Parent organization or folder to list enrollment statuses for, in one of the following formats: * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1136
+ parent: string;
1137
+ /** Returns response with indentations and line breaks. */
1138
+ prettyPrint?: boolean;
1139
+ /** 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. */
1140
+ quotaUser?: string;
1141
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1142
+ upload_protocol?: string;
1143
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1144
+ uploadType?: string;
1145
+ }): Request<ListResourceEnrollmentStatusesResponse>;
1146
+ }
1147
+ interface ControlsResource {
1148
+ /** Lists the controls that you must implement to become compliant to a regulatory standard. */
1149
+ list(request?: {
1150
+ /** V1 error format. */
1151
+ '$.xgafv'?: '1' | '2';
1152
+ /** OAuth access token. */
1153
+ access_token?: string;
1154
+ /** Data format for response. */
1155
+ alt?: 'json' | 'media' | 'proto';
1156
+ /** JSONP */
1157
+ callback?: string;
1158
+ /** Selector specifying which fields to include in a partial response. */
1159
+ fields?: string;
1160
+ /** 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. */
1161
+ key?: string;
1162
+ /** OAuth 2.0 token for the current user. */
1163
+ oauth_token?: string;
1164
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
1165
+ pageSize?: number;
1166
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
1167
+ pageToken?: string;
1168
+ /** Required. Standard to list controls for, in one of the following formats: * `projects/{project}/locations/{location}/standards/{standard}` * `folders/{folder}/locations/{location}/standards/{standard}` * `organizations/{organization}/locations/{location}/standards/{standard}` */
1169
+ parent: string;
1170
+ /** Returns response with indentations and line breaks. */
1171
+ prettyPrint?: boolean;
1172
+ /** 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. */
1173
+ quotaUser?: string;
1174
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1175
+ upload_protocol?: string;
1176
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1177
+ uploadType?: string;
1178
+ }): Request<ListControlsResponse>;
1179
+ }
1180
+ interface StandardsResource {
1181
+ controls: ControlsResource;
1182
+ }
1183
+ interface LocationsResource {
1184
+ /** Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. */
1185
+ enrollResource(request: {
1186
+ /** V1 error format. */
1187
+ '$.xgafv'?: '1' | '2';
1188
+ /** OAuth access token. */
1189
+ access_token?: string;
1190
+ /** Data format for response. */
1191
+ alt?: 'json' | 'media' | 'proto';
1192
+ /** JSONP */
1193
+ callback?: string;
1194
+ /** Selector specifying which fields to include in a partial response. */
1195
+ fields?: string;
1196
+ /** 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. */
1197
+ key?: string;
1198
+ /** OAuth 2.0 token for the current user. */
1199
+ oauth_token?: string;
1200
+ /** Returns response with indentations and line breaks. */
1201
+ prettyPrint?: boolean;
1202
+ /** 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. */
1203
+ quotaUser?: string;
1204
+ /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1205
+ scope: string;
1206
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1207
+ upload_protocol?: string;
1208
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1209
+ uploadType?: string;
1210
+ /** Request body */
1211
+ resource: EnrollResourceRequest;
1212
+ }): Request<Enrollment>;
1213
+ enrollResource(
1214
+ request: {
1215
+ /** V1 error format. */
1216
+ '$.xgafv'?: '1' | '2';
1217
+ /** OAuth access token. */
1218
+ access_token?: string;
1219
+ /** Data format for response. */
1220
+ alt?: 'json' | 'media' | 'proto';
1221
+ /** JSONP */
1222
+ callback?: string;
1223
+ /** Selector specifying which fields to include in a partial response. */
1224
+ fields?: string;
1225
+ /** 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. */
1226
+ key?: string;
1227
+ /** OAuth 2.0 token for the current user. */
1228
+ oauth_token?: string;
1229
+ /** Returns response with indentations and line breaks. */
1230
+ prettyPrint?: boolean;
1231
+ /** 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. */
1232
+ quotaUser?: string;
1233
+ /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1234
+ scope: string;
1235
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1236
+ upload_protocol?: string;
1237
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1238
+ uploadType?: string;
1239
+ },
1240
+ body: EnrollResourceRequest,
1241
+ ): Request<Enrollment>;
1242
+ auditReports: AuditReportsResource;
1243
+ auditScopeReports: AuditScopeReportsResource;
1244
+ operationDetails: OperationDetailsResource;
1245
+ operationIds: OperationIdsResource;
1246
+ operations: OperationsResource;
1247
+ resourceEnrollmentStatuses: ResourceEnrollmentStatusesResource;
1248
+ standards: StandardsResource;
1249
+ }
1250
+ interface OrganizationsResource {
1251
+ locations: LocationsResource;
1252
+ }
1253
+ interface AuditReportsResource {
1254
+ /** Registers audit report generation requests. This method returns the operation identifier that you can use to track the report generation progress. */
1255
+ generate(request: {
1256
+ /** V1 error format. */
1257
+ '$.xgafv'?: '1' | '2';
1258
+ /** OAuth access token. */
1259
+ access_token?: string;
1260
+ /** Data format for response. */
1261
+ alt?: 'json' | 'media' | 'proto';
1262
+ /** JSONP */
1263
+ callback?: string;
1264
+ /** Selector specifying which fields to include in a partial response. */
1265
+ fields?: string;
1266
+ /** 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. */
1267
+ key?: string;
1268
+ /** OAuth 2.0 token for the current user. */
1269
+ oauth_token?: string;
1270
+ /** Returns response with indentations and line breaks. */
1271
+ prettyPrint?: boolean;
1272
+ /** 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. */
1273
+ quotaUser?: string;
1274
+ /** Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1275
+ scope: string;
1276
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1277
+ upload_protocol?: string;
1278
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1279
+ uploadType?: string;
1280
+ /** Request body */
1281
+ resource: GenerateAuditReportRequest;
1282
+ }): Request<Operation>;
1283
+ generate(
1284
+ request: {
1285
+ /** V1 error format. */
1286
+ '$.xgafv'?: '1' | '2';
1287
+ /** OAuth access token. */
1288
+ access_token?: string;
1289
+ /** Data format for response. */
1290
+ alt?: 'json' | 'media' | 'proto';
1291
+ /** JSONP */
1292
+ callback?: string;
1293
+ /** Selector specifying which fields to include in a partial response. */
1294
+ fields?: string;
1295
+ /** 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. */
1296
+ key?: string;
1297
+ /** OAuth 2.0 token for the current user. */
1298
+ oauth_token?: string;
1299
+ /** Returns response with indentations and line breaks. */
1300
+ prettyPrint?: boolean;
1301
+ /** 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. */
1302
+ quotaUser?: string;
1303
+ /** Required. Organization, folder, or project that the audit applies to, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1304
+ scope: string;
1305
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1306
+ upload_protocol?: string;
1307
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1308
+ uploadType?: string;
1309
+ },
1310
+ body: GenerateAuditReportRequest,
1311
+ ): Request<Operation>;
1312
+ /** Gets the full metadata and findings for an audit report. */
1313
+ get(request?: {
1314
+ /** V1 error format. */
1315
+ '$.xgafv'?: '1' | '2';
1316
+ /** OAuth access token. */
1317
+ access_token?: string;
1318
+ /** Data format for response. */
1319
+ alt?: 'json' | 'media' | 'proto';
1320
+ /** JSONP */
1321
+ callback?: string;
1322
+ /** Selector specifying which fields to include in a partial response. */
1323
+ fields?: string;
1324
+ /** 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. */
1325
+ key?: string;
1326
+ /** Required. Name of the audit report, in one of the following formats: * `projects/{project}/locations/{location}/auditReports/{audit_report}` * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` */
1327
+ name: string;
1328
+ /** OAuth 2.0 token for the current user. */
1329
+ oauth_token?: string;
1330
+ /** Returns response with indentations and line breaks. */
1331
+ prettyPrint?: boolean;
1332
+ /** 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. */
1333
+ quotaUser?: string;
1334
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1335
+ upload_protocol?: string;
1336
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1337
+ uploadType?: string;
1338
+ }): Request<AuditReport>;
1339
+ /** Lists the audit reports for the organization, folder, or project that you specify as the parent scope. */
1340
+ list(request?: {
1341
+ /** V1 error format. */
1342
+ '$.xgafv'?: '1' | '2';
1343
+ /** OAuth access token. */
1344
+ access_token?: string;
1345
+ /** Data format for response. */
1346
+ alt?: 'json' | 'media' | 'proto';
1347
+ /** JSONP */
1348
+ callback?: string;
1349
+ /** Selector specifying which fields to include in a partial response. */
1350
+ fields?: string;
1351
+ /** 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. */
1352
+ key?: string;
1353
+ /** OAuth 2.0 token for the current user. */
1354
+ oauth_token?: string;
1355
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
1356
+ pageSize?: number;
1357
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
1358
+ pageToken?: string;
1359
+ /** Required. Parent organization, folder, or project to list reports for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1360
+ parent: string;
1361
+ /** Returns response with indentations and line breaks. */
1362
+ prettyPrint?: boolean;
1363
+ /** 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. */
1364
+ quotaUser?: string;
1365
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1366
+ upload_protocol?: string;
1367
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1368
+ uploadType?: string;
1369
+ }): Request<ListAuditReportsResponse>;
1370
+ }
1371
+ interface AuditScopeReportsResource {
1372
+ /** Generates an audit scope report for the given standard. The report includes the following: * The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework. * A list of Google Cloud services and resources that are within the scope of the framework. */
1373
+ generate(request: {
1374
+ /** V1 error format. */
1375
+ '$.xgafv'?: '1' | '2';
1376
+ /** OAuth access token. */
1377
+ access_token?: string;
1378
+ /** Data format for response. */
1379
+ alt?: 'json' | 'media' | 'proto';
1380
+ /** JSONP */
1381
+ callback?: string;
1382
+ /** Selector specifying which fields to include in a partial response. */
1383
+ fields?: string;
1384
+ /** 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. */
1385
+ key?: string;
1386
+ /** OAuth 2.0 token for the current user. */
1387
+ oauth_token?: string;
1388
+ /** Returns response with indentations and line breaks. */
1389
+ prettyPrint?: boolean;
1390
+ /** 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. */
1391
+ quotaUser?: string;
1392
+ /** Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1393
+ scope: string;
1394
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1395
+ upload_protocol?: string;
1396
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1397
+ uploadType?: string;
1398
+ /** Request body */
1399
+ resource: GenerateAuditScopeReportRequest;
1400
+ }): Request<AuditScopeReport>;
1401
+ generate(
1402
+ request: {
1403
+ /** V1 error format. */
1404
+ '$.xgafv'?: '1' | '2';
1405
+ /** OAuth access token. */
1406
+ access_token?: string;
1407
+ /** Data format for response. */
1408
+ alt?: 'json' | 'media' | 'proto';
1409
+ /** JSONP */
1410
+ callback?: string;
1411
+ /** Selector specifying which fields to include in a partial response. */
1412
+ fields?: string;
1413
+ /** 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. */
1414
+ key?: string;
1415
+ /** OAuth 2.0 token for the current user. */
1416
+ oauth_token?: string;
1417
+ /** Returns response with indentations and line breaks. */
1418
+ prettyPrint?: boolean;
1419
+ /** 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. */
1420
+ quotaUser?: string;
1421
+ /** Required. Project or folder that the audit scope report is generated for, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1422
+ scope: string;
1423
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1424
+ upload_protocol?: string;
1425
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1426
+ uploadType?: string;
1427
+ },
1428
+ body: GenerateAuditScopeReportRequest,
1429
+ ): Request<AuditScopeReport>;
1430
+ }
1431
+ interface OperationDetailsResource {
1432
+ /** Gets details about the long-running operation to generate audit reports. */
1433
+ get(request?: {
1434
+ /** V1 error format. */
1435
+ '$.xgafv'?: '1' | '2';
1436
+ /** OAuth access token. */
1437
+ access_token?: string;
1438
+ /** Data format for response. */
1439
+ alt?: 'json' | 'media' | 'proto';
1440
+ /** JSONP */
1441
+ callback?: string;
1442
+ /** Selector specifying which fields to include in a partial response. */
1443
+ fields?: string;
1444
+ /** 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. */
1445
+ key?: string;
1446
+ /** The name of the operation resource. */
1447
+ name: string;
1448
+ /** OAuth 2.0 token for the current user. */
1449
+ oauth_token?: string;
1450
+ /** Returns response with indentations and line breaks. */
1451
+ prettyPrint?: boolean;
1452
+ /** 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. */
1453
+ quotaUser?: string;
1454
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1455
+ upload_protocol?: string;
1456
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1457
+ uploadType?: string;
1458
+ }): Request<Operation>;
1459
+ }
1460
+ interface OperationIdsResource {
1461
+ /** Gets details about the long-running operation to generate audit reports. */
1462
+ get(request?: {
1463
+ /** V1 error format. */
1464
+ '$.xgafv'?: '1' | '2';
1465
+ /** OAuth access token. */
1466
+ access_token?: string;
1467
+ /** Data format for response. */
1468
+ alt?: 'json' | 'media' | 'proto';
1469
+ /** JSONP */
1470
+ callback?: string;
1471
+ /** Selector specifying which fields to include in a partial response. */
1472
+ fields?: string;
1473
+ /** 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. */
1474
+ key?: string;
1475
+ /** The name of the operation resource. */
1476
+ name: string;
1477
+ /** OAuth 2.0 token for the current user. */
1478
+ oauth_token?: string;
1479
+ /** Returns response with indentations and line breaks. */
1480
+ prettyPrint?: boolean;
1481
+ /** 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. */
1482
+ quotaUser?: string;
1483
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1484
+ upload_protocol?: string;
1485
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1486
+ uploadType?: string;
1487
+ }): Request<Operation>;
1488
+ }
1489
+ interface OperationsResource {
1490
+ /** 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`. */
1491
+ cancel(request: {
1492
+ /** V1 error format. */
1493
+ '$.xgafv'?: '1' | '2';
1494
+ /** OAuth access token. */
1495
+ access_token?: string;
1496
+ /** Data format for response. */
1497
+ alt?: 'json' | 'media' | 'proto';
1498
+ /** JSONP */
1499
+ callback?: string;
1500
+ /** Selector specifying which fields to include in a partial response. */
1501
+ fields?: string;
1502
+ /** 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. */
1503
+ key?: string;
1504
+ /** The name of the operation resource to be cancelled. */
1505
+ name: string;
1506
+ /** OAuth 2.0 token for the current user. */
1507
+ oauth_token?: string;
1508
+ /** Returns response with indentations and line breaks. */
1509
+ prettyPrint?: boolean;
1510
+ /** 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. */
1511
+ quotaUser?: string;
1512
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1513
+ upload_protocol?: string;
1514
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1515
+ uploadType?: string;
1516
+ /** Request body */
1517
+ resource: CancelOperationRequest;
1518
+ }): Request<{}>;
1519
+ cancel(
1520
+ request: {
1521
+ /** V1 error format. */
1522
+ '$.xgafv'?: '1' | '2';
1523
+ /** OAuth access token. */
1524
+ access_token?: string;
1525
+ /** Data format for response. */
1526
+ alt?: 'json' | 'media' | 'proto';
1527
+ /** JSONP */
1528
+ callback?: string;
1529
+ /** Selector specifying which fields to include in a partial response. */
1530
+ fields?: string;
1531
+ /** 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. */
1532
+ key?: string;
1533
+ /** The name of the operation resource to be cancelled. */
1534
+ name: string;
1535
+ /** OAuth 2.0 token for the current user. */
1536
+ oauth_token?: string;
1537
+ /** Returns response with indentations and line breaks. */
1538
+ prettyPrint?: boolean;
1539
+ /** 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. */
1540
+ quotaUser?: string;
1541
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1542
+ upload_protocol?: string;
1543
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1544
+ uploadType?: string;
1545
+ },
1546
+ body: CancelOperationRequest,
1547
+ ): Request<{}>;
1548
+ /** 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`. */
1549
+ delete(request?: {
1550
+ /** V1 error format. */
1551
+ '$.xgafv'?: '1' | '2';
1552
+ /** OAuth access token. */
1553
+ access_token?: string;
1554
+ /** Data format for response. */
1555
+ alt?: 'json' | 'media' | 'proto';
1556
+ /** JSONP */
1557
+ callback?: string;
1558
+ /** Selector specifying which fields to include in a partial response. */
1559
+ fields?: string;
1560
+ /** 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. */
1561
+ key?: string;
1562
+ /** The name of the operation resource to be deleted. */
1563
+ name: string;
1564
+ /** OAuth 2.0 token for the current user. */
1565
+ oauth_token?: string;
1566
+ /** Returns response with indentations and line breaks. */
1567
+ prettyPrint?: boolean;
1568
+ /** 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. */
1569
+ quotaUser?: string;
1570
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1571
+ upload_protocol?: string;
1572
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1573
+ uploadType?: string;
1574
+ }): Request<{}>;
1575
+ /** 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. */
1576
+ get(request?: {
1577
+ /** V1 error format. */
1578
+ '$.xgafv'?: '1' | '2';
1579
+ /** OAuth access token. */
1580
+ access_token?: string;
1581
+ /** Data format for response. */
1582
+ alt?: 'json' | 'media' | 'proto';
1583
+ /** JSONP */
1584
+ callback?: string;
1585
+ /** Selector specifying which fields to include in a partial response. */
1586
+ fields?: string;
1587
+ /** 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. */
1588
+ key?: string;
1589
+ /** The name of the operation resource. */
1590
+ name: string;
1591
+ /** OAuth 2.0 token for the current user. */
1592
+ oauth_token?: string;
1593
+ /** Returns response with indentations and line breaks. */
1594
+ prettyPrint?: boolean;
1595
+ /** 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. */
1596
+ quotaUser?: string;
1597
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1598
+ upload_protocol?: string;
1599
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1600
+ uploadType?: string;
1601
+ }): Request<Operation>;
1602
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1603
+ list(request?: {
1604
+ /** V1 error format. */
1605
+ '$.xgafv'?: '1' | '2';
1606
+ /** OAuth access token. */
1607
+ access_token?: string;
1608
+ /** Data format for response. */
1609
+ alt?: 'json' | 'media' | 'proto';
1610
+ /** JSONP */
1611
+ callback?: string;
1612
+ /** Selector specifying which fields to include in a partial response. */
1613
+ fields?: string;
1614
+ /** The standard list filter. */
1615
+ filter?: string;
1616
+ /** 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. */
1617
+ key?: string;
1618
+ /** The name of the operation's parent resource. */
1619
+ name: string;
1620
+ /** OAuth 2.0 token for the current user. */
1621
+ oauth_token?: string;
1622
+ /** The standard list page size. */
1623
+ pageSize?: number;
1624
+ /** The standard list page token. */
1625
+ pageToken?: string;
1626
+ /** Returns response with indentations and line breaks. */
1627
+ prettyPrint?: boolean;
1628
+ /** 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. */
1629
+ quotaUser?: string;
1630
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1631
+ returnPartialSuccess?: boolean;
1632
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1633
+ upload_protocol?: string;
1634
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1635
+ uploadType?: string;
1636
+ }): Request<ListOperationsResponse>;
1637
+ }
1638
+ interface ResourceEnrollmentStatusesResource {
1639
+ /** Gets a resource and its enrollment status. */
1640
+ get(request?: {
1641
+ /** V1 error format. */
1642
+ '$.xgafv'?: '1' | '2';
1643
+ /** OAuth access token. */
1644
+ access_token?: string;
1645
+ /** Data format for response. */
1646
+ alt?: 'json' | 'media' | 'proto';
1647
+ /** JSONP */
1648
+ callback?: string;
1649
+ /** Selector specifying which fields to include in a partial response. */
1650
+ fields?: string;
1651
+ /** 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. */
1652
+ key?: string;
1653
+ /** Required. Name of the resource enrollment status, in one of the following formats: * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` */
1654
+ name: string;
1655
+ /** OAuth 2.0 token for the current user. */
1656
+ oauth_token?: string;
1657
+ /** Returns response with indentations and line breaks. */
1658
+ prettyPrint?: boolean;
1659
+ /** 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. */
1660
+ quotaUser?: string;
1661
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1662
+ upload_protocol?: string;
1663
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1664
+ uploadType?: string;
1665
+ }): Request<ResourceEnrollmentStatus>;
1666
+ }
1667
+ interface ControlsResource {
1668
+ /** Lists the controls that you must implement to become compliant to a regulatory standard. */
1669
+ list(request?: {
1670
+ /** V1 error format. */
1671
+ '$.xgafv'?: '1' | '2';
1672
+ /** OAuth access token. */
1673
+ access_token?: string;
1674
+ /** Data format for response. */
1675
+ alt?: 'json' | 'media' | 'proto';
1676
+ /** JSONP */
1677
+ callback?: string;
1678
+ /** Selector specifying which fields to include in a partial response. */
1679
+ fields?: string;
1680
+ /** 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. */
1681
+ key?: string;
1682
+ /** OAuth 2.0 token for the current user. */
1683
+ oauth_token?: string;
1684
+ /** Optional. Maximum number of items to return in a single page. The service might return fewer items than this value. If unspecified, the service picks an appropriate default. The maximum value is 100; values above 100 are reduced to 100. */
1685
+ pageSize?: number;
1686
+ /** Optional. A page token, received from a previous call, to retrieve the next page of results. */
1687
+ pageToken?: string;
1688
+ /** Required. Standard to list controls for, in one of the following formats: * `projects/{project}/locations/{location}/standards/{standard}` * `folders/{folder}/locations/{location}/standards/{standard}` * `organizations/{organization}/locations/{location}/standards/{standard}` */
1689
+ parent: string;
1690
+ /** Returns response with indentations and line breaks. */
1691
+ prettyPrint?: boolean;
1692
+ /** 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. */
1693
+ quotaUser?: string;
1694
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1695
+ upload_protocol?: string;
1696
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1697
+ uploadType?: string;
1698
+ }): Request<ListControlsResponse>;
1699
+ }
1700
+ interface StandardsResource {
1701
+ controls: ControlsResource;
1702
+ }
1703
+ interface LocationsResource {
1704
+ /** Adds your project, folder, or organization to Audit Manager. This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations. */
1705
+ enrollResource(request: {
1706
+ /** V1 error format. */
1707
+ '$.xgafv'?: '1' | '2';
1708
+ /** OAuth access token. */
1709
+ access_token?: string;
1710
+ /** Data format for response. */
1711
+ alt?: 'json' | 'media' | 'proto';
1712
+ /** JSONP */
1713
+ callback?: string;
1714
+ /** Selector specifying which fields to include in a partial response. */
1715
+ fields?: string;
1716
+ /** 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. */
1717
+ key?: string;
1718
+ /** OAuth 2.0 token for the current user. */
1719
+ oauth_token?: string;
1720
+ /** Returns response with indentations and line breaks. */
1721
+ prettyPrint?: boolean;
1722
+ /** 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. */
1723
+ quotaUser?: string;
1724
+ /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1725
+ scope: string;
1726
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1727
+ upload_protocol?: string;
1728
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1729
+ uploadType?: string;
1730
+ /** Request body */
1731
+ resource: EnrollResourceRequest;
1732
+ }): Request<Enrollment>;
1733
+ enrollResource(
1734
+ request: {
1735
+ /** V1 error format. */
1736
+ '$.xgafv'?: '1' | '2';
1737
+ /** OAuth access token. */
1738
+ access_token?: string;
1739
+ /** Data format for response. */
1740
+ alt?: 'json' | 'media' | 'proto';
1741
+ /** JSONP */
1742
+ callback?: string;
1743
+ /** Selector specifying which fields to include in a partial response. */
1744
+ fields?: string;
1745
+ /** 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. */
1746
+ key?: string;
1747
+ /** OAuth 2.0 token for the current user. */
1748
+ oauth_token?: string;
1749
+ /** Returns response with indentations and line breaks. */
1750
+ prettyPrint?: boolean;
1751
+ /** 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. */
1752
+ quotaUser?: string;
1753
+ /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */
1754
+ scope: string;
1755
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1756
+ upload_protocol?: string;
1757
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1758
+ uploadType?: string;
1759
+ },
1760
+ body: EnrollResourceRequest,
1761
+ ): Request<Enrollment>;
1762
+ /** Gets information about a location. */
1763
+ get(request?: {
1764
+ /** V1 error format. */
1765
+ '$.xgafv'?: '1' | '2';
1766
+ /** OAuth access token. */
1767
+ access_token?: string;
1768
+ /** Data format for response. */
1769
+ alt?: 'json' | 'media' | 'proto';
1770
+ /** JSONP */
1771
+ callback?: string;
1772
+ /** Selector specifying which fields to include in a partial response. */
1773
+ fields?: string;
1774
+ /** 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. */
1775
+ key?: string;
1776
+ /** Resource name for the location. */
1777
+ name: string;
1778
+ /** OAuth 2.0 token for the current user. */
1779
+ oauth_token?: string;
1780
+ /** Returns response with indentations and line breaks. */
1781
+ prettyPrint?: boolean;
1782
+ /** 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. */
1783
+ quotaUser?: string;
1784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1785
+ upload_protocol?: string;
1786
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1787
+ uploadType?: string;
1788
+ }): Request<Location>;
1789
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
1790
+ list(request?: {
1791
+ /** V1 error format. */
1792
+ '$.xgafv'?: '1' | '2';
1793
+ /** OAuth access token. */
1794
+ access_token?: string;
1795
+ /** Data format for response. */
1796
+ alt?: 'json' | 'media' | 'proto';
1797
+ /** JSONP */
1798
+ callback?: string;
1799
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
1800
+ extraLocationTypes?: string | string[];
1801
+ /** Selector specifying which fields to include in a partial response. */
1802
+ fields?: string;
1803
+ /** 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). */
1804
+ filter?: string;
1805
+ /** 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. */
1806
+ key?: string;
1807
+ /** The resource that owns the locations collection, if applicable. */
1808
+ name: string;
1809
+ /** OAuth 2.0 token for the current user. */
1810
+ oauth_token?: string;
1811
+ /** The maximum number of results to return. If not set, the service selects a default. */
1812
+ pageSize?: number;
1813
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1814
+ pageToken?: string;
1815
+ /** Returns response with indentations and line breaks. */
1816
+ prettyPrint?: boolean;
1817
+ /** 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. */
1818
+ quotaUser?: string;
1819
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1820
+ upload_protocol?: string;
1821
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1822
+ uploadType?: string;
1823
+ }): Request<ListLocationsResponse>;
1824
+ auditReports: AuditReportsResource;
1825
+ auditScopeReports: AuditScopeReportsResource;
1826
+ operationDetails: OperationDetailsResource;
1827
+ operationIds: OperationIdsResource;
1828
+ operations: OperationsResource;
1829
+ resourceEnrollmentStatuses: ResourceEnrollmentStatusesResource;
1830
+ standards: StandardsResource;
1831
+ }
1832
+ interface ProjectsResource {
1833
+ locations: LocationsResource;
1834
+ }
1835
+
1836
+ const folders: FoldersResource;
1837
+
1838
+ const organizations: OrganizationsResource;
1839
+
1840
+ const projects: ProjectsResource;
1841
+ }
1842
+ }