@maxim_mazurok/gapi.client.gkehub-v1 0.0.20220923 → 0.0.20221031
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 +55 -54
- package/package.json +1 -1
- package/tests.ts +71 -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:
|
|
12
|
+
// Revision: 20221031
|
|
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
|
}
|
|
@@ -132,12 +101,16 @@ declare namespace gapi.client {
|
|
|
132
101
|
interface CommonFeatureSpec {
|
|
133
102
|
/** Appdevexperience specific spec. */
|
|
134
103
|
appdevexperience?: any;
|
|
104
|
+
/** FleetObservability feature spec. */
|
|
105
|
+
fleetobservability?: any;
|
|
135
106
|
/** Multicluster Ingress-specific spec. */
|
|
136
107
|
multiclusteringress?: MultiClusterIngressFeatureSpec;
|
|
137
108
|
}
|
|
138
109
|
interface CommonFeatureState {
|
|
139
110
|
/** Appdevexperience specific state. */
|
|
140
111
|
appdevexperience?: AppDevExperienceFeatureState;
|
|
112
|
+
/** FleetObservability feature state. */
|
|
113
|
+
fleetobservability?: any;
|
|
141
114
|
/** Output only. The "running state" of the Feature in this Hub. */
|
|
142
115
|
state?: FeatureState;
|
|
143
116
|
}
|
|
@@ -423,6 +396,19 @@ declare namespace gapi.client {
|
|
|
423
396
|
name?: string;
|
|
424
397
|
/** Output only. State of the Feature resource itself. */
|
|
425
398
|
resourceState?: FeatureResourceState;
|
|
399
|
+
/**
|
|
400
|
+
* Optional. Scope-specific configuration for this Feature. If this Feature does not support any per-Scope configuration, this field may be unused. The keys indicate which Scope the
|
|
401
|
+
* configuration is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.
|
|
402
|
+
* {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope is specified in the map twice (using the project ID form, and
|
|
403
|
+
* the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when
|
|
404
|
+
* mutating a Feature.
|
|
405
|
+
*/
|
|
406
|
+
scopeSpecs?: { [P in string]: any };
|
|
407
|
+
/**
|
|
408
|
+
* Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form:
|
|
409
|
+
* `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.
|
|
410
|
+
*/
|
|
411
|
+
scopeStates?: { [P in string]: ScopeFeatureState };
|
|
426
412
|
/** Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. */
|
|
427
413
|
spec?: CommonFeatureSpec;
|
|
428
414
|
/** Output only. The Hub-wide Feature state. */
|
|
@@ -442,6 +428,18 @@ declare namespace gapi.client {
|
|
|
442
428
|
/** The time this status and any related Feature-specific details were updated. */
|
|
443
429
|
updateTime?: string;
|
|
444
430
|
}
|
|
431
|
+
// tslint:disable-next-line:no-empty-interface
|
|
432
|
+
interface FleetObservabilityFeatureSpec {
|
|
433
|
+
}
|
|
434
|
+
// tslint:disable-next-line:no-empty-interface
|
|
435
|
+
interface FleetObservabilityFeatureState {
|
|
436
|
+
}
|
|
437
|
+
// tslint:disable-next-line:no-empty-interface
|
|
438
|
+
interface FleetObservabilityMembershipSpec {
|
|
439
|
+
}
|
|
440
|
+
// tslint:disable-next-line:no-empty-interface
|
|
441
|
+
interface FleetObservabilityMembershipState {
|
|
442
|
+
}
|
|
445
443
|
interface GenerateConnectManifestResponse {
|
|
446
444
|
/** The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade. */
|
|
447
445
|
manifest?: ConnectAgentResource[];
|
|
@@ -467,6 +465,8 @@ declare namespace gapi.client {
|
|
|
467
465
|
message?: string;
|
|
468
466
|
}
|
|
469
467
|
interface IdentityServiceAuthMethod {
|
|
468
|
+
/** AzureAD specific Configuration. */
|
|
469
|
+
azureadConfig?: IdentityServiceAzureADConfig;
|
|
470
470
|
/** GoogleConfig specific configuration */
|
|
471
471
|
googleConfig?: IdentityServiceGoogleConfig;
|
|
472
472
|
/** Identifier for auth config. */
|
|
@@ -476,6 +476,18 @@ declare namespace gapi.client {
|
|
|
476
476
|
/** Proxy server address to use for auth method. */
|
|
477
477
|
proxy?: string;
|
|
478
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
|
+
}
|
|
479
491
|
interface IdentityServiceGoogleConfig {
|
|
480
492
|
/** Disable automatic configuration of Google Plugin on supported platforms. */
|
|
481
493
|
disable?: boolean;
|
|
@@ -592,12 +604,6 @@ declare namespace gapi.client {
|
|
|
592
604
|
/** A list of operations that matches the specified filter in the request. */
|
|
593
605
|
operations?: Operation[];
|
|
594
606
|
}
|
|
595
|
-
interface LocalControllerState {
|
|
596
|
-
/** Description represents the human readable description of the current state of the local PE controller */
|
|
597
|
-
description?: string;
|
|
598
|
-
/** InstallationState represents the state of deployment of the local PE controller in the cluster. */
|
|
599
|
-
installationState?: string;
|
|
600
|
-
}
|
|
601
607
|
interface Location {
|
|
602
608
|
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
603
609
|
displayName?: string;
|
|
@@ -673,22 +679,22 @@ declare namespace gapi.client {
|
|
|
673
679
|
onPremCluster?: OnPremCluster;
|
|
674
680
|
}
|
|
675
681
|
interface MembershipFeatureSpec {
|
|
676
|
-
/** AnthosVM spec. */
|
|
677
|
-
anthosvm?: AnthosVMMembershipSpec;
|
|
678
682
|
/** Config Management-specific spec. */
|
|
679
683
|
configmanagement?: ConfigManagementMembershipSpec;
|
|
684
|
+
/** Fleet observability membership spec */
|
|
685
|
+
fleetobservability?: any;
|
|
680
686
|
/** Identity Service-specific spec. */
|
|
681
687
|
identityservice?: IdentityServiceMembershipSpec;
|
|
682
688
|
/** Anthos Service Mesh-specific spec */
|
|
683
689
|
mesh?: ServiceMeshMembershipSpec;
|
|
684
690
|
}
|
|
685
691
|
interface MembershipFeatureState {
|
|
686
|
-
/** AnthosVM state. */
|
|
687
|
-
anthosvm?: AnthosVMMembershipState;
|
|
688
692
|
/** Appdevexperience specific state. */
|
|
689
693
|
appdevexperience?: AppDevExperienceFeatureState;
|
|
690
694
|
/** Config Management-specific state. */
|
|
691
695
|
configmanagement?: ConfigManagementMembershipState;
|
|
696
|
+
/** Fleet observability membership state. */
|
|
697
|
+
fleetobservability?: any;
|
|
692
698
|
/** Identity Service-specific state. */
|
|
693
699
|
identityservice?: IdentityServiceMembershipState;
|
|
694
700
|
/** Service Mesh-specific state. */
|
|
@@ -700,12 +706,6 @@ declare namespace gapi.client {
|
|
|
700
706
|
/** Output only. The current state of the Membership resource. */
|
|
701
707
|
code?: string;
|
|
702
708
|
}
|
|
703
|
-
// tslint:disable-next-line:no-empty-interface
|
|
704
|
-
interface MigrateSpec {
|
|
705
|
-
}
|
|
706
|
-
// tslint:disable-next-line:no-empty-interface
|
|
707
|
-
interface MigrateState {
|
|
708
|
-
}
|
|
709
709
|
interface MultiCloudCluster {
|
|
710
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. */
|
|
711
711
|
clusterMissing?: boolean;
|
|
@@ -828,6 +828,13 @@ declare namespace gapi.client {
|
|
|
828
828
|
*/
|
|
829
829
|
v1beta1Crd?: boolean;
|
|
830
830
|
}
|
|
831
|
+
// tslint:disable-next-line:no-empty-interface
|
|
832
|
+
interface ScopeFeatureSpec {
|
|
833
|
+
}
|
|
834
|
+
interface ScopeFeatureState {
|
|
835
|
+
/** Output only. The "running state" of the Feature in this Scope. */
|
|
836
|
+
state?: FeatureState;
|
|
837
|
+
}
|
|
831
838
|
interface ServiceMeshControlPlaneManagement {
|
|
832
839
|
/** Explanation of state. */
|
|
833
840
|
details?: ServiceMeshStatusDetails[];
|
|
@@ -852,12 +859,6 @@ declare namespace gapi.client {
|
|
|
852
859
|
/** Output only. Status of data plane management. */
|
|
853
860
|
dataPlaneManagement?: ServiceMeshDataPlaneManagement;
|
|
854
861
|
}
|
|
855
|
-
// tslint:disable-next-line:no-empty-interface
|
|
856
|
-
interface ServiceMeshSpec {
|
|
857
|
-
}
|
|
858
|
-
// tslint:disable-next-line:no-empty-interface
|
|
859
|
-
interface ServiceMeshState {
|
|
860
|
-
}
|
|
861
862
|
interface ServiceMeshStatusDetails {
|
|
862
863
|
/** A machine-readable code that further describes a broad status. */
|
|
863
864
|
code?: string;
|
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: 20221031
|
|
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,
|
|
@@ -111,9 +100,18 @@ gapi.load('client', async () => {
|
|
|
111
100
|
},
|
|
112
101
|
version: "Test string",
|
|
113
102
|
},
|
|
103
|
+
fleetobservability: {
|
|
104
|
+
},
|
|
114
105
|
identityservice: {
|
|
115
106
|
authMethods: [
|
|
116
107
|
{
|
|
108
|
+
azureadConfig: {
|
|
109
|
+
clientId: "Test string",
|
|
110
|
+
clientSecret: "Test string",
|
|
111
|
+
encryptedClientSecret: "Test string",
|
|
112
|
+
kubectlRedirectUri: "Test string",
|
|
113
|
+
tenant: "Test string",
|
|
114
|
+
},
|
|
117
115
|
googleConfig: {
|
|
118
116
|
disable: true,
|
|
119
117
|
},
|
|
@@ -146,22 +144,6 @@ gapi.load('client', async () => {
|
|
|
146
144
|
},
|
|
147
145
|
membershipStates: {
|
|
148
146
|
A: {
|
|
149
|
-
anthosvm: {
|
|
150
|
-
localControllerState: {
|
|
151
|
-
description: "Test string",
|
|
152
|
-
installationState: "Test string",
|
|
153
|
-
},
|
|
154
|
-
subfeatureState: [
|
|
155
|
-
{
|
|
156
|
-
description: "Test string",
|
|
157
|
-
installationState: "Test string",
|
|
158
|
-
migrateState: {
|
|
159
|
-
},
|
|
160
|
-
serviceMeshState: {
|
|
161
|
-
},
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
},
|
|
165
147
|
appdevexperience: {
|
|
166
148
|
networkingInstallSucceeded: {
|
|
167
149
|
code: "Test string",
|
|
@@ -293,12 +275,21 @@ gapi.load('client', async () => {
|
|
|
293
275
|
},
|
|
294
276
|
},
|
|
295
277
|
},
|
|
278
|
+
fleetobservability: {
|
|
279
|
+
},
|
|
296
280
|
identityservice: {
|
|
297
281
|
failureReason: "Test string",
|
|
298
282
|
installedVersion: "Test string",
|
|
299
283
|
memberConfig: {
|
|
300
284
|
authMethods: [
|
|
301
285
|
{
|
|
286
|
+
azureadConfig: {
|
|
287
|
+
clientId: "Test string",
|
|
288
|
+
clientSecret: "Test string",
|
|
289
|
+
encryptedClientSecret: "Test string",
|
|
290
|
+
kubectlRedirectUri: "Test string",
|
|
291
|
+
tenant: "Test string",
|
|
292
|
+
},
|
|
302
293
|
googleConfig: {
|
|
303
294
|
disable: true,
|
|
304
295
|
},
|
|
@@ -356,9 +347,24 @@ gapi.load('client', async () => {
|
|
|
356
347
|
resourceState: {
|
|
357
348
|
state: "Test string",
|
|
358
349
|
},
|
|
350
|
+
scopeSpecs: {
|
|
351
|
+
A: {
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
scopeStates: {
|
|
355
|
+
A: {
|
|
356
|
+
state: {
|
|
357
|
+
code: "Test string",
|
|
358
|
+
description: "Test string",
|
|
359
|
+
updateTime: "Test string",
|
|
360
|
+
},
|
|
361
|
+
}
|
|
362
|
+
},
|
|
359
363
|
spec: {
|
|
360
364
|
appdevexperience: {
|
|
361
365
|
},
|
|
366
|
+
fleetobservability: {
|
|
367
|
+
},
|
|
362
368
|
multiclusteringress: {
|
|
363
369
|
configMembership: "Test string",
|
|
364
370
|
},
|
|
@@ -370,6 +376,8 @@ gapi.load('client', async () => {
|
|
|
370
376
|
description: "Test string",
|
|
371
377
|
},
|
|
372
378
|
},
|
|
379
|
+
fleetobservability: {
|
|
380
|
+
},
|
|
373
381
|
state: {
|
|
374
382
|
code: "Test string",
|
|
375
383
|
description: "Test string",
|
|
@@ -414,17 +422,6 @@ gapi.load('client', async () => {
|
|
|
414
422
|
},
|
|
415
423
|
membershipSpecs: {
|
|
416
424
|
A: {
|
|
417
|
-
anthosvm: {
|
|
418
|
-
subfeaturesSpec: [
|
|
419
|
-
{
|
|
420
|
-
enabled: true,
|
|
421
|
-
migrateSpec: {
|
|
422
|
-
},
|
|
423
|
-
serviceMeshSpec: {
|
|
424
|
-
},
|
|
425
|
-
}
|
|
426
|
-
],
|
|
427
|
-
},
|
|
428
425
|
configmanagement: {
|
|
429
426
|
configSync: {
|
|
430
427
|
allowVerticalScale: true,
|
|
@@ -472,9 +469,18 @@ gapi.load('client', async () => {
|
|
|
472
469
|
},
|
|
473
470
|
version: "Test string",
|
|
474
471
|
},
|
|
472
|
+
fleetobservability: {
|
|
473
|
+
},
|
|
475
474
|
identityservice: {
|
|
476
475
|
authMethods: [
|
|
477
476
|
{
|
|
477
|
+
azureadConfig: {
|
|
478
|
+
clientId: "Test string",
|
|
479
|
+
clientSecret: "Test string",
|
|
480
|
+
encryptedClientSecret: "Test string",
|
|
481
|
+
kubectlRedirectUri: "Test string",
|
|
482
|
+
tenant: "Test string",
|
|
483
|
+
},
|
|
478
484
|
googleConfig: {
|
|
479
485
|
disable: true,
|
|
480
486
|
},
|
|
@@ -507,22 +513,6 @@ gapi.load('client', async () => {
|
|
|
507
513
|
},
|
|
508
514
|
membershipStates: {
|
|
509
515
|
A: {
|
|
510
|
-
anthosvm: {
|
|
511
|
-
localControllerState: {
|
|
512
|
-
description: "Test string",
|
|
513
|
-
installationState: "Test string",
|
|
514
|
-
},
|
|
515
|
-
subfeatureState: [
|
|
516
|
-
{
|
|
517
|
-
description: "Test string",
|
|
518
|
-
installationState: "Test string",
|
|
519
|
-
migrateState: {
|
|
520
|
-
},
|
|
521
|
-
serviceMeshState: {
|
|
522
|
-
},
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
},
|
|
526
516
|
appdevexperience: {
|
|
527
517
|
networkingInstallSucceeded: {
|
|
528
518
|
code: "Test string",
|
|
@@ -654,12 +644,21 @@ gapi.load('client', async () => {
|
|
|
654
644
|
},
|
|
655
645
|
},
|
|
656
646
|
},
|
|
647
|
+
fleetobservability: {
|
|
648
|
+
},
|
|
657
649
|
identityservice: {
|
|
658
650
|
failureReason: "Test string",
|
|
659
651
|
installedVersion: "Test string",
|
|
660
652
|
memberConfig: {
|
|
661
653
|
authMethods: [
|
|
662
654
|
{
|
|
655
|
+
azureadConfig: {
|
|
656
|
+
clientId: "Test string",
|
|
657
|
+
clientSecret: "Test string",
|
|
658
|
+
encryptedClientSecret: "Test string",
|
|
659
|
+
kubectlRedirectUri: "Test string",
|
|
660
|
+
tenant: "Test string",
|
|
661
|
+
},
|
|
663
662
|
googleConfig: {
|
|
664
663
|
disable: true,
|
|
665
664
|
},
|
|
@@ -717,9 +716,24 @@ gapi.load('client', async () => {
|
|
|
717
716
|
resourceState: {
|
|
718
717
|
state: "Test string",
|
|
719
718
|
},
|
|
719
|
+
scopeSpecs: {
|
|
720
|
+
A: {
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
scopeStates: {
|
|
724
|
+
A: {
|
|
725
|
+
state: {
|
|
726
|
+
code: "Test string",
|
|
727
|
+
description: "Test string",
|
|
728
|
+
updateTime: "Test string",
|
|
729
|
+
},
|
|
730
|
+
}
|
|
731
|
+
},
|
|
720
732
|
spec: {
|
|
721
733
|
appdevexperience: {
|
|
722
734
|
},
|
|
735
|
+
fleetobservability: {
|
|
736
|
+
},
|
|
723
737
|
multiclusteringress: {
|
|
724
738
|
configMembership: "Test string",
|
|
725
739
|
},
|
|
@@ -731,6 +745,8 @@ gapi.load('client', async () => {
|
|
|
731
745
|
description: "Test string",
|
|
732
746
|
},
|
|
733
747
|
},
|
|
748
|
+
fleetobservability: {
|
|
749
|
+
},
|
|
734
750
|
state: {
|
|
735
751
|
code: "Test string",
|
|
736
752
|
description: "Test string",
|