@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230129 → 0.0.20230219
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 +419 -1
- package/package.json +1 -1
- package/tests.ts +78 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://gkehub.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230219
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -601,6 +601,12 @@ declare namespace gapi.client {
|
|
|
601
601
|
/** The standard List next-page token. */
|
|
602
602
|
nextPageToken?: string;
|
|
603
603
|
}
|
|
604
|
+
interface ListMembershipBindingsResponse {
|
|
605
|
+
/** The list of membership_bindings */
|
|
606
|
+
membershipBindings?: MembershipBinding[];
|
|
607
|
+
/** A token to request the next page of resources from the `ListMembershipBindings` method. The value of an empty string means that there are no more resources to return. */
|
|
608
|
+
nextPageToken?: string;
|
|
609
|
+
}
|
|
604
610
|
interface ListMembershipsResponse {
|
|
605
611
|
/** A token to request the next page of resources from the `ListMemberships` method. The value of an empty string means that there are no more resources to return. */
|
|
606
612
|
nextPageToken?: string;
|
|
@@ -615,6 +621,12 @@ declare namespace gapi.client {
|
|
|
615
621
|
/** A list of operations that matches the specified filter in the request. */
|
|
616
622
|
operations?: Operation[];
|
|
617
623
|
}
|
|
624
|
+
interface ListScopesResponse {
|
|
625
|
+
/** A token to request the next page of resources from the `ListScopes` method. The value of an empty string means that there are no more resources to return. */
|
|
626
|
+
nextPageToken?: string;
|
|
627
|
+
/** The list of Scopes */
|
|
628
|
+
scopes?: Scope[];
|
|
629
|
+
}
|
|
618
630
|
interface Location {
|
|
619
631
|
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
620
632
|
displayName?: string;
|
|
@@ -669,6 +681,31 @@ declare namespace gapi.client {
|
|
|
669
681
|
/** Output only. When the Membership was last updated. */
|
|
670
682
|
updateTime?: string;
|
|
671
683
|
}
|
|
684
|
+
interface MembershipBinding {
|
|
685
|
+
/** Output only. When the membership binding was created. */
|
|
686
|
+
createTime?: string;
|
|
687
|
+
/** Output only. When the membership binding was deleted. */
|
|
688
|
+
deleteTime?: string;
|
|
689
|
+
/** Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet. */
|
|
690
|
+
fleet?: boolean;
|
|
691
|
+
/** The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` */
|
|
692
|
+
name?: string;
|
|
693
|
+
/** A Workspace resource name in the format `projects/*/locations/*/scopes/*`. */
|
|
694
|
+
scope?: string;
|
|
695
|
+
/** Output only. State of the membership binding resource. */
|
|
696
|
+
state?: MembershipBindingLifecycleState;
|
|
697
|
+
/**
|
|
698
|
+
* Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the
|
|
699
|
+
* same name is created, it gets a different uid.
|
|
700
|
+
*/
|
|
701
|
+
uid?: string;
|
|
702
|
+
/** Output only. When the membership binding was last updated. */
|
|
703
|
+
updateTime?: string;
|
|
704
|
+
}
|
|
705
|
+
interface MembershipBindingLifecycleState {
|
|
706
|
+
/** Output only. The current state of the MembershipBinding resource. */
|
|
707
|
+
code?: string;
|
|
708
|
+
}
|
|
672
709
|
interface MembershipEndpoint {
|
|
673
710
|
/** Optional. Specific information for a GDC Edge Appliance cluster. */
|
|
674
711
|
applianceCluster?: ApplianceCluster;
|
|
@@ -676,6 +713,8 @@ declare namespace gapi.client {
|
|
|
676
713
|
edgeCluster?: EdgeCluster;
|
|
677
714
|
/** Optional. Specific information for a GKE-on-GCP cluster. */
|
|
678
715
|
gkeCluster?: GkeCluster;
|
|
716
|
+
/** Output only. Whether the lifecycle of this membership is managed by a google cluster platform service. */
|
|
717
|
+
googleManaged?: boolean;
|
|
679
718
|
/** Output only. Useful Kubernetes-specific metadata. */
|
|
680
719
|
kubernetesMetadata?: KubernetesMetadata;
|
|
681
720
|
/**
|
|
@@ -841,6 +880,23 @@ declare namespace gapi.client {
|
|
|
841
880
|
*/
|
|
842
881
|
v1beta1Crd?: boolean;
|
|
843
882
|
}
|
|
883
|
+
interface Scope {
|
|
884
|
+
/** Output only. When the scope was created. */
|
|
885
|
+
createTime?: string;
|
|
886
|
+
/** Output only. When the scope was deleted. */
|
|
887
|
+
deleteTime?: string;
|
|
888
|
+
/** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
|
|
889
|
+
name?: string;
|
|
890
|
+
/** Output only. State of the scope resource. */
|
|
891
|
+
state?: ScopeLifecycleState;
|
|
892
|
+
/**
|
|
893
|
+
* Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created,
|
|
894
|
+
* it gets a different uid.
|
|
895
|
+
*/
|
|
896
|
+
uid?: string;
|
|
897
|
+
/** Output only. When the scope was last updated. */
|
|
898
|
+
updateTime?: string;
|
|
899
|
+
}
|
|
844
900
|
// tslint:disable-next-line:no-empty-interface
|
|
845
901
|
interface ScopeFeatureSpec {
|
|
846
902
|
}
|
|
@@ -848,6 +904,10 @@ declare namespace gapi.client {
|
|
|
848
904
|
/** Output only. The "running state" of the Feature in this Scope. */
|
|
849
905
|
state?: FeatureState;
|
|
850
906
|
}
|
|
907
|
+
interface ScopeLifecycleState {
|
|
908
|
+
/** Output only. The current state of the scope resource. */
|
|
909
|
+
code?: string;
|
|
910
|
+
}
|
|
851
911
|
interface ServiceMeshControlPlaneManagement {
|
|
852
912
|
/** Explanation of state. */
|
|
853
913
|
details?: ServiceMeshStatusDetails[];
|
|
@@ -1276,6 +1336,213 @@ declare namespace gapi.client {
|
|
|
1276
1336
|
},
|
|
1277
1337
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1278
1338
|
}
|
|
1339
|
+
interface BindingsResource {
|
|
1340
|
+
/** Creates a MembershipBinding. */
|
|
1341
|
+
create(request: {
|
|
1342
|
+
/** V1 error format. */
|
|
1343
|
+
"$.xgafv"?: string;
|
|
1344
|
+
/** OAuth access token. */
|
|
1345
|
+
access_token?: string;
|
|
1346
|
+
/** Data format for response. */
|
|
1347
|
+
alt?: string;
|
|
1348
|
+
/** JSONP */
|
|
1349
|
+
callback?: string;
|
|
1350
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1351
|
+
fields?: string;
|
|
1352
|
+
/** 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. */
|
|
1353
|
+
key?: string;
|
|
1354
|
+
/** Required. The ID to use for the MembershipBinding. */
|
|
1355
|
+
membershipBindingId?: string;
|
|
1356
|
+
/** OAuth 2.0 token for the current user. */
|
|
1357
|
+
oauth_token?: string;
|
|
1358
|
+
/** Required. The parent (project and location) where the MembershipBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
1359
|
+
parent: string;
|
|
1360
|
+
/** Returns response with indentations and line breaks. */
|
|
1361
|
+
prettyPrint?: boolean;
|
|
1362
|
+
/** 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. */
|
|
1363
|
+
quotaUser?: string;
|
|
1364
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1365
|
+
upload_protocol?: string;
|
|
1366
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1367
|
+
uploadType?: string;
|
|
1368
|
+
/** Request body */
|
|
1369
|
+
resource: MembershipBinding;
|
|
1370
|
+
}): Request<Operation>;
|
|
1371
|
+
create(request: {
|
|
1372
|
+
/** V1 error format. */
|
|
1373
|
+
"$.xgafv"?: string;
|
|
1374
|
+
/** OAuth access token. */
|
|
1375
|
+
access_token?: string;
|
|
1376
|
+
/** Data format for response. */
|
|
1377
|
+
alt?: string;
|
|
1378
|
+
/** JSONP */
|
|
1379
|
+
callback?: string;
|
|
1380
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1381
|
+
fields?: string;
|
|
1382
|
+
/** 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. */
|
|
1383
|
+
key?: string;
|
|
1384
|
+
/** Required. The ID to use for the MembershipBinding. */
|
|
1385
|
+
membershipBindingId?: string;
|
|
1386
|
+
/** OAuth 2.0 token for the current user. */
|
|
1387
|
+
oauth_token?: string;
|
|
1388
|
+
/** Required. The parent (project and location) where the MembershipBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
1389
|
+
parent: string;
|
|
1390
|
+
/** Returns response with indentations and line breaks. */
|
|
1391
|
+
prettyPrint?: boolean;
|
|
1392
|
+
/** 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. */
|
|
1393
|
+
quotaUser?: 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
|
+
},
|
|
1399
|
+
body: MembershipBinding): Request<Operation>;
|
|
1400
|
+
/** Deletes a MembershipBinding. */
|
|
1401
|
+
delete(request?: {
|
|
1402
|
+
/** V1 error format. */
|
|
1403
|
+
"$.xgafv"?: string;
|
|
1404
|
+
/** OAuth access token. */
|
|
1405
|
+
access_token?: string;
|
|
1406
|
+
/** Data format for response. */
|
|
1407
|
+
alt?: string;
|
|
1408
|
+
/** JSONP */
|
|
1409
|
+
callback?: string;
|
|
1410
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1411
|
+
fields?: string;
|
|
1412
|
+
/** 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. */
|
|
1413
|
+
key?: string;
|
|
1414
|
+
/** Required. The MembershipBinding resource name in the format `projects/*/locations/*/memberships/*/bindings/*`. */
|
|
1415
|
+
name: string;
|
|
1416
|
+
/** OAuth 2.0 token for the current user. */
|
|
1417
|
+
oauth_token?: string;
|
|
1418
|
+
/** Returns response with indentations and line breaks. */
|
|
1419
|
+
prettyPrint?: boolean;
|
|
1420
|
+
/** 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. */
|
|
1421
|
+
quotaUser?: string;
|
|
1422
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1423
|
+
upload_protocol?: string;
|
|
1424
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1425
|
+
uploadType?: string;
|
|
1426
|
+
}): Request<Operation>;
|
|
1427
|
+
/** Returns the details of a MembershipBinding. */
|
|
1428
|
+
get(request?: {
|
|
1429
|
+
/** V1 error format. */
|
|
1430
|
+
"$.xgafv"?: string;
|
|
1431
|
+
/** OAuth access token. */
|
|
1432
|
+
access_token?: string;
|
|
1433
|
+
/** Data format for response. */
|
|
1434
|
+
alt?: string;
|
|
1435
|
+
/** JSONP */
|
|
1436
|
+
callback?: string;
|
|
1437
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1438
|
+
fields?: string;
|
|
1439
|
+
/** 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. */
|
|
1440
|
+
key?: string;
|
|
1441
|
+
/** Required. The MembershipBinding resource name in the format `projects/*/locations/*/memberships/*/bindings/*`. */
|
|
1442
|
+
name: string;
|
|
1443
|
+
/** OAuth 2.0 token for the current user. */
|
|
1444
|
+
oauth_token?: string;
|
|
1445
|
+
/** Returns response with indentations and line breaks. */
|
|
1446
|
+
prettyPrint?: boolean;
|
|
1447
|
+
/** 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. */
|
|
1448
|
+
quotaUser?: string;
|
|
1449
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1450
|
+
upload_protocol?: string;
|
|
1451
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1452
|
+
uploadType?: string;
|
|
1453
|
+
}): Request<MembershipBinding>;
|
|
1454
|
+
/** Lists MembershipBindings. */
|
|
1455
|
+
list(request?: {
|
|
1456
|
+
/** V1 error format. */
|
|
1457
|
+
"$.xgafv"?: string;
|
|
1458
|
+
/** OAuth access token. */
|
|
1459
|
+
access_token?: string;
|
|
1460
|
+
/** Data format for response. */
|
|
1461
|
+
alt?: string;
|
|
1462
|
+
/** JSONP */
|
|
1463
|
+
callback?: string;
|
|
1464
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1465
|
+
fields?: string;
|
|
1466
|
+
/** 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. */
|
|
1467
|
+
key?: string;
|
|
1468
|
+
/** OAuth 2.0 token for the current user. */
|
|
1469
|
+
oauth_token?: string;
|
|
1470
|
+
/** Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned. */
|
|
1471
|
+
pageSize?: number;
|
|
1472
|
+
/** Optional. Token returned by previous call to `ListMembershipBindings` which specifies the position in the list from where to continue listing the resources. */
|
|
1473
|
+
pageToken?: string;
|
|
1474
|
+
/** Required. The parent Membership for which the MembershipBindings will be listed. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
1475
|
+
parent: string;
|
|
1476
|
+
/** Returns response with indentations and line breaks. */
|
|
1477
|
+
prettyPrint?: boolean;
|
|
1478
|
+
/** 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. */
|
|
1479
|
+
quotaUser?: string;
|
|
1480
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1481
|
+
upload_protocol?: string;
|
|
1482
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1483
|
+
uploadType?: string;
|
|
1484
|
+
}): Request<ListMembershipBindingsResponse>;
|
|
1485
|
+
/** Updates a MembershipBinding. */
|
|
1486
|
+
patch(request: {
|
|
1487
|
+
/** V1 error format. */
|
|
1488
|
+
"$.xgafv"?: string;
|
|
1489
|
+
/** OAuth access token. */
|
|
1490
|
+
access_token?: string;
|
|
1491
|
+
/** Data format for response. */
|
|
1492
|
+
alt?: string;
|
|
1493
|
+
/** JSONP */
|
|
1494
|
+
callback?: string;
|
|
1495
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1496
|
+
fields?: string;
|
|
1497
|
+
/** 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. */
|
|
1498
|
+
key?: string;
|
|
1499
|
+
/** The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` */
|
|
1500
|
+
name: string;
|
|
1501
|
+
/** OAuth 2.0 token for the current user. */
|
|
1502
|
+
oauth_token?: string;
|
|
1503
|
+
/** Returns response with indentations and line breaks. */
|
|
1504
|
+
prettyPrint?: boolean;
|
|
1505
|
+
/** 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. */
|
|
1506
|
+
quotaUser?: string;
|
|
1507
|
+
/** Required. The fields to be updated. */
|
|
1508
|
+
updateMask?: string;
|
|
1509
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1510
|
+
upload_protocol?: string;
|
|
1511
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1512
|
+
uploadType?: string;
|
|
1513
|
+
/** Request body */
|
|
1514
|
+
resource: MembershipBinding;
|
|
1515
|
+
}): Request<Operation>;
|
|
1516
|
+
patch(request: {
|
|
1517
|
+
/** V1 error format. */
|
|
1518
|
+
"$.xgafv"?: string;
|
|
1519
|
+
/** OAuth access token. */
|
|
1520
|
+
access_token?: string;
|
|
1521
|
+
/** Data format for response. */
|
|
1522
|
+
alt?: string;
|
|
1523
|
+
/** JSONP */
|
|
1524
|
+
callback?: string;
|
|
1525
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1526
|
+
fields?: string;
|
|
1527
|
+
/** 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. */
|
|
1528
|
+
key?: string;
|
|
1529
|
+
/** The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` */
|
|
1530
|
+
name: string;
|
|
1531
|
+
/** OAuth 2.0 token for the current user. */
|
|
1532
|
+
oauth_token?: string;
|
|
1533
|
+
/** Returns response with indentations and line breaks. */
|
|
1534
|
+
prettyPrint?: boolean;
|
|
1535
|
+
/** 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. */
|
|
1536
|
+
quotaUser?: string;
|
|
1537
|
+
/** Required. The fields to be updated. */
|
|
1538
|
+
updateMask?: string;
|
|
1539
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1540
|
+
upload_protocol?: string;
|
|
1541
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1542
|
+
uploadType?: string;
|
|
1543
|
+
},
|
|
1544
|
+
body: MembershipBinding): Request<Operation>;
|
|
1545
|
+
}
|
|
1279
1546
|
interface MembershipsResource {
|
|
1280
1547
|
/**
|
|
1281
1548
|
* Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at
|
|
@@ -1379,6 +1646,8 @@ declare namespace gapi.client {
|
|
|
1379
1646
|
callback?: string;
|
|
1380
1647
|
/** Selector specifying which fields to include in a partial response. */
|
|
1381
1648
|
fields?: string;
|
|
1649
|
+
/** Optional. If set to true, any subresource from this Membership will also be deleted. Otherwise, the request will only work if the Membership has no subresource. */
|
|
1650
|
+
force?: boolean;
|
|
1382
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. */
|
|
1383
1652
|
key?: string;
|
|
1384
1653
|
/** Required. The Membership resource name in the format `projects/*/locations/*/memberships/*`. */
|
|
@@ -1698,6 +1967,7 @@ declare namespace gapi.client {
|
|
|
1698
1967
|
uploadType?: string;
|
|
1699
1968
|
},
|
|
1700
1969
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1970
|
+
bindings: BindingsResource;
|
|
1701
1971
|
}
|
|
1702
1972
|
interface OperationsResource {
|
|
1703
1973
|
/**
|
|
@@ -1857,6 +2127,153 @@ declare namespace gapi.client {
|
|
|
1857
2127
|
uploadType?: string;
|
|
1858
2128
|
}): Request<ListOperationsResponse>;
|
|
1859
2129
|
}
|
|
2130
|
+
interface ScopesResource {
|
|
2131
|
+
/** Creates a Scope. */
|
|
2132
|
+
create(request: {
|
|
2133
|
+
/** V1 error format. */
|
|
2134
|
+
"$.xgafv"?: string;
|
|
2135
|
+
/** OAuth access token. */
|
|
2136
|
+
access_token?: string;
|
|
2137
|
+
/** Data format for response. */
|
|
2138
|
+
alt?: string;
|
|
2139
|
+
/** JSONP */
|
|
2140
|
+
callback?: string;
|
|
2141
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2142
|
+
fields?: string;
|
|
2143
|
+
/** 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. */
|
|
2144
|
+
key?: string;
|
|
2145
|
+
/** OAuth 2.0 token for the current user. */
|
|
2146
|
+
oauth_token?: string;
|
|
2147
|
+
/** Required. The parent (project and location) where the Scope will be created. Specified in the format `projects/*/locations/*`. */
|
|
2148
|
+
parent: string;
|
|
2149
|
+
/** Returns response with indentations and line breaks. */
|
|
2150
|
+
prettyPrint?: boolean;
|
|
2151
|
+
/** 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. */
|
|
2152
|
+
quotaUser?: string;
|
|
2153
|
+
/** Required. Client chosen ID for the Scope. `scope_id` must be a ???? */
|
|
2154
|
+
scopeId?: string;
|
|
2155
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2156
|
+
upload_protocol?: string;
|
|
2157
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2158
|
+
uploadType?: string;
|
|
2159
|
+
/** Request body */
|
|
2160
|
+
resource: Scope;
|
|
2161
|
+
}): Request<Operation>;
|
|
2162
|
+
create(request: {
|
|
2163
|
+
/** V1 error format. */
|
|
2164
|
+
"$.xgafv"?: string;
|
|
2165
|
+
/** OAuth access token. */
|
|
2166
|
+
access_token?: string;
|
|
2167
|
+
/** Data format for response. */
|
|
2168
|
+
alt?: string;
|
|
2169
|
+
/** JSONP */
|
|
2170
|
+
callback?: string;
|
|
2171
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2172
|
+
fields?: string;
|
|
2173
|
+
/** 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. */
|
|
2174
|
+
key?: string;
|
|
2175
|
+
/** OAuth 2.0 token for the current user. */
|
|
2176
|
+
oauth_token?: string;
|
|
2177
|
+
/** Required. The parent (project and location) where the Scope will be created. Specified in the format `projects/*/locations/*`. */
|
|
2178
|
+
parent: string;
|
|
2179
|
+
/** Returns response with indentations and line breaks. */
|
|
2180
|
+
prettyPrint?: boolean;
|
|
2181
|
+
/** 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. */
|
|
2182
|
+
quotaUser?: string;
|
|
2183
|
+
/** Required. Client chosen ID for the Scope. `scope_id` must be a ???? */
|
|
2184
|
+
scopeId?: string;
|
|
2185
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2186
|
+
upload_protocol?: string;
|
|
2187
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2188
|
+
uploadType?: string;
|
|
2189
|
+
},
|
|
2190
|
+
body: Scope): Request<Operation>;
|
|
2191
|
+
/** Deletes a Scope. */
|
|
2192
|
+
delete(request?: {
|
|
2193
|
+
/** V1 error format. */
|
|
2194
|
+
"$.xgafv"?: string;
|
|
2195
|
+
/** OAuth access token. */
|
|
2196
|
+
access_token?: string;
|
|
2197
|
+
/** Data format for response. */
|
|
2198
|
+
alt?: string;
|
|
2199
|
+
/** JSONP */
|
|
2200
|
+
callback?: string;
|
|
2201
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2202
|
+
fields?: string;
|
|
2203
|
+
/** 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. */
|
|
2204
|
+
key?: string;
|
|
2205
|
+
/** Required. The Scope resource name in the format `projects/*/locations/*/scopes/*`. */
|
|
2206
|
+
name: string;
|
|
2207
|
+
/** OAuth 2.0 token for the current user. */
|
|
2208
|
+
oauth_token?: string;
|
|
2209
|
+
/** Returns response with indentations and line breaks. */
|
|
2210
|
+
prettyPrint?: boolean;
|
|
2211
|
+
/** 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. */
|
|
2212
|
+
quotaUser?: string;
|
|
2213
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2214
|
+
upload_protocol?: string;
|
|
2215
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2216
|
+
uploadType?: string;
|
|
2217
|
+
}): Request<Operation>;
|
|
2218
|
+
/** Returns the details of a Scope. */
|
|
2219
|
+
get(request?: {
|
|
2220
|
+
/** V1 error format. */
|
|
2221
|
+
"$.xgafv"?: string;
|
|
2222
|
+
/** OAuth access token. */
|
|
2223
|
+
access_token?: string;
|
|
2224
|
+
/** Data format for response. */
|
|
2225
|
+
alt?: string;
|
|
2226
|
+
/** JSONP */
|
|
2227
|
+
callback?: string;
|
|
2228
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2229
|
+
fields?: string;
|
|
2230
|
+
/** 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. */
|
|
2231
|
+
key?: string;
|
|
2232
|
+
/** Required. The Scope resource name in the format `projects/*/locations/*/scopes/*`. */
|
|
2233
|
+
name: string;
|
|
2234
|
+
/** OAuth 2.0 token for the current user. */
|
|
2235
|
+
oauth_token?: string;
|
|
2236
|
+
/** Returns response with indentations and line breaks. */
|
|
2237
|
+
prettyPrint?: boolean;
|
|
2238
|
+
/** 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. */
|
|
2239
|
+
quotaUser?: string;
|
|
2240
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2241
|
+
upload_protocol?: string;
|
|
2242
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2243
|
+
uploadType?: string;
|
|
2244
|
+
}): Request<Scope>;
|
|
2245
|
+
/** Lists Scopes. */
|
|
2246
|
+
list(request?: {
|
|
2247
|
+
/** V1 error format. */
|
|
2248
|
+
"$.xgafv"?: string;
|
|
2249
|
+
/** OAuth access token. */
|
|
2250
|
+
access_token?: string;
|
|
2251
|
+
/** Data format for response. */
|
|
2252
|
+
alt?: string;
|
|
2253
|
+
/** JSONP */
|
|
2254
|
+
callback?: string;
|
|
2255
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2256
|
+
fields?: string;
|
|
2257
|
+
/** 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. */
|
|
2258
|
+
key?: string;
|
|
2259
|
+
/** OAuth 2.0 token for the current user. */
|
|
2260
|
+
oauth_token?: string;
|
|
2261
|
+
/** Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned. */
|
|
2262
|
+
pageSize?: number;
|
|
2263
|
+
/** Optional. Token returned by previous call to `ListScopes` which specifies the position in the list from where to continue listing the resources. */
|
|
2264
|
+
pageToken?: string;
|
|
2265
|
+
/** Required. The parent (project and location) where the Scope will be listed. Specified in the format `projects/*/locations/*`. */
|
|
2266
|
+
parent: string;
|
|
2267
|
+
/** Returns response with indentations and line breaks. */
|
|
2268
|
+
prettyPrint?: boolean;
|
|
2269
|
+
/** 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. */
|
|
2270
|
+
quotaUser?: string;
|
|
2271
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2272
|
+
upload_protocol?: string;
|
|
2273
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2274
|
+
uploadType?: string;
|
|
2275
|
+
}): Request<ListScopesResponse>;
|
|
2276
|
+
}
|
|
1860
2277
|
interface LocationsResource {
|
|
1861
2278
|
/** Gets information about a location. */
|
|
1862
2279
|
get(request?: {
|
|
@@ -1924,6 +2341,7 @@ declare namespace gapi.client {
|
|
|
1924
2341
|
features: FeaturesResource;
|
|
1925
2342
|
memberships: MembershipsResource;
|
|
1926
2343
|
operations: OperationsResource;
|
|
2344
|
+
scopes: ScopesResource;
|
|
1927
2345
|
}
|
|
1928
2346
|
interface ProjectsResource {
|
|
1929
2347
|
locations: LocationsResource;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230219
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -844,6 +844,7 @@ gapi.load('client', async () => {
|
|
|
844
844
|
clusterMissing: true,
|
|
845
845
|
resourceLink: "Test string",
|
|
846
846
|
},
|
|
847
|
+
googleManaged: true,
|
|
847
848
|
kubernetesMetadata: {
|
|
848
849
|
kubernetesApiServerVersion: "Test string",
|
|
849
850
|
memoryMb: 42,
|
|
@@ -900,6 +901,7 @@ gapi.load('client', async () => {
|
|
|
900
901
|
* https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
|
|
901
902
|
*/
|
|
902
903
|
await gapi.client.gkehub.projects.locations.memberships.delete({
|
|
904
|
+
force: true,
|
|
903
905
|
name: "Test string",
|
|
904
906
|
requestId: "Test string",
|
|
905
907
|
});
|
|
@@ -959,6 +961,7 @@ gapi.load('client', async () => {
|
|
|
959
961
|
clusterMissing: true,
|
|
960
962
|
resourceLink: "Test string",
|
|
961
963
|
},
|
|
964
|
+
googleManaged: true,
|
|
962
965
|
kubernetesMetadata: {
|
|
963
966
|
kubernetesApiServerVersion: "Test string",
|
|
964
967
|
memoryMb: 42,
|
|
@@ -1058,6 +1061,52 @@ gapi.load('client', async () => {
|
|
|
1058
1061
|
"Test string"
|
|
1059
1062
|
],
|
|
1060
1063
|
});
|
|
1064
|
+
/** Creates a MembershipBinding. */
|
|
1065
|
+
await gapi.client.gkehub.projects.locations.memberships.bindings.create({
|
|
1066
|
+
membershipBindingId: "Test string",
|
|
1067
|
+
parent: "Test string",
|
|
1068
|
+
}, {
|
|
1069
|
+
createTime: "Test string",
|
|
1070
|
+
deleteTime: "Test string",
|
|
1071
|
+
fleet: true,
|
|
1072
|
+
name: "Test string",
|
|
1073
|
+
scope: "Test string",
|
|
1074
|
+
state: {
|
|
1075
|
+
code: "Test string",
|
|
1076
|
+
},
|
|
1077
|
+
uid: "Test string",
|
|
1078
|
+
updateTime: "Test string",
|
|
1079
|
+
});
|
|
1080
|
+
/** Deletes a MembershipBinding. */
|
|
1081
|
+
await gapi.client.gkehub.projects.locations.memberships.bindings.delete({
|
|
1082
|
+
name: "Test string",
|
|
1083
|
+
});
|
|
1084
|
+
/** Returns the details of a MembershipBinding. */
|
|
1085
|
+
await gapi.client.gkehub.projects.locations.memberships.bindings.get({
|
|
1086
|
+
name: "Test string",
|
|
1087
|
+
});
|
|
1088
|
+
/** Lists MembershipBindings. */
|
|
1089
|
+
await gapi.client.gkehub.projects.locations.memberships.bindings.list({
|
|
1090
|
+
pageSize: 42,
|
|
1091
|
+
pageToken: "Test string",
|
|
1092
|
+
parent: "Test string",
|
|
1093
|
+
});
|
|
1094
|
+
/** Updates a MembershipBinding. */
|
|
1095
|
+
await gapi.client.gkehub.projects.locations.memberships.bindings.patch({
|
|
1096
|
+
name: "Test string",
|
|
1097
|
+
updateMask: "Test string",
|
|
1098
|
+
}, {
|
|
1099
|
+
createTime: "Test string",
|
|
1100
|
+
deleteTime: "Test string",
|
|
1101
|
+
fleet: true,
|
|
1102
|
+
name: "Test string",
|
|
1103
|
+
scope: "Test string",
|
|
1104
|
+
state: {
|
|
1105
|
+
code: "Test string",
|
|
1106
|
+
},
|
|
1107
|
+
uid: "Test string",
|
|
1108
|
+
updateTime: "Test string",
|
|
1109
|
+
});
|
|
1061
1110
|
/**
|
|
1062
1111
|
* 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
|
|
1063
1112
|
* 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
|
|
@@ -1091,5 +1140,33 @@ gapi.load('client', async () => {
|
|
|
1091
1140
|
pageSize: 42,
|
|
1092
1141
|
pageToken: "Test string",
|
|
1093
1142
|
});
|
|
1143
|
+
/** Creates a Scope. */
|
|
1144
|
+
await gapi.client.gkehub.projects.locations.scopes.create({
|
|
1145
|
+
parent: "Test string",
|
|
1146
|
+
scopeId: "Test string",
|
|
1147
|
+
}, {
|
|
1148
|
+
createTime: "Test string",
|
|
1149
|
+
deleteTime: "Test string",
|
|
1150
|
+
name: "Test string",
|
|
1151
|
+
state: {
|
|
1152
|
+
code: "Test string",
|
|
1153
|
+
},
|
|
1154
|
+
uid: "Test string",
|
|
1155
|
+
updateTime: "Test string",
|
|
1156
|
+
});
|
|
1157
|
+
/** Deletes a Scope. */
|
|
1158
|
+
await gapi.client.gkehub.projects.locations.scopes.delete({
|
|
1159
|
+
name: "Test string",
|
|
1160
|
+
});
|
|
1161
|
+
/** Returns the details of a Scope. */
|
|
1162
|
+
await gapi.client.gkehub.projects.locations.scopes.get({
|
|
1163
|
+
name: "Test string",
|
|
1164
|
+
});
|
|
1165
|
+
/** Lists Scopes. */
|
|
1166
|
+
await gapi.client.gkehub.projects.locations.scopes.list({
|
|
1167
|
+
pageSize: 42,
|
|
1168
|
+
pageToken: "Test string",
|
|
1169
|
+
parent: "Test string",
|
|
1170
|
+
});
|
|
1094
1171
|
}
|
|
1095
1172
|
});
|