@maxim_mazurok/gapi.client.gkehub-v1 0.0.20221018 → 0.0.20221108

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 +15 -54
  2. package/package.json +1 -1
  3. package/tests.ts +29 -55
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: 20221018
12
+ // Revision: 20221108
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -22,37 +22,6 @@ declare namespace gapi.client {
22
22
  function load(name: "gkehub", version: "v1", callback: () => any): void;
23
23
 
24
24
  namespace gkehub {
25
- interface AnthosVMMembershipSpec {
26
- /** List of configurations of the Anthos For VM subfeatures that are to be enabled */
27
- subfeaturesSpec?: AnthosVMSubFeatureSpec[];
28
- }
29
- interface AnthosVMMembershipState {
30
- /** State of the local PE-controller inside the cluster */
31
- localControllerState?: LocalControllerState;
32
- /** List of AnthosVM subfeature states */
33
- subfeatureState?: AnthosVMSubFeatureState[];
34
- }
35
- interface AnthosVMSubFeatureSpec {
36
- /**
37
- * Indicates whether the subfeature should be enabled on the cluster or not. If set to true, the subfeature's control plane and resources will be installed in the cluster. If set to
38
- * false, the oneof spec if present will be ignored and nothing will be installed in the cluster.
39
- */
40
- enabled?: boolean;
41
- /** MigrateSpec repsents the configuration for Migrate subfeature. */
42
- migrateSpec?: any;
43
- /** ServiceMeshSpec repsents the configuration for Service Mesh subfeature. */
44
- serviceMeshSpec?: any;
45
- }
46
- interface AnthosVMSubFeatureState {
47
- /** Description represents human readable description of the subfeature state. If the deployment failed, this should also contain the reason for the failure. */
48
- description?: string;
49
- /** InstallationState represents the state of installation of the subfeature in the cluster. */
50
- installationState?: string;
51
- /** MigrateState represents the state of the Migrate subfeature. */
52
- migrateState?: any;
53
- /** ServiceMeshState represents the state of the Service Mesh subfeature. */
54
- serviceMeshState?: any;
55
- }
56
25
  // tslint:disable-next-line:no-empty-interface
57
26
  interface AppDevExperienceFeatureSpec {
58
27
  }
@@ -496,6 +465,8 @@ declare namespace gapi.client {
496
465
  message?: string;
497
466
  }
498
467
  interface IdentityServiceAuthMethod {
468
+ /** AzureAD specific Configuration. */
469
+ azureadConfig?: IdentityServiceAzureADConfig;
499
470
  /** GoogleConfig specific configuration */
500
471
  googleConfig?: IdentityServiceGoogleConfig;
501
472
  /** Identifier for auth config. */
@@ -505,6 +476,18 @@ declare namespace gapi.client {
505
476
  /** Proxy server address to use for auth method. */
506
477
  proxy?: string;
507
478
  }
479
+ interface IdentityServiceAzureADConfig {
480
+ /** ID for the registered client application that makes authentication requests to the Azure AD identity provider. */
481
+ clientId?: string;
482
+ /** Input only. Unencrypted AzureAD client secret will be passed to the GKE Hub CLH. */
483
+ clientSecret?: string;
484
+ /** Output only. Encrypted AzureAD client secret. */
485
+ encryptedClientSecret?: string;
486
+ /** The redirect URL that kubectl uses for authorization. */
487
+ kubectlRedirectUri?: string;
488
+ /** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
489
+ tenant?: string;
490
+ }
508
491
  interface IdentityServiceGoogleConfig {
509
492
  /** Disable automatic configuration of Google Plugin on supported platforms. */
510
493
  disable?: boolean;
@@ -621,12 +604,6 @@ declare namespace gapi.client {
621
604
  /** A list of operations that matches the specified filter in the request. */
622
605
  operations?: Operation[];
623
606
  }
624
- interface LocalControllerState {
625
- /** Description represents the human readable description of the current state of the local PE controller */
626
- description?: string;
627
- /** InstallationState represents the state of deployment of the local PE controller in the cluster. */
628
- installationState?: string;
629
- }
630
607
  interface Location {
631
608
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
632
609
  displayName?: string;
@@ -702,8 +679,6 @@ declare namespace gapi.client {
702
679
  onPremCluster?: OnPremCluster;
703
680
  }
704
681
  interface MembershipFeatureSpec {
705
- /** AnthosVM spec. */
706
- anthosvm?: AnthosVMMembershipSpec;
707
682
  /** Config Management-specific spec. */
708
683
  configmanagement?: ConfigManagementMembershipSpec;
709
684
  /** Fleet observability membership spec */
@@ -714,8 +689,6 @@ declare namespace gapi.client {
714
689
  mesh?: ServiceMeshMembershipSpec;
715
690
  }
716
691
  interface MembershipFeatureState {
717
- /** AnthosVM state. */
718
- anthosvm?: AnthosVMMembershipState;
719
692
  /** Appdevexperience specific state. */
720
693
  appdevexperience?: AppDevExperienceFeatureState;
721
694
  /** Config Management-specific state. */
@@ -733,12 +706,6 @@ declare namespace gapi.client {
733
706
  /** Output only. The current state of the Membership resource. */
734
707
  code?: string;
735
708
  }
736
- // tslint:disable-next-line:no-empty-interface
737
- interface MigrateSpec {
738
- }
739
- // tslint:disable-next-line:no-empty-interface
740
- interface MigrateState {
741
- }
742
709
  interface MultiCloudCluster {
743
710
  /** Output only. If cluster_missing is set then it denotes that API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster no longer exists. */
744
711
  clusterMissing?: boolean;
@@ -892,12 +859,6 @@ declare namespace gapi.client {
892
859
  /** Output only. Status of data plane management. */
893
860
  dataPlaneManagement?: ServiceMeshDataPlaneManagement;
894
861
  }
895
- // tslint:disable-next-line:no-empty-interface
896
- interface ServiceMeshSpec {
897
- }
898
- // tslint:disable-next-line:no-empty-interface
899
- interface ServiceMeshState {
900
- }
901
862
  interface ServiceMeshStatusDetails {
902
863
  /** A machine-readable code that further describes a broad status. */
903
864
  code?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1",
3
- "version": "0.0.20221018",
3
+ "version": "0.0.20221108",
4
4
  "description": "TypeScript typings for GKE Hub API v1",
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: 20221018
6
+ // Revision: 20221108
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -53,17 +53,6 @@ gapi.load('client', async () => {
53
53
  },
54
54
  membershipSpecs: {
55
55
  A: {
56
- anthosvm: {
57
- subfeaturesSpec: [
58
- {
59
- enabled: true,
60
- migrateSpec: {
61
- },
62
- serviceMeshSpec: {
63
- },
64
- }
65
- ],
66
- },
67
56
  configmanagement: {
68
57
  configSync: {
69
58
  allowVerticalScale: true,
@@ -116,6 +105,13 @@ gapi.load('client', async () => {
116
105
  identityservice: {
117
106
  authMethods: [
118
107
  {
108
+ azureadConfig: {
109
+ clientId: "Test string",
110
+ clientSecret: "Test string",
111
+ encryptedClientSecret: "Test string",
112
+ kubectlRedirectUri: "Test string",
113
+ tenant: "Test string",
114
+ },
119
115
  googleConfig: {
120
116
  disable: true,
121
117
  },
@@ -148,22 +144,6 @@ gapi.load('client', async () => {
148
144
  },
149
145
  membershipStates: {
150
146
  A: {
151
- anthosvm: {
152
- localControllerState: {
153
- description: "Test string",
154
- installationState: "Test string",
155
- },
156
- subfeatureState: [
157
- {
158
- description: "Test string",
159
- installationState: "Test string",
160
- migrateState: {
161
- },
162
- serviceMeshState: {
163
- },
164
- }
165
- ],
166
- },
167
147
  appdevexperience: {
168
148
  networkingInstallSucceeded: {
169
149
  code: "Test string",
@@ -303,6 +283,13 @@ gapi.load('client', async () => {
303
283
  memberConfig: {
304
284
  authMethods: [
305
285
  {
286
+ azureadConfig: {
287
+ clientId: "Test string",
288
+ clientSecret: "Test string",
289
+ encryptedClientSecret: "Test string",
290
+ kubectlRedirectUri: "Test string",
291
+ tenant: "Test string",
292
+ },
306
293
  googleConfig: {
307
294
  disable: true,
308
295
  },
@@ -435,17 +422,6 @@ gapi.load('client', async () => {
435
422
  },
436
423
  membershipSpecs: {
437
424
  A: {
438
- anthosvm: {
439
- subfeaturesSpec: [
440
- {
441
- enabled: true,
442
- migrateSpec: {
443
- },
444
- serviceMeshSpec: {
445
- },
446
- }
447
- ],
448
- },
449
425
  configmanagement: {
450
426
  configSync: {
451
427
  allowVerticalScale: true,
@@ -498,6 +474,13 @@ gapi.load('client', async () => {
498
474
  identityservice: {
499
475
  authMethods: [
500
476
  {
477
+ azureadConfig: {
478
+ clientId: "Test string",
479
+ clientSecret: "Test string",
480
+ encryptedClientSecret: "Test string",
481
+ kubectlRedirectUri: "Test string",
482
+ tenant: "Test string",
483
+ },
501
484
  googleConfig: {
502
485
  disable: true,
503
486
  },
@@ -530,22 +513,6 @@ gapi.load('client', async () => {
530
513
  },
531
514
  membershipStates: {
532
515
  A: {
533
- anthosvm: {
534
- localControllerState: {
535
- description: "Test string",
536
- installationState: "Test string",
537
- },
538
- subfeatureState: [
539
- {
540
- description: "Test string",
541
- installationState: "Test string",
542
- migrateState: {
543
- },
544
- serviceMeshState: {
545
- },
546
- }
547
- ],
548
- },
549
516
  appdevexperience: {
550
517
  networkingInstallSucceeded: {
551
518
  code: "Test string",
@@ -685,6 +652,13 @@ gapi.load('client', async () => {
685
652
  memberConfig: {
686
653
  authMethods: [
687
654
  {
655
+ azureadConfig: {
656
+ clientId: "Test string",
657
+ clientSecret: "Test string",
658
+ encryptedClientSecret: "Test string",
659
+ kubectlRedirectUri: "Test string",
660
+ tenant: "Test string",
661
+ },
688
662
  googleConfig: {
689
663
  disable: true,
690
664
  },