@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230518 → 0.0.20230609
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 +539 -8
- package/package.json +1 -1
- package/tests.ts +93 -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: 20230609
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -144,8 +144,9 @@ 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
|
-
* ConfigSync fields will be ignored, ConfigSync resources will be deleted.
|
|
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 and Managed
|
|
148
|
+
* Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is
|
|
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).
|
|
149
150
|
*/
|
|
150
151
|
enabled?:
|
|
151
152
|
boolean;
|
|
@@ -155,6 +156,13 @@ declare namespace gapi.client {
|
|
|
155
156
|
/** Configuration for Managed Config Sync. */
|
|
156
157
|
managed?:
|
|
157
158
|
ConfigManagementManaged;
|
|
159
|
+
/**
|
|
160
|
+
* The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the
|
|
161
|
+
* Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the
|
|
162
|
+
* GSA. This field is required when Managed Config Sync is enabled.
|
|
163
|
+
*/
|
|
164
|
+
metricsGcpServiceAccountEmail?:
|
|
165
|
+
string;
|
|
158
166
|
/** OCI repo configuration for the cluster */
|
|
159
167
|
oci?:
|
|
160
168
|
ConfigManagementOciConfig;
|
|
@@ -188,10 +196,18 @@ declare namespace gapi.client {
|
|
|
188
196
|
syncer?:
|
|
189
197
|
string;
|
|
190
198
|
}
|
|
199
|
+
interface ConfigManagementConfigSyncError {
|
|
200
|
+
/** A string representing the user facing error message */
|
|
201
|
+
errorMessage?:
|
|
202
|
+
string;
|
|
203
|
+
}
|
|
191
204
|
interface ConfigManagementConfigSyncState {
|
|
192
205
|
/** Information about the deployment of ConfigSync, including the version of the various Pods deployed */
|
|
193
206
|
deploymentState?:
|
|
194
207
|
ConfigManagementConfigSyncDeploymentState;
|
|
208
|
+
/** Errors pertaining to the installation of Config Sync. */
|
|
209
|
+
errors?:
|
|
210
|
+
ConfigManagementConfigSyncError[];
|
|
195
211
|
/** The state of ConfigSync's process to sync configs to a cluster */
|
|
196
212
|
syncState?:
|
|
197
213
|
ConfigManagementSyncState;
|
|
@@ -325,11 +341,21 @@ declare namespace gapi.client {
|
|
|
325
341
|
string;
|
|
326
342
|
}
|
|
327
343
|
interface ConfigManagementManaged {
|
|
328
|
-
/** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. */
|
|
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. */
|
|
329
345
|
enabled?:
|
|
330
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;
|
|
331
350
|
}
|
|
332
351
|
interface ConfigManagementMembershipSpec {
|
|
352
|
+
/**
|
|
353
|
+
* 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
|
|
354
|
+
* cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector. Set this field if a name different from the cluster's fleet membership
|
|
355
|
+
* name is used by Config Sync cluster-name-selector annotation or ClusterSelector.
|
|
356
|
+
*/
|
|
357
|
+
cluster?:
|
|
358
|
+
string;
|
|
333
359
|
/** Config Sync configuration for the cluster. */
|
|
334
360
|
configSync?:
|
|
335
361
|
ConfigManagementConfigSync;
|
|
@@ -344,10 +370,7 @@ declare namespace gapi.client {
|
|
|
344
370
|
string;
|
|
345
371
|
}
|
|
346
372
|
interface ConfigManagementMembershipState {
|
|
347
|
-
/**
|
|
348
|
-
* The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the
|
|
349
|
-
* cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
|
|
350
|
-
*/
|
|
373
|
+
/** This field is set to the `cluster_name` field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name. */
|
|
351
374
|
clusterName?:
|
|
352
375
|
string;
|
|
353
376
|
/** Current sync status */
|
|
@@ -419,8 +442,14 @@ declare namespace gapi.client {
|
|
|
419
442
|
/** Installs the default template library along with Policy Controller. */
|
|
420
443
|
templateLibraryInstalled?:
|
|
421
444
|
boolean;
|
|
445
|
+
/** Output only. Last time this membership spec was updated. */
|
|
446
|
+
updateTime?:
|
|
447
|
+
string;
|
|
422
448
|
}
|
|
423
449
|
interface ConfigManagementPolicyControllerMigration {
|
|
450
|
+
/** Last time this membership spec was copied to PoCo feature. */
|
|
451
|
+
copyTime?:
|
|
452
|
+
string;
|
|
424
453
|
/** Stage of the migration. */
|
|
425
454
|
stage?:
|
|
426
455
|
string;
|
|
@@ -586,6 +615,43 @@ declare namespace gapi.client {
|
|
|
586
615
|
updateTime?:
|
|
587
616
|
string;
|
|
588
617
|
}
|
|
618
|
+
interface Fleet {
|
|
619
|
+
/** Output only. When the Fleet was created. */
|
|
620
|
+
createTime?:
|
|
621
|
+
string;
|
|
622
|
+
/** Output only. When the Fleet was deleted. */
|
|
623
|
+
deleteTime?:
|
|
624
|
+
string;
|
|
625
|
+
/**
|
|
626
|
+
* 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,
|
|
627
|
+
* single-quote, double-quote, space, and exclamation point. Example: `Production Fleet`
|
|
628
|
+
*/
|
|
629
|
+
displayName?:
|
|
630
|
+
string;
|
|
631
|
+
/**
|
|
632
|
+
* 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
|
|
633
|
+
* fleet resource, named "default".
|
|
634
|
+
*/
|
|
635
|
+
name?:
|
|
636
|
+
string;
|
|
637
|
+
/** Output only. State of the namespace resource. */
|
|
638
|
+
state?:
|
|
639
|
+
FleetLifecycleState;
|
|
640
|
+
/**
|
|
641
|
+
* 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,
|
|
642
|
+
* it gets a different uid.
|
|
643
|
+
*/
|
|
644
|
+
uid?:
|
|
645
|
+
string;
|
|
646
|
+
/** Output only. When the Fleet was last updated. */
|
|
647
|
+
updateTime?:
|
|
648
|
+
string;
|
|
649
|
+
}
|
|
650
|
+
interface FleetLifecycleState {
|
|
651
|
+
/** Output only. The current state of the Fleet resource. */
|
|
652
|
+
code?:
|
|
653
|
+
string;
|
|
654
|
+
}
|
|
589
655
|
// tslint:disable-next-line:no-empty-interface
|
|
590
656
|
interface FleetObservabilityFeatureSpec {
|
|
591
657
|
}
|
|
@@ -790,6 +856,14 @@ declare namespace gapi.client {
|
|
|
790
856
|
resources?:
|
|
791
857
|
Feature[];
|
|
792
858
|
}
|
|
859
|
+
interface ListFleetsResponse {
|
|
860
|
+
/** The list of matching fleets. */
|
|
861
|
+
fleets?:
|
|
862
|
+
Fleet[];
|
|
863
|
+
/** 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. */
|
|
864
|
+
nextPageToken?:
|
|
865
|
+
string;
|
|
866
|
+
}
|
|
793
867
|
interface ListLocationsResponse {
|
|
794
868
|
/** A list of locations that matches the specified filter in the request. */
|
|
795
869
|
locations?:
|
|
@@ -1313,6 +1387,67 @@ declare namespace gapi.client {
|
|
|
1313
1387
|
kind?:
|
|
1314
1388
|
string;
|
|
1315
1389
|
}
|
|
1390
|
+
interface FleetsResource {
|
|
1391
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
1392
|
+
list(request?: {
|
|
1393
|
+
/** V1 error format. */
|
|
1394
|
+
"$.xgafv"?:
|
|
1395
|
+
string;
|
|
1396
|
+
/** OAuth access token. */
|
|
1397
|
+
access_token?:
|
|
1398
|
+
string;
|
|
1399
|
+
/** Data format for response. */
|
|
1400
|
+
alt?:
|
|
1401
|
+
string;
|
|
1402
|
+
/** JSONP */
|
|
1403
|
+
callback?:
|
|
1404
|
+
string;
|
|
1405
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1406
|
+
fields?:
|
|
1407
|
+
string;
|
|
1408
|
+
/** 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. */
|
|
1409
|
+
key?:
|
|
1410
|
+
string;
|
|
1411
|
+
/** OAuth 2.0 token for the current user. */
|
|
1412
|
+
oauth_token?:
|
|
1413
|
+
string;
|
|
1414
|
+
/**
|
|
1415
|
+
* 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;
|
|
1416
|
+
* values above 1000 will be coerced to 1000.
|
|
1417
|
+
*/
|
|
1418
|
+
pageSize?:
|
|
1419
|
+
number;
|
|
1420
|
+
/**
|
|
1421
|
+
* 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`
|
|
1422
|
+
* must match the call that provided the page token.
|
|
1423
|
+
*/
|
|
1424
|
+
pageToken?:
|
|
1425
|
+
string;
|
|
1426
|
+
/** Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`. */
|
|
1427
|
+
parent:
|
|
1428
|
+
string;
|
|
1429
|
+
/** Returns response with indentations and line breaks. */
|
|
1430
|
+
prettyPrint?:
|
|
1431
|
+
boolean;
|
|
1432
|
+
/** 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. */
|
|
1433
|
+
quotaUser?:
|
|
1434
|
+
string;
|
|
1435
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1436
|
+
upload_protocol?:
|
|
1437
|
+
string;
|
|
1438
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1439
|
+
uploadType?:
|
|
1440
|
+
string;
|
|
1441
|
+
}): Request<ListFleetsResponse>;
|
|
1442
|
+
}
|
|
1443
|
+
interface LocationsResource {
|
|
1444
|
+
fleets:
|
|
1445
|
+
FleetsResource;
|
|
1446
|
+
}
|
|
1447
|
+
interface OrganizationsResource {
|
|
1448
|
+
locations:
|
|
1449
|
+
LocationsResource;
|
|
1450
|
+
}
|
|
1316
1451
|
interface FeaturesResource {
|
|
1317
1452
|
/** Adds a new Feature. */
|
|
1318
1453
|
create(request: {
|
|
@@ -1813,6 +1948,311 @@ declare namespace gapi.client {
|
|
|
1813
1948
|
},
|
|
1814
1949
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1815
1950
|
}
|
|
1951
|
+
interface FleetsResource {
|
|
1952
|
+
/** Creates a fleet. */
|
|
1953
|
+
create(request: {
|
|
1954
|
+
/** V1 error format. */
|
|
1955
|
+
"$.xgafv"?:
|
|
1956
|
+
string;
|
|
1957
|
+
/** OAuth access token. */
|
|
1958
|
+
access_token?:
|
|
1959
|
+
string;
|
|
1960
|
+
/** Data format for response. */
|
|
1961
|
+
alt?:
|
|
1962
|
+
string;
|
|
1963
|
+
/** JSONP */
|
|
1964
|
+
callback?:
|
|
1965
|
+
string;
|
|
1966
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1967
|
+
fields?:
|
|
1968
|
+
string;
|
|
1969
|
+
/** 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. */
|
|
1970
|
+
key?:
|
|
1971
|
+
string;
|
|
1972
|
+
/** OAuth 2.0 token for the current user. */
|
|
1973
|
+
oauth_token?:
|
|
1974
|
+
string;
|
|
1975
|
+
/** Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`. */
|
|
1976
|
+
parent:
|
|
1977
|
+
string;
|
|
1978
|
+
/** Returns response with indentations and line breaks. */
|
|
1979
|
+
prettyPrint?:
|
|
1980
|
+
boolean;
|
|
1981
|
+
/** 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. */
|
|
1982
|
+
quotaUser?:
|
|
1983
|
+
string;
|
|
1984
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1985
|
+
upload_protocol?:
|
|
1986
|
+
string;
|
|
1987
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1988
|
+
uploadType?:
|
|
1989
|
+
string;
|
|
1990
|
+
/** Request body */
|
|
1991
|
+
resource:
|
|
1992
|
+
Fleet;
|
|
1993
|
+
}): Request<Operation>;
|
|
1994
|
+
create(request: {
|
|
1995
|
+
/** V1 error format. */
|
|
1996
|
+
"$.xgafv"?:
|
|
1997
|
+
string;
|
|
1998
|
+
/** OAuth access token. */
|
|
1999
|
+
access_token?:
|
|
2000
|
+
string;
|
|
2001
|
+
/** Data format for response. */
|
|
2002
|
+
alt?:
|
|
2003
|
+
string;
|
|
2004
|
+
/** JSONP */
|
|
2005
|
+
callback?:
|
|
2006
|
+
string;
|
|
2007
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2008
|
+
fields?:
|
|
2009
|
+
string;
|
|
2010
|
+
/** 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. */
|
|
2011
|
+
key?:
|
|
2012
|
+
string;
|
|
2013
|
+
/** OAuth 2.0 token for the current user. */
|
|
2014
|
+
oauth_token?:
|
|
2015
|
+
string;
|
|
2016
|
+
/** Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`. */
|
|
2017
|
+
parent:
|
|
2018
|
+
string;
|
|
2019
|
+
/** Returns response with indentations and line breaks. */
|
|
2020
|
+
prettyPrint?:
|
|
2021
|
+
boolean;
|
|
2022
|
+
/** 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. */
|
|
2023
|
+
quotaUser?:
|
|
2024
|
+
string;
|
|
2025
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2026
|
+
upload_protocol?:
|
|
2027
|
+
string;
|
|
2028
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2029
|
+
uploadType?:
|
|
2030
|
+
string;
|
|
2031
|
+
},
|
|
2032
|
+
body: Fleet): Request<Operation>;
|
|
2033
|
+
/** Removes a Fleet. There must be no memberships remaining in the Fleet. */
|
|
2034
|
+
delete(request?: {
|
|
2035
|
+
/** V1 error format. */
|
|
2036
|
+
"$.xgafv"?:
|
|
2037
|
+
string;
|
|
2038
|
+
/** OAuth access token. */
|
|
2039
|
+
access_token?:
|
|
2040
|
+
string;
|
|
2041
|
+
/** Data format for response. */
|
|
2042
|
+
alt?:
|
|
2043
|
+
string;
|
|
2044
|
+
/** JSONP */
|
|
2045
|
+
callback?:
|
|
2046
|
+
string;
|
|
2047
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2048
|
+
fields?:
|
|
2049
|
+
string;
|
|
2050
|
+
/** 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. */
|
|
2051
|
+
key?:
|
|
2052
|
+
string;
|
|
2053
|
+
/** Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`. */
|
|
2054
|
+
name:
|
|
2055
|
+
string;
|
|
2056
|
+
/** OAuth 2.0 token for the current user. */
|
|
2057
|
+
oauth_token?:
|
|
2058
|
+
string;
|
|
2059
|
+
/** Returns response with indentations and line breaks. */
|
|
2060
|
+
prettyPrint?:
|
|
2061
|
+
boolean;
|
|
2062
|
+
/** 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. */
|
|
2063
|
+
quotaUser?:
|
|
2064
|
+
string;
|
|
2065
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2066
|
+
upload_protocol?:
|
|
2067
|
+
string;
|
|
2068
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2069
|
+
uploadType?:
|
|
2070
|
+
string;
|
|
2071
|
+
}): Request<Operation>;
|
|
2072
|
+
/** Returns the details of a fleet. */
|
|
2073
|
+
get(request?: {
|
|
2074
|
+
/** V1 error format. */
|
|
2075
|
+
"$.xgafv"?:
|
|
2076
|
+
string;
|
|
2077
|
+
/** OAuth access token. */
|
|
2078
|
+
access_token?:
|
|
2079
|
+
string;
|
|
2080
|
+
/** Data format for response. */
|
|
2081
|
+
alt?:
|
|
2082
|
+
string;
|
|
2083
|
+
/** JSONP */
|
|
2084
|
+
callback?:
|
|
2085
|
+
string;
|
|
2086
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2087
|
+
fields?:
|
|
2088
|
+
string;
|
|
2089
|
+
/** 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. */
|
|
2090
|
+
key?:
|
|
2091
|
+
string;
|
|
2092
|
+
/** Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`. */
|
|
2093
|
+
name:
|
|
2094
|
+
string;
|
|
2095
|
+
/** OAuth 2.0 token for the current user. */
|
|
2096
|
+
oauth_token?:
|
|
2097
|
+
string;
|
|
2098
|
+
/** Returns response with indentations and line breaks. */
|
|
2099
|
+
prettyPrint?:
|
|
2100
|
+
boolean;
|
|
2101
|
+
/** 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. */
|
|
2102
|
+
quotaUser?:
|
|
2103
|
+
string;
|
|
2104
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2105
|
+
upload_protocol?:
|
|
2106
|
+
string;
|
|
2107
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2108
|
+
uploadType?:
|
|
2109
|
+
string;
|
|
2110
|
+
}): Request<Fleet>;
|
|
2111
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
2112
|
+
list(request?: {
|
|
2113
|
+
/** V1 error format. */
|
|
2114
|
+
"$.xgafv"?:
|
|
2115
|
+
string;
|
|
2116
|
+
/** OAuth access token. */
|
|
2117
|
+
access_token?:
|
|
2118
|
+
string;
|
|
2119
|
+
/** Data format for response. */
|
|
2120
|
+
alt?:
|
|
2121
|
+
string;
|
|
2122
|
+
/** JSONP */
|
|
2123
|
+
callback?:
|
|
2124
|
+
string;
|
|
2125
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2126
|
+
fields?:
|
|
2127
|
+
string;
|
|
2128
|
+
/** 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. */
|
|
2129
|
+
key?:
|
|
2130
|
+
string;
|
|
2131
|
+
/** OAuth 2.0 token for the current user. */
|
|
2132
|
+
oauth_token?:
|
|
2133
|
+
string;
|
|
2134
|
+
/**
|
|
2135
|
+
* 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;
|
|
2136
|
+
* values above 1000 will be coerced to 1000.
|
|
2137
|
+
*/
|
|
2138
|
+
pageSize?:
|
|
2139
|
+
number;
|
|
2140
|
+
/**
|
|
2141
|
+
* 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`
|
|
2142
|
+
* must match the call that provided the page token.
|
|
2143
|
+
*/
|
|
2144
|
+
pageToken?:
|
|
2145
|
+
string;
|
|
2146
|
+
/** Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`. */
|
|
2147
|
+
parent:
|
|
2148
|
+
string;
|
|
2149
|
+
/** Returns response with indentations and line breaks. */
|
|
2150
|
+
prettyPrint?:
|
|
2151
|
+
boolean;
|
|
2152
|
+
/** 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. */
|
|
2153
|
+
quotaUser?:
|
|
2154
|
+
string;
|
|
2155
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2156
|
+
upload_protocol?:
|
|
2157
|
+
string;
|
|
2158
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2159
|
+
uploadType?:
|
|
2160
|
+
string;
|
|
2161
|
+
}): Request<ListFleetsResponse>;
|
|
2162
|
+
/** Updates a fleet. */
|
|
2163
|
+
patch(request: {
|
|
2164
|
+
/** V1 error format. */
|
|
2165
|
+
"$.xgafv"?:
|
|
2166
|
+
string;
|
|
2167
|
+
/** OAuth access token. */
|
|
2168
|
+
access_token?:
|
|
2169
|
+
string;
|
|
2170
|
+
/** Data format for response. */
|
|
2171
|
+
alt?:
|
|
2172
|
+
string;
|
|
2173
|
+
/** JSONP */
|
|
2174
|
+
callback?:
|
|
2175
|
+
string;
|
|
2176
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2177
|
+
fields?:
|
|
2178
|
+
string;
|
|
2179
|
+
/** 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. */
|
|
2180
|
+
key?:
|
|
2181
|
+
string;
|
|
2182
|
+
/**
|
|
2183
|
+
* 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
|
|
2184
|
+
* one fleet resource, named "default".
|
|
2185
|
+
*/
|
|
2186
|
+
name:
|
|
2187
|
+
string;
|
|
2188
|
+
/** OAuth 2.0 token for the current user. */
|
|
2189
|
+
oauth_token?:
|
|
2190
|
+
string;
|
|
2191
|
+
/** Returns response with indentations and line breaks. */
|
|
2192
|
+
prettyPrint?:
|
|
2193
|
+
boolean;
|
|
2194
|
+
/** 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. */
|
|
2195
|
+
quotaUser?:
|
|
2196
|
+
string;
|
|
2197
|
+
/** Required. The fields to be updated; */
|
|
2198
|
+
updateMask?:
|
|
2199
|
+
string;
|
|
2200
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2201
|
+
upload_protocol?:
|
|
2202
|
+
string;
|
|
2203
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2204
|
+
uploadType?:
|
|
2205
|
+
string;
|
|
2206
|
+
/** Request body */
|
|
2207
|
+
resource:
|
|
2208
|
+
Fleet;
|
|
2209
|
+
}): Request<Operation>;
|
|
2210
|
+
patch(request: {
|
|
2211
|
+
/** V1 error format. */
|
|
2212
|
+
"$.xgafv"?:
|
|
2213
|
+
string;
|
|
2214
|
+
/** OAuth access token. */
|
|
2215
|
+
access_token?:
|
|
2216
|
+
string;
|
|
2217
|
+
/** Data format for response. */
|
|
2218
|
+
alt?:
|
|
2219
|
+
string;
|
|
2220
|
+
/** JSONP */
|
|
2221
|
+
callback?:
|
|
2222
|
+
string;
|
|
2223
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2224
|
+
fields?:
|
|
2225
|
+
string;
|
|
2226
|
+
/** 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. */
|
|
2227
|
+
key?:
|
|
2228
|
+
string;
|
|
2229
|
+
/**
|
|
2230
|
+
* 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
|
|
2231
|
+
* one fleet resource, named "default".
|
|
2232
|
+
*/
|
|
2233
|
+
name:
|
|
2234
|
+
string;
|
|
2235
|
+
/** OAuth 2.0 token for the current user. */
|
|
2236
|
+
oauth_token?:
|
|
2237
|
+
string;
|
|
2238
|
+
/** Returns response with indentations and line breaks. */
|
|
2239
|
+
prettyPrint?:
|
|
2240
|
+
boolean;
|
|
2241
|
+
/** 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. */
|
|
2242
|
+
quotaUser?:
|
|
2243
|
+
string;
|
|
2244
|
+
/** Required. The fields to be updated; */
|
|
2245
|
+
updateMask?:
|
|
2246
|
+
string;
|
|
2247
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2248
|
+
upload_protocol?:
|
|
2249
|
+
string;
|
|
2250
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2251
|
+
uploadType?:
|
|
2252
|
+
string;
|
|
2253
|
+
},
|
|
2254
|
+
body: Fleet): Request<Operation>;
|
|
2255
|
+
}
|
|
1816
2256
|
interface BindingsResource {
|
|
1817
2257
|
/** Creates a MembershipBinding. */
|
|
1818
2258
|
create(request: {
|
|
@@ -3176,6 +3616,93 @@ declare namespace gapi.client {
|
|
|
3176
3616
|
uploadType?:
|
|
3177
3617
|
string;
|
|
3178
3618
|
}): Request<ListScopesResponse>;
|
|
3619
|
+
/** Updates a scopes. */
|
|
3620
|
+
patch(request: {
|
|
3621
|
+
/** V1 error format. */
|
|
3622
|
+
"$.xgafv"?:
|
|
3623
|
+
string;
|
|
3624
|
+
/** OAuth access token. */
|
|
3625
|
+
access_token?:
|
|
3626
|
+
string;
|
|
3627
|
+
/** Data format for response. */
|
|
3628
|
+
alt?:
|
|
3629
|
+
string;
|
|
3630
|
+
/** JSONP */
|
|
3631
|
+
callback?:
|
|
3632
|
+
string;
|
|
3633
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3634
|
+
fields?:
|
|
3635
|
+
string;
|
|
3636
|
+
/** 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. */
|
|
3637
|
+
key?:
|
|
3638
|
+
string;
|
|
3639
|
+
/** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
|
|
3640
|
+
name:
|
|
3641
|
+
string;
|
|
3642
|
+
/** OAuth 2.0 token for the current user. */
|
|
3643
|
+
oauth_token?:
|
|
3644
|
+
string;
|
|
3645
|
+
/** Returns response with indentations and line breaks. */
|
|
3646
|
+
prettyPrint?:
|
|
3647
|
+
boolean;
|
|
3648
|
+
/** 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. */
|
|
3649
|
+
quotaUser?:
|
|
3650
|
+
string;
|
|
3651
|
+
/** Required. The fields to be updated. */
|
|
3652
|
+
updateMask?:
|
|
3653
|
+
string;
|
|
3654
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3655
|
+
upload_protocol?:
|
|
3656
|
+
string;
|
|
3657
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3658
|
+
uploadType?:
|
|
3659
|
+
string;
|
|
3660
|
+
/** Request body */
|
|
3661
|
+
resource:
|
|
3662
|
+
Scope;
|
|
3663
|
+
}): Request<Operation>;
|
|
3664
|
+
patch(request: {
|
|
3665
|
+
/** V1 error format. */
|
|
3666
|
+
"$.xgafv"?:
|
|
3667
|
+
string;
|
|
3668
|
+
/** OAuth access token. */
|
|
3669
|
+
access_token?:
|
|
3670
|
+
string;
|
|
3671
|
+
/** Data format for response. */
|
|
3672
|
+
alt?:
|
|
3673
|
+
string;
|
|
3674
|
+
/** JSONP */
|
|
3675
|
+
callback?:
|
|
3676
|
+
string;
|
|
3677
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3678
|
+
fields?:
|
|
3679
|
+
string;
|
|
3680
|
+
/** 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. */
|
|
3681
|
+
key?:
|
|
3682
|
+
string;
|
|
3683
|
+
/** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
|
|
3684
|
+
name:
|
|
3685
|
+
string;
|
|
3686
|
+
/** OAuth 2.0 token for the current user. */
|
|
3687
|
+
oauth_token?:
|
|
3688
|
+
string;
|
|
3689
|
+
/** Returns response with indentations and line breaks. */
|
|
3690
|
+
prettyPrint?:
|
|
3691
|
+
boolean;
|
|
3692
|
+
/** 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. */
|
|
3693
|
+
quotaUser?:
|
|
3694
|
+
string;
|
|
3695
|
+
/** Required. The fields to be updated. */
|
|
3696
|
+
updateMask?:
|
|
3697
|
+
string;
|
|
3698
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3699
|
+
upload_protocol?:
|
|
3700
|
+
string;
|
|
3701
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3702
|
+
uploadType?:
|
|
3703
|
+
string;
|
|
3704
|
+
},
|
|
3705
|
+
body: Scope): Request<Operation>;
|
|
3179
3706
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
3180
3707
|
setIamPolicy(request: {
|
|
3181
3708
|
/** V1 error format. */
|
|
@@ -3359,6 +3886,8 @@ declare namespace gapi.client {
|
|
|
3359
3886
|
}): Request<ListLocationsResponse>;
|
|
3360
3887
|
features:
|
|
3361
3888
|
FeaturesResource;
|
|
3889
|
+
fleets:
|
|
3890
|
+
FleetsResource;
|
|
3362
3891
|
memberships:
|
|
3363
3892
|
MembershipsResource;
|
|
3364
3893
|
operations:
|
|
@@ -3371,6 +3900,8 @@ declare namespace gapi.client {
|
|
|
3371
3900
|
LocationsResource;
|
|
3372
3901
|
}
|
|
3373
3902
|
|
|
3903
|
+
const organizations: OrganizationsResource;
|
|
3904
|
+
|
|
3374
3905
|
const projects: ProjectsResource;
|
|
3375
3906
|
}
|
|
3376
3907
|
}
|
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: 20230609
|
|
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",
|
|
@@ -56,6 +62,7 @@ gapi.load('client', async () => {
|
|
|
56
62
|
membershipSpecs: {
|
|
57
63
|
A: {
|
|
58
64
|
configmanagement: {
|
|
65
|
+
cluster: "Test string",
|
|
59
66
|
configSync: {
|
|
60
67
|
allowVerticalScale: true,
|
|
61
68
|
enabled: true,
|
|
@@ -71,7 +78,9 @@ gapi.load('client', async () => {
|
|
|
71
78
|
},
|
|
72
79
|
managed: {
|
|
73
80
|
enabled: true,
|
|
81
|
+
stopSyncing: true,
|
|
74
82
|
},
|
|
83
|
+
metricsGcpServiceAccountEmail: "Test string",
|
|
75
84
|
oci: {
|
|
76
85
|
gcpServiceAccountEmail: "Test string",
|
|
77
86
|
policyDir: "Test string",
|
|
@@ -102,6 +111,7 @@ gapi.load('client', async () => {
|
|
|
102
111
|
mutationEnabled: true,
|
|
103
112
|
referentialRulesEnabled: true,
|
|
104
113
|
templateLibraryInstalled: true,
|
|
114
|
+
updateTime: "Test string",
|
|
105
115
|
},
|
|
106
116
|
version: "Test string",
|
|
107
117
|
},
|
|
@@ -168,6 +178,11 @@ gapi.load('client', async () => {
|
|
|
168
178
|
rootReconciler: "Test string",
|
|
169
179
|
syncer: "Test string",
|
|
170
180
|
},
|
|
181
|
+
errors: [
|
|
182
|
+
{
|
|
183
|
+
errorMessage: "Test string",
|
|
184
|
+
}
|
|
185
|
+
],
|
|
171
186
|
syncState: {
|
|
172
187
|
code: "Test string",
|
|
173
188
|
errors: [
|
|
@@ -215,6 +230,7 @@ gapi.load('client', async () => {
|
|
|
215
230
|
},
|
|
216
231
|
},
|
|
217
232
|
membershipSpec: {
|
|
233
|
+
cluster: "Test string",
|
|
218
234
|
configSync: {
|
|
219
235
|
allowVerticalScale: true,
|
|
220
236
|
enabled: true,
|
|
@@ -230,7 +246,9 @@ gapi.load('client', async () => {
|
|
|
230
246
|
},
|
|
231
247
|
managed: {
|
|
232
248
|
enabled: true,
|
|
249
|
+
stopSyncing: true,
|
|
233
250
|
},
|
|
251
|
+
metricsGcpServiceAccountEmail: "Test string",
|
|
234
252
|
oci: {
|
|
235
253
|
gcpServiceAccountEmail: "Test string",
|
|
236
254
|
policyDir: "Test string",
|
|
@@ -261,6 +279,7 @@ gapi.load('client', async () => {
|
|
|
261
279
|
mutationEnabled: true,
|
|
262
280
|
referentialRulesEnabled: true,
|
|
263
281
|
templateLibraryInstalled: true,
|
|
282
|
+
updateTime: "Test string",
|
|
264
283
|
},
|
|
265
284
|
version: "Test string",
|
|
266
285
|
},
|
|
@@ -280,6 +299,7 @@ gapi.load('client', async () => {
|
|
|
280
299
|
gatekeeperMutation: "Test string",
|
|
281
300
|
},
|
|
282
301
|
migration: {
|
|
302
|
+
copyTime: "Test string",
|
|
283
303
|
stage: "Test string",
|
|
284
304
|
},
|
|
285
305
|
version: {
|
|
@@ -437,6 +457,7 @@ gapi.load('client', async () => {
|
|
|
437
457
|
membershipSpecs: {
|
|
438
458
|
A: {
|
|
439
459
|
configmanagement: {
|
|
460
|
+
cluster: "Test string",
|
|
440
461
|
configSync: {
|
|
441
462
|
allowVerticalScale: true,
|
|
442
463
|
enabled: true,
|
|
@@ -452,7 +473,9 @@ gapi.load('client', async () => {
|
|
|
452
473
|
},
|
|
453
474
|
managed: {
|
|
454
475
|
enabled: true,
|
|
476
|
+
stopSyncing: true,
|
|
455
477
|
},
|
|
478
|
+
metricsGcpServiceAccountEmail: "Test string",
|
|
456
479
|
oci: {
|
|
457
480
|
gcpServiceAccountEmail: "Test string",
|
|
458
481
|
policyDir: "Test string",
|
|
@@ -483,6 +506,7 @@ gapi.load('client', async () => {
|
|
|
483
506
|
mutationEnabled: true,
|
|
484
507
|
referentialRulesEnabled: true,
|
|
485
508
|
templateLibraryInstalled: true,
|
|
509
|
+
updateTime: "Test string",
|
|
486
510
|
},
|
|
487
511
|
version: "Test string",
|
|
488
512
|
},
|
|
@@ -549,6 +573,11 @@ gapi.load('client', async () => {
|
|
|
549
573
|
rootReconciler: "Test string",
|
|
550
574
|
syncer: "Test string",
|
|
551
575
|
},
|
|
576
|
+
errors: [
|
|
577
|
+
{
|
|
578
|
+
errorMessage: "Test string",
|
|
579
|
+
}
|
|
580
|
+
],
|
|
552
581
|
syncState: {
|
|
553
582
|
code: "Test string",
|
|
554
583
|
errors: [
|
|
@@ -596,6 +625,7 @@ gapi.load('client', async () => {
|
|
|
596
625
|
},
|
|
597
626
|
},
|
|
598
627
|
membershipSpec: {
|
|
628
|
+
cluster: "Test string",
|
|
599
629
|
configSync: {
|
|
600
630
|
allowVerticalScale: true,
|
|
601
631
|
enabled: true,
|
|
@@ -611,7 +641,9 @@ gapi.load('client', async () => {
|
|
|
611
641
|
},
|
|
612
642
|
managed: {
|
|
613
643
|
enabled: true,
|
|
644
|
+
stopSyncing: true,
|
|
614
645
|
},
|
|
646
|
+
metricsGcpServiceAccountEmail: "Test string",
|
|
615
647
|
oci: {
|
|
616
648
|
gcpServiceAccountEmail: "Test string",
|
|
617
649
|
policyDir: "Test string",
|
|
@@ -642,6 +674,7 @@ gapi.load('client', async () => {
|
|
|
642
674
|
mutationEnabled: true,
|
|
643
675
|
referentialRulesEnabled: true,
|
|
644
676
|
templateLibraryInstalled: true,
|
|
677
|
+
updateTime: "Test string",
|
|
645
678
|
},
|
|
646
679
|
version: "Test string",
|
|
647
680
|
},
|
|
@@ -661,6 +694,7 @@ gapi.load('client', async () => {
|
|
|
661
694
|
gatekeeperMutation: "Test string",
|
|
662
695
|
},
|
|
663
696
|
migration: {
|
|
697
|
+
copyTime: "Test string",
|
|
664
698
|
stage: "Test string",
|
|
665
699
|
},
|
|
666
700
|
version: {
|
|
@@ -827,6 +861,49 @@ gapi.load('client', async () => {
|
|
|
827
861
|
"Test string"
|
|
828
862
|
],
|
|
829
863
|
});
|
|
864
|
+
/** Creates a fleet. */
|
|
865
|
+
await gapi.client.gkehub.projects.locations.fleets.create({
|
|
866
|
+
parent: "Test string",
|
|
867
|
+
}, {
|
|
868
|
+
createTime: "Test string",
|
|
869
|
+
deleteTime: "Test string",
|
|
870
|
+
displayName: "Test string",
|
|
871
|
+
name: "Test string",
|
|
872
|
+
state: {
|
|
873
|
+
code: "Test string",
|
|
874
|
+
},
|
|
875
|
+
uid: "Test string",
|
|
876
|
+
updateTime: "Test string",
|
|
877
|
+
});
|
|
878
|
+
/** Removes a Fleet. There must be no memberships remaining in the Fleet. */
|
|
879
|
+
await gapi.client.gkehub.projects.locations.fleets.delete({
|
|
880
|
+
name: "Test string",
|
|
881
|
+
});
|
|
882
|
+
/** Returns the details of a fleet. */
|
|
883
|
+
await gapi.client.gkehub.projects.locations.fleets.get({
|
|
884
|
+
name: "Test string",
|
|
885
|
+
});
|
|
886
|
+
/** Returns all fleets within an organization or a project that the caller has access to. */
|
|
887
|
+
await gapi.client.gkehub.projects.locations.fleets.list({
|
|
888
|
+
pageSize: 42,
|
|
889
|
+
pageToken: "Test string",
|
|
890
|
+
parent: "Test string",
|
|
891
|
+
});
|
|
892
|
+
/** Updates a fleet. */
|
|
893
|
+
await gapi.client.gkehub.projects.locations.fleets.patch({
|
|
894
|
+
name: "Test string",
|
|
895
|
+
updateMask: "Test string",
|
|
896
|
+
}, {
|
|
897
|
+
createTime: "Test string",
|
|
898
|
+
deleteTime: "Test string",
|
|
899
|
+
displayName: "Test string",
|
|
900
|
+
name: "Test string",
|
|
901
|
+
state: {
|
|
902
|
+
code: "Test string",
|
|
903
|
+
},
|
|
904
|
+
uid: "Test string",
|
|
905
|
+
updateTime: "Test string",
|
|
906
|
+
});
|
|
830
907
|
/**
|
|
831
908
|
* Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at
|
|
832
909
|
* https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
|
|
@@ -1196,6 +1273,21 @@ gapi.load('client', async () => {
|
|
|
1196
1273
|
pageToken: "Test string",
|
|
1197
1274
|
parent: "Test string",
|
|
1198
1275
|
});
|
|
1276
|
+
/** Updates a scopes. */
|
|
1277
|
+
await gapi.client.gkehub.projects.locations.scopes.patch({
|
|
1278
|
+
name: "Test string",
|
|
1279
|
+
updateMask: "Test string",
|
|
1280
|
+
}, {
|
|
1281
|
+
allMemberships: true,
|
|
1282
|
+
createTime: "Test string",
|
|
1283
|
+
deleteTime: "Test string",
|
|
1284
|
+
name: "Test string",
|
|
1285
|
+
state: {
|
|
1286
|
+
code: "Test string",
|
|
1287
|
+
},
|
|
1288
|
+
uid: "Test string",
|
|
1289
|
+
updateTime: "Test string",
|
|
1290
|
+
});
|
|
1199
1291
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
1200
1292
|
await gapi.client.gkehub.projects.locations.scopes.setIamPolicy({
|
|
1201
1293
|
resource: "Test string",
|