@maxim_mazurok/gapi.client.cloudcontrolspartner-v1beta 0.1.20260311 → 0.2.20260422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +92 -42
- package/package.json +1 -1
- package/readme.md +17 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://cloudcontrolspartner.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260422
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -42,7 +42,14 @@ declare namespace gapi.client {
|
|
|
42
42
|
/** More detail about certain reason types. See comments for each type above. */
|
|
43
43
|
detail?: string;
|
|
44
44
|
/** Type of access justification. */
|
|
45
|
-
type?:
|
|
45
|
+
type?:
|
|
46
|
+
| 'TYPE_UNSPECIFIED'
|
|
47
|
+
| 'CUSTOMER_INITIATED_SUPPORT'
|
|
48
|
+
| 'GOOGLE_INITIATED_SERVICE'
|
|
49
|
+
| 'GOOGLE_INITIATED_REVIEW'
|
|
50
|
+
| 'THIRD_PARTY_DATA_REQUEST'
|
|
51
|
+
| 'GOOGLE_RESPONSE_TO_PRODUCTION_ALERT'
|
|
52
|
+
| 'CLOUD_INITIATED_ACCESS';
|
|
46
53
|
}
|
|
47
54
|
interface ConnectionError {
|
|
48
55
|
/** The error domain for the error */
|
|
@@ -76,13 +83,18 @@ declare namespace gapi.client {
|
|
|
76
83
|
}
|
|
77
84
|
interface CustomerOnboardingStep {
|
|
78
85
|
/** Output only. Current state of the step */
|
|
79
|
-
completionState?:
|
|
86
|
+
completionState?:
|
|
87
|
+
| 'COMPLETION_STATE_UNSPECIFIED'
|
|
88
|
+
| 'PENDING'
|
|
89
|
+
| 'SUCCEEDED'
|
|
90
|
+
| 'FAILED'
|
|
91
|
+
| 'NOT_APPLICABLE';
|
|
80
92
|
/** The completion time of the onboarding step */
|
|
81
93
|
completionTime?: string;
|
|
82
94
|
/** The starting time of the onboarding step */
|
|
83
95
|
startTime?: string;
|
|
84
96
|
/** The onboarding step */
|
|
85
|
-
step?:
|
|
97
|
+
step?: 'STEP_UNSPECIFIED' | 'KAJ_ENROLLMENT' | 'CUSTOMER_ENVIRONMENT';
|
|
86
98
|
}
|
|
87
99
|
interface EkmConnection {
|
|
88
100
|
/** The connection error that occurred if any */
|
|
@@ -90,7 +102,12 @@ declare namespace gapi.client {
|
|
|
90
102
|
/** Resource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection} */
|
|
91
103
|
connectionName?: string;
|
|
92
104
|
/** Output only. The connection state */
|
|
93
|
-
connectionState?:
|
|
105
|
+
connectionState?:
|
|
106
|
+
| 'CONNECTION_STATE_UNSPECIFIED'
|
|
107
|
+
| 'AVAILABLE'
|
|
108
|
+
| 'NOT_AVAILABLE'
|
|
109
|
+
| 'ERROR'
|
|
110
|
+
| 'PERMISSION_DENIED';
|
|
94
111
|
}
|
|
95
112
|
interface EkmConnections {
|
|
96
113
|
/** The EKM connections associated with the workload */
|
|
@@ -102,7 +119,12 @@ declare namespace gapi.client {
|
|
|
102
119
|
/** Endpoint for sending requests to the EKM for key provisioning during Assured Workload creation. */
|
|
103
120
|
ekmEndpointUri?: string;
|
|
104
121
|
/** The Cloud EKM partner. */
|
|
105
|
-
ekmSolution?:
|
|
122
|
+
ekmSolution?:
|
|
123
|
+
| 'EKM_SOLUTION_UNSPECIFIED'
|
|
124
|
+
| 'FORTANIX'
|
|
125
|
+
| 'FUTUREX'
|
|
126
|
+
| 'THALES'
|
|
127
|
+
| 'VIRTRU';
|
|
106
128
|
}
|
|
107
129
|
interface Empty {}
|
|
108
130
|
interface Gcloud {
|
|
@@ -187,7 +209,13 @@ declare namespace gapi.client {
|
|
|
187
209
|
/** Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` */
|
|
188
210
|
name?: string;
|
|
189
211
|
/** The partner permissions granted for the workload */
|
|
190
|
-
partnerPermissions?:
|
|
212
|
+
partnerPermissions?:
|
|
213
|
+
| 'PERMISSION_UNSPECIFIED'
|
|
214
|
+
| 'ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS'
|
|
215
|
+
| 'ASSURED_WORKLOADS_MONITORING'
|
|
216
|
+
| 'ACCESS_APPROVAL_REQUESTS'
|
|
217
|
+
| 'ASSURED_WORKLOADS_EKM_CONNECTION_STATUS'
|
|
218
|
+
| 'ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER'[];
|
|
191
219
|
}
|
|
192
220
|
interface Remediation {
|
|
193
221
|
/** Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values */
|
|
@@ -195,7 +223,13 @@ declare namespace gapi.client {
|
|
|
195
223
|
/** Required. Remediation instructions to resolve violations */
|
|
196
224
|
instructions?: Instructions;
|
|
197
225
|
/** Output only. Remediation type based on the type of org policy values violated */
|
|
198
|
-
remediationType?:
|
|
226
|
+
remediationType?:
|
|
227
|
+
| 'REMEDIATION_TYPE_UNSPECIFIED'
|
|
228
|
+
| 'REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION'
|
|
229
|
+
| 'REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION'
|
|
230
|
+
| 'REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION'
|
|
231
|
+
| 'REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION'
|
|
232
|
+
| 'REMEDIATION_RESOURCE_VIOLATION';
|
|
199
233
|
}
|
|
200
234
|
interface Sku {
|
|
201
235
|
/** Display name of the product identified by the SKU. A partner may want to show partner branded names for their offerings such as local sovereign cloud solutions. */
|
|
@@ -221,7 +255,7 @@ declare namespace gapi.client {
|
|
|
221
255
|
/** Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty. */
|
|
222
256
|
resolveTime?: string;
|
|
223
257
|
/** Output only. State of the violation */
|
|
224
|
-
state?:
|
|
258
|
+
state?: 'STATE_UNSPECIFIED' | 'RESOLVED' | 'UNRESOLVED' | 'EXCEPTION';
|
|
225
259
|
/** Output only. The last time when the Violation record was updated. */
|
|
226
260
|
updateTime?: string;
|
|
227
261
|
}
|
|
@@ -241,7 +275,15 @@ declare namespace gapi.client {
|
|
|
241
275
|
/** Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` */
|
|
242
276
|
name?: string;
|
|
243
277
|
/** Partner associated with this workload. */
|
|
244
|
-
partner?:
|
|
278
|
+
partner?:
|
|
279
|
+
| 'PARTNER_UNSPECIFIED'
|
|
280
|
+
| 'PARTNER_LOCAL_CONTROLS_BY_S3NS'
|
|
281
|
+
| 'PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS'
|
|
282
|
+
| 'PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT'
|
|
283
|
+
| 'PARTNER_SOVEREIGN_CONTROLS_BY_PSN'
|
|
284
|
+
| 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT'
|
|
285
|
+
| 'PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM'
|
|
286
|
+
| 'PARTNER_SPAIN_DATA_BOUNDARY_BY_TELEFONICA';
|
|
245
287
|
/** Container for workload onboarding steps. */
|
|
246
288
|
workloadOnboardingState?: WorkloadOnboardingState;
|
|
247
289
|
}
|
|
@@ -251,23 +293,31 @@ declare namespace gapi.client {
|
|
|
251
293
|
}
|
|
252
294
|
interface WorkloadOnboardingStep {
|
|
253
295
|
/** Output only. The completion state of the onboarding step. */
|
|
254
|
-
completionState?:
|
|
296
|
+
completionState?:
|
|
297
|
+
| 'COMPLETION_STATE_UNSPECIFIED'
|
|
298
|
+
| 'PENDING'
|
|
299
|
+
| 'SUCCEEDED'
|
|
300
|
+
| 'FAILED'
|
|
301
|
+
| 'NOT_APPLICABLE';
|
|
255
302
|
/** The completion time of the onboarding step. */
|
|
256
303
|
completionTime?: string;
|
|
257
304
|
/** The starting time of the onboarding step. */
|
|
258
305
|
startTime?: string;
|
|
259
306
|
/** The onboarding step. */
|
|
260
|
-
step?:
|
|
307
|
+
step?:
|
|
308
|
+
| 'STEP_UNSPECIFIED'
|
|
309
|
+
| 'EKM_PROVISIONED'
|
|
310
|
+
| 'SIGNED_ACCESS_APPROVAL_CONFIGURED';
|
|
261
311
|
}
|
|
262
312
|
interface AccessApprovalRequestsResource {
|
|
263
313
|
/** Deprecated: Only returns access approval requests directly associated with an assured workload folder. */
|
|
264
314
|
list(request?: {
|
|
265
315
|
/** V1 error format. */
|
|
266
|
-
'$.xgafv'?:
|
|
316
|
+
'$.xgafv'?: '1' | '2';
|
|
267
317
|
/** OAuth access token. */
|
|
268
318
|
access_token?: string;
|
|
269
319
|
/** Data format for response. */
|
|
270
|
-
alt?:
|
|
320
|
+
alt?: 'json' | 'media' | 'proto';
|
|
271
321
|
/** JSONP */
|
|
272
322
|
callback?: string;
|
|
273
323
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -300,11 +350,11 @@ declare namespace gapi.client {
|
|
|
300
350
|
/** Gets details of a single Violation. */
|
|
301
351
|
get(request?: {
|
|
302
352
|
/** V1 error format. */
|
|
303
|
-
'$.xgafv'?:
|
|
353
|
+
'$.xgafv'?: '1' | '2';
|
|
304
354
|
/** OAuth access token. */
|
|
305
355
|
access_token?: string;
|
|
306
356
|
/** Data format for response. */
|
|
307
|
-
alt?:
|
|
357
|
+
alt?: 'json' | 'media' | 'proto';
|
|
308
358
|
/** JSONP */
|
|
309
359
|
callback?: string;
|
|
310
360
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -327,11 +377,11 @@ declare namespace gapi.client {
|
|
|
327
377
|
/** Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of {customer} & {workload}. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` */
|
|
328
378
|
list(request?: {
|
|
329
379
|
/** V1 error format. */
|
|
330
|
-
'$.xgafv'?:
|
|
380
|
+
'$.xgafv'?: '1' | '2';
|
|
331
381
|
/** OAuth access token. */
|
|
332
382
|
access_token?: string;
|
|
333
383
|
/** Data format for response. */
|
|
334
|
-
alt?:
|
|
384
|
+
alt?: 'json' | 'media' | 'proto';
|
|
335
385
|
/** JSONP */
|
|
336
386
|
callback?: string;
|
|
337
387
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -368,11 +418,11 @@ declare namespace gapi.client {
|
|
|
368
418
|
/** Gets details of a single workload */
|
|
369
419
|
get(request?: {
|
|
370
420
|
/** V1 error format. */
|
|
371
|
-
'$.xgafv'?:
|
|
421
|
+
'$.xgafv'?: '1' | '2';
|
|
372
422
|
/** OAuth access token. */
|
|
373
423
|
access_token?: string;
|
|
374
424
|
/** Data format for response. */
|
|
375
|
-
alt?:
|
|
425
|
+
alt?: 'json' | 'media' | 'proto';
|
|
376
426
|
/** JSONP */
|
|
377
427
|
callback?: string;
|
|
378
428
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -395,11 +445,11 @@ declare namespace gapi.client {
|
|
|
395
445
|
/** Gets the EKM connections associated with a workload */
|
|
396
446
|
getEkmConnections(request?: {
|
|
397
447
|
/** V1 error format. */
|
|
398
|
-
'$.xgafv'?:
|
|
448
|
+
'$.xgafv'?: '1' | '2';
|
|
399
449
|
/** OAuth access token. */
|
|
400
450
|
access_token?: string;
|
|
401
451
|
/** Data format for response. */
|
|
402
|
-
alt?:
|
|
452
|
+
alt?: 'json' | 'media' | 'proto';
|
|
403
453
|
/** JSONP */
|
|
404
454
|
callback?: string;
|
|
405
455
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -422,11 +472,11 @@ declare namespace gapi.client {
|
|
|
422
472
|
/** Gets the partner permissions granted for a workload */
|
|
423
473
|
getPartnerPermissions(request?: {
|
|
424
474
|
/** V1 error format. */
|
|
425
|
-
'$.xgafv'?:
|
|
475
|
+
'$.xgafv'?: '1' | '2';
|
|
426
476
|
/** OAuth access token. */
|
|
427
477
|
access_token?: string;
|
|
428
478
|
/** Data format for response. */
|
|
429
|
-
alt?:
|
|
479
|
+
alt?: 'json' | 'media' | 'proto';
|
|
430
480
|
/** JSONP */
|
|
431
481
|
callback?: string;
|
|
432
482
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -449,11 +499,11 @@ declare namespace gapi.client {
|
|
|
449
499
|
/** Lists customer workloads for a given customer org id */
|
|
450
500
|
list(request?: {
|
|
451
501
|
/** V1 error format. */
|
|
452
|
-
'$.xgafv'?:
|
|
502
|
+
'$.xgafv'?: '1' | '2';
|
|
453
503
|
/** OAuth access token. */
|
|
454
504
|
access_token?: string;
|
|
455
505
|
/** Data format for response. */
|
|
456
|
-
alt?:
|
|
506
|
+
alt?: 'json' | 'media' | 'proto';
|
|
457
507
|
/** JSONP */
|
|
458
508
|
callback?: string;
|
|
459
509
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -488,11 +538,11 @@ declare namespace gapi.client {
|
|
|
488
538
|
/** Creates a new customer. */
|
|
489
539
|
create(request: {
|
|
490
540
|
/** V1 error format. */
|
|
491
|
-
'$.xgafv'?:
|
|
541
|
+
'$.xgafv'?: '1' | '2';
|
|
492
542
|
/** OAuth access token. */
|
|
493
543
|
access_token?: string;
|
|
494
544
|
/** Data format for response. */
|
|
495
|
-
alt?:
|
|
545
|
+
alt?: 'json' | 'media' | 'proto';
|
|
496
546
|
/** JSONP */
|
|
497
547
|
callback?: string;
|
|
498
548
|
/** Required. The customer id to use for the customer, which will become the final component of the customer's resource name. The specified value must be a valid Google cloud organization id. */
|
|
@@ -519,11 +569,11 @@ declare namespace gapi.client {
|
|
|
519
569
|
create(
|
|
520
570
|
request: {
|
|
521
571
|
/** V1 error format. */
|
|
522
|
-
'$.xgafv'?:
|
|
572
|
+
'$.xgafv'?: '1' | '2';
|
|
523
573
|
/** OAuth access token. */
|
|
524
574
|
access_token?: string;
|
|
525
575
|
/** Data format for response. */
|
|
526
|
-
alt?:
|
|
576
|
+
alt?: 'json' | 'media' | 'proto';
|
|
527
577
|
/** JSONP */
|
|
528
578
|
callback?: string;
|
|
529
579
|
/** Required. The customer id to use for the customer, which will become the final component of the customer's resource name. The specified value must be a valid Google cloud organization id. */
|
|
@@ -550,11 +600,11 @@ declare namespace gapi.client {
|
|
|
550
600
|
/** Delete details of a single customer */
|
|
551
601
|
delete(request?: {
|
|
552
602
|
/** V1 error format. */
|
|
553
|
-
'$.xgafv'?:
|
|
603
|
+
'$.xgafv'?: '1' | '2';
|
|
554
604
|
/** OAuth access token. */
|
|
555
605
|
access_token?: string;
|
|
556
606
|
/** Data format for response. */
|
|
557
|
-
alt?:
|
|
607
|
+
alt?: 'json' | 'media' | 'proto';
|
|
558
608
|
/** JSONP */
|
|
559
609
|
callback?: string;
|
|
560
610
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -577,11 +627,11 @@ declare namespace gapi.client {
|
|
|
577
627
|
/** Gets details of a single customer */
|
|
578
628
|
get(request?: {
|
|
579
629
|
/** V1 error format. */
|
|
580
|
-
'$.xgafv'?:
|
|
630
|
+
'$.xgafv'?: '1' | '2';
|
|
581
631
|
/** OAuth access token. */
|
|
582
632
|
access_token?: string;
|
|
583
633
|
/** Data format for response. */
|
|
584
|
-
alt?:
|
|
634
|
+
alt?: 'json' | 'media' | 'proto';
|
|
585
635
|
/** JSONP */
|
|
586
636
|
callback?: string;
|
|
587
637
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -604,11 +654,11 @@ declare namespace gapi.client {
|
|
|
604
654
|
/** Lists customers of a partner identified by its Google Cloud organization ID */
|
|
605
655
|
list(request?: {
|
|
606
656
|
/** V1 error format. */
|
|
607
|
-
'$.xgafv'?:
|
|
657
|
+
'$.xgafv'?: '1' | '2';
|
|
608
658
|
/** OAuth access token. */
|
|
609
659
|
access_token?: string;
|
|
610
660
|
/** Data format for response. */
|
|
611
|
-
alt?:
|
|
661
|
+
alt?: 'json' | 'media' | 'proto';
|
|
612
662
|
/** JSONP */
|
|
613
663
|
callback?: string;
|
|
614
664
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -639,11 +689,11 @@ declare namespace gapi.client {
|
|
|
639
689
|
/** Update details of a single customer */
|
|
640
690
|
patch(request: {
|
|
641
691
|
/** V1 error format. */
|
|
642
|
-
'$.xgafv'?:
|
|
692
|
+
'$.xgafv'?: '1' | '2';
|
|
643
693
|
/** OAuth access token. */
|
|
644
694
|
access_token?: string;
|
|
645
695
|
/** Data format for response. */
|
|
646
|
-
alt?:
|
|
696
|
+
alt?: 'json' | 'media' | 'proto';
|
|
647
697
|
/** JSONP */
|
|
648
698
|
callback?: string;
|
|
649
699
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -670,11 +720,11 @@ declare namespace gapi.client {
|
|
|
670
720
|
patch(
|
|
671
721
|
request: {
|
|
672
722
|
/** V1 error format. */
|
|
673
|
-
'$.xgafv'?:
|
|
723
|
+
'$.xgafv'?: '1' | '2';
|
|
674
724
|
/** OAuth access token. */
|
|
675
725
|
access_token?: string;
|
|
676
726
|
/** Data format for response. */
|
|
677
|
-
alt?:
|
|
727
|
+
alt?: 'json' | 'media' | 'proto';
|
|
678
728
|
/** JSONP */
|
|
679
729
|
callback?: string;
|
|
680
730
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -704,11 +754,11 @@ declare namespace gapi.client {
|
|
|
704
754
|
/** Get details of a Partner. */
|
|
705
755
|
getPartner(request?: {
|
|
706
756
|
/** V1 error format. */
|
|
707
|
-
'$.xgafv'?:
|
|
757
|
+
'$.xgafv'?: '1' | '2';
|
|
708
758
|
/** OAuth access token. */
|
|
709
759
|
access_token?: string;
|
|
710
760
|
/** Data format for response. */
|
|
711
|
-
alt?:
|
|
761
|
+
alt?: 'json' | 'media' | 'proto';
|
|
712
762
|
/** JSONP */
|
|
713
763
|
callback?: string;
|
|
714
764
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Cloud Controls Partner API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudcontrolspartner-v1beta --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.cloudcontrolspartner-v1beta"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|