@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20220828 → 0.0.20220923

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.
Files changed (3) hide show
  1. package/index.d.ts +82 -2
  2. package/package.json +1 -1
  3. package/tests.ts +88 -1
package/index.d.ts CHANGED
@@ -4,13 +4,12 @@
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
6
6
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 2.8
8
7
 
9
8
  // IMPORTANT
10
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
11
  // Generated from: https://gkehub.googleapis.com/$discovery/rest?version=v1alpha
13
- // Revision: 20220828
12
+ // Revision: 20220923
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -190,6 +189,8 @@ declare namespace gapi.client {
190
189
  webhookVersion?: string;
191
190
  }
192
191
  interface ConfigManagementConfigSync {
192
+ /** Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. */
193
+ allowVerticalScale?: boolean;
193
194
  /**
194
195
  * 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
195
196
  * ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of git field.
@@ -1045,6 +1046,8 @@ declare namespace gapi.client {
1045
1046
  controlPlane?: string;
1046
1047
  /** Determines which release channel to use for default injection and service mesh APIs. */
1047
1048
  defaultChannel?: string;
1049
+ /** Enables automatic Service Mesh management. */
1050
+ management?: string;
1048
1051
  }
1049
1052
  interface ServiceMeshMembershipState {
1050
1053
  /** Output only. Results of running Service Mesh analyzers. */
@@ -1112,6 +1115,24 @@ declare namespace gapi.client {
1112
1115
  /** Kind of the resource (e.g. Deployment). */
1113
1116
  kind?: string;
1114
1117
  }
1118
+ interface ValidateCreateMembershipRequest {
1119
+ /** Required. Membership resource to be created. */
1120
+ membership?: Membership;
1121
+ /** Required. Client chosen membership id. */
1122
+ membershipId?: string;
1123
+ }
1124
+ interface ValidateCreateMembershipResponse {
1125
+ /** Wraps all the validator results. */
1126
+ validationResults?: ValidationResult[];
1127
+ }
1128
+ interface ValidationResult {
1129
+ /** Additional information for the validation. */
1130
+ result?: string;
1131
+ /** Whether the validation is passed or not. */
1132
+ success?: boolean;
1133
+ /** Validator type to validate membership with. */
1134
+ validator?: string;
1135
+ }
1115
1136
  interface FleetsResource {
1116
1137
  /** Returns all fleets within an organization or a project that the caller has access to. */
1117
1138
  list(request?: {
@@ -2189,6 +2210,65 @@ declare namespace gapi.client {
2189
2210
  uploadType?: string;
2190
2211
  },
2191
2212
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2213
+ /**
2214
+ * ValidateCreateMembership is a preflight check for CreateMembership. It checks the following: 1. Caller has the required `gkehub.memberships.create` permission. 2. The membership_id
2215
+ * is still available.
2216
+ */
2217
+ validateCreate(request: {
2218
+ /** V1 error format. */
2219
+ "$.xgafv"?: string;
2220
+ /** OAuth access token. */
2221
+ access_token?: string;
2222
+ /** Data format for response. */
2223
+ alt?: string;
2224
+ /** JSONP */
2225
+ callback?: string;
2226
+ /** Selector specifying which fields to include in a partial response. */
2227
+ fields?: string;
2228
+ /** 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. */
2229
+ key?: string;
2230
+ /** OAuth 2.0 token for the current user. */
2231
+ oauth_token?: string;
2232
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
2233
+ parent: string;
2234
+ /** Returns response with indentations and line breaks. */
2235
+ prettyPrint?: boolean;
2236
+ /** 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. */
2237
+ quotaUser?: string;
2238
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2239
+ upload_protocol?: string;
2240
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2241
+ uploadType?: string;
2242
+ /** Request body */
2243
+ resource: ValidateCreateMembershipRequest;
2244
+ }): Request<ValidateCreateMembershipResponse>;
2245
+ validateCreate(request: {
2246
+ /** V1 error format. */
2247
+ "$.xgafv"?: string;
2248
+ /** OAuth access token. */
2249
+ access_token?: string;
2250
+ /** Data format for response. */
2251
+ alt?: string;
2252
+ /** JSONP */
2253
+ callback?: string;
2254
+ /** Selector specifying which fields to include in a partial response. */
2255
+ fields?: string;
2256
+ /** 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. */
2257
+ key?: string;
2258
+ /** OAuth 2.0 token for the current user. */
2259
+ oauth_token?: string;
2260
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
2261
+ parent: string;
2262
+ /** Returns response with indentations and line breaks. */
2263
+ prettyPrint?: boolean;
2264
+ /** 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. */
2265
+ quotaUser?: string;
2266
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2267
+ upload_protocol?: string;
2268
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2269
+ uploadType?: string;
2270
+ },
2271
+ body: ValidateCreateMembershipRequest): Request<ValidateCreateMembershipResponse>;
2192
2272
  }
2193
2273
  interface OperationsResource {
2194
2274
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20220828",
3
+ "version": "0.0.20220923",
4
4
  "description": "TypeScript typings for GKE Hub API v1alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20220828
6
+ // Revision: 20220923
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -84,6 +84,7 @@ gapi.load('client', async () => {
84
84
  enabled: true,
85
85
  },
86
86
  configSync: {
87
+ allowVerticalScale: true,
87
88
  enabled: true,
88
89
  git: {
89
90
  gcpServiceAccountEmail: "Test string",
@@ -158,6 +159,7 @@ gapi.load('client', async () => {
158
159
  mesh: {
159
160
  controlPlane: "Test string",
160
161
  defaultChannel: "Test string",
162
+ management: "Test string",
161
163
  },
162
164
  policycontroller: {
163
165
  policyControllerHubConfig: {
@@ -278,6 +280,7 @@ gapi.load('client', async () => {
278
280
  enabled: true,
279
281
  },
280
282
  configSync: {
283
+ allowVerticalScale: true,
281
284
  enabled: true,
282
285
  git: {
283
286
  gcpServiceAccountEmail: "Test string",
@@ -562,6 +565,7 @@ gapi.load('client', async () => {
562
565
  enabled: true,
563
566
  },
564
567
  configSync: {
568
+ allowVerticalScale: true,
565
569
  enabled: true,
566
570
  git: {
567
571
  gcpServiceAccountEmail: "Test string",
@@ -636,6 +640,7 @@ gapi.load('client', async () => {
636
640
  mesh: {
637
641
  controlPlane: "Test string",
638
642
  defaultChannel: "Test string",
643
+ management: "Test string",
639
644
  },
640
645
  policycontroller: {
641
646
  policyControllerHubConfig: {
@@ -756,6 +761,7 @@ gapi.load('client', async () => {
756
761
  enabled: true,
757
762
  },
758
763
  configSync: {
764
+ allowVerticalScale: true,
759
765
  enabled: true,
760
766
  git: {
761
767
  gcpServiceAccountEmail: "Test string",
@@ -1321,6 +1327,87 @@ gapi.load('client', async () => {
1321
1327
  "Test string"
1322
1328
  ],
1323
1329
  });
1330
+ /**
1331
+ * ValidateCreateMembership is a preflight check for CreateMembership. It checks the following: 1. Caller has the required `gkehub.memberships.create` permission. 2. The membership_id is
1332
+ * still available.
1333
+ */
1334
+ await gapi.client.gkehub.projects.locations.memberships.validateCreate({
1335
+ parent: "Test string",
1336
+ }, {
1337
+ membership: {
1338
+ authority: {
1339
+ identityProvider: "Test string",
1340
+ issuer: "Test string",
1341
+ oidcJwks: "Test string",
1342
+ workloadIdentityPool: "Test string",
1343
+ },
1344
+ createTime: "Test string",
1345
+ deleteTime: "Test string",
1346
+ description: "Test string",
1347
+ endpoint: {
1348
+ applianceCluster: {
1349
+ resourceLink: "Test string",
1350
+ },
1351
+ edgeCluster: {
1352
+ resourceLink: "Test string",
1353
+ },
1354
+ gkeCluster: {
1355
+ clusterMissing: true,
1356
+ resourceLink: "Test string",
1357
+ },
1358
+ kubernetesMetadata: {
1359
+ kubernetesApiServerVersion: "Test string",
1360
+ memoryMb: 42,
1361
+ nodeCount: 42,
1362
+ nodeProviderId: "Test string",
1363
+ updateTime: "Test string",
1364
+ vcpuCount: 42,
1365
+ },
1366
+ kubernetesResource: {
1367
+ connectResources: [
1368
+ {
1369
+ clusterScoped: true,
1370
+ manifest: "Test string",
1371
+ }
1372
+ ],
1373
+ membershipCrManifest: "Test string",
1374
+ membershipResources: [
1375
+ {
1376
+ clusterScoped: true,
1377
+ manifest: "Test string",
1378
+ }
1379
+ ],
1380
+ resourceOptions: {
1381
+ connectVersion: "Test string",
1382
+ k8sVersion: "Test string",
1383
+ v1beta1Crd: true,
1384
+ },
1385
+ },
1386
+ multiCloudCluster: {
1387
+ clusterMissing: true,
1388
+ resourceLink: "Test string",
1389
+ },
1390
+ onPremCluster: {
1391
+ adminCluster: true,
1392
+ clusterMissing: true,
1393
+ clusterType: "Test string",
1394
+ resourceLink: "Test string",
1395
+ },
1396
+ },
1397
+ externalId: "Test string",
1398
+ labels: {
1399
+ A: "Test string"
1400
+ },
1401
+ lastConnectionTime: "Test string",
1402
+ name: "Test string",
1403
+ state: {
1404
+ code: "Test string",
1405
+ },
1406
+ uniqueId: "Test string",
1407
+ updateTime: "Test string",
1408
+ },
1409
+ membershipId: "Test string",
1410
+ });
1324
1411
  /**
1325
1412
  * 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
1326
1413
  * 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