@maxim_mazurok/gapi.client.gkehub-v1alpha 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.
Files changed (3) hide show
  1. package/index.d.ts +55 -59
  2. package/package.json +1 -1
  3. package/tests.ts +71 -57
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=v1alpha
12
- // Revision: 20220923
12
+ // Revision: 20221031
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -34,37 +34,6 @@ declare namespace gapi.client {
34
34
  /** the version of stackdriver operator used by this feature */
35
35
  version?: string;
36
36
  }
37
- interface AnthosVMMembershipSpec {
38
- /** List of configurations of the Anthos For VM subfeatures that are to be enabled */
39
- subfeaturesSpec?: AnthosVMSubFeatureSpec[];
40
- }
41
- interface AnthosVMMembershipState {
42
- /** State of the local PE-controller inside the cluster */
43
- localControllerState?: LocalControllerState;
44
- /** List of AnthosVM subfeature states */
45
- subfeatureState?: AnthosVMSubFeatureState[];
46
- }
47
- interface AnthosVMSubFeatureSpec {
48
- /**
49
- * 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
50
- * false, the oneof spec if present will be ignored and nothing will be installed in the cluster.
51
- */
52
- enabled?: boolean;
53
- /** MigrateSpec repsents the configuration for Migrate subfeature. */
54
- migrateSpec?: any;
55
- /** ServiceMeshSpec repsents the configuration for Service Mesh subfeature. */
56
- serviceMeshSpec?: any;
57
- }
58
- interface AnthosVMSubFeatureState {
59
- /** Description represents human readable description of the subfeature state. If the deployment failed, this should also contain the reason for the failure. */
60
- description?: string;
61
- /** InstallationState represents the state of installation of the subfeature in the cluster. */
62
- installationState?: string;
63
- /** MigrateState represents the state of the Migrate subfeature. */
64
- migrateState?: any;
65
- /** ServiceMeshState represents the state of the Service Mesh subfeature. */
66
- serviceMeshState?: any;
67
- }
68
37
  // tslint:disable-next-line:no-empty-interface
69
38
  interface AppDevExperienceFeatureSpec {
70
39
  }
