@maxim_mazurok/gapi.client.workloadmanager-v1 0.1.20251210 → 0.1.20260121

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 (2) hide show
  1. package/index.d.ts +107 -10
  2. package/package.json +1 -1
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://workloadmanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20251210
12
+ // Revision: 20260121
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -139,10 +139,22 @@ declare namespace gapi.client {
139
139
  /** ShellCommand is invoked via the agent's command line executor. */
140
140
  shellCommand?: ShellCommand;
141
141
  }
142
+ interface ComponentHealth {
143
+ /** The component of a workload. */
144
+ component?: string;
145
+ /** The detailed health checks of the component. */
146
+ componentHealthChecks?: HealthCheck[];
147
+ /** Output only. The type of the component health. */
148
+ componentHealthType?: string;
149
+ /** Output only. The health state of the component. */
150
+ state?: string;
151
+ /** Sub component health. */
152
+ subComponentsHealth?: ComponentHealth[];
153
+ }
142
154
  interface DatabaseProperties {
143
155
  /** Output only. Backup properties. */
144
156
  backupProperties?: BackupProperties;
145
- /** Output only. Type of the database. HANA, DB2, etc. */
157
+ /** Output only. Type of the database. `HANA`, `DB2`, etc. */
146
158
  databaseType?: string;
147
159
  }
148
160
  interface Empty {}
@@ -223,7 +235,7 @@ declare namespace gapi.client {
223
235
  violationMessage?: string;
224
236
  }
