@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20220818 → 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 +104 -16
  2. package/package.json +1 -1
  3. package/tests.ts +100 -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: 20220818
13
+ // Revision: 20220912
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -24,13 +24,13 @@ declare namespace gapi.client {
24
24
 
25
25
  namespace gkehub {
26
26
  interface AnthosObservabilityFeatureSpec {
27
- /** default membership spec for unconfigured memberships */
27
+ /** Default membership spec for unconfigured memberships */
28
28
  defaultMembershipSpec?: AnthosObservabilityMembershipSpec;
29
29
  }
30
30
  interface AnthosObservabilityMembershipSpec {
31
- /** use full of metrics rather than optimized metrics. See https://cloud.google.com/anthos/clusters/docs/on-prem/1.8/concepts/logging-and-monitoring#optimized_metrics_default_metrics */
31
+ /** Use full of metrics rather than optimized metrics. See https://cloud.google.com/anthos/clusters/docs/on-prem/1.8/concepts/logging-and-monitoring#optimized_metrics_default_metrics */
32
32
  doNotOptimizeMetrics?: boolean;
33
- /** enable collecting and reporting metrics and logs from user apps See go/onyx-application-metrics-logs-user-guide */
33
+ /** Enable collecting and reporting metrics and logs from user apps. */
34
34
  enableStackdriverOnApplications?: boolean;
35
35
  /** the version of stackdriver operator used by this feature */
36
36
  version?: string;
@@ -122,17 +122,18 @@ declare namespace gapi.client {
122
122
  /**
123
123
  * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
124
124
  * the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
125
- * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
126
- * represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
127
- * for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
128
- * `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
129
- * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
130
- * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
131
- * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
132
- * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
133
- * account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently
134
- * deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in
135
- * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
125
+ * account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific
126
+ * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
127
+ * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
128
+ * account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
129
+ * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
130
+ * identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to
131
+ * `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing
132
+ * a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value
133
+ * reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
134
+ * identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to
135
+ * `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For
136
+ * example, `google.com` or `example.com`.
136
137
  */
137
138
  members?: string[];
138
139
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
@@ -189,6 +190,8 @@ declare namespace gapi.client {
189
190
  webhookVersion?: string;
190
191
  }
191
192
  interface ConfigManagementConfigSync {
193
+ /** Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. */
194
+ allowVerticalScale?: boolean;
192
195
  /**
193
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
194
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.
@@ -200,7 +203,7 @@ declare namespace gapi.client {
200
203
  oci?: ConfigManagementOciConfig;
201
204
  /** Set to true to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts. */
202
205
  preventDrift?: boolean;
203
- /** Specifies whether the Config Sync Repo is in hierarchical or unstructured mode. */
206
+ /** Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode. */
204
207
  sourceFormat?: string;
205
208
  }
206
209
  interface ConfigManagementConfigSyncDeploymentState {
@@ -551,6 +554,8 @@ declare namespace gapi.client {
551
554
  message?: string;
552
555
  }
553
556
  interface IdentityServiceAuthMethod {
557
+ /** GoogleConfig specific configuration */
558
+ googleConfig?: IdentityServiceGoogleConfig;
554
559
  /** Identifier for auth config. */
555
560
  name?: string;
556
561
  /** OIDC specific configuration. */
@@ -558,6 +563,10 @@ declare namespace gapi.client {
558
563
  /** Proxy server address to use for auth method. */
559
564
  proxy?: string;
560
565
  }
566
+ interface IdentityServiceGoogleConfig {
567
+ /** Disable automatic configuration of Google Plugin on supported platforms. */
568
+ disable?: boolean;
569
+ }
561
570
  interface IdentityServiceMembershipSpec {
562
571
  /** A member may support multiple auth methods. */
563
572
  authMethods?: IdentityServiceAuthMethod[];
@@ -1038,6 +1047,8 @@ declare namespace gapi.client {
1038
1047
  controlPlane?: string;
1039
1048
  /** Determines which release channel to use for default injection and service mesh APIs. */
1040
1049
  defaultChannel?: string;
1050
+ /** Enables automatic Service Mesh management. */
1051
+ management?: string;
1041
1052
  }
1042
1053
  interface ServiceMeshMembershipState {
1043
1054
  /** Output only. Results of running Service Mesh analyzers. */
@@ -1105,6 +1116,24 @@ declare namespace gapi.client {
1105
1116
  /** Kind of the resource (e.g. Deployment). */
1106
1117
  kind?: string;
1107
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
+ }
1108
1137
  interface FleetsResource {
1109
1138
  /** Returns all fleets within an organization or a project that the caller has access to. */
1110
1139
  list(request?: {
@@ -2182,6 +2211,65 @@ declare namespace gapi.client {
2182
2211
  uploadType?: string;
2183
2212
  },
2184
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>;
2185
2273
  }
2186
2274
  interface OperationsResource {
2187
2275
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20220818",
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: 20220818
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",
@@ -131,6 +132,9 @@ gapi.load('client', async () => {
131
132
  identityservice: {
132
133
  authMethods: [
133
134
  {
135
+ googleConfig: {
136
+ disable: true,
137
+ },
134
138
  name: "Test string",
135
139
  oidcConfig: {
136
140
  certificateAuthorityData: "Test string",
@@ -155,6 +159,7 @@ gapi.load('client', async () => {
155
159
  mesh: {
156
160
  controlPlane: "Test string",
157
161
  defaultChannel: "Test string",
162
+ management: "Test string",
158
163
  },
159
164
  policycontroller: {
160
165
  policyControllerHubConfig: {
@@ -275,6 +280,7 @@ gapi.load('client', async () => {
275
280
  enabled: true,
276
281
  },
277
282
  configSync: {
283
+ allowVerticalScale: true,
278
284
  enabled: true,
279
285
  git: {
280
286
  gcpServiceAccountEmail: "Test string",
@@ -345,6 +351,9 @@ gapi.load('client', async () => {
345
351
  memberConfig: {
346
352
  authMethods: [
347
353
  {
354
+ googleConfig: {
355
+ disable: true,
356
+ },
348
357
  name: "Test string",
349
358
  oidcConfig: {
350
359
  certificateAuthorityData: "Test string",
@@ -556,6 +565,7 @@ gapi.load('client', async () => {
556
565
  enabled: true,
557
566
  },
558
567
  configSync: {
568
+ allowVerticalScale: true,
559
569
  enabled: true,
560
570
  git: {
561
571
  gcpServiceAccountEmail: "Test string",
@@ -603,6 +613,9 @@ gapi.load('client', async () => {
603
613
  identityservice: {
604
614
  authMethods: [
605
615
  {
616
+ googleConfig: {
617
+ disable: true,
618
+ },
606
619
  name: "Test string",
607
620
  oidcConfig: {
608
621
  certificateAuthorityData: "Test string",
@@ -627,6 +640,7 @@ gapi.load('client', async () => {
627
640
  mesh: {
628
641
  controlPlane: "Test string",
629
642
  defaultChannel: "Test string",
643
+ management: "Test string",
630
644
  },
631
645
  policycontroller: {
632
646
  policyControllerHubConfig: {
@@ -747,6 +761,7 @@ gapi.load('client', async () => {
747
761
  enabled: true,
748
762
  },
749
763
  configSync: {
764
+ allowVerticalScale: true,
750
765
  enabled: true,
751
766
  git: {
752
767
  gcpServiceAccountEmail: "Test string",
@@ -817,6 +832,9 @@ gapi.load('client', async () => {
817
832
  memberConfig: {
818
833
  authMethods: [
819
834
  {
835
+ googleConfig: {
836
+ disable: true,
837
+ },
820
838
  name: "Test string",
821
839
  oidcConfig: {
822
840
  certificateAuthorityData: "Test string",
@@ -1309,6 +1327,87 @@ gapi.load('client', async () => {
1309
1327
  "Test string"
1310
1328
  ],
1311
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
+ });
1312
1411
  /**
1313
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
1314
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