@@ -161,6 +130,8 @@ declare namespace gapi.client {
161
130
  appdevexperience?: any;
162
131
  /** Cloud Audit Logging-specific spec. */
163
132
  cloudauditlogging?: CloudAuditLoggingFeatureSpec;
133
+ /** FleetObservability feature spec. */
134
+ fleetobservability?: any;
164
135
  /** Multicluster Ingress-specific spec. */
165
136
  multiclusteringress?: MultiClusterIngressFeatureSpec;
166
137
  /** Workload Certificate spec. */
@@ -169,6 +140,8 @@ declare namespace gapi.client {
169
140
  interface CommonFeatureState {
170
141
  /** Appdevexperience specific state. */
171
142
  appdevexperience?: AppDevExperienceFeatureState;
143
+ /** FleetObservability feature state. */
144
+ fleetobservability?: any;
172
145
  /** Service Mesh-specific state. */
173
146
  servicemesh?: ServiceMeshFeatureState;
174
147
  /** Output only. The "running state" of the Feature in this Hub. */
@@ -474,6 +447,19 @@ declare namespace gapi.client {
474
447
  name?: string;
475
448
  /** Output only. State of the Feature resource itself. */
476
449
  resourceState?: FeatureResourceState;
450
+ /**
451
+ * 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
452
+ * 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.
453
+ * {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
454
+ * 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
455
+ * mutating a Feature.
456
+ */
457
+ scopeSpecs?: { [P in string]: any };
458
+ /**
459
+ * 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:
460
+ * `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.
461
+ */
462
+ scopeStates?: { [P in string]: ScopeFeatureState };
477
463
  /** Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. */
478
464
  spec?: CommonFeatureSpec;
479
465
  /** Output only. The Hub-wide Feature state. */
@@ -528,6 +514,18 @@ declare namespace gapi.client {
528
514
  /** Output only. The current state of the Fleet resource. */
529
515
  code?: string;
530
516
  }
517
+ // tslint:disable-next-line:no-empty-interface
518
+ interface FleetObservabilityFeatureSpec {
519
+ }
520
+ // tslint:disable-next-line:no-empty-interface
521
+ interface FleetObservabilityFeatureState {
522
+ }
523
+ // tslint:disable-next-line:no-empty-interface
524
+ interface FleetObservabilityMembershipSpec {
525
+ }
526
+ // tslint:disable-next-line:no-empty-interface
527
+ interface FleetObservabilityMembershipState {
528
+ }
531
529
  interface GenerateConnectManifestResponse {
532
530
  /** The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade. */
533
531
  manifest?: ConnectAgentResource[];
@@ -553,6 +551,8 @@ declare namespace gapi.client {
553
551
  message?: string;
554
552
  }
555
553
  interface IdentityServiceAuthMethod {
554
+ /** AzureAD specific Configuration. */
555
+ azureadConfig?: IdentityServiceAzureADConfig;
556
556
  /** GoogleConfig specific configuration */
557
557
  googleConfig?: IdentityServiceGoogleConfig;
558
558
  /** Identifier for auth config. */
@@ -562,6 +562,18 @@ declare namespace gapi.client {
562
562
  /** Proxy server address to use for auth method. */
563
563
  proxy?: string;
564
564
  }
565
+ interface IdentityServiceAzureADConfig {
566
+ /** ID for the registered client application that makes authentication requests to the Azure AD identity provider. */
567
+ clientId?: string;
568
+ /** Input only. Unencrypted AzureAD client secret will be passed to the GKE Hub CLH. */
569
+ clientSecret?: string;
570
+ /** Output only. Encrypted AzureAD client secret. */
571
+ encryptedClientSecret?: string;
572
+ /** The redirect URL that kubectl uses for authorization. */
573
+ kubectlRedirectUri?: string;
574
+ /** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
575
+ tenant?: string;
576
+ }
565
577
  interface IdentityServiceGoogleConfig {
566
578
  /** Disable automatic configuration of Google Plugin on supported platforms. */
567
579
  disable?: boolean;
@@ -692,12 +704,6 @@ declare namespace gapi.client {
692
704
  /** A list of operations that matches the specified filter in the request. */
693
705
  operations?: Operation[];
694
706
  }
695
- interface LocalControllerState {
696
- /** Description represents the human readable description of the current state of the local PE controller */
697
- description?: string;
698
- /** InstallationState represents the state of deployment of the local PE controller in the cluster. */
699
- installationState?: string;
700
- }
701
707
  interface Location {
702
708
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
703
709
  displayName?: string;
@@ -775,12 +781,12 @@ declare namespace gapi.client {
775
781
  interface MembershipFeatureSpec {
776
782
  /** Anthos Observability-specific spec */
777
783
  anthosobservability?: AnthosObservabilityMembershipSpec;
778
- /** AnthosVM spec. */
779
- anthosvm?: AnthosVMMembershipSpec;
780
784
  /** Cloud Build-specific spec */
781
785
  cloudbuild?: CloudBuildMembershipSpec;
782
786
  /** Config Management-specific spec. */
783
787
  configmanagement?: ConfigManagementMembershipSpec;
788
+ /** Fleet observability membership spec */
789
+ fleetobservability?: any;
784
790
  /** Identity Service-specific spec. */
785
791
  identityservice?: IdentityServiceMembershipSpec;
786
792
  /** Anthos Service Mesh-specific spec */
@@ -791,12 +797,12 @@ declare namespace gapi.client {
791
797
  workloadcertificate?: MembershipSpec;
792
798
  }
793
799
  interface MembershipFeatureState {
794
- /** AnthosVM state. */
795
- anthosvm?: AnthosVMMembershipState;
796
800
  /** Appdevexperience specific state. */
797
801
  appdevexperience?: AppDevExperienceFeatureState;
798
802
  /** Config Management-specific state. */
799
803
  configmanagement?: ConfigManagementMembershipState;
804
+ /** Fleet observability membership state. */
805
+ fleetobservability?: any;
800
806
  /** Identity Service-specific state. */
801
807
  identityservice?: IdentityServiceMembershipState;
802
808
  /** Metering-specific state. */
@@ -822,12 +828,6 @@ declare namespace gapi.client {
822
828
  /** The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). */
823
829
  preciseLastMeasuredClusterVcpuCapacity?: number;
824
830
  }
825
- // tslint:disable-next-line:no-empty-interface
826
- interface MigrateSpec {
827
- }
828
- // tslint:disable-next-line:no-empty-interface
829
- interface MigrateState {
830
- }
831
831
  interface MultiCloudCluster {
832
832
  /** 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. */
833
833
  clusterMissing?: boolean;
@@ -954,11 +954,6 @@ declare namespace gapi.client {
954
954
  version?: string;
955
955
  }
956
956
  interface PolicyControllerMembershipState {
957
- /**
958
- * The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed PC on the
959
- * cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.
960
- */
961
- clusterName?: string;
962
957
  /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template library" */
963
958
  componentStates?: { [P in string]: PolicyControllerOnClusterState };
964
959
  /** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
@@ -1004,6 +999,13 @@ declare namespace gapi.client {
1004
999
  */
1005
1000
  v1beta1Crd?: boolean;
1006
1001
  }
1002
+ // tslint:disable-next-line:no-empty-interface
1003
+ interface ScopeFeatureSpec {
1004
+ }
1005
+ interface ScopeFeatureState {
1006
+ /** Output only. The "running state" of the Feature in this Scope. */
1007
+ state?: FeatureState;
1008
+ }
1007
1009
  interface ServiceMeshAnalysisMessage {
1008
1010
  /** A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. */
1009
1011
  args?: { [P in string]: any };
@@ -1059,12 +1061,6 @@ declare namespace gapi.client {
1059
1061
  /** Output only. Status of data plane management. */
1060
1062
  dataPlaneManagement?: ServiceMeshDataPlaneManagement;
1061
1063
  }
1062
- // tslint:disable-next-line:no-empty-interface
1063
- interface ServiceMeshSpec {
1064
- }
1065
- // tslint:disable-next-line:no-empty-interface
1066
- interface ServiceMeshState {
1067
- }
1068
1064
  interface ServiceMeshStatusDetails {
1069
1065
  /** A machine-readable code that further describes a broad status. */
1070
1066
  code?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20220923",
3
+ "version": "0.0.20221031",
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: 20220923
6
+ // Revision: 20221031
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -64,17 +64,6 @@ gapi.load('client', async () => {
64
64
  enableStackdriverOnApplications: true,
65
65
  version: "Test string",
66
66
  },
67
- anthosvm: {
68
- subfeaturesSpec: [
69
- {
70
- enabled: true,
71
- migrateSpec: {
72
- },
73
- serviceMeshSpec: {
74
- },
75
- }
76
- ],
77
- },
78
67
  cloudbuild: {
79
68
  securityPolicy: "Test string",
80
69
  version: "Test string",
@@ -129,9 +118,18 @@ gapi.load('client', async () => {
129
118
  },
130
119
  version: "Test string",
131
120
  },
121
+ fleetobservability: {
122
+ },
132
123
  identityservice: {
133
124
  authMethods: [
134
125
  {
126
+ azureadConfig: {
127
+ clientId: "Test string",
128
+ clientSecret: "Test string",
129
+ encryptedClientSecret: "Test string",
130
+ kubectlRedirectUri: "Test string",
131
+ tenant: "Test string",
132
+ },
135
133
  googleConfig: {
136
134
  disable: true,
137
135
  },
@@ -189,22 +187,6 @@ gapi.load('client', async () => {
189
187
  },
190
188
  membershipStates: {
191
189
  A: {
192
- anthosvm: {
193
- localControllerState: {
194
- description: "Test string",
195
- installationState: "Test string",
196
- },
197
- subfeatureState: [
198
- {
199
- description: "Test string",
200
- installationState: "Test string",
201
- migrateState: {
202
- },
203
- serviceMeshState: {
204
- },
205
- }
206
- ],
207
- },
208
190
  appdevexperience: {
209
191
  networkingInstallSucceeded: {
210
192
  code: "Test string",
@@ -345,12 +327,21 @@ gapi.load('client', async () => {
345
327
  },
346
328
  },
347
329
  },
330
+ fleetobservability: {
331
+ },
348
332
  identityservice: {
349
333
  failureReason: "Test string",
350
334
  installedVersion: "Test string",
351
335
  memberConfig: {
352
336
  authMethods: [
353
337
  {
338
+ azureadConfig: {
339
+ clientId: "Test string",
340
+ clientSecret: "Test string",
341
+ encryptedClientSecret: "Test string",
342
+ kubectlRedirectUri: "Test string",
343
+ tenant: "Test string",
344
+ },
354
345
  googleConfig: {
355
346
  disable: true,
356
347
  },
@@ -382,7 +373,6 @@ gapi.load('client', async () => {
382
373
  preciseLastMeasuredClusterVcpuCapacity: 42,
383
374
  },
384
375
  policycontroller: {
385
- clusterName: "Test string",
386
376
  componentStates: {
387
377
  A: {
388
378
  details: "Test string",
@@ -442,6 +432,19 @@ gapi.load('client', async () => {
442
432
  resourceState: {
443
433
  state: "Test string",
444
434
  },
435
+ scopeSpecs: {
436
+ A: {
437
+ }
438
+ },
439
+ scopeStates: {
440
+ A: {
441
+ state: {
442
+ code: "Test string",
443
+ description: "Test string",
444
+ updateTime: "Test string",
445
+ },
446
+ }
447
+ },
445
448
  spec: {
446
449
  anthosobservability: {
447
450
  defaultMembershipSpec: {
@@ -457,6 +460,8 @@ gapi.load('client', async () => {
457
460
  "Test string"
458
461
  ],
459
462
  },
463
+ fleetobservability: {
464
+ },
460
465
  multiclusteringress: {
461
466
  billing: "Test string",
462
467
  configMembership: "Test string",
@@ -475,6 +480,8 @@ gapi.load('client', async () => {
475
480
  description: "Test string",
476
481
  },
477
482
  },
483
+ fleetobservability: {
484
+ },
478
485
  servicemesh: {
479
486
  analysisMessages: [
480
487
  {
@@ -545,17 +552,6 @@ gapi.load('client', async () => {
545
552
  enableStackdriverOnApplications: true,
546
553
  version: "Test string",
547
554
  },
548
- anthosvm: {
549
- subfeaturesSpec: [
550
- {
551
- enabled: true,
552
- migrateSpec: {
553
- },
554
- serviceMeshSpec: {
555
- },
556
- }
557
- ],
558
- },
559
555
  cloudbuild: {
560
556
  securityPolicy: "Test string",
561
557
  version: "Test string",
@@ -610,9 +606,18 @@ gapi.load('client', async () => {
610
606
  },
611
607
  version: "Test string",
612
608
  },
609
+ fleetobservability: {
610
+ },
613
611
  identityservice: {
614
612
  authMethods: [
615
613
  {
614
+ azureadConfig: {
615
+ clientId: "Test string",
616
+ clientSecret: "Test string",
617
+ encryptedClientSecret: "Test string",
618
+ kubectlRedirectUri: "Test string",
619
+ tenant: "Test string",
620
+ },
616
621
  googleConfig: {
617
622
  disable: true,
618
623
  },
@@ -670,22 +675,6 @@ gapi.load('client', async () => {
670
675
  },
671
676
  membershipStates: {
672
677
  A: {
673
- anthosvm: {
674
- localControllerState: {
675
- description: "Test string",
676
- installationState: "Test string",
677
- },
678
- subfeatureState: [
679
- {
680
- description: "Test string",
681
- installationState: "Test string",
682
- migrateState: {
683
- },
684
- serviceMeshState: {
685
- },
686
- }
687
- ],
688
- },
689
678
  appdevexperience: {
690
679
  networkingInstallSucceeded: {
691
680
  code: "Test string",
@@ -826,12 +815,21 @@ gapi.load('client', async () => {
826
815
  },
827
816
  },
828
817
  },
818
+ fleetobservability: {
819
+ },
829
820
  identityservice: {
830
821
  failureReason: "Test string",
831
822
  installedVersion: "Test string",
832
823
  memberConfig: {
833
824
  authMethods: [
834
825
  {
826
+ azureadConfig: {
827
+ clientId: "Test string",
828
+ clientSecret: "Test string",
829
+ encryptedClientSecret: "Test string",
830
+ kubectlRedirectUri: "Test string",
831
+ tenant: "Test string",
832
+ },
835
833
  googleConfig: {
836
834
  disable: true,
837
835
  },
@@ -863,7 +861,6 @@ gapi.load('client', async () => {
863
861
  preciseLastMeasuredClusterVcpuCapacity: 42,
864
862
  },
865
863
  policycontroller: {
866
- clusterName: "Test string",
867
864
  componentStates: {
868
865
  A: {
869
866
  details: "Test string",
@@ -923,6 +920,19 @@ gapi.load('client', async () => {
923
920
  resourceState: {
924
921
  state: "Test string",
925
922
  },
923
+ scopeSpecs: {
924
+ A: {
925
+ }
926
+ },
927
+ scopeStates: {
928
+ A: {
929
+ state: {
930
+ code: "Test string",
931
+ description: "Test string",
932
+ updateTime: "Test string",
933
+ },
934
+ }
935
+ },
926
936
  spec: {
927
937
  anthosobservability: {
928
938
  defaultMembershipSpec: {
@@ -938,6 +948,8 @@ gapi.load('client', async () => {
938
948
  "Test string"
939
949
  ],
940
950
  },
951
+ fleetobservability: {
952
+ },
941
953
  multiclusteringress: {
942
954
  billing: "Test string",
943
955
  configMembership: "Test string",
@@ -956,6 +968,8 @@ gapi.load('client', async () => {
956
968
  description: "Test string",
957
969
  },
958
970
  },
971
+ fleetobservability: {
972
+ },
959
973
  servicemesh: {
960
974
  analysisMessages: [
961
975
  {