v1beta1.d.ts
57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
export declare namespace accessapproval_v1beta1 {
export interface Options extends GlobalOptions {
version: 'v1beta1';
}
interface StandardParameters {
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* 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.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* 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.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* Access Approval API
*
* An API for controlling access to data by Google personnel.
*
* @example
* const {google} = require('googleapis');
* const accessapproval = google.accessapproval('v1beta1');
*
* @namespace accessapproval
* @type {Function}
* @version v1beta1
* @variation v1beta1
* @param {object=} options Options for Accessapproval
*/
export class Accessapproval {
context: APIRequestContext;
folders: Resource$Folders;
organizations: Resource$Organizations;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Settings on a Project/Folder/Organization related to Access Approval.
*/
export interface Schema$AccessApprovalSettings {
/**
* Output only. This field is read only (not settable via UpdateAccessAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).
*/
enrolledAncestor?: boolean | null;
/**
* A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
*/
enrolledServices?: Schema$EnrolledService[];
/**
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
*/
name?: string | null;
/**
* A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
*/
notificationEmails?: string[] | null;
}
/**
* Home office and physical location of the principal.
*/
export interface Schema$AccessLocations {
/**
* The "home office" location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: <ol> <li>ASI: Asia</li> <li>EUR: Europe</li> <li>OCE: Oceania</li> <li>AFR: Africa</li> <li>NAM: North America</li> <li>SAM: South America</li> <li>ANT: Antarctica</li> <li>ANY: Any location</li> </ol>
*/
principalOfficeCountry?: string | null;
/**
* Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: <ol> <li>ASI: Asia</li> <li>EUR: Europe</li> <li>OCE: Oceania</li> <li>AFR: Africa</li> <li>NAM: North America</li> <li>SAM: South America</li> <li>ANT: Antarctica</li> <li>ANY: Any location</li> </ol>
*/
principalPhysicalLocationCountry?: string | null;
}
export interface Schema$AccessReason {
/**
* More detail about certain reason types. See comments for each type above.
*/
detail?: string | null;
/**
* Type of access justification.
*/
type?: string | null;
}
/**
* A request for the customer to approve access to a resource.
*/
export interface Schema$ApprovalRequest {
/**
* Access was approved.
*/
approve?: Schema$ApproveDecision;
/**
* The request was dismissed.
*/
dismiss?: Schema$DismissDecision;
/**
* The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}".
*/
name?: string | null;
/**
* The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
*/
requestedExpiration?: string | null;
/**
* The locations for which approval is being requested.
*/
requestedLocations?: Schema$AccessLocations;
/**
* The justification for which approval is being requested.
*/
requestedReason?: Schema$AccessReason;
/**
* The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
*/
requestedResourceName?: string | null;
/**
* Properties related to the resource represented by requested_resource_name.
*/
requestedResourceProperties?: Schema$ResourceProperties;
/**
* The time at which approval was requested.
*/
requestTime?: string | null;
}
/**
* Request to approve an ApprovalRequest.
*/
export interface Schema$ApproveApprovalRequestMessage {
/**
* The expiration time of this approval.
*/
expireTime?: string | null;
}
/**
* A decision that has been made to approve access to a resource.
*/
export interface Schema$ApproveDecision {
/**
* The time at which approval was granted.
*/
approveTime?: string | null;
/**
* The time at which the approval expires.
*/
expireTime?: string | null;
}
/**
* Request to dismiss an approval request.
*/
export interface Schema$DismissApprovalRequestMessage {
}
/**
* A decision that has been made to dismiss an approval request.
*/
export interface Schema$DismissDecision {
/**
* The time at which the approval request was dismissed.
*/
dismissTime?: string | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
*/
export interface Schema$Empty {
}
/**
* Represents the enrollment of a cloud resource into a specific service.
*/
export interface Schema$EnrolledService {
/**
* The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): <ol> <li>all</li> <li>appengine.googleapis.com</li> <li>bigquery.googleapis.com</li> <li>bigtable.googleapis.com</li> <li>cloudkms.googleapis.com</li> <li>compute.googleapis.com</li> <li>dataflow.googleapis.com</li> <li>iam.googleapis.com</li> <li>pubsub.googleapis.com</li> <li>storage.googleapis.com</li> <ol>
*/
cloudProduct?: string | null;
/**
* The enrollment level of the service.
*/
enrollmentLevel?: string | null;
}
/**
* Response to listing of ApprovalRequest objects.
*/
export interface Schema$ListApprovalRequestsResponse {
/**
* Approval request details.
*/
approvalRequests?: Schema$ApprovalRequest[];
/**
* Token to retrieve the next page of results, or empty if there are no more.
*/
nextPageToken?: string | null;
}
/**
* The properties associated with the resource of the request.
*/
export interface Schema$ResourceProperties {
/**
* Whether an approval will exclude the descendants of the resource being requested.
*/
excludesDescendants?: boolean | null;
}
export class Resource$Folders {
context: APIRequestContext;
approvalRequests: Resource$Folders$Approvalrequests;
constructor(context: APIRequestContext);
/**
* accessapproval.folders.deleteAccessApprovalSettings
* @desc Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
* @alias accessapproval.folders.deleteAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the AccessApprovalSettings to delete.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
deleteAccessApprovalSettings(params?: Params$Resource$Folders$Deleteaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
deleteAccessApprovalSettings(params: Params$Resource$Folders$Deleteaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
deleteAccessApprovalSettings(params: Params$Resource$Folders$Deleteaccessapprovalsettings, callback: BodyResponseCallback<Schema$Empty>): void;
deleteAccessApprovalSettings(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* accessapproval.folders.getAccessApprovalSettings
* @desc Gets the settings associated with a project, folder, or organization.
* @alias accessapproval.folders.getAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the AccessApprovalSettings to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getAccessApprovalSettings(params?: Params$Resource$Folders$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
getAccessApprovalSettings(params: Params$Resource$Folders$Getaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
getAccessApprovalSettings(params: Params$Resource$Folders$Getaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
getAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
/**
* accessapproval.folders.updateAccessApprovalSettings
* @desc Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
* @alias accessapproval.folders.updateAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
* @param {string=} params.updateMask For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
* @param {().AccessApprovalSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
updateAccessApprovalSettings(params?: Params$Resource$Folders$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
updateAccessApprovalSettings(params: Params$Resource$Folders$Updateaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
updateAccessApprovalSettings(params: Params$Resource$Folders$Updateaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
updateAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
}
export interface Params$Resource$Folders$Deleteaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the AccessApprovalSettings to delete.
*/
name?: string;
}
export interface Params$Resource$Folders$Getaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the AccessApprovalSettings to retrieve.
*/
name?: string;
}
export interface Params$Resource$Folders$Updateaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
*/
name?: string;
/**
* For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AccessApprovalSettings;
}
export class Resource$Folders$Approvalrequests {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* accessapproval.folders.approvalRequests.approve
* @desc Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
* @alias accessapproval.folders.approvalRequests.approve
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the approval request to approve.
* @param {().ApproveApprovalRequestMessage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
approve(params?: Params$Resource$Folders$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
approve(params: Params$Resource$Folders$Approvalrequests$Approve, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
approve(params: Params$Resource$Folders$Approvalrequests$Approve, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
approve(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.folders.approvalRequests.dismiss
* @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
* @alias accessapproval.folders.approvalRequests.dismiss
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the ApprovalRequest to dismiss.
* @param {().DismissApprovalRequestMessage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
dismiss(params?: Params$Resource$Folders$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
dismiss(params: Params$Resource$Folders$Approvalrequests$Dismiss, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
dismiss(params: Params$Resource$Folders$Approvalrequests$Dismiss, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
dismiss(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.folders.approvalRequests.get
* @desc Gets an approval request. Returns NOT_FOUND if the request does not exist.
* @alias accessapproval.folders.approvalRequests.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the approval request to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Folders$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
get(params: Params$Resource$Folders$Approvalrequests$Get, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
get(params: Params$Resource$Folders$Approvalrequests$Get, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
get(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.folders.approvalRequests.list
* @desc Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
* @alias accessapproval.folders.approvalRequests.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
* @param {integer=} params.pageSize Requested page size.
* @param {string=} params.pageToken A token identifying the page of results to return.
* @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Folders$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
list(params: Params$Resource$Folders$Approvalrequests$List, options: MethodOptions | BodyResponseCallback<Schema$ListApprovalRequestsResponse>, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
list(params: Params$Resource$Folders$Approvalrequests$List, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
}
export interface Params$Resource$Folders$Approvalrequests$Approve extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the approval request to approve.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ApproveApprovalRequestMessage;
}
export interface Params$Resource$Folders$Approvalrequests$Dismiss extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the ApprovalRequest to dismiss.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$DismissApprovalRequestMessage;
}
export interface Params$Resource$Folders$Approvalrequests$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the approval request to retrieve.
*/
name?: string;
}
export interface Params$Resource$Folders$Approvalrequests$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
*/
filter?: string;
/**
* Requested page size.
*/
pageSize?: number;
/**
* A token identifying the page of results to return.
*/
pageToken?: string;
/**
* The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
*/
parent?: string;
}
export class Resource$Organizations {
context: APIRequestContext;
approvalRequests: Resource$Organizations$Approvalrequests;
constructor(context: APIRequestContext);
/**
* accessapproval.organizations.deleteAccessApprovalSettings
* @desc Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
* @alias accessapproval.organizations.deleteAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the AccessApprovalSettings to delete.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
deleteAccessApprovalSettings(params?: Params$Resource$Organizations$Deleteaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
deleteAccessApprovalSettings(params: Params$Resource$Organizations$Deleteaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
deleteAccessApprovalSettings(params: Params$Resource$Organizations$Deleteaccessapprovalsettings, callback: BodyResponseCallback<Schema$Empty>): void;
deleteAccessApprovalSettings(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* accessapproval.organizations.getAccessApprovalSettings
* @desc Gets the settings associated with a project, folder, or organization.
* @alias accessapproval.organizations.getAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the AccessApprovalSettings to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getAccessApprovalSettings(params?: Params$Resource$Organizations$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
getAccessApprovalSettings(params: Params$Resource$Organizations$Getaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
getAccessApprovalSettings(params: Params$Resource$Organizations$Getaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
getAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
/**
* accessapproval.organizations.updateAccessApprovalSettings
* @desc Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
* @alias accessapproval.organizations.updateAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
* @param {string=} params.updateMask For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
* @param {().AccessApprovalSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
updateAccessApprovalSettings(params?: Params$Resource$Organizations$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
updateAccessApprovalSettings(params: Params$Resource$Organizations$Updateaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
updateAccessApprovalSettings(params: Params$Resource$Organizations$Updateaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
updateAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
}
export interface Params$Resource$Organizations$Deleteaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the AccessApprovalSettings to delete.
*/
name?: string;
}
export interface Params$Resource$Organizations$Getaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the AccessApprovalSettings to retrieve.
*/
name?: string;
}
export interface Params$Resource$Organizations$Updateaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
*/
name?: string;
/**
* For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AccessApprovalSettings;
}
export class Resource$Organizations$Approvalrequests {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* accessapproval.organizations.approvalRequests.approve
* @desc Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
* @alias accessapproval.organizations.approvalRequests.approve
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the approval request to approve.
* @param {().ApproveApprovalRequestMessage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
approve(params?: Params$Resource$Organizations$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
approve(params: Params$Resource$Organizations$Approvalrequests$Approve, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
approve(params: Params$Resource$Organizations$Approvalrequests$Approve, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
approve(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.organizations.approvalRequests.dismiss
* @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
* @alias accessapproval.organizations.approvalRequests.dismiss
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the ApprovalRequest to dismiss.
* @param {().DismissApprovalRequestMessage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
dismiss(params?: Params$Resource$Organizations$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
dismiss(params: Params$Resource$Organizations$Approvalrequests$Dismiss, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
dismiss(params: Params$Resource$Organizations$Approvalrequests$Dismiss, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
dismiss(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.organizations.approvalRequests.get
* @desc Gets an approval request. Returns NOT_FOUND if the request does not exist.
* @alias accessapproval.organizations.approvalRequests.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the approval request to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Organizations$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
get(params: Params$Resource$Organizations$Approvalrequests$Get, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
get(params: Params$Resource$Organizations$Approvalrequests$Get, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
get(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.organizations.approvalRequests.list
* @desc Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
* @alias accessapproval.organizations.approvalRequests.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
* @param {integer=} params.pageSize Requested page size.
* @param {string=} params.pageToken A token identifying the page of results to return.
* @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Organizations$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
list(params: Params$Resource$Organizations$Approvalrequests$List, options: MethodOptions | BodyResponseCallback<Schema$ListApprovalRequestsResponse>, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
list(params: Params$Resource$Organizations$Approvalrequests$List, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
}
export interface Params$Resource$Organizations$Approvalrequests$Approve extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the approval request to approve.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ApproveApprovalRequestMessage;
}
export interface Params$Resource$Organizations$Approvalrequests$Dismiss extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the ApprovalRequest to dismiss.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$DismissApprovalRequestMessage;
}
export interface Params$Resource$Organizations$Approvalrequests$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the approval request to retrieve.
*/
name?: string;
}
export interface Params$Resource$Organizations$Approvalrequests$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
*/
filter?: string;
/**
* Requested page size.
*/
pageSize?: number;
/**
* A token identifying the page of results to return.
*/
pageToken?: string;
/**
* The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
*/
parent?: string;
}
export class Resource$Projects {
context: APIRequestContext;
approvalRequests: Resource$Projects$Approvalrequests;
constructor(context: APIRequestContext);
/**
* accessapproval.projects.deleteAccessApprovalSettings
* @desc Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
* @alias accessapproval.projects.deleteAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the AccessApprovalSettings to delete.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
deleteAccessApprovalSettings(params?: Params$Resource$Projects$Deleteaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
deleteAccessApprovalSettings(params: Params$Resource$Projects$Deleteaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
deleteAccessApprovalSettings(params: Params$Resource$Projects$Deleteaccessapprovalsettings, callback: BodyResponseCallback<Schema$Empty>): void;
deleteAccessApprovalSettings(callback: BodyResponseCallback<Schema$Empty>): void;
/**
* accessapproval.projects.getAccessApprovalSettings
* @desc Gets the settings associated with a project, folder, or organization.
* @alias accessapproval.projects.getAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the AccessApprovalSettings to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getAccessApprovalSettings(params?: Params$Resource$Projects$Getaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
getAccessApprovalSettings(params: Params$Resource$Projects$Getaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
getAccessApprovalSettings(params: Params$Resource$Projects$Getaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
getAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
/**
* accessapproval.projects.updateAccessApprovalSettings
* @desc Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
* @alias accessapproval.projects.updateAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
* @param {string=} params.updateMask For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
* @param {().AccessApprovalSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
updateAccessApprovalSettings(params?: Params$Resource$Projects$Updateaccessapprovalsettings, options?: MethodOptions): GaxiosPromise<Schema$AccessApprovalSettings>;
updateAccessApprovalSettings(params: Params$Resource$Projects$Updateaccessapprovalsettings, options: MethodOptions | BodyResponseCallback<Schema$AccessApprovalSettings>, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
updateAccessApprovalSettings(params: Params$Resource$Projects$Updateaccessapprovalsettings, callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
updateAccessApprovalSettings(callback: BodyResponseCallback<Schema$AccessApprovalSettings>): void;
}
export interface Params$Resource$Projects$Deleteaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the AccessApprovalSettings to delete.
*/
name?: string;
}
export interface Params$Resource$Projects$Getaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the AccessApprovalSettings to retrieve.
*/
name?: string;
}
export interface Params$Resource$Projects$Updateaccessapprovalsettings extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
*/
name?: string;
/**
* For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
*/
updateMask?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AccessApprovalSettings;
}
export class Resource$Projects$Approvalrequests {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* accessapproval.projects.approvalRequests.approve
* @desc Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
* @alias accessapproval.projects.approvalRequests.approve
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the approval request to approve.
* @param {().ApproveApprovalRequestMessage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
approve(params?: Params$Resource$Projects$Approvalrequests$Approve, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
approve(params: Params$Resource$Projects$Approvalrequests$Approve, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
approve(params: Params$Resource$Projects$Approvalrequests$Approve, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
approve(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.projects.approvalRequests.dismiss
* @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
* @alias accessapproval.projects.approvalRequests.dismiss
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the ApprovalRequest to dismiss.
* @param {().DismissApprovalRequestMessage} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
dismiss(params?: Params$Resource$Projects$Approvalrequests$Dismiss, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
dismiss(params: Params$Resource$Projects$Approvalrequests$Dismiss, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
dismiss(params: Params$Resource$Projects$Approvalrequests$Dismiss, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
dismiss(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.projects.approvalRequests.get
* @desc Gets an approval request. Returns NOT_FOUND if the request does not exist.
* @alias accessapproval.projects.approvalRequests.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name Name of the approval request to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Projects$Approvalrequests$Get, options?: MethodOptions): GaxiosPromise<Schema$ApprovalRequest>;
get(params: Params$Resource$Projects$Approvalrequests$Get, options: MethodOptions | BodyResponseCallback<Schema$ApprovalRequest>, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
get(params: Params$Resource$Projects$Approvalrequests$Get, callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
get(callback: BodyResponseCallback<Schema$ApprovalRequest>): void;
/**
* accessapproval.projects.approvalRequests.list
* @desc Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
* @alias accessapproval.projects.approvalRequests.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
* @param {integer=} params.pageSize Requested page size.
* @param {string=} params.pageToken A token identifying the page of results to return.
* @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Projects$Approvalrequests$List, options?: MethodOptions): GaxiosPromise<Schema$ListApprovalRequestsResponse>;
list(params: Params$Resource$Projects$Approvalrequests$List, options: MethodOptions | BodyResponseCallback<Schema$ListApprovalRequestsResponse>, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
list(params: Params$Resource$Projects$Approvalrequests$List, callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
list(callback: BodyResponseCallback<Schema$ListApprovalRequestsResponse>): void;
}
export interface Params$Resource$Projects$Approvalrequests$Approve extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the approval request to approve.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ApproveApprovalRequestMessage;
}
export interface Params$Resource$Projects$Approvalrequests$Dismiss extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the ApprovalRequest to dismiss.
*/
name?: string;
/**
* Request body metadata
*/
requestBody?: Schema$DismissApprovalRequestMessage;
}
export interface Params$Resource$Projects$Approvalrequests$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the approval request to retrieve.
*/
name?: string;
}
export interface Params$Resource$Projects$Approvalrequests$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* A filter on the type of approval requests to retrieve. Must be one of the following values: <ol> <li>[not set]: Requests that are pending or have active approvals.</li> <li>ALL: All requests.</li> <li>PENDING: Only pending requests.</li> <li>ACTIVE: Only active (i.e. currently approved) requests.</li> <li>DISMISSED: Only dismissed (including expired) requests.</li> </ol>
*/
filter?: string;
/**
* Requested page size.
*/
pageSize?: number;
/**
* A token identifying the page of results to return.
*/
pageToken?: string;
/**
* The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
*/
parent?: string;
}
export {};
}