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

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 -1
  2. package/package.json +1 -1
  3. package/tests.ts +88 -1
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://gkehub.googleapis.com/$discovery/rest?version=v1alpha
13
- // Revision: 20220828
13
+ // Revision: 20220912
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -190,6 +190,8 @@ declare namespace gapi.client {
190
190
  webhookVersion?: string;
191
191
  }
192
192
  interface ConfigManagementConfigSync {
193
+ /** Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. */
194
+ allowVerticalScale?: boolean;
193
195
  /**
194
196
  * 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
197
  * 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 +1047,8 @@ declare namespace gapi.client {
1045
1047
  controlPlane?: string;
1046
1048
  /** Determines which release channel to use for default injection and service mesh APIs. */
1047
1049
  defaultChannel?: string;
1050
+ /** Enables automatic Service Mesh management. */
1051
+ management?: string;
1048
1052
  }
1049
1053
  interface ServiceMeshMembershipState {
1050
1054
  /** Output only. Results of running Service Mesh analyzers. */
@@ -1112,6 +1116,24 @@ declare namespace gapi.client {
1112
1116
  /** Kind of the resource (e.g. Deployment). */
1113
1117
  kind?: string;
1114
1118
  }
1119
+ interface ValidateCreateMembershipRequest {
1120
+ /** Required. Membership resource to be created. */
1121
+ membership?: Membership;
1122
+ /** Required. Client chosen membership id. */
1123
+ membershipId?: string;
1124
+ }
1125
+ interface ValidateCreateMembershipResponse {
1126
+ /** Wraps all the validator results. */
1127
+ validationResults?: ValidationResult[];
1128
+ }
1129
+ interface ValidationResult {
1130
+ /** Additional information for the validation. */
1131
+ result?: string;
1132
+ /** Whether the validation is passed or not. */
1133
+ success?: boolean;
1134
+ /** Validator type to validate membership with. */
1135
+ validator?: string;
1136
+ }
1115
1137
  interface FleetsResource {
1116
1138
  /** Returns all fleets within an organization or a project that the caller has access to. */
1117
1139
  list(request?: {
@@ -2189,6 +2211,65 @@ declare namespace gapi.client {
2189
2211
  uploadType?: string;
2190
2212
  },
2191
2213
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2214
+ /**
2215
+ * ValidateCreateMembership is a preflight check for CreateMembership. It checks the following: 1. Caller has the required `gkehub.memberships.create` permission. 2. The membership_id
2216
+ * is still available.
2217
+ */
2218
+ validateCreate(request: {
2219
+ /** V1 error format. */
2220
+ "$.xgafv"?: string;
2221
+ /** OAuth access token. */
2222
+ access_token?: string;
2223
+ /** Data format for response. */
2224
+ alt?: string;
2225
+ /** JSONP */
2226
+ callback?: string;
2227
+ /** Selector specifying which fields to include in a partial response. */
2228
+ fields?: string;
2229
+ /** 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. */
2230
+ key?: string;
2231
+ /** OAuth 2.0 token for the current user. */
2232
+ oauth_token?: string;
2233
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
2234
+ parent: string;
2235
+ /** Returns response with indentations and line breaks. */
2236
+ prettyPrint?: boolean;
2237
+ /** 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. */
2238
+ quotaUser?: string;
2239
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2240
+ upload_protocol?: string;
2241
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2242
+ uploadType?: string;
2243
+ /** Request body */
2244
+ resource: ValidateCreateMembershipRequest;
2245
+ }): Request<ValidateCreateMembershipResponse>;
2246
+ validateCreate(request: {
2247
+ /** V1 error format. */
2248
+ "$.xgafv"?: string;
2249
+ /** OAuth access token. */
2250
+ access_token?: string;
2251
+ /** Data format for response. */
2252
+ alt?: string;
2253
+ /** JSONP */
2254
+ callback?: string;
2255
+ /** Selector specifying which fields to include in a partial response. */
2256
+ fields?: string;
2257
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2258
+ key?: string;
2259
+ /** OAuth 2.0 token for the current user. */
2260
+ oauth_token?: string;
2261
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
2262
+ parent: string;
2263
+ /** Returns response with indentations and line breaks. */
2264
+ prettyPrint?: boolean;
2265
+ /** 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. */
2266
+ quotaUser?: string;
2267
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2268
+ upload_protocol?: string;
2269
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2270
+ uploadType?: string;
2271
+ },
2272
+ body: ValidateCreateMembershipRequest): Request<ValidateCreateMembershipResponse>;
2192
2273
  }
2193
2274
  interface OperationsResource {
2194
2275
  /**
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.20220912",
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: 20220912
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