@openshift-migration-advisor/agent-sdk 0.27.0 → 0.28.0-dd01ea25a815

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.27.0
1
+ # @openshift-migration-advisor/agent-sdk@0.28.0-dd01ea25a815
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -200,7 +200,7 @@ and is automatically generated by the
200
200
  [OpenAPI Generator](https://openapi-generator.tech) project:
201
201
 
202
202
  - API version: `v2`
203
- - Package version: `0.27.0`
203
+ - Package version: `0.28.0-dd01ea25a815`
204
204
  - Generator version: `7.27.0-SNAPSHOT`
205
205
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
206
206
 
@@ -20,6 +20,14 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Storage access category derived from Datastore.Type
25
+ */
26
+ storageProtocol?: DatastoreStorageProtocolEnum;
27
+ /**
28
+ * Whether this datastore supports vSAN point-in-time snapshots
29
+ */
30
+ vsanSnapshotSupport?: boolean;
23
31
  /**
24
32
  *
25
33
  */
@@ -57,6 +65,15 @@ export interface Datastore {
57
65
  */
58
66
  storageIoConfiguration?: StorageIoConfiguration;
59
67
  }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const DatastoreStorageProtocolEnum: {
72
+ readonly Block: "Block";
73
+ readonly File: "File";
74
+ readonly Object: "Object";
75
+ };
76
+ export type DatastoreStorageProtocolEnum = typeof DatastoreStorageProtocolEnum[keyof typeof DatastoreStorageProtocolEnum];
60
77
  /**
61
78
  * Check if a given object implements the Datastore interface.
62
79
  */
@@ -12,6 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const DatastoreStorageProtocolEnum = {
19
+ Block: 'Block',
20
+ File: 'File',
21
+ Object: 'Object',
22
+ };
15
23
  /**
16
24
  * Check if a given object implements the Datastore interface.
17
25
  */
@@ -43,6 +51,8 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
43
51
  }
44
52
  return {
45
53
  'type': json['type'],
54
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
55
+ 'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
46
56
  'totalCapacityGB': json['totalCapacityGB'],
47
57
  'freeCapacityGB': json['freeCapacityGB'],
48
58
  'vendor': json['vendor'],
@@ -63,6 +73,8 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
63
73
  }
64
74
  return {
65
75
  'type': value['type'],
76
+ 'storageProtocol': value['storageProtocol'],
77
+ 'vsanSnapshotSupport': value['vsanSnapshotSupport'],
66
78
  'totalCapacityGB': value['totalCapacityGB'],
67
79
  'freeCapacityGB': value['freeCapacityGB'],
68
80
  'vendor': value['vendor'],
@@ -20,6 +20,14 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Storage access category derived from Datastore.Type
25
+ */
26
+ storageProtocol?: DatastoreStorageProtocolEnum;
27
+ /**
28
+ * Whether this datastore supports vSAN point-in-time snapshots
29
+ */
30
+ vsanSnapshotSupport?: boolean;
23
31
  /**
24
32
  *
25
33
  */
@@ -57,6 +65,15 @@ export interface Datastore {
57
65
  */
58
66
  storageIoConfiguration?: StorageIoConfiguration;
59
67
  }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const DatastoreStorageProtocolEnum: {
72
+ readonly Block: "Block";
73
+ readonly File: "File";
74
+ readonly Object: "Object";
75
+ };
76
+ export type DatastoreStorageProtocolEnum = typeof DatastoreStorageProtocolEnum[keyof typeof DatastoreStorageProtocolEnum];
60
77
  /**
61
78
  * Check if a given object implements the Datastore interface.
62
79
  */
@@ -13,12 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DatastoreStorageProtocolEnum = void 0;
16
17
  exports.instanceOfDatastore = instanceOfDatastore;
17
18
  exports.DatastoreFromJSON = DatastoreFromJSON;
18
19
  exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
19
20
  exports.DatastoreToJSON = DatastoreToJSON;
20
21
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
21
22
  const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.DatastoreStorageProtocolEnum = {
27
+ Block: 'Block',
28
+ File: 'File',
29
+ Object: 'Object',
30
+ };
22
31
  /**
23
32
  * Check if a given object implements the Datastore interface.
24
33
  */
@@ -50,6 +59,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
50
59
  }
51
60
  return {
52
61
  'type': json['type'],
62
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
63
+ 'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
53
64
  'totalCapacityGB': json['totalCapacityGB'],
54
65
  'freeCapacityGB': json['freeCapacityGB'],
55
66
  'vendor': json['vendor'],
@@ -70,6 +81,8 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
70
81
  }
71
82
  return {
72
83
  'type': value['type'],
84
+ 'storageProtocol': value['storageProtocol'],
85
+ 'vsanSnapshotSupport': value['vsanSnapshotSupport'],
73
86
  'totalCapacityGB': value['totalCapacityGB'],
74
87
  'freeCapacityGB': value['freeCapacityGB'],
75
88
  'vendor': value['vendor'],
package/docs/Datastore.md CHANGED
@@ -7,6 +7,8 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `type` | string
10
+ `storageProtocol` | string
11
+ `vsanSnapshotSupport` | boolean
10
12
  `totalCapacityGB` | number
11
13
  `freeCapacityGB` | number
12
14
  `vendor` | string
@@ -25,6 +27,8 @@ import type { Datastore } from '@openshift-migration-advisor/agent-sdk'
25
27
  // TODO: Update the object below with actual values
26
28
  const example = {
27
29
  "type": null,
30
+ "storageProtocol": null,
31
+ "vsanSnapshotSupport": null,
28
32
  "totalCapacityGB": null,
29
33
  "freeCapacityGB": null,
30
34
  "vendor": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.27.0",
3
+ "version": "0.28.0-dd01ea25a815",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -31,6 +31,14 @@ export interface Datastore {
31
31
  *
32
32
  */
33
33
  type: string;
34
+ /**
35
+ * Storage access category derived from Datastore.Type
36
+ */
37
+ storageProtocol?: DatastoreStorageProtocolEnum;
38
+ /**
39
+ * Whether this datastore supports vSAN point-in-time snapshots
40
+ */
41
+ vsanSnapshotSupport?: boolean;
34
42
  /**
35
43
  *
36
44
  */
@@ -69,6 +77,18 @@ export interface Datastore {
69
77
  storageIoConfiguration?: StorageIoConfiguration;
70
78
  }
71
79
 
80
+
81
+ /**
82
+ * @export
83
+ */
84
+ export const DatastoreStorageProtocolEnum = {
85
+ Block: 'Block',
86
+ File: 'File',
87
+ Object: 'Object',
88
+ } as const;
89
+ export type DatastoreStorageProtocolEnum = typeof DatastoreStorageProtocolEnum[keyof typeof DatastoreStorageProtocolEnum];
90
+
91
+
72
92
  /**
73
93
  * Check if a given object implements the Datastore interface.
74
94
  */
@@ -95,6 +115,8 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
95
115
  return {
96
116
 
97
117
  'type': json['type'],
118
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
119
+ 'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
98
120
  'totalCapacityGB': json['totalCapacityGB'],
99
121
  'freeCapacityGB': json['freeCapacityGB'],
100
122
  'vendor': json['vendor'],
@@ -119,6 +141,8 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
119
141
  return {
120
142
 
121
143
  'type': value['type'],
144
+ 'storageProtocol': value['storageProtocol'],
145
+ 'vsanSnapshotSupport': value['vsanSnapshotSupport'],
122
146
  'totalCapacityGB': value['totalCapacityGB'],
123
147
  'freeCapacityGB': value['freeCapacityGB'],
124
148
  'vendor': value['vendor'],