@maxim_mazurok/gapi.client.workloadmanager-v1 0.0.20240117 → 0.0.20240221

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 +322 -1
  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: 20240117
12
+ // Revision: 20240221
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,6 +28,36 @@ declare namespace gapi.client {
28
28
  ): void;
29
29
 
30
30
  namespace workloadmanager {
31
+ interface APILayerServer {
32
+ /** Output only. The api layer name */
33
+ name?: string;
34
+ /** Output only. OS information */
35
+ osVersion?: string;
36
+ /** Output only. resources in the component */
37
+ resources?: CloudResource[];
38
+ }
39
+ interface AvailabilityGroup {
40
+ /** Output only. The databases */
41
+ databases?: string[];
42
+ /** Output only. The availability group name */
43
+ name?: string;
44
+ /** Output only. The primary server */
45
+ primaryServer?: string;
46
+ /** Output only. The secondary servers */
47
+ secondaryServers?: string[];
48
+ }
49
+ interface BackendServer {
50
+ /** Output only. The backup file */
51
+ backupFile?: string;
52
+ /** Output only. The backup schedule */
53
+ backupSchedule?: string;
54
+ /** Output only. The backend name */
55
+ name?: string;
56
+ /** Output only. OS information */
57
+ osVersion?: string;
58
+ /** Output only. resources in the component */
59
+ resources?: CloudResource[];
60
+ }
31
61
  interface BigQueryDestination {
32
62
  /** Optional. determine if results will be saved in a new table */
33
63
  createNewResultsTable?: boolean;
@@ -35,6 +65,28 @@ declare namespace gapi.client {
35
65
  destinationDataset?: string;
36
66
  }
37
67
  interface CancelOperationRequest {}
68
+ interface CloudResource {
69
+ /** Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. */
70
+ kind?: string;
71
+ /** Output only. resource name */
72
+ name?: string;
73
+ }
74
+ interface Cluster {
75
+ /** Output only. The nodes */
76
+ nodes?: string[];
77
+ /** Output only. The witness server */
78
+ witnessServer?: string;
79
+ }
80
+ interface Database {
81
+ /** Output only. The backup file */
82
+ backupFile?: string;
83
+ /** Output only. The backup schedule */
84
+ backupSchedule?: string;
85
+ /** Output only. The host VM */
86
+ hostVm?: string;
87
+ /** Output only. The database name */
88
+ name?: string;
89
+ }
38
90
  interface Empty {}
39
91
  interface Evaluation {
40
92
  /** Optional. BigQuery destination */
@@ -94,6 +146,14 @@ declare namespace gapi.client {
94
146
  /** the violation message of an execution */
95
147
  violationMessage?: string;
96
148
  }
149
+ interface FrontEndServer {
150
+ /** Output only. The frontend name */
151
+ name?: string;
152
+ /** Output only. OS information */
153
+ osVersion?: string;
154
+ /** Output only. resources in the component */
155
+ resources?: CloudResource[];
156
+ }
97
157
  interface GceInstanceFilter {
98
158
  /** Service account of compute engine */
99
159
  serviceAccounts?: string[];
@@ -110,6 +170,24 @@ declare namespace gapi.client {
110
170
  /** The insights data for the sqlserver workload validation. */
111
171
  sqlserverValidation?: SqlserverValidation;
112
172
  }
173
+ interface Instance {
174
+ /** Output only. name of the VM */
175
+ name?: string;
176
+ /** Output only. The location of the VM */
177
+ region?: string;
178
+ /** Output only. The state of the VM */
179
+ status?: string;
180
+ }
181
+ interface Layer {
182
+ /** the application layer */
183
+ applicationType?: string;
184
+ /** Optional. the database layer */
185
+ databaseType?: string;
186
+ /** Optional. instances in a layer */
187
+ instances?: Instance[];
188
+ /** Output only. system identification of a layer */
189
+ sid?: string;
190
+ }
113
191
  interface ListEvaluationsResponse {
114
192
  /** The list of Evaluation */
115
193
  evaluations?: Evaluation[];
@@ -156,6 +234,20 @@ declare namespace gapi.client {
156
234
  /** All scanned resources in response */
157
235
  scannedResources?: ScannedResource[];
158
236
  }
237
+ interface ListWorkloadProfilesResponse {
238
+ /** Output only. A token identifying a page of results the server should return */
239
+ nextPageToken?: string;
240
+ /** Locations that could not be reached. */
241
+ unreachable?: string[];
242
+ /** Output only. The list of Workload Overview */
243
+ workloadOverviews?: WorkloadProfileOverview[];
244
+ }
245
+ interface LoadBalancerServer {
246
+ /** Output only. The IP address */
247
+ ip?: string;
248
+ /** Output only. The VM name */
249
+ vm?: string;
250
+ }
159
251
  interface Location {
160
252
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
161
253
  displayName?: string;
@@ -252,6 +344,12 @@ declare namespace gapi.client {
252
344
  /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
253
345
  requestId?: string;
254
346
  }
347
+ interface SapComponent {
348
+ /** Output only. resources in the component */
349
+ resources?: CloudResource[];
350
+ /** Output only. sid is the sap component identificator */
351
+ sid?: string;
352
+ }
255
353
  interface SapDiscovery {
256
354
  /** Optional. An SAP system may run without an application layer. */
257
355
  applicationLayer?: SapDiscoveryComponent;
@@ -265,6 +363,8 @@ declare namespace gapi.client {
265
363
  systemId?: string;
266
364
  /** Required. Unix timestamp this system has been updated last. */
267
365
  updateTime?: string;
366
+ /** Optional. The properties of the workload. */
367
+ workloadProperties?: SapDiscoveryWorkloadProperties;
268
368
  }
269
369
  interface SapDiscoveryComponent {
270
370
  /** Optional. The component is a SAP application. */
@@ -334,6 +434,28 @@ declare namespace gapi.client {
334
434
  /** Optional. A virtual hostname of the instance if it has one. */
335
435
  virtualHostname?: string;
336
436
  }
437
+ interface SapDiscoveryWorkloadProperties {
438
+ /** Optional. List of SAP Products and their versions running on the system. */
439
+ productVersions?: SapDiscoveryWorkloadPropertiesProductVersion[];
440
+ /** Optional. A list of SAP software components and their versions running on the system. */
441
+ softwareComponentVersions?: SapDiscoveryWorkloadPropertiesSoftwareComponentProperties[];
442
+ }
443
+ interface SapDiscoveryWorkloadPropertiesProductVersion {
444
+ /** Optional. Name of the product. */
445
+ name?: string;
446
+ /** Optional. Version of the product. */
447
+ version?: string;
448
+ }
449
+ interface SapDiscoveryWorkloadPropertiesSoftwareComponentProperties {
450
+ /** Optional. The component's minor version. */
451
+ extVersion?: string;
452
+ /** Optional. Name of the component. */
453
+ name?: string;
454
+ /** Optional. The component's type. */
455
+ type?: string;
456
+ /** Optional. The component's major version. */
457
+ version?: string;
458
+ }
337
459
  interface SapValidation {
338
460
  /** Required. The project_id of the cloud project that the Insight data comes from. */
339
461
  projectId?: string;
@@ -350,6 +472,22 @@ declare namespace gapi.client {
350
472
  /** Optional. The SAP system that the validation data is from. */
351
473
  sapValidationType?: string;
352
474
  }
475
+ interface SapWorkload {
476
+ /** Output only. the acsc componment */
477
+ application?: SapComponent;
478
+ /** Output only. the database componment */
479
+ database?: SapComponent;
480
+ /** Output only. The metadata for SAP workload. */
481
+ metadata?: {[P in string]: string};
482
+ }
483
+ interface SapWorkloadOverview {
484
+ /** Output only. The application SID */
485
+ appSid?: string;
486
+ /** Output only. The database SID */
487
+ dbSid?: string;
488
+ /** Output only. The UUID for a SAP workload */
489
+ sapSystemId?: string;
490
+ }
353
491
  interface ScannedResource {
354
492
  /** resource name */
355
493
  resource?: string;
@@ -376,6 +514,22 @@ declare namespace gapi.client {
376
514
  /** Optional. The Sqlserver system that the validation data is from. */
377
515
  type?: string;
378
516
  }
517
+ interface SqlserverWorkload {
518
+ /** Output only. The availability groups for sqlserver */
519
+ ags?: AvailabilityGroup[];
520
+ /** Output only. The cluster for sqlserver */
521
+ cluster?: Cluster;
522
+ /** Output only. The databases for sqlserver */
523
+ databases?: Database[];
524
+ /** Output only. The load balancer for sqlserver */
525
+ loadBalancerServer?: LoadBalancerServer;
526
+ }
527
+ interface SqlserverWorkloadOverview {
528
+ /** Output only. The availability groups */
529
+ availabilityGroup?: string[];
530
+ /** Output only. The UUID for a Sqlserver workload */
531
+ sqlserverSystemId?: string;
532
+ }
379
533
  interface Status {
380
534
  /** The status code, which should be an enum value of google.rpc.Code. */
381
535
  code?: number;
@@ -384,6 +538,20 @@ declare namespace gapi.client {
384
538
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
385
539
  message?: string;
386
540
  }
541
+ interface ThreeTierWorkload {
542
+ /** Output only. The API layer for three tier workload */
543
+ apiLayer?: APILayerServer;
544
+ /** Output only. The backend for three tier workload */
545
+ backend?: BackendServer;
546
+ /** Output only. the workload endpoint */
547
+ endpoint?: string;
548
+ /** Output only. The frontend for three tier workload */
549
+ frontend?: FrontEndServer;
550
+ }
551
+ interface ThreeTierWorkloadOverview {
552
+ /** Output only. The UUID for a three tier workload */
553
+ threeTierSystemId?: string;
554
+ }
387
555
  interface ViolationDetails {
388
556
  /** the name of asset */
389
557
  asset?: string;
@@ -392,6 +560,38 @@ declare namespace gapi.client {
392
560
  /** the service account associate with resource */
393
561
  serviceAccount?: string;
394
562
  }
563
+ interface WorkloadProfile {
564
+ /** Optional. The application layer */
565
+ application?: Layer;
566
+ /** Optional. The ascs layer */
567
+ ascs?: Layer;
568
+ /** Optional. The database layer */
569
+ database?: Layer;
570
+ /** Optional. such as name, description, version. More example can be found in deployment */
571
+ labels?: {[P in string]: string};
572
+ /** Identifier. name of resource names have the form 'projects/{project_id}/workloads/{workload_id}' */
573
+ name?: string;
574
+ /** Required. time when the workload data was refreshed */
575
+ refreshedTime?: string;
576
+ /** The sap workload content */
577
+ sapWorkload?: SapWorkload;
578
+ /** The sqlserver workload content */
579
+ sqlserverWorkload?: SqlserverWorkload;
580
+ /** Output only. [output only] the current state if a a workload */
581
+ state?: string;
582
+ /** The 3 tier web app workload content */
583
+ threeTierWorkload?: ThreeTierWorkload;
584
+ /** Required. The type of the workload */
585
+ workloadType?: string;
586
+ }
587
+ interface WorkloadProfileOverview {
588
+ /** The sap workload overview */
589
+ sapWorkloadOverview?: SapWorkloadOverview;
590
+ /** The sqlserver workload overview */
591
+ sqlserverWorkloadOverview?: SqlserverWorkloadOverview;
592
+ /** The three tier workload overview */
593
+ threeTierWorkloadOverview?: ThreeTierWorkloadOverview;
594
+ }
395
595
  interface WriteInsightRequest {
396
596
  /** Required. The metrics data details. */
397
597
  insight?: Insight;
@@ -474,6 +674,35 @@ declare namespace gapi.client {
474
674
  }): Request<ListScannedResourcesResponse>;
475
675
  }
476
676
  interface ExecutionsResource {
677
+ /** Deletes a single Execution. */
678
+ delete(request?: {
679
+ /** V1 error format. */
680
+ '$.xgafv'?: string;
681
+ /** OAuth access token. */
682
+ access_token?: string;
683
+ /** Data format for response. */
684
+ alt?: string;
685
+ /** JSONP */
686
+ callback?: string;
687
+ /** Selector specifying which fields to include in a partial response. */
688
+ fields?: string;
689
+ /** 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. */
690
+ key?: string;
691
+ /** Required. Name of the resource */
692
+ name: string;
693
+ /** OAuth 2.0 token for the current user. */
694
+ oauth_token?: string;
695
+ /** Returns response with indentations and line breaks. */
696
+ prettyPrint?: boolean;
697
+ /** 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. */
698
+ quotaUser?: string;
699
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
700
+ requestId?: string;
701
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
702
+ upload_protocol?: string;
703
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
704
+ uploadType?: string;
705
+ }): Request<Operation>;
477
706
  /** Gets details of a single Execution. */
478
707
  get(request?: {
479
708
  /** V1 error format. */
@@ -664,6 +893,35 @@ declare namespace gapi.client {
664
893
  },
665
894
  body: Evaluation
666
895
  ): Request<Operation>;
896
+ /** Deletes a single Evaluation. */
897
+ delete(request?: {
898
+ /** V1 error format. */
899
+ '$.xgafv'?: string;
900
+ /** OAuth access token. */
901
+ access_token?: string;
902
+ /** Data format for response. */
903
+ alt?: string;
904
+ /** JSONP */
905
+ callback?: string;
906
+ /** Selector specifying which fields to include in a partial response. */
907
+ fields?: string;
908
+ /** 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. */
909
+ key?: string;
910
+ /** Required. Name of the resource */
911
+ name: string;
912
+ /** OAuth 2.0 token for the current user. */
913
+ oauth_token?: string;
914
+ /** Returns response with indentations and line breaks. */
915
+ prettyPrint?: boolean;
916
+ /** 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. */
917
+ quotaUser?: string;
918
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
919
+ requestId?: string;
920
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
921
+ upload_protocol?: string;
922
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
923
+ uploadType?: string;
924
+ }): Request<Operation>;
667
925
  /** Gets details of a single Evaluation. */
668
926
  get(request?: {
669
927
  /** V1 error format. */
@@ -972,6 +1230,68 @@ declare namespace gapi.client {
972
1230
  uploadType?: string;
973
1231
  }): Request<ListRulesResponse>;
974
1232
  }
1233
+ interface WorkloadProfilesResource {
1234
+ /** Gets details of a single workload. */
1235
+ get(request?: {
1236
+ /** V1 error format. */
1237
+ '$.xgafv'?: string;
1238
+ /** OAuth access token. */
1239
+ access_token?: string;
1240
+ /** Data format for response. */
1241
+ alt?: string;
1242
+ /** JSONP */
1243
+ callback?: string;
1244
+ /** Selector specifying which fields to include in a partial response. */
1245
+ fields?: string;
1246
+ /** 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. */
1247
+ key?: string;
1248
+ /** Required. Name of the resource */
1249
+ name: string;
1250
+ /** OAuth 2.0 token for the current user. */
1251
+ oauth_token?: string;
1252
+ /** Returns response with indentations and line breaks. */
1253
+ prettyPrint?: boolean;
1254
+ /** 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. */
1255
+ quotaUser?: string;
1256
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1257
+ upload_protocol?: string;
1258
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1259
+ uploadType?: string;
1260
+ }): Request<WorkloadProfile>;
1261
+ /** List workloads */
1262
+ list(request?: {
1263
+ /** V1 error format. */
1264
+ '$.xgafv'?: string;
1265
+ /** OAuth access token. */
1266
+ access_token?: string;
1267
+ /** Data format for response. */
1268
+ alt?: string;
1269
+ /** JSONP */
1270
+ callback?: string;
1271
+ /** Selector specifying which fields to include in a partial response. */
1272
+ fields?: string;
1273
+ /** Optional. Filtering results */
1274
+ filter?: string;
1275
+ /** 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. */
1276
+ key?: string;
1277
+ /** OAuth 2.0 token for the current user. */
1278
+ oauth_token?: string;
1279
+ /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
1280
+ pageSize?: number;
1281
+ /** Optional. A token identifying a page of results the server should return. */
1282
+ pageToken?: string;
1283
+ /** Required. Parent value for ListWorkloadRequest */
1284
+ parent: string;
1285
+ /** Returns response with indentations and line breaks. */
1286
+ prettyPrint?: boolean;
1287
+ /** 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. */
1288
+ quotaUser?: string;
1289
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1290
+ upload_protocol?: string;
1291
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1292
+ uploadType?: string;
1293
+ }): Request<ListWorkloadProfilesResponse>;
1294
+ }
975
1295
  interface LocationsResource {
976
1296
  /** Gets information about a location. */
977
1297
  get(request?: {
@@ -1037,6 +1357,7 @@ declare namespace gapi.client {
1037
1357
  insights: InsightsResource;
1038
1358
  operations: OperationsResource;
1039
1359
  rules: RulesResource;
1360
+ workloadProfiles: WorkloadProfilesResource;
1040
1361
  }
1041
1362
  interface ProjectsResource {
1042
1363
  locations: LocationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workloadmanager-v1",
3
- "version": "0.0.20240117",
3
+ "version": "0.0.20240221",
4
4
  "description": "TypeScript typings for Workload Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",