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

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 +41 -7
  2. package/package.json +1 -1
  3. package/tests.ts +43 -3
package/index.d.ts CHANGED
@@ -4,13 +4,12 @@
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
6
6
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 2.8
8
7
 
9
8
  // IMPORTANT
10
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
11
  // Generated from: https://gkehub.googleapis.com/$discovery/rest?version=v1alpha
13
- // Revision: 20220912
12
+ // Revision: 20221018
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -162,6 +161,8 @@ declare namespace gapi.client {
162
161
  appdevexperience?: any;
163
162
  /** Cloud Audit Logging-specific spec. */
164
163
  cloudauditlogging?: CloudAuditLoggingFeatureSpec;
164
+ /** FleetObservability feature spec. */
165
+ fleetobservability?: any;
165
166
  /** Multicluster Ingress-specific spec. */
166
167
  multiclusteringress?: MultiClusterIngressFeatureSpec;
167
168
  /** Workload Certificate spec. */
@@ -170,6 +171,8 @@ declare namespace gapi.client {
170
171
  interface CommonFeatureState {
171
172
  /** Appdevexperience specific state. */
172
173
  appdevexperience?: AppDevExperienceFeatureState;
174
+ /** FleetObservability feature state. */
175
+ fleetobservability?: any;
173
176
  /** Service Mesh-specific state. */
174
177
  servicemesh?: ServiceMeshFeatureState;
175
178
  /** Output only. The "running state" of the Feature in this Hub. */
@@ -475,6 +478,19 @@ declare namespace gapi.client {
475
478
  name?: string;
476
479
  /** Output only. State of the Feature resource itself. */
477
480
  resourceState?: FeatureResourceState;
481
+ /**
482
+ * 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
483
+ * 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.
484
+ * {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
485
+ * 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
486
+ * mutating a Feature.
487
+ */
488
+ scopeSpecs?: { [P in string]: any };
489
+ /**
490
+ * 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:
491
+ * `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.
492
+ */
493
+ scopeStates?: { [P in string]: ScopeFeatureState };
478
494
  /** Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. */
479
495
  spec?: CommonFeatureSpec;
480
496
  /** Output only. The Hub-wide Feature state. */
@@ -529,6 +545,18 @@ declare namespace gapi.client {
529
545
  /** Output only. The current state of the Fleet resource. */
530
546
  code?: string;
531
547
  }
548
+ // tslint:disable-next-line:no-empty-interface
549
+ interface FleetObservabilityFeatureSpec {
550
+ }
551
+ // tslint:disable-next-line:no-empty-interface
552
+ interface FleetObservabilityFeatureState {
553
+ }
554
+ // tslint:disable-next-line:no-empty-interface
555
+ interface FleetObservabilityMembershipSpec {
556
+ }
557
+ // tslint:disable-next-line:no-empty-interface
558
+ interface FleetObservabilityMembershipState {
559
+ }
532
560
  interface GenerateConnectManifestResponse {
533
561
  /** The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade. */
534
562
  manifest?: ConnectAgentResource[];
@@ -782,6 +810,8 @@ declare namespace gapi.client {
782
810
  cloudbuild?: CloudBuildMembershipSpec;
783
811
  /** Config Management-specific spec. */
784
812
  configmanagement?: ConfigManagementMembershipSpec;
813
+ /** Fleet observability membership spec */
814
+ fleetobservability?: any;
785
815
  /** Identity Service-specific spec. */
786
816
  identityservice?: IdentityServiceMembershipSpec;
787
817
  /** Anthos Service Mesh-specific spec */
@@ -798,6 +828,8 @@ declare namespace gapi.client {
798
828
  appdevexperience?: AppDevExperienceFeatureState;
799
829
  /** Config Management-specific state. */
800
830
  configmanagement?: ConfigManagementMembershipState;
831
+ /** Fleet observability membership state. */
832
+ fleetobservability?: any;
801
833
  /** Identity Service-specific state. */
802
834
  identityservice?: IdentityServiceMembershipState;
803
835
  /** Metering-specific state. */
@@ -955,11 +987,6 @@ declare namespace gapi.client {
955
987
  version?: string;
956
988
  }
957
989
  interface PolicyControllerMembershipState {
958
- /**
959
- * 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
960
- * cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.
961
- */
962
- clusterName?: string;
963
990
  /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template library" */
964
991
  componentStates?: { [P in string]: PolicyControllerOnClusterState };
965
992
  /** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
@@ -1005,6 +1032,13 @@ declare namespace gapi.client {
1005
1032
  */
1006
1033
  v1beta1Crd?: boolean;
1007
1034
  }
1035
+ // tslint:disable-next-line:no-empty-interface
1036
+ interface ScopeFeatureSpec {
1037
+ }
1038
+ interface ScopeFeatureState {
1039
+ /** Output only. The "running state" of the Feature in this Scope. */
1040
+ state?: FeatureState;
1041
+ }
1008
1042
  interface ServiceMeshAnalysisMessage {
1009
1043
  /** A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. */
1010
1044
  args?: { [P in string]: any };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20220912",
3
+ "version": "0.0.20221018",
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: 20220912
6
+ // Revision: 20221018
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -129,6 +129,8 @@ gapi.load('client', async () => {
129
129
  },
130
130
  version: "Test string",
131
131
  },
132
+ fleetobservability: {
133
+ },
132
134
  identityservice: {
133
135
  authMethods: [
134
136
  {
@@ -345,6 +347,8 @@ gapi.load('client', async () => {
345
347
  },
346
348
  },
347
349
  },
350
+ fleetobservability: {
351
+ },
348
352
  identityservice: {
349
353
  failureReason: "Test string",
350
354
  installedVersion: "Test string",
@@ -382,7 +386,6 @@ gapi.load('client', async () => {
382
386
  preciseLastMeasuredClusterVcpuCapacity: 42,
383
387
  },
384
388
  policycontroller: {
385
- clusterName: "Test string",
386
389
  componentStates: {
387
390
  A: {
388
391
  details: "Test string",
@@ -442,6 +445,19 @@ gapi.load('client', async () => {
442
445
  resourceState: {
443
446
  state: "Test string",
444
447
  },
448
+ scopeSpecs: {
449
+ A: {
450
+ }
451
+ },
452
+ scopeStates: {
453
+ A: {
454
+ state: {
455
+ code: "Test string",
456
+ description: "Test string",
457
+ updateTime: "Test string",
458
+ },
459
+ }
460
+ },
445
461
  spec: {
446
462
  anthosobservability: {
447
463
  defaultMembershipSpec: {
@@ -457,6 +473,8 @@ gapi.load('client', async () => {
457
473
  "Test string"
458
474
  ],
459
475
  },
476
+ fleetobservability: {
477
+ },
460
478
  multiclusteringress: {
461
479
  billing: "Test string",
462
480
  configMembership: "Test string",
@@ -475,6 +493,8 @@ gapi.load('client', async () => {
475
493
  description: "Test string",
476
494
  },
477
495
  },
496
+ fleetobservability: {
497
+ },
478
498
  servicemesh: {
479
499
  analysisMessages: [
480
500
  {
@@ -610,6 +630,8 @@ gapi.load('client', async () => {
610
630
  },
611
631
  version: "Test string",
612
632
  },
633
+ fleetobservability: {
634
+ },
613
635
  identityservice: {
614
636
  authMethods: [
615
637
  {
@@ -826,6 +848,8 @@ gapi.load('client', async () => {
826
848
  },
827
849
  },
828
850
  },
851
+ fleetobservability: {
852
+ },
829
853
  identityservice: {
830
854
  failureReason: "Test string",
831
855
  installedVersion: "Test string",
@@ -863,7 +887,6 @@ gapi.load('client', async () => {
863
887
  preciseLastMeasuredClusterVcpuCapacity: 42,
864
888
  },
865
889
  policycontroller: {
866
- clusterName: "Test string",
867
890
  componentStates: {
868
891
  A: {
869
892
  details: "Test string",
@@ -923,6 +946,19 @@ gapi.load('client', async () => {
923
946
  resourceState: {
924
947
  state: "Test string",
925
948
  },
949
+ scopeSpecs: {
950
+ A: {
951
+ }
952
+ },
953
+ scopeStates: {
954
+ A: {
955
+ state: {
956
+ code: "Test string",
957
+ description: "Test string",
958
+ updateTime: "Test string",
959
+ },
960
+ }
961
+ },
926
962
  spec: {
927
963
  anthosobservability: {
928
964
  defaultMembershipSpec: {
@@ -938,6 +974,8 @@ gapi.load('client', async () => {
938
974
  "Test string"
939
975
  ],
940
976
  },
977
+ fleetobservability: {
978
+ },
941
979
  multiclusteringress: {
942
980
  billing: "Test string",
943
981
  configMembership: "Test string",
@@ -956,6 +994,8 @@ gapi.load('client', async () => {
956
994
  description: "Test string",
957
995
  },
958
996
  },
997
+ fleetobservability: {
998
+ },
959
999
  servicemesh: {
960
1000
  analysisMessages: [
961
1001
  {