@maxim_mazurok/gapi.client.workloadmanager-v1 0.0.20240228 → 0.0.20240322

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 +15 -244
  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: 20240228
12
+ // Revision: 20240322
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,36 +28,6 @@ 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
- }
61
31
  interface BigQueryDestination {
62
32
  /** Optional. determine if results will be saved in a new table */
63
33
  createNewResultsTable?: boolean;
@@ -65,28 +35,6 @@ declare namespace gapi.client {
65
35
  destinationDataset?: string;
66
36
  }
67
37
  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
- }
90
38
  interface Empty {}
91
39
  interface Evaluation {
92
40
  /** Optional. BigQuery destination */
@@ -146,14 +94,6 @@ declare namespace gapi.client {
146
94
  /** the violation message of an execution */
147
95
  violationMessage?: string;
148
96
  }
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
- }
157
97
  interface GceInstanceFilter {
158
98
  /** Service account of compute engine */
159
99
  serviceAccounts?: string[];
@@ -170,24 +110,6 @@ declare namespace gapi.client {
170
110
  /** The insights data for the sqlserver workload validation. */
171
111
  sqlserverValidation?: SqlserverValidation;
172
112
  }
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
- }
191
113
  interface ListEvaluationsResponse {
192
114
  /** The list of Evaluation */
193
115
  evaluations?: Evaluation[];
@@ -234,20 +156,6 @@ declare namespace gapi.client {
234
156
  /** All scanned resources in response */
235
157
  scannedResources?: ScannedResource[];
236
158
  }
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
- }
251
159
  interface Location {
252
160
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
253
161
  displayName?: string;
@@ -344,16 +252,6 @@ declare namespace gapi.client {
344
252
  /** 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). */
345
253
  requestId?: string;
346
254
  }
347
- interface SapComponent {
348
- /** 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. */
349
- haHosts?: string[];
350
- /** Output only. resources in the component */
351
- resources?: CloudResource[];
352
- /** Output only. sid is the sap component identificator */
353
- sid?: string;
354
- /** The detected topology of the component. */
355
- topologyType?: string;
356
- }
357
255
  interface SapDiscovery {
358
256
  /** Optional. An SAP system may run without an application layer. */
359
257
  applicationLayer?: SapDiscoveryComponent;
@@ -389,8 +287,12 @@ declare namespace gapi.client {
389
287
  interface SapDiscoveryComponentApplicationProperties {
390
288
  /** Optional. Indicates whether this is a Java or ABAP Netweaver instance. true means it is ABAP, false means it is Java. */
391
289
  abap?: boolean;
290
+ /** Optional. Instance number of the SAP application instance. */
291
+ appInstanceNumber?: string;
392
292
  /** Required. Type of the application. Netweaver, etc. */
393
293
  applicationType?: string;
294
+ /** Optional. Instance number of the ASCS instance. */
295
+ ascsInstanceNumber?: string;
394
296
  /** Optional. Resource URI of the recognized ASCS host of the application. */
395
297
  ascsUri?: string;
396
298
  /** Optional. Kernel version for Netweaver running in the system. */
@@ -399,10 +301,14 @@ declare namespace gapi.client {
399
301
  nfsUri?: string;
400
302
  }
401
303
  interface SapDiscoveryComponentDatabaseProperties {
304
+ /** Optional. SID of the system database. */
305
+ databaseSid?: string;
402
306
  /** Required. Type of the database. HANA, DB2, etc. */
403
307
  databaseType?: string;
404
308
  /** Optional. The version of the database software running in the system. */
405
309
  databaseVersion?: string;
310
+ /** Optional. Instance number of the SAP instance. */
311
+ instanceNumber?: string;
406
312
  /** Required. URI of the recognized primary instance of the database. */
407
313
  primaryInstanceUri?: string;
408
314
  /** Optional. URI of the recognized shared NFS of the database. May be empty if the database has only a single node. */
@@ -435,6 +341,8 @@ declare namespace gapi.client {
435
341
  interface SapDiscoveryResourceInstanceProperties {
436
342
  /** Optional. A list of instance URIs that are part of a cluster with this one. */
437
343
  clusterInstances?: string[];
344
+ /** Optional. The VM's instance number. */
345
+ instanceNumber?: string;
438
346
  /** Optional. A virtual hostname of the instance if it has one. */
439
347
  virtualHostname?: string;
440
348
  }
@@ -476,22 +384,6 @@ declare namespace gapi.client {
476
384
  /** Optional. The SAP system that the validation data is from. */
477
385
  sapValidationType?: string;
478
386
  }
479
- interface SapWorkload {
480
- /** Output only. the acsc componment */
481
- application?: SapComponent;
482
- /** Output only. the database componment */
483
- database?: SapComponent;
484
- /** Output only. The metadata for SAP workload. */
485
- metadata?: {[P in string]: string};
486
- }
487
- interface SapWorkloadOverview {
488
- /** Output only. The application SID */
489
- appSid?: string;
490
- /** Output only. The database SID */
491
- dbSid?: string;
492
- /** Output only. The UUID for a SAP workload */
493
- sapSystemId?: string;
494
- }
495
387
  interface ScannedResource {
496
388
  /** resource name */
497
389
  resource?: string;
@@ -518,22 +410,6 @@ declare namespace gapi.client {
518
410
  /** Optional. The Sqlserver system that the validation data is from. */
519
411
  type?: string;
520
412
  }
521
- interface SqlserverWorkload {
522
- /** Output only. The availability groups for sqlserver */
523
- ags?: AvailabilityGroup[];
524
- /** Output only. The cluster for sqlserver */
525
- cluster?: Cluster;
526
- /** Output only. The databases for sqlserver */
527
- databases?: Database[];
528
- /** Output only. The load balancer for sqlserver */
529
- loadBalancerServer?: LoadBalancerServer;
530
- }
531
- interface SqlserverWorkloadOverview {
532
- /** Output only. The availability groups */
533
- availabilityGroup?: string[];
534
- /** Output only. The UUID for a Sqlserver workload */
535
- sqlserverSystemId?: string;
536
- }
537
413
  interface Status {
538
414
  /** The status code, which should be an enum value of google.rpc.Code. */
539
415
  code?: number;
@@ -542,20 +418,6 @@ declare namespace gapi.client {
542
418
  /** 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. */
543
419
  message?: string;
544
420
  }
545
- interface ThreeTierWorkload {
546
- /** Output only. The API layer for three tier workload */
547
- apiLayer?: APILayerServer;
548
- /** Output only. The backend for three tier workload */
549
- backend?: BackendServer;
550
- /** Output only. the workload endpoint */
551
- endpoint?: string;
552
- /** Output only. The frontend for three tier workload */
553
- frontend?: FrontEndServer;
554
- }
555
- interface ThreeTierWorkloadOverview {
556
- /** Output only. The UUID for a three tier workload */
557
- threeTierSystemId?: string;
558
- }
559
421
  interface ViolationDetails {
560
422
  /** the name of asset */
561
423
  asset?: string;
@@ -564,39 +426,9 @@ declare namespace gapi.client {
564
426
  /** the service account associate with resource */
565
427
  serviceAccount?: string;
566
428
  }
567
- interface WorkloadProfile {
568
- /** Optional. The application layer */
569
- application?: Layer;
570
- /** Optional. The ascs layer */
571
- ascs?: Layer;
572
- /** Optional. The database layer */
573
- database?: Layer;
574
- /** Optional. such as name, description, version. More example can be found in deployment */
575
- labels?: {[P in string]: string};
576
- /** Identifier. name of resource names have the form 'projects/{project_id}/workloads/{workload_id}' */
577
- name?: string;
578
- /** Required. time when the workload data was refreshed */
579
- refreshedTime?: string;
580
- /** The sap workload content */
581
- sapWorkload?: SapWorkload;
582
- /** The sqlserver workload content */
583
- sqlserverWorkload?: SqlserverWorkload;
584
- /** Output only. [output only] the current state if a a workload */
585
- state?: string;
586
- /** The 3 tier web app workload content */
587
- threeTierWorkload?: ThreeTierWorkload;
588
- /** Required. The type of the workload */
589
- workloadType?: string;
590
- }
591
- interface WorkloadProfileOverview {
592
- /** The sap workload overview */
593
- sapWorkloadOverview?: SapWorkloadOverview;
594
- /** The sqlserver workload overview */
595
- sqlserverWorkloadOverview?: SqlserverWorkloadOverview;
596
- /** The three tier workload overview */
597
- threeTierWorkloadOverview?: ThreeTierWorkloadOverview;
598
- }
599
429
  interface WriteInsightRequest {
430
+ /** Optional. The agent version collected this data point. */
431
+ agentVersion?: string;
600
432
  /** Required. The metrics data details. */
601
433
  insight?: Insight;
602
434
  /** 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). */
@@ -909,6 +741,8 @@ declare namespace gapi.client {
909
741
  callback?: string;
910
742
  /** Selector specifying which fields to include in a partial response. */
911
743
  fields?: string;
744
+ /** Optional. Followed the best practice from https://aip.dev/135#cascading-delete */
745
+ force?: boolean;
912
746
  /** 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. */
913
747
  key?: string;
914
748
  /** Required. Name of the resource */
@@ -1234,68 +1068,6 @@ declare namespace gapi.client {
1234
1068
  uploadType?: string;
1235
1069
  }): Request<ListRulesResponse>;
1236
1070
  }
1237
- interface WorkloadProfilesResource {
1238
- /** Gets details of a single workload. */
1239
- get(request?: {
1240
- /** V1 error format. */
1241
- '$.xgafv'?: string;
1242
- /** OAuth access token. */
1243
- access_token?: string;
1244
- /** Data format for response. */
1245
- alt?: string;
1246
- /** JSONP */
1247
- callback?: string;
1248
- /** Selector specifying which fields to include in a partial response. */
1249
- fields?: string;
1250
- /** 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. */
1251
- key?: string;
1252
- /** Required. Name of the resource */
1253
- name: string;
1254
- /** OAuth 2.0 token for the current user. */
1255
- oauth_token?: string;
1256
- /** Returns response with indentations and line breaks. */
1257
- prettyPrint?: boolean;
1258
- /** 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. */
1259
- quotaUser?: string;
1260
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1261
- upload_protocol?: string;
1262
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1263
- uploadType?: string;
1264
- }): Request<WorkloadProfile>;
1265
- /** List workloads */
1266
- list(request?: {
1267
- /** V1 error format. */
1268
- '$.xgafv'?: string;
1269
- /** OAuth access token. */
1270
- access_token?: string;
1271
- /** Data format for response. */
1272
- alt?: string;
1273
- /** JSONP */
1274
- callback?: string;
1275
- /** Selector specifying which fields to include in a partial response. */
1276
- fields?: string;
1277
- /** Optional. Filtering results */
1278
- filter?: string;
1279
- /** 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. */
1280
- key?: string;
1281
- /** OAuth 2.0 token for the current user. */
1282
- oauth_token?: string;
1283
- /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */
1284
- pageSize?: number;
1285
- /** Optional. A token identifying a page of results the server should return. */
1286
- pageToken?: string;
1287
- /** Required. Parent value for ListWorkloadRequest */
1288
- parent: string;
1289
- /** Returns response with indentations and line breaks. */
1290
- prettyPrint?: boolean;
1291
- /** 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. */
1292
- quotaUser?: string;
1293
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1294
- upload_protocol?: string;
1295
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1296
- uploadType?: string;
1297
- }): Request<ListWorkloadProfilesResponse>;
1298
- }
1299
1071
  interface LocationsResource {
1300
1072
  /** Gets information about a location. */
1301
1073
  get(request?: {
@@ -1361,7 +1133,6 @@ declare namespace gapi.client {
1361
1133
  insights: InsightsResource;
1362
1134
  operations: OperationsResource;
1363
1135
  rules: RulesResource;
1364
- workloadProfiles: WorkloadProfilesResource;
1365
1136
  }
1366
1137
  interface ProjectsResource {
1367
1138
  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.20240228",
3
+ "version": "0.0.20240322",
4
4
  "description": "TypeScript typings for Workload Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",