225
237
  interface ExternalDataSources {
226
- /** Required. The asset type of the external data source this can be one of go/cai-asset-types to override the default asset type or it can be a custom type defined by the user custom type must match the asset type in the rule */
238
+ /** Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user. */
227
239
  assetType?: string;
228
240
  /** Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data */
229
241
  name?: string;
@@ -236,6 +248,18 @@ declare namespace gapi.client {
236
248
  /** Service account of compute engine */
237
249
  serviceAccounts?: string[];
238
250
  }
251
+ interface HealthCheck {
252
+ /** Output only. The message of the health check. */
253
+ message?: string;
254
+ /** Output only. The health check source metric name. */
255
+ metric?: string;
256
+ /** Output only. The resource the check performs on. */
257
+ resource?: CloudResource;
258
+ /** Output only. The source of the health check. */
259
+ source?: string;
260
+ /** Output only. The state of the health check. */
261
+ state?: string;
262
+ }
239
263
  interface IAMPermission {
240
264
  /** Output only. Whether the permission is granted. */
241
265
  granted?: boolean;
@@ -464,6 +488,12 @@ declare namespace gapi.client {
464
488
  /** Output only. The execution status */
465
489
  state?: string;
466
490
  }
491
+ interface RuleOutput {
492
+ /** Output only. Violation details generated by rule. */
493
+ details?: {[P in string]: string};
494
+ /** Output only. The message generated by rule. */
495
+ message?: string;
496
+ }
467
497
  interface RunEvaluationRequest {
468
498
  /** Required. The resource being created */
469
499
  execution?: Execution;
@@ -475,7 +505,7 @@ declare namespace gapi.client {
475
505
  interface SapComponent {
476
506
  /** Output only. All instance properties. */
477
507
  databaseProperties?: DatabaseProperties;
478
- /** A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA. */
508
+ /** List of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA. */
479
509
  haHosts?: string[];
480
510
  /** Output only. resources in the component */
481
511
  resources?: CloudResource[];
@@ -683,15 +713,15 @@ declare namespace gapi.client {
683
713
  sapValidationType?: string;
684
714
  }
685
715
  interface SapWorkload {
686
- /** Output only. the acsc componment */
716
+ /** Output only. application component */
687
717
  application?: SapComponent;
688
- /** Output only. the architecture */
718
+ /** Output only. The architecture. */
689
719
  architecture?: string;
690
- /** Output only. the database componment */
720
+ /** Output only. database component */
691
721
  database?: SapComponent;
692
722
  /** Output only. The metadata for SAP workload. */
693
723
  metadata?: {[P in string]: string};
694
- /** Output only. the products on this workload. */
724
+ /** Output only. The products on this workload. */
695
725
  products?: Product[];
696
726
  }
697
727
  interface ScannedResource {
@@ -767,7 +797,7 @@ declare namespace gapi.client {
767
797
  endTime?: string;
768
798
  /** Optional. Maintenance status */
769
799
  maintenanceStatus?: string;
770
- /** Optional. Instance maintenance behavior. Could be "MIGRATE" or "TERMINATE". */
800
+ /** Optional. Instance maintenance behavior. Could be `MIGRATE` or `TERMINATE`. */
771
801
  onHostMaintenance?: string;
772
802
  /** Optional. Start time */
773
803
  startTime?: string;
@@ -777,8 +807,10 @@ declare namespace gapi.client {
777
807
  interface ViolationDetails {
778
808
  /** The name of the asset. */
779
809
  asset?: string;
780
- /** Details of the violation. TODO(b/452163887) */
810
+ /** Details of the violation. */
781
811
  observed?: {[P in string]: string};
812
+ /** Output only. The rule output of the violation. */
813
+ ruleOutput?: RuleOutput[];
782
814
  /** The service account associated with the resource. */
783
815
  serviceAccount?: string;
784
816
  }
@@ -794,6 +826,14 @@ declare namespace gapi.client {
794
826
  /** Required. The type of the workload */
795
827
  workloadType?: string;
796
828
  }
829
+ interface WorkloadProfileHealth {
830
+ /** The time when the health check was performed. */
831
+ checkTime?: string;
832
+ /** The detailed condition reports of each component. */
833
+ componentsHealth?: ComponentHealth[];
834
+ /** Output only. The health state of the workload. */
835
+ state?: string;
836
+ }
797
837
  interface WriteInsightRequest {
798
838
  /** Optional. The agent version collected this data point. */
799
839
  agentVersion?: string;
@@ -803,7 +843,63 @@ declare namespace gapi.client {
803
843
  requestId?: string;
804
844
  }
805
845
  interface WriteInsightResponse {}
846
+ interface HealthResource {
847
+ /** Get the health of a discovered workload profile. */
848
+ get(request?: {
849
+ /** V1 error format. */
850
+ '$.xgafv'?: string;
851
+ /** OAuth access token. */
852
+ access_token?: string;
853
+ /** Data format for response. */
854
+ alt?: string;
855
+ /** JSONP */
856
+ callback?: string;
857
+ /** Selector specifying which fields to include in a partial response. */
858
+ fields?: string;
859
+ /** 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. */
860
+ key?: string;
861
+ /** Required. The resource name */
862
+ name: string;
863
+ /** OAuth 2.0 token for the current user. */
864
+ oauth_token?: string;
865
+ /** Returns response with indentations and line breaks. */
866
+ prettyPrint?: boolean;
867
+ /** 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. */
868
+ quotaUser?: string;
869
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
870
+ upload_protocol?: string;
871
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
872
+ uploadType?: string;
873
+ }): Request<WorkloadProfileHealth>;
874
+ }
806
875
  interface DiscoveredprofilesResource {
876
+ /** Gets details of a discovered workload profile. */
877
+ get(request?: {
878
+ /** V1 error format. */
879
+ '$.xgafv'?: string;
880
+ /** OAuth access token. */
881
+ access_token?: string;
882
+ /** Data format for response. */
883
+ alt?: string;
884
+ /** JSONP */
885
+ callback?: string;
886
+ /** Selector specifying which fields to include in a partial response. */
887
+ fields?: string;
888
+ /** 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. */
889
+ key?: string;
890
+ /** Required. Name of the resource */
891
+ name: string;
892
+ /** OAuth 2.0 token for the current user. */
893
+ oauth_token?: string;
894
+ /** Returns response with indentations and line breaks. */
895
+ prettyPrint?: boolean;
896
+ /** 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. */
897
+ quotaUser?: string;
898
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
899
+ upload_protocol?: string;
900
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
901
+ uploadType?: string;
902
+ }): Request<WorkloadProfile>;
807
903
  /** List discovered workload profiles */
808
904
  list(request?: {
809
905
  /** V1 error format. */
@@ -837,6 +933,7 @@ declare namespace gapi.client {
837
933
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
838
934
  uploadType?: string;
839
935
  }): Request<ListDiscoveredProfilesResponse>;
936
+ health: HealthResource;
840
937
  }
841
938
  interface ResultsResource {
842
939
  /** Lists the result of a single evaluation. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workloadmanager-v1",
3
- "version": "0.1.20251210",
3
+ "version": "0.1.20260121",
4
4
  "description": "TypeScript typings for Workload Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",