@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230606 → 0.0.20230620
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 +536 -23
- package/package.json +1 -1
- package/tests.ts +85 -19
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: 20230620
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -144,22 +144,18 @@ declare namespace gapi.client {
|
|
|
144
144
|
allowVerticalScale?:
|
|
145
145
|
boolean;
|
|
146
146
|
/**
|
|
147
|
-
* Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false
|
|
148
|
-
*
|
|
149
|
-
* invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).
|
|
147
|
+
* Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other
|
|
148
|
+
* ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
|
|
150
149
|
*/
|
|
151
150
|
enabled?:
|
|
152
151
|
boolean;
|
|
153
152
|
/** Git repo configuration for the cluster. */
|
|
154
153
|
git?:
|
|
155
154
|
ConfigManagementGitConfig;
|
|
156
|
-
/** Configuration for Managed Config Sync. */
|
|
157
|
-
managed?:
|
|
158
|
-
ConfigManagementManaged;
|
|
159
155
|
/**
|
|
160
|
-
* The Email of the
|
|
161
|
-
* Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded
|
|
162
|
-
* GSA. This field is required when
|
|
156
|
+
* The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should
|
|
157
|
+
* have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded
|
|
158
|
+
* to the GSA. This field is required when automatic Feature management is enabled.
|
|
163
159
|
*/
|
|
164
160
|
metricsGcpServiceAccountEmail?:
|
|
165
161
|
string;
|
|
@@ -172,6 +168,12 @@ declare namespace gapi.client {
|
|
|
172
168
|
/** Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode. */
|
|
173
169
|
sourceFormat?:
|
|
174
170
|
string;
|
|
171
|
+
/**
|
|
172
|
+
* Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management
|
|
173
|
+
* is disabled.
|
|
174
|
+
*/
|
|
175
|
+
stopSyncing?:
|
|
176
|
+
boolean;
|
|
175
177
|
}
|
|
176
178
|
interface ConfigManagementConfigSyncDeploymentState {
|
|
177
179
|
/** Deployment state of admission-webhook */
|
|
@@ -264,7 +266,7 @@ declare namespace gapi.client {
|
|
|
264
266
|
string;
|
|
265
267
|
}
|
|
266
268
|
interface ConfigManagementGitConfig {
|
|
267
|
-
/** The
|
|
269
|
+
/** The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. */
|
|
268
270
|
gcpServiceAccountEmail?:
|
|
269
271
|
string;
|
|
270
272
|
/** URL for the HTTPS proxy to be used when communicating with the Git repo. */
|
|
@@ -340,14 +342,6 @@ declare namespace gapi.client {
|
|
|
340
342
|
errorMessage?:
|
|
341
343
|
string;
|
|
342
344
|
}
|
|
343
|
-
interface ConfigManagementManaged {
|
|
344
|
-
/** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid. */
|
|
345
|
-
enabled?:
|
|
346
|
-
boolean;
|
|
347
|
-
/** Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync. */
|
|
348
|
-
stopSyncing?:
|
|
349
|
-
boolean;
|
|
350
|
-
}
|
|
351
345
|
interface ConfigManagementMembershipSpec {
|
|
352
346
|
/**
|
|
353
347
|
* The user-specified cluster name used by Config Sync cluster-name-selector annotation or ClusterSelector, for applying configs to only a subset of clusters. Omit this field if the
|
|
@@ -362,6 +356,9 @@ declare namespace gapi.client {
|
|
|
362
356
|
/** Hierarchy Controller configuration for the cluster. */
|
|
363
357
|
hierarchyController?:
|
|
364
358
|
ConfigManagementHierarchyControllerConfig;
|
|
359
|
+
/** Enables automatic Feature management. */
|
|
360
|
+
management?:
|
|
361
|
+
string;
|
|
365
362
|
/** Policy Controller configuration for the cluster. */
|
|
366
363
|
policyController?:
|
|
367
364
|
ConfigManagementPolicyController;
|
|
@@ -390,7 +387,7 @@ declare namespace gapi.client {
|
|
|
390
387
|
ConfigManagementPolicyControllerState;
|
|
391
388
|
}
|
|
392
389
|
interface ConfigManagementOciConfig {
|
|
393
|
-
/** The
|
|
390
|
+
/** The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. */
|
|
394
391
|
gcpServiceAccountEmail?:
|
|
395
392
|
string;
|
|
396
393
|
/** The absolute path of the directory that contains the local resources. Default: the root directory of the image. */
|
|
@@ -442,8 +439,14 @@ declare namespace gapi.client {
|
|
|
442
439
|
/** Installs the default template library along with Policy Controller. */
|
|
443
440
|
templateLibraryInstalled?:
|
|
444
441
|
boolean;
|
|
442
|
+
/** Output only. Last time this membership spec was updated. */
|
|
443
|
+
updateTime?:
|
|
444
|
+
string;
|
|
445
445
|
}
|
|
446
446
|
interface ConfigManagementPolicyControllerMigration {
|
|
447
|
+
/** Last time this membership spec was copied to PoCo feature. */
|
|
448
|
+
copyTime?:
|
|
449
|
+
string;
|
|
447
450
|
/** Stage of the migration. */
|
|
448
451
|
stage?:
|
|
449
452
|
string;
|
|
@@ -609,6 +612,43 @@ declare namespace gapi.client {
|
|
|
609
612
|
updateTime?:
|
|
610
613
|
string;
|
|
611
614
|
}
|
|
615
|
+
interface Fleet {
|
|
616
|
+
/** Output only. When the Fleet was created. */
|
|
617
|
+
createTime?:
|
|
618
|
+
string;
|
|
619
|
+
/** Output only. When the Fleet was deleted. */
|
|
620
|
+
deleteTime?:
|
|
621
|
+
string;
|
|
622
|
+
/**
|
|
623
|
+
* Optional. A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
|
|
624
|
+
* single-quote, double-quote, space, and exclamation point. Example: `Production Fleet`
|
|
625
|
+
*/
|
|
626
|
+
displayName?:
|
|
627
|
+
string;
|
|
628
|
+
/**
|
|
629
|
+
* Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one
|
|
630
|
+
* fleet resource, named "default".
|
|
631
|
+
*/
|
|
632
|
+
name?:
|
|
633
|
+
string;
|
|
634
|
+
/** Output only. State of the namespace resource. */
|
|
635
|
+
state?:
|
|
636
|
+
FleetLifecycleState;
|
|
637
|
+
/**
|
|
638
|
+
* Output only. Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created,
|
|
639
|
+
* it gets a different uid.
|
|
640
|
+
*/
|
|
641
|
+
uid?:
|
|
642
|
+
string;
|
|
643
|
+
/** Output only. When the Fleet was last updated. */
|
|
644
|
+
updateTime?:
|
|
645
|
+
string;
|
|
646
|
+
}
|
|
647
|
+
interface FleetLifecycleState {
|
|
648
|
+
/** Output only. The current state of the Fleet resource. */
|
|
649
|
+
code?:
|
|
650
|
+
string;
|
|
651
|
+
}
|
|
612
652
|
// tslint:disable-next-line:no-empty-interface
|
|
613
653
|
interface FleetObservabilityFeatureSpec {
|
|
614
654
|
}
|
|
@@ -813,6 +853,14 @@ declare namespace gapi.client {
|
|
|
813
853
|
resources?:
|
|
814
854
|
Feature[];
|
|
815
855
|
}
|
|
856
|
+
interface ListFleetsResponse {
|
|
857
|
+
/** The list of matching fleets. */
|
|
858
|
+
fleets?:
|
|
859
|
+
Fleet[];
|
|
860
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. The token is only valid for 1h. */
|
|
861
|
+
nextPageToken?:
|
|
862
|
+
string;
|
|
863
|
+
}
|
|
816
864
|
interface ListLocationsResponse {
|
|
817
865
|
/** A list of locations that matches the specified filter in the request. */
|
|
818
866
|
locations?:
|
|
@@ -998,9 +1046,6 @@ declare namespace gapi.client {
|
|
|
998
1046
|
/** Config Management-specific spec. */
|
|
999
1047
|
configmanagement?:
|
|
1000
1048
|
ConfigManagementMembershipSpec;
|
|
1001
|
-
/** True if value of `feature_spec` was inherited from a fleet-level default. */
|
|
1002
|
-
fleetInherited?:
|
|
1003
|
-
boolean;
|
|
1004
1049
|
/** Fleet observability membership spec */
|
|
1005
1050
|
fleetobservability?:
|
|
1006
1051
|
any;
|
|
@@ -1010,6 +1055,12 @@ declare namespace gapi.client {
|
|
|
1010
1055
|
/** Anthos Service Mesh-specific spec */
|
|
1011
1056
|
mesh?:
|
|
1012
1057
|
ServiceMeshMembershipSpec;
|
|
1058
|
+
/**
|
|
1059
|
+
* Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly)
|
|
1060
|
+
* or setting to FLEET explicitly.
|
|
1061
|
+
*/
|
|
1062
|
+
origin?:
|
|
1063
|
+
Origin;
|
|
1013
1064
|
}
|
|
1014
1065
|
interface MembershipFeatureState {
|
|
1015
1066
|
/** Appdevexperience specific state. */
|
|
@@ -1151,6 +1202,11 @@ declare namespace gapi.client {
|
|
|
1151
1202
|
verb?:
|
|
1152
1203
|
string;
|
|
1153
1204
|
}
|
|
1205
|
+
interface Origin {
|
|
1206
|
+
/** Type specifies which type of origin is set. */
|
|
1207
|
+
type?:
|
|
1208
|
+
string;
|
|
1209
|
+
}
|
|
1154
1210
|
interface Policy {
|
|
1155
1211
|
/** Specifies cloud audit logging configuration for this policy. */
|
|
1156
1212
|
auditConfigs?:
|
|
@@ -1336,6 +1392,67 @@ declare namespace gapi.client {
|
|
|
1336
1392
|
kind?:
|
|
1337
1393
|
string;
|
|
1338
1394
|
}
|
|
1395
|
+
interface FleetsResource {
|
|
1396
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
1397
|
+
list(request?: {
|
|
1398
|
+
/** V1 error format. */
|
|
1399
|
+
"$.xgafv"?:
|
|
1400
|
+
string;
|
|
1401
|
+
/** OAuth access token. */
|
|
1402
|
+
access_token?:
|
|
1403
|
+
string;
|
|
1404
|
+
/** Data format for response. */
|
|
1405
|
+
alt?:
|
|
1406
|
+
string;
|
|
1407
|
+
/** JSONP */
|
|
1408
|
+
callback?:
|
|
1409
|
+
string;
|
|
1410
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1411
|
+
fields?:
|
|
1412
|
+
string;
|
|
1413
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1414
|
+
key?:
|
|
1415
|
+
string;
|
|
1416
|
+
/** OAuth 2.0 token for the current user. */
|
|
1417
|
+
oauth_token?:
|
|
1418
|
+
string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000;
|
|
1421
|
+
* values above 1000 will be coerced to 1000.
|
|
1422
|
+
*/
|
|
1423
|
+
pageSize?:
|
|
1424
|
+
number;
|
|
1425
|
+
/**
|
|
1426
|
+
* Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets`
|
|
1427
|
+
* must match the call that provided the page token.
|
|
1428
|
+
*/
|
|
1429
|
+
pageToken?:
|
|
1430
|
+
string;
|
|
1431
|
+
/** Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`. */
|
|
1432
|
+
parent:
|
|
1433
|
+
string;
|
|
1434
|
+
/** Returns response with indentations and line breaks. */
|
|
1435
|
+
prettyPrint?:
|
|
1436
|
+
boolean;
|
|
1437
|
+
/** 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. */
|
|
1438
|
+
quotaUser?:
|
|
1439
|
+
string;
|
|
1440
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1441
|
+
upload_protocol?:
|
|
1442
|
+
string;
|
|
1443
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1444
|
+
uploadType?:
|
|
1445
|
+
string;
|
|
1446
|
+
}): Request<ListFleetsResponse>;
|
|
1447
|
+
}
|
|
1448
|
+
interface LocationsResource {
|
|
1449
|
+
fleets:
|
|
1450
|
+
FleetsResource;
|
|
1451
|
+
}
|
|
1452
|
+
interface OrganizationsResource {
|
|
1453
|
+
locations:
|
|
1454
|
+
LocationsResource;
|
|
1455
|
+
}
|
|
1339
1456
|
interface FeaturesResource {
|
|
1340
1457
|
/** Adds a new Feature. */
|
|
1341
1458
|
create(request: {
|
|
@@ -1836,6 +1953,311 @@ declare namespace gapi.client {
|
|
|
1836
1953
|
},
|
|
1837
1954
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1838
1955
|
}
|
|
1956
|
+
interface FleetsResource {
|
|
1957
|
+
/** Creates a fleet. */
|
|
1958
|
+
create(request: {
|
|
1959
|
+
/** V1 error format. */
|
|
1960
|
+
"$.xgafv"?:
|
|
1961
|
+
string;
|
|
1962
|
+
/** OAuth access token. */
|
|
1963
|
+
access_token?:
|
|
1964
|
+
string;
|
|
1965
|
+
/** Data format for response. */
|
|
1966
|
+
alt?:
|
|
1967
|
+
string;
|
|
1968
|
+
/** JSONP */
|
|
1969
|
+
callback?:
|
|
1970
|
+
string;
|
|
1971
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1972
|
+
fields?:
|
|
1973
|
+
string;
|
|
1974
|
+
/** 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. */
|
|
1975
|
+
key?:
|
|
1976
|
+
string;
|
|
1977
|
+
/** OAuth 2.0 token for the current user. */
|
|
1978
|
+
oauth_token?:
|
|
1979
|
+
string;
|
|
1980
|
+
/** Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`. */
|
|
1981
|
+
parent:
|
|
1982
|
+
string;
|
|
1983
|
+
/** Returns response with indentations and line breaks. */
|
|
1984
|
+
prettyPrint?:
|
|
1985
|
+
boolean;
|
|
1986
|
+
/** 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. */
|
|
1987
|
+
quotaUser?:
|
|
1988
|
+
string;
|
|
1989
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1990
|
+
upload_protocol?:
|
|
1991
|
+
string;
|
|
1992
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1993
|
+
uploadType?:
|
|
1994
|
+
string;
|
|
1995
|
+
/** Request body */
|
|
1996
|
+
resource:
|
|
1997
|
+
Fleet;
|
|
1998
|
+
}): Request<Operation>;
|
|
1999
|
+
create(request: {
|
|
2000
|
+
/** V1 error format. */
|
|
2001
|
+
"$.xgafv"?:
|
|
2002
|
+
string;
|
|
2003
|
+
/** OAuth access token. */
|
|
2004
|
+
access_token?:
|
|
2005
|
+
string;
|
|
2006
|
+
/** Data format for response. */
|
|
2007
|
+
alt?:
|
|
2008
|
+
string;
|
|
2009
|
+
/** JSONP */
|
|
2010
|
+
callback?:
|
|
2011
|
+
string;
|
|
2012
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2013
|
+
fields?:
|
|
2014
|
+
string;
|
|
2015
|
+
/** 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. */
|
|
2016
|
+
key?:
|
|
2017
|
+
string;
|
|
2018
|
+
/** OAuth 2.0 token for the current user. */
|
|
2019
|
+
oauth_token?:
|
|
2020
|
+
string;
|
|
2021
|
+
/** Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`. */
|
|
2022
|
+
parent:
|
|
2023
|
+
string;
|
|
2024
|
+
/** Returns response with indentations and line breaks. */
|
|
2025
|
+
prettyPrint?:
|
|
2026
|
+
boolean;
|
|
2027
|
+
/** 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. */
|
|
2028
|
+
quotaUser?:
|
|
2029
|
+
string;
|
|
2030
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2031
|
+
upload_protocol?:
|
|
2032
|
+
string;
|
|
2033
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2034
|
+
uploadType?:
|
|
2035
|
+
string;
|
|
2036
|
+
},
|
|
2037
|
+
body: Fleet): Request<Operation>;
|
|
2038
|
+
/** Removes a Fleet. There must be no memberships remaining in the Fleet. */
|
|
2039
|
+
delete(request?: {
|
|
2040
|
+
/** V1 error format. */
|
|
2041
|
+
"$.xgafv"?:
|
|
2042
|
+
string;
|
|
2043
|
+
/** OAuth access token. */
|
|
2044
|
+
access_token?:
|
|
2045
|
+
string;
|
|
2046
|
+
/** Data format for response. */
|
|
2047
|
+
alt?:
|
|
2048
|
+
string;
|
|
2049
|
+
/** JSONP */
|
|
2050
|
+
callback?:
|
|
2051
|
+
string;
|
|
2052
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2053
|
+
fields?:
|
|
2054
|
+
string;
|
|
2055
|
+
/** 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. */
|
|
2056
|
+
key?:
|
|
2057
|
+
string;
|
|
2058
|
+
/** Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`. */
|
|
2059
|
+
name:
|
|
2060
|
+
string;
|
|
2061
|
+
/** OAuth 2.0 token for the current user. */
|
|
2062
|
+
oauth_token?:
|
|
2063
|
+
string;
|
|
2064
|
+
/** Returns response with indentations and line breaks. */
|
|
2065
|
+
prettyPrint?:
|
|
2066
|
+
boolean;
|
|
2067
|
+
/** 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. */
|
|
2068
|
+
quotaUser?:
|
|
2069
|
+
string;
|
|
2070
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2071
|
+
upload_protocol?:
|
|
2072
|
+
string;
|
|
2073
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2074
|
+
uploadType?:
|
|
2075
|
+
string;
|
|
2076
|
+
}): Request<Operation>;
|
|
2077
|
+
/** Returns the details of a fleet. */
|
|
2078
|
+
get(request?: {
|
|
2079
|
+
/** V1 error format. */
|
|
2080
|
+
"$.xgafv"?:
|
|
2081
|
+
string;
|
|
2082
|
+
/** OAuth access token. */
|
|
2083
|
+
access_token?:
|
|
2084
|
+
string;
|
|
2085
|
+
/** Data format for response. */
|
|
2086
|
+
alt?:
|
|
2087
|
+
string;
|
|
2088
|
+
/** JSONP */
|
|
2089
|
+
callback?:
|
|
2090
|
+
string;
|
|
2091
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2092
|
+
fields?:
|
|
2093
|
+
string;
|
|
2094
|
+
/** 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. */
|
|
2095
|
+
key?:
|
|
2096
|
+
string;
|
|
2097
|
+
/** Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`. */
|
|
2098
|
+
name:
|
|
2099
|
+
string;
|
|
2100
|
+
/** OAuth 2.0 token for the current user. */
|
|
2101
|
+
oauth_token?:
|
|
2102
|
+
string;
|
|
2103
|
+
/** Returns response with indentations and line breaks. */
|
|
2104
|
+
prettyPrint?:
|
|
2105
|
+
boolean;
|
|
2106
|
+
/** 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. */
|
|
2107
|
+
quotaUser?:
|
|
2108
|
+
string;
|
|
2109
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2110
|
+
upload_protocol?:
|
|
2111
|
+
string;
|
|
2112
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2113
|
+
uploadType?:
|
|
2114
|
+
string;
|
|
2115
|
+
}): Request<Fleet>;
|
|
2116
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
2117
|
+
list(request?: {
|
|
2118
|
+
/** V1 error format. */
|
|
2119
|
+
"$.xgafv"?:
|
|
2120
|
+
string;
|
|
2121
|
+
/** OAuth access token. */
|
|
2122
|
+
access_token?:
|
|
2123
|
+
string;
|
|
2124
|
+
/** Data format for response. */
|
|
2125
|
+
alt?:
|
|
2126
|
+
string;
|
|
2127
|
+
/** JSONP */
|
|
2128
|
+
callback?:
|
|
2129
|
+
string;
|
|
2130
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2131
|
+
fields?:
|
|
2132
|
+
string;
|
|
2133
|
+
/** 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. */
|
|
2134
|
+
key?:
|
|
2135
|
+
string;
|
|
2136
|
+
/** OAuth 2.0 token for the current user. */
|
|
2137
|
+
oauth_token?:
|
|
2138
|
+
string;
|
|
2139
|
+
/**
|
|
2140
|
+
* Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000;
|
|
2141
|
+
* values above 1000 will be coerced to 1000.
|
|
2142
|
+
*/
|
|
2143
|
+
pageSize?:
|
|
2144
|
+
number;
|
|
2145
|
+
/**
|
|
2146
|
+
* Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets`
|
|
2147
|
+
* must match the call that provided the page token.
|
|
2148
|
+
*/
|
|
2149
|
+
pageToken?:
|
|
2150
|
+
string;
|
|
2151
|
+
/** Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`. */
|
|
2152
|
+
parent:
|
|
2153
|
+
string;
|
|
2154
|
+
/** Returns response with indentations and line breaks. */
|
|
2155
|
+
prettyPrint?:
|
|
2156
|
+
boolean;
|
|
2157
|
+
/** 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. */
|
|
2158
|
+
quotaUser?:
|
|
2159
|
+
string;
|
|
2160
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2161
|
+
upload_protocol?:
|
|
2162
|
+
string;
|
|
2163
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2164
|
+
uploadType?:
|
|
2165
|
+
string;
|
|
2166
|
+
}): Request<ListFleetsResponse>;
|
|
2167
|
+
/** Updates a fleet. */
|
|
2168
|
+
patch(request: {
|
|
2169
|
+
/** V1 error format. */
|
|
2170
|
+
"$.xgafv"?:
|
|
2171
|
+
string;
|
|
2172
|
+
/** OAuth access token. */
|
|
2173
|
+
access_token?:
|
|
2174
|
+
string;
|
|
2175
|
+
/** Data format for response. */
|
|
2176
|
+
alt?:
|
|
2177
|
+
string;
|
|
2178
|
+
/** JSONP */
|
|
2179
|
+
callback?:
|
|
2180
|
+
string;
|
|
2181
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2182
|
+
fields?:
|
|
2183
|
+
string;
|
|
2184
|
+
/** 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. */
|
|
2185
|
+
key?:
|
|
2186
|
+
string;
|
|
2187
|
+
/**
|
|
2188
|
+
* Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most
|
|
2189
|
+
* one fleet resource, named "default".
|
|
2190
|
+
*/
|
|
2191
|
+
name:
|
|
2192
|
+
string;
|
|
2193
|
+
/** OAuth 2.0 token for the current user. */
|
|
2194
|
+
oauth_token?:
|
|
2195
|
+
string;
|
|
2196
|
+
/** Returns response with indentations and line breaks. */
|
|
2197
|
+
prettyPrint?:
|
|
2198
|
+
boolean;
|
|
2199
|
+
/** 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. */
|
|
2200
|
+
quotaUser?:
|
|
2201
|
+
string;
|
|
2202
|
+
/** Required. The fields to be updated; */
|
|
2203
|
+
updateMask?:
|
|
2204
|
+
string;
|
|
2205
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2206
|
+
upload_protocol?:
|
|
2207
|
+
string;
|
|
2208
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2209
|
+
uploadType?:
|
|
2210
|
+
string;
|
|
2211
|
+
/** Request body */
|
|
2212
|
+
resource:
|
|
2213
|
+
Fleet;
|
|
2214
|
+
}): Request<Operation>;
|
|
2215
|
+
patch(request: {
|
|
2216
|
+
/** V1 error format. */
|
|
2217
|
+
"$.xgafv"?:
|
|
2218
|
+
string;
|
|
2219
|
+
/** OAuth access token. */
|
|
2220
|
+
access_token?:
|
|
2221
|
+
string;
|
|
2222
|
+
/** Data format for response. */
|
|
2223
|
+
alt?:
|
|
2224
|
+
string;
|
|
2225
|
+
/** JSONP */
|
|
2226
|
+
callback?:
|
|
2227
|
+
string;
|
|
2228
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2229
|
+
fields?:
|
|
2230
|
+
string;
|
|
2231
|
+
/** 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. */
|
|
2232
|
+
key?:
|
|
2233
|
+
string;
|
|
2234
|
+
/**
|
|
2235
|
+
* Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most
|
|
2236
|
+
* one fleet resource, named "default".
|
|
2237
|
+
*/
|
|
2238
|
+
name:
|
|
2239
|
+
string;
|
|
2240
|
+
/** OAuth 2.0 token for the current user. */
|
|
2241
|
+
oauth_token?:
|
|
2242
|
+
string;
|
|
2243
|
+
/** Returns response with indentations and line breaks. */
|
|
2244
|
+
prettyPrint?:
|
|
2245
|
+
boolean;
|
|
2246
|
+
/** 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. */
|
|
2247
|
+
quotaUser?:
|
|
2248
|
+
string;
|
|
2249
|
+
/** Required. The fields to be updated; */
|
|
2250
|
+
updateMask?:
|
|
2251
|
+
string;
|
|
2252
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2253
|
+
upload_protocol?:
|
|
2254
|
+
string;
|
|
2255
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2256
|
+
uploadType?:
|
|
2257
|
+
string;
|
|
2258
|
+
},
|
|
2259
|
+
body: Fleet): Request<Operation>;
|
|
2260
|
+
}
|
|
1839
2261
|
interface BindingsResource {
|
|
1840
2262
|
/** Creates a MembershipBinding. */
|
|
1841
2263
|
create(request: {
|
|
@@ -3199,6 +3621,93 @@ declare namespace gapi.client {
|
|
|
3199
3621
|
uploadType?:
|
|
3200
3622
|
string;
|
|
3201
3623
|
}): Request<ListScopesResponse>;
|
|
3624
|
+
/** Updates a scopes. */
|
|
3625
|
+
patch(request: {
|
|
3626
|
+
/** V1 error format. */
|
|
3627
|
+
"$.xgafv"?:
|
|
3628
|
+
string;
|
|
3629
|
+
/** OAuth access token. */
|
|
3630
|
+
access_token?:
|
|
3631
|
+
string;
|
|
3632
|
+
/** Data format for response. */
|
|
3633
|
+
alt?:
|
|
3634
|
+
string;
|
|
3635
|
+
/** JSONP */
|
|
3636
|
+
callback?:
|
|
3637
|
+
string;
|
|
3638
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3639
|
+
fields?:
|
|
3640
|
+
string;
|
|
3641
|
+
/** 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. */
|
|
3642
|
+
key?:
|
|
3643
|
+
string;
|
|
3644
|
+
/** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
|
|
3645
|
+
name:
|
|
3646
|
+
string;
|
|
3647
|
+
/** OAuth 2.0 token for the current user. */
|
|
3648
|
+
oauth_token?:
|
|
3649
|
+
string;
|
|
3650
|
+
/** Returns response with indentations and line breaks. */
|
|
3651
|
+
prettyPrint?:
|
|
3652
|
+
boolean;
|
|
3653
|
+
/** 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. */
|
|
3654
|
+
quotaUser?:
|
|
3655
|
+
string;
|
|
3656
|
+
/** Required. The fields to be updated. */
|
|
3657
|
+
updateMask?:
|
|
3658
|
+
string;
|
|
3659
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3660
|
+
upload_protocol?:
|
|
3661
|
+
string;
|
|
3662
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3663
|
+
uploadType?:
|
|
3664
|
+
string;
|
|
3665
|
+
/** Request body */
|
|
3666
|
+
resource:
|
|
3667
|
+
Scope;
|
|
3668
|
+
}): Request<Operation>;
|
|
3669
|
+
patch(request: {
|
|
3670
|
+
/** V1 error format. */
|
|
3671
|
+
"$.xgafv"?:
|
|
3672
|
+
string;
|
|
3673
|
+
/** OAuth access token. */
|
|
3674
|
+
access_token?:
|
|
3675
|
+
string;
|
|
3676
|
+
/** Data format for response. */
|
|
3677
|
+
alt?:
|
|
3678
|
+
string;
|
|
3679
|
+
/** JSONP */
|
|
3680
|
+
callback?:
|
|
3681
|
+
string;
|
|
3682
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3683
|
+
fields?:
|
|
3684
|
+
string;
|
|
3685
|
+
/** 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. */
|
|
3686
|
+
key?:
|
|
3687
|
+
string;
|
|
3688
|
+
/** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
|
|
3689
|
+
name:
|
|
3690
|
+
string;
|
|
3691
|
+
/** OAuth 2.0 token for the current user. */
|
|
3692
|
+
oauth_token?:
|
|
3693
|
+
string;
|
|
3694
|
+
/** Returns response with indentations and line breaks. */
|
|
3695
|
+
prettyPrint?:
|
|
3696
|
+
boolean;
|
|
3697
|
+
/** 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. */
|
|
3698
|
+
quotaUser?:
|
|
3699
|
+
string;
|
|
3700
|
+
/** Required. The fields to be updated. */
|
|
3701
|
+
updateMask?:
|
|
3702
|
+
string;
|
|
3703
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3704
|
+
upload_protocol?:
|
|
3705
|
+
string;
|
|
3706
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3707
|
+
uploadType?:
|
|
3708
|
+
string;
|
|
3709
|
+
},
|
|
3710
|
+
body: Scope): Request<Operation>;
|
|
3202
3711
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
3203
3712
|
setIamPolicy(request: {
|
|
3204
3713
|
/** V1 error format. */
|
|
@@ -3382,6 +3891,8 @@ declare namespace gapi.client {
|
|
|
3382
3891
|
}): Request<ListLocationsResponse>;
|
|
3383
3892
|
features:
|
|
3384
3893
|
FeaturesResource;
|
|
3894
|
+
fleets:
|
|
3895
|
+
FleetsResource;
|
|
3385
3896
|
memberships:
|
|
3386
3897
|
MembershipsResource;
|
|
3387
3898
|
operations:
|
|
@@ -3394,6 +3905,8 @@ declare namespace gapi.client {
|
|
|
3394
3905
|
LocationsResource;
|
|
3395
3906
|
}
|
|
3396
3907
|
|
|
3908
|
+
const organizations: OrganizationsResource;
|
|
3909
|
+
|
|
3397
3910
|
const projects: ProjectsResource;
|
|
3398
3911
|
}
|
|
3399
3912
|
}
|
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: 20230620
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -29,6 +29,12 @@ gapi.load('client', async () => {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
33
|
+
await gapi.client.gkehub.organizations.locations.fleets.list({
|
|
34
|
+
pageSize: 42,
|
|
35
|
+
pageToken: "Test string",
|
|
36
|
+
parent: "Test string",
|
|
37
|
+
});
|
|
32
38
|
/** Gets information about a location. */
|
|
33
39
|
await gapi.client.gkehub.projects.locations.get({
|
|
34
40
|
name: "Test string",
|
|
@@ -70,10 +76,6 @@ gapi.load('client', async () => {
|
|
|
70
76
|
syncRev: "Test string",
|
|
71
77
|
syncWaitSecs: "Test string",
|
|
72
78
|
},
|
|
73
|
-
managed: {
|
|
74
|
-
enabled: true,
|
|
75
|
-
stopSyncing: true,
|
|
76
|
-
},
|
|
77
79
|
metricsGcpServiceAccountEmail: "Test string",
|
|
78
80
|
oci: {
|
|
79
81
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -84,12 +86,14 @@ gapi.load('client', async () => {
|
|
|
84
86
|
},
|
|
85
87
|
preventDrift: true,
|
|
86
88
|
sourceFormat: "Test string",
|
|
89
|
+
stopSyncing: true,
|
|
87
90
|
},
|
|
88
91
|
hierarchyController: {
|
|
89
92
|
enabled: true,
|
|
90
93
|
enableHierarchicalResourceQuota: true,
|
|
91
94
|
enablePodTreeLabels: true,
|
|
92
95
|
},
|
|
96
|
+
management: "Test string",
|
|
93
97
|
policyController: {
|
|
94
98
|
auditIntervalSeconds: "Test string",
|
|
95
99
|
enabled: true,
|
|
@@ -105,10 +109,10 @@ gapi.load('client', async () => {
|
|
|
105
109
|
mutationEnabled: true,
|
|
106
110
|
referentialRulesEnabled: true,
|
|
107
111
|
templateLibraryInstalled: true,
|
|
112
|
+
updateTime: "Test string",
|
|
108
113
|
},
|
|
109
114
|
version: "Test string",
|
|
110
115
|
},
|
|
111
|
-
fleetInherited: true,
|
|
112
116
|
fleetobservability: {
|
|
113
117
|
},
|
|
114
118
|
identityservice: {
|
|
@@ -149,6 +153,9 @@ gapi.load('client', async () => {
|
|
|
149
153
|
controlPlane: "Test string",
|
|
150
154
|
management: "Test string",
|
|
151
155
|
},
|
|
156
|
+
origin: {
|
|
157
|
+
type: "Test string",
|
|
158
|
+
},
|
|
152
159
|
}
|
|
153
160
|
},
|
|
154
161
|
membershipStates: {
|
|
@@ -237,10 +244,6 @@ gapi.load('client', async () => {
|
|
|
237
244
|
syncRev: "Test string",
|
|
238
245
|
syncWaitSecs: "Test string",
|
|
239
246
|
},
|
|
240
|
-
managed: {
|
|
241
|
-
enabled: true,
|
|
242
|
-
stopSyncing: true,
|
|
243
|
-
},
|
|
244
247
|
metricsGcpServiceAccountEmail: "Test string",
|
|
245
248
|
oci: {
|
|
246
249
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -251,12 +254,14 @@ gapi.load('client', async () => {
|
|
|
251
254
|
},
|
|
252
255
|
preventDrift: true,
|
|
253
256
|
sourceFormat: "Test string",
|
|
257
|
+
stopSyncing: true,
|
|
254
258
|
},
|
|
255
259
|
hierarchyController: {
|
|
256
260
|
enabled: true,
|
|
257
261
|
enableHierarchicalResourceQuota: true,
|
|
258
262
|
enablePodTreeLabels: true,
|
|
259
263
|
},
|
|
264
|
+
management: "Test string",
|
|
260
265
|
policyController: {
|
|
261
266
|
auditIntervalSeconds: "Test string",
|
|
262
267
|
enabled: true,
|
|
@@ -272,6 +277,7 @@ gapi.load('client', async () => {
|
|
|
272
277
|
mutationEnabled: true,
|
|
273
278
|
referentialRulesEnabled: true,
|
|
274
279
|
templateLibraryInstalled: true,
|
|
280
|
+
updateTime: "Test string",
|
|
275
281
|
},
|
|
276
282
|
version: "Test string",
|
|
277
283
|
},
|
|
@@ -291,6 +297,7 @@ gapi.load('client', async () => {
|
|
|
291
297
|
gatekeeperMutation: "Test string",
|
|
292
298
|
},
|
|
293
299
|
migration: {
|
|
300
|
+
copyTime: "Test string",
|
|
294
301
|
stage: "Test string",
|
|
295
302
|
},
|
|
296
303
|
version: {
|
|
@@ -462,10 +469,6 @@ gapi.load('client', async () => {
|
|
|
462
469
|
syncRev: "Test string",
|
|
463
470
|
syncWaitSecs: "Test string",
|
|
464
471
|
},
|
|
465
|
-
managed: {
|
|
466
|
-
enabled: true,
|
|
467
|
-
stopSyncing: true,
|
|
468
|
-
},
|
|
469
472
|
metricsGcpServiceAccountEmail: "Test string",
|
|
470
473
|
oci: {
|
|
471
474
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -476,12 +479,14 @@ gapi.load('client', async () => {
|
|
|
476
479
|
},
|
|
477
480
|
preventDrift: true,
|
|
478
481
|
sourceFormat: "Test string",
|
|
482
|
+
stopSyncing: true,
|
|
479
483
|
},
|
|
480
484
|
hierarchyController: {
|
|
481
485
|
enabled: true,
|
|
482
486
|
enableHierarchicalResourceQuota: true,
|
|
483
487
|
enablePodTreeLabels: true,
|
|
484
488
|
},
|
|
489
|
+
management: "Test string",
|
|
485
490
|
policyController: {
|
|
486
491
|
auditIntervalSeconds: "Test string",
|
|
487
492
|
enabled: true,
|
|
@@ -497,10 +502,10 @@ gapi.load('client', async () => {
|
|
|
497
502
|
mutationEnabled: true,
|
|
498
503
|
referentialRulesEnabled: true,
|
|
499
504
|
templateLibraryInstalled: true,
|
|
505
|
+
updateTime: "Test string",
|
|
500
506
|
},
|
|
501
507
|
version: "Test string",
|
|
502
508
|
},
|
|
503
|
-
fleetInherited: true,
|
|
504
509
|
fleetobservability: {
|
|
505
510
|
},
|
|
506
511
|
identityservice: {
|
|
@@ -541,6 +546,9 @@ gapi.load('client', async () => {
|
|
|
541
546
|
controlPlane: "Test string",
|
|
542
547
|
management: "Test string",
|
|
543
548
|
},
|
|
549
|
+
origin: {
|
|
550
|
+
type: "Test string",
|
|
551
|
+
},
|
|
544
552
|
}
|
|
545
553
|
},
|
|
546
554
|
membershipStates: {
|
|
@@ -629,10 +637,6 @@ gapi.load('client', async () => {
|
|
|
629
637
|
syncRev: "Test string",
|
|
630
638
|
syncWaitSecs: "Test string",
|
|
631
639
|
},
|
|
632
|
-
managed: {
|
|
633
|
-
enabled: true,
|
|
634
|
-
stopSyncing: true,
|
|
635
|
-
},
|
|
636
640
|
metricsGcpServiceAccountEmail: "Test string",
|
|
637
641
|
oci: {
|
|
638
642
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -643,12 +647,14 @@ gapi.load('client', async () => {
|
|
|
643
647
|
},
|
|
644
648
|
preventDrift: true,
|
|
645
649
|
sourceFormat: "Test string",
|
|
650
|
+
stopSyncing: true,
|
|
646
651
|
},
|
|
647
652
|
hierarchyController: {
|
|
648
653
|
enabled: true,
|
|
649
654
|
enableHierarchicalResourceQuota: true,
|
|
650
655
|
enablePodTreeLabels: true,
|
|
651
656
|
},
|
|
657
|
+
management: "Test string",
|
|
652
658
|
policyController: {
|
|
653
659
|
auditIntervalSeconds: "Test string",
|
|
654
660
|
enabled: true,
|
|
@@ -664,6 +670,7 @@ gapi.load('client', async () => {
|
|
|
664
670
|
mutationEnabled: true,
|
|
665
671
|
referentialRulesEnabled: true,
|
|
666
672
|
templateLibraryInstalled: true,
|
|
673
|
+
updateTime: "Test string",
|
|
667
674
|
},
|
|
668
675
|
version: "Test string",
|
|
669
676
|
},
|
|
@@ -683,6 +690,7 @@ gapi.load('client', async () => {
|
|
|
683
690
|
gatekeeperMutation: "Test string",
|
|
684
691
|
},
|
|
685
692
|
migration: {
|
|
693
|
+
copyTime: "Test string",
|
|
686
694
|
stage: "Test string",
|
|
687
695
|
},
|
|
688
696
|
version: {
|
|
@@ -849,6 +857,49 @@ gapi.load('client', async () => {
|
|
|
849
857
|
"Test string"
|
|
850
858
|
],
|
|
851
859
|
});
|
|
860
|
+
/** Creates a fleet. */
|
|
861
|
+
await gapi.client.gkehub.projects.locations.fleets.create({
|
|
862
|
+
parent: "Test string",
|
|
863
|
+
}, {
|
|
864
|
+
createTime: "Test string",
|
|
865
|
+
deleteTime: "Test string",
|
|
866
|
+
displayName: "Test string",
|
|
867
|
+
name: "Test string",
|
|
868
|
+
state: {
|
|
869
|
+
code: "Test string",
|
|
870
|
+
},
|
|
871
|
+
uid: "Test string",
|
|
872
|
+
updateTime: "Test string",
|
|
873
|
+
});
|
|
874
|
+
/** Removes a Fleet. There must be no memberships remaining in the Fleet. */
|
|
875
|
+
await gapi.client.gkehub.projects.locations.fleets.delete({
|
|
876
|
+
name: "Test string",
|
|
877
|
+
});
|
|
878
|
+
/** Returns the details of a fleet. */
|
|
879
|
+
await gapi.client.gkehub.projects.locations.fleets.get({
|
|
880
|
+
name: "Test string",
|
|
881
|
+
});
|
|
882
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
883
|
+
await gapi.client.gkehub.projects.locations.fleets.list({
|
|
884
|
+
pageSize: 42,
|
|
885
|
+
pageToken: "Test string",
|
|
886
|
+
parent: "Test string",
|
|
887
|
+
});
|
|
888
|
+
/** Updates a fleet. */
|
|
889
|
+
await gapi.client.gkehub.projects.locations.fleets.patch({
|
|
890
|
+
name: "Test string",
|
|
891
|
+
updateMask: "Test string",
|
|
892
|
+
}, {
|
|
893
|
+
createTime: "Test string",
|
|
894
|
+
deleteTime: "Test string",
|
|
895
|
+
displayName: "Test string",
|
|
896
|
+
name: "Test string",
|
|
897
|
+
state: {
|
|
898
|
+
code: "Test string",
|
|
899
|
+
},
|
|
900
|
+
uid: "Test string",
|
|
901
|
+
updateTime: "Test string",
|
|
902
|
+
});
|
|
852
903
|
/**
|
|
853
904
|
* Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at
|
|
854
905
|
* https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
|
|
@@ -1218,6 +1269,21 @@ gapi.load('client', async () => {
|
|
|
1218
1269
|
pageToken: "Test string",
|
|
1219
1270
|
parent: "Test string",
|
|
1220
1271
|
});
|
|
1272
|
+
/** Updates a scopes. */
|
|
1273
|
+
await gapi.client.gkehub.projects.locations.scopes.patch({
|
|
1274
|
+
name: "Test string",
|
|
1275
|
+
updateMask: "Test string",
|
|
1276
|
+
}, {
|
|
1277
|
+
allMemberships: true,
|
|
1278
|
+
createTime: "Test string",
|
|
1279
|
+
deleteTime: "Test string",
|
|
1280
|
+
name: "Test string",
|
|
1281
|
+
state: {
|
|
1282
|
+
code: "Test string",
|
|
1283
|
+
},
|
|
1284
|
+
uid: "Test string",
|
|
1285
|
+
updateTime: "Test string",
|
|
1286
|
+
});
|
|
1221
1287
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
1222
1288
|
await gapi.client.gkehub.projects.locations.scopes.setIamPolicy({
|
|
1223
1289
|
resource: "Test string",
|