@cirrobio/api-client 0.0.5-alpha → 0.0.6-alpha

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
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.0.5-alpha --save
39
+ npm install @cirrobio/api-client@0.0.6-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -33,4 +33,12 @@ export declare class SystemApi extends runtime.BaseAPI {
33
33
  * Get system info
34
34
  */
35
35
  info(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
36
+ /**
37
+ * Get system info
38
+ */
39
+ info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>>;
40
+ /**
41
+ * Get system info
42
+ */
43
+ info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
36
44
  }
@@ -168,6 +168,47 @@ var SystemApi = /** @class */ (function (_super) {
168
168
  });
169
169
  });
170
170
  };
171
+ /**
172
+ * Get system info
173
+ */
174
+ SystemApi.prototype.info1Raw = function (initOverrides) {
175
+ return __awaiter(this, void 0, void 0, function () {
176
+ var queryParameters, headerParameters, response;
177
+ return __generator(this, function (_a) {
178
+ switch (_a.label) {
179
+ case 0:
180
+ queryParameters = {};
181
+ headerParameters = {};
182
+ return [4 /*yield*/, this.request({
183
+ path: "/info/system",
184
+ method: 'GET',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ }, initOverrides)];
188
+ case 1:
189
+ response = _a.sent();
190
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SystemInfoResponseFromJSON)(jsonValue); })];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Get system info
197
+ */
198
+ SystemApi.prototype.info1 = function (initOverrides) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var response;
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0: return [4 /*yield*/, this.info1Raw(initOverrides)];
204
+ case 1:
205
+ response = _a.sent();
206
+ return [4 /*yield*/, response.value()];
207
+ case 2: return [2 /*return*/, _a.sent()];
208
+ }
209
+ });
210
+ });
211
+ };
171
212
  return SystemApi;
172
213
  }(runtime.BaseAPI));
173
214
  exports.SystemApi = SystemApi;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Tag } from './Tag';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -39,6 +40,12 @@ export interface Project {
39
40
  * @memberof Project
40
41
  */
41
42
  status: string;
43
+ /**
44
+ *
45
+ * @type {Array<Tag>}
46
+ * @memberof Project
47
+ */
48
+ tags: Array<Tag>;
42
49
  }
43
50
  /**
44
51
  * Check if a given object implements the Project interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectToJSON = exports.ProjectFromJSONTyped = exports.ProjectFromJSON = exports.instanceOfProject = void 0;
17
+ var Tag_1 = require("./Tag");
17
18
  /**
18
19
  * Check if a given object implements the Project interface.
19
20
  */
@@ -23,6 +24,7 @@ function instanceOfProject(value) {
23
24
  isInstance = isInstance && "name" in value;
24
25
  isInstance = isInstance && "description" in value;
25
26
  isInstance = isInstance && "status" in value;
27
+ isInstance = isInstance && "tags" in value;
26
28
  return isInstance;
27
29
  }
28
30
  exports.instanceOfProject = instanceOfProject;
@@ -39,6 +41,7 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
39
41
  'name': json['name'],
40
42
  'description': json['description'],
41
43
  'status': json['status'],
44
+ 'tags': (json['tags'].map(Tag_1.TagFromJSON)),
42
45
  };
43
46
  }
44
47
  exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
@@ -54,6 +57,7 @@ function ProjectToJSON(value) {
54
57
  'name': value.name,
55
58
  'description': value.description,
56
59
  'status': value.status,
60
+ 'tags': (value.tags.map(Tag_1.TagToJSON)),
57
61
  };
58
62
  }
59
63
  exports.ProjectToJSON = ProjectToJSON;
@@ -44,10 +44,10 @@ export interface ProjectDetail {
44
44
  billingAccountId: string;
45
45
  /**
46
46
  *
47
- * @type {Contact}
47
+ * @type {Array<Contact>}
48
48
  * @memberof ProjectDetail
49
49
  */
50
- contact: Contact;
50
+ contacts: Array<Contact>;
51
51
  /**
52
52
  *
53
53
  * @type {string}
@@ -26,7 +26,7 @@ function instanceOfProjectDetail(value) {
26
26
  isInstance = isInstance && "name" in value;
27
27
  isInstance = isInstance && "description" in value;
28
28
  isInstance = isInstance && "billingAccountId" in value;
29
- isInstance = isInstance && "contact" in value;
29
+ isInstance = isInstance && "contacts" in value;
30
30
  isInstance = isInstance && "status" in value;
31
31
  isInstance = isInstance && "settings" in value;
32
32
  isInstance = isInstance && "statusMessage" in value;
@@ -50,7 +50,7 @@ function ProjectDetailFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'name': json['name'],
51
51
  'description': json['description'],
52
52
  'billingAccountId': json['billingAccountId'],
53
- 'contact': (0, Contact_1.ContactFromJSON)(json['contact']),
53
+ 'contacts': (json['contacts'].map(Contact_1.ContactFromJSON)),
54
54
  'status': json['status'],
55
55
  'settings': (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
56
56
  'statusMessage': json['statusMessage'],
@@ -73,7 +73,7 @@ function ProjectDetailToJSON(value) {
73
73
  'name': value.name,
74
74
  'description': value.description,
75
75
  'billingAccountId': value.billingAccountId,
76
- 'contact': (0, Contact_1.ContactToJSON)(value.contact),
76
+ 'contacts': (value.contacts.map(Contact_1.ContactToJSON)),
77
77
  'status': value.status,
78
78
  'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value.settings),
79
79
  'statusMessage': value.statusMessage,
@@ -18,94 +18,94 @@ import type { BudgetPeriod } from './BudgetPeriod';
18
18
  export interface ProjectSettings {
19
19
  /**
20
20
  *
21
- * @type {string}
21
+ * @type {number}
22
22
  * @memberof ProjectSettings
23
23
  */
24
- budgetAmount?: string;
24
+ budgetAmount: number;
25
25
  /**
26
26
  *
27
27
  * @type {BudgetPeriod}
28
28
  * @memberof ProjectSettings
29
29
  */
30
- budgetPeriod?: BudgetPeriod;
30
+ budgetPeriod: BudgetPeriod;
31
31
  /**
32
32
  *
33
33
  * @type {string}
34
34
  * @memberof ProjectSettings
35
35
  */
36
- dragenAmi?: string;
36
+ dragenAmi: string;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
40
40
  * @memberof ProjectSettings
41
41
  */
42
- enableBackup?: boolean;
42
+ enableCompute: boolean;
43
43
  /**
44
44
  *
45
45
  * @type {boolean}
46
46
  * @memberof ProjectSettings
47
47
  */
48
- enableCompute?: boolean;
48
+ enableDragen: boolean;
49
49
  /**
50
50
  *
51
51
  * @type {boolean}
52
52
  * @memberof ProjectSettings
53
53
  */
54
- enableDragen?: boolean;
54
+ enableBackup: boolean;
55
55
  /**
56
56
  *
57
57
  * @type {boolean}
58
58
  * @memberof ProjectSettings
59
59
  */
60
- enableSftp?: boolean;
60
+ enableSftp: boolean;
61
61
  /**
62
62
  *
63
63
  * @type {number}
64
64
  * @memberof ProjectSettings
65
65
  */
66
- maxF1VCPU?: number;
66
+ maxF1VCPU: number;
67
67
  /**
68
68
  *
69
69
  * @type {number}
70
70
  * @memberof ProjectSettings
71
71
  */
72
- maxSpotVCPU?: number;
72
+ maxSpotVCPU: number;
73
73
  /**
74
74
  *
75
75
  * @type {number}
76
76
  * @memberof ProjectSettings
77
77
  */
78
- retentionPolicyDays?: number;
78
+ retentionPolicyDays: number;
79
79
  /**
80
80
  *
81
81
  * @type {Array<string>}
82
82
  * @memberof ProjectSettings
83
83
  */
84
- serviceConnections?: Array<string>;
84
+ serviceConnections: Array<string>;
85
85
  /**
86
86
  *
87
87
  * @type {boolean}
88
88
  * @memberof ProjectSettings
89
89
  */
90
- createVpc?: boolean;
90
+ createVpc: boolean;
91
91
  /**
92
92
  *
93
93
  * @type {string}
94
94
  * @memberof ProjectSettings
95
95
  */
96
- vpcId?: string;
96
+ vpcId: string;
97
97
  /**
98
98
  *
99
99
  * @type {Array<string>}
100
100
  * @memberof ProjectSettings
101
101
  */
102
- batchSubnets?: Array<string>;
102
+ batchSubnets: Array<string>;
103
103
  /**
104
104
  *
105
105
  * @type {string}
106
106
  * @memberof ProjectSettings
107
107
  */
108
- kmsArn?: string;
108
+ kmsArn: string;
109
109
  }
110
110
  /**
111
111
  * Check if a given object implements the ProjectSettings interface.
@@ -14,13 +14,27 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectSettingsToJSON = exports.ProjectSettingsFromJSONTyped = exports.ProjectSettingsFromJSON = exports.instanceOfProjectSettings = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var BudgetPeriod_1 = require("./BudgetPeriod");
19
18
  /**
20
19
  * Check if a given object implements the ProjectSettings interface.
21
20
  */
22
21
  function instanceOfProjectSettings(value) {
23
22
  var isInstance = true;
23
+ isInstance = isInstance && "budgetAmount" in value;
24
+ isInstance = isInstance && "budgetPeriod" in value;
25
+ isInstance = isInstance && "dragenAmi" in value;
26
+ isInstance = isInstance && "enableCompute" in value;
27
+ isInstance = isInstance && "enableDragen" in value;
28
+ isInstance = isInstance && "enableBackup" in value;
29
+ isInstance = isInstance && "enableSftp" in value;
30
+ isInstance = isInstance && "maxF1VCPU" in value;
31
+ isInstance = isInstance && "maxSpotVCPU" in value;
32
+ isInstance = isInstance && "retentionPolicyDays" in value;
33
+ isInstance = isInstance && "serviceConnections" in value;
34
+ isInstance = isInstance && "createVpc" in value;
35
+ isInstance = isInstance && "vpcId" in value;
36
+ isInstance = isInstance && "batchSubnets" in value;
37
+ isInstance = isInstance && "kmsArn" in value;
24
38
  return isInstance;
25
39
  }
26
40
  exports.instanceOfProjectSettings = instanceOfProjectSettings;
@@ -33,21 +47,21 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
33
47
  return json;
34
48
  }
35
49
  return {
36
- 'budgetAmount': !(0, runtime_1.exists)(json, 'budgetAmount') ? undefined : json['budgetAmount'],
37
- 'budgetPeriod': !(0, runtime_1.exists)(json, 'budgetPeriod') ? undefined : (0, BudgetPeriod_1.BudgetPeriodFromJSON)(json['budgetPeriod']),
38
- 'dragenAmi': !(0, runtime_1.exists)(json, 'dragenAmi') ? undefined : json['dragenAmi'],
39
- 'enableBackup': !(0, runtime_1.exists)(json, 'enableBackup') ? undefined : json['enableBackup'],
40
- 'enableCompute': !(0, runtime_1.exists)(json, 'enableCompute') ? undefined : json['enableCompute'],
41
- 'enableDragen': !(0, runtime_1.exists)(json, 'enableDragen') ? undefined : json['enableDragen'],
42
- 'enableSftp': !(0, runtime_1.exists)(json, 'enableSftp') ? undefined : json['enableSftp'],
43
- 'maxF1VCPU': !(0, runtime_1.exists)(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
44
- 'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
45
- 'retentionPolicyDays': !(0, runtime_1.exists)(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
46
- 'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
47
- 'createVpc': !(0, runtime_1.exists)(json, 'createVpc') ? undefined : json['createVpc'],
48
- 'vpcId': !(0, runtime_1.exists)(json, 'vpcId') ? undefined : json['vpcId'],
49
- 'batchSubnets': !(0, runtime_1.exists)(json, 'batchSubnets') ? undefined : json['batchSubnets'],
50
- 'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
50
+ 'budgetAmount': json['budgetAmount'],
51
+ 'budgetPeriod': (0, BudgetPeriod_1.BudgetPeriodFromJSON)(json['budgetPeriod']),
52
+ 'dragenAmi': json['dragenAmi'],
53
+ 'enableCompute': json['enableCompute'],
54
+ 'enableDragen': json['enableDragen'],
55
+ 'enableBackup': json['enableBackup'],
56
+ 'enableSftp': json['enableSftp'],
57
+ 'maxF1VCPU': json['maxF1VCPU'],
58
+ 'maxSpotVCPU': json['maxSpotVCPU'],
59
+ 'retentionPolicyDays': json['retentionPolicyDays'],
60
+ 'serviceConnections': json['serviceConnections'],
61
+ 'createVpc': json['createVpc'],
62
+ 'vpcId': json['vpcId'],
63
+ 'batchSubnets': json['batchSubnets'],
64
+ 'kmsArn': json['kmsArn'],
51
65
  };
52
66
  }
53
67
  exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
@@ -62,9 +76,9 @@ function ProjectSettingsToJSON(value) {
62
76
  'budgetAmount': value.budgetAmount,
63
77
  'budgetPeriod': (0, BudgetPeriod_1.BudgetPeriodToJSON)(value.budgetPeriod),
64
78
  'dragenAmi': value.dragenAmi,
65
- 'enableBackup': value.enableBackup,
66
79
  'enableCompute': value.enableCompute,
67
80
  'enableDragen': value.enableDragen,
81
+ 'enableBackup': value.enableBackup,
68
82
  'enableSftp': value.enableSftp,
69
83
  'maxF1VCPU': value.maxF1VCPU,
70
84
  'maxSpotVCPU': value.maxSpotVCPU,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.5-alpha",
3
+ "version": "0.0.6-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -92,4 +92,30 @@ export class SystemApi extends runtime.BaseAPI {
92
92
  return await response.value();
93
93
  }
94
94
 
95
+ /**
96
+ * Get system info
97
+ */
98
+ async info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>> {
99
+ const queryParameters: any = {};
100
+
101
+ const headerParameters: runtime.HTTPHeaders = {};
102
+
103
+ const response = await this.request({
104
+ path: `/info/system`,
105
+ method: 'GET',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }, initOverrides);
109
+
110
+ return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoResponseFromJSON(jsonValue));
111
+ }
112
+
113
+ /**
114
+ * Get system info
115
+ */
116
+ async info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse> {
117
+ const response = await this.info1Raw(initOverrides);
118
+ return await response.value();
119
+ }
120
+
95
121
  }
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { Tag } from './Tag';
17
+ import {
18
+ TagFromJSON,
19
+ TagFromJSONTyped,
20
+ TagToJSON,
21
+ } from './Tag';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -43,6 +50,12 @@ export interface Project {
43
50
  * @memberof Project
44
51
  */
45
52
  status: string;
53
+ /**
54
+ *
55
+ * @type {Array<Tag>}
56
+ * @memberof Project
57
+ */
58
+ tags: Array<Tag>;
46
59
  }
47
60
 
48
61
  /**
@@ -54,6 +67,7 @@ export function instanceOfProject(value: object): boolean {
54
67
  isInstance = isInstance && "name" in value;
55
68
  isInstance = isInstance && "description" in value;
56
69
  isInstance = isInstance && "status" in value;
70
+ isInstance = isInstance && "tags" in value;
57
71
 
58
72
  return isInstance;
59
73
  }
@@ -72,6 +86,7 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
72
86
  'name': json['name'],
73
87
  'description': json['description'],
74
88
  'status': json['status'],
89
+ 'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
75
90
  };
76
91
  }
77
92
 
@@ -88,6 +103,7 @@ export function ProjectToJSON(value?: Project | null): any {
88
103
  'name': value.name,
89
104
  'description': value.description,
90
105
  'status': value.status,
106
+ 'tags': ((value.tags as Array<any>).map(TagToJSON)),
91
107
  };
92
108
  }
93
109
 
@@ -64,10 +64,10 @@ export interface ProjectDetail {
64
64
  billingAccountId: string;
65
65
  /**
66
66
  *
67
- * @type {Contact}
67
+ * @type {Array<Contact>}
68
68
  * @memberof ProjectDetail
69
69
  */
70
- contact: Contact;
70
+ contacts: Array<Contact>;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -121,7 +121,7 @@ export function instanceOfProjectDetail(value: object): boolean {
121
121
  isInstance = isInstance && "name" in value;
122
122
  isInstance = isInstance && "description" in value;
123
123
  isInstance = isInstance && "billingAccountId" in value;
124
- isInstance = isInstance && "contact" in value;
124
+ isInstance = isInstance && "contacts" in value;
125
125
  isInstance = isInstance && "status" in value;
126
126
  isInstance = isInstance && "settings" in value;
127
127
  isInstance = isInstance && "statusMessage" in value;
@@ -147,7 +147,7 @@ export function ProjectDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
147
147
  'name': json['name'],
148
148
  'description': json['description'],
149
149
  'billingAccountId': json['billingAccountId'],
150
- 'contact': ContactFromJSON(json['contact']),
150
+ 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
151
151
  'status': json['status'],
152
152
  'settings': ProjectSettingsFromJSON(json['settings']),
153
153
  'statusMessage': json['statusMessage'],
@@ -171,7 +171,7 @@ export function ProjectDetailToJSON(value?: ProjectDetail | null): any {
171
171
  'name': value.name,
172
172
  'description': value.description,
173
173
  'billingAccountId': value.billingAccountId,
174
- 'contact': ContactToJSON(value.contact),
174
+ 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
175
175
  'status': value.status,
176
176
  'settings': ProjectSettingsToJSON(value.settings),
177
177
  'statusMessage': value.statusMessage,
@@ -28,94 +28,94 @@ import {
28
28
  export interface ProjectSettings {
29
29
  /**
30
30
  *
31
- * @type {string}
31
+ * @type {number}
32
32
  * @memberof ProjectSettings
33
33
  */
34
- budgetAmount?: string;
34
+ budgetAmount: number;
35
35
  /**
36
36
  *
37
37
  * @type {BudgetPeriod}
38
38
  * @memberof ProjectSettings
39
39
  */
40
- budgetPeriod?: BudgetPeriod;
40
+ budgetPeriod: BudgetPeriod;
41
41
  /**
42
42
  *
43
43
  * @type {string}
44
44
  * @memberof ProjectSettings
45
45
  */
46
- dragenAmi?: string;
46
+ dragenAmi: string;
47
47
  /**
48
48
  *
49
49
  * @type {boolean}
50
50
  * @memberof ProjectSettings
51
51
  */
52
- enableBackup?: boolean;
52
+ enableCompute: boolean;
53
53
  /**
54
54
  *
55
55
  * @type {boolean}
56
56
  * @memberof ProjectSettings
57
57
  */
58
- enableCompute?: boolean;
58
+ enableDragen: boolean;
59
59
  /**
60
60
  *
61
61
  * @type {boolean}
62
62
  * @memberof ProjectSettings
63
63
  */
64
- enableDragen?: boolean;
64
+ enableBackup: boolean;
65
65
  /**
66
66
  *
67
67
  * @type {boolean}
68
68
  * @memberof ProjectSettings
69
69
  */
70
- enableSftp?: boolean;
70
+ enableSftp: boolean;
71
71
  /**
72
72
  *
73
73
  * @type {number}
74
74
  * @memberof ProjectSettings
75
75
  */
76
- maxF1VCPU?: number;
76
+ maxF1VCPU: number;
77
77
  /**
78
78
  *
79
79
  * @type {number}
80
80
  * @memberof ProjectSettings
81
81
  */
82
- maxSpotVCPU?: number;
82
+ maxSpotVCPU: number;
83
83
  /**
84
84
  *
85
85
  * @type {number}
86
86
  * @memberof ProjectSettings
87
87
  */
88
- retentionPolicyDays?: number;
88
+ retentionPolicyDays: number;
89
89
  /**
90
90
  *
91
91
  * @type {Array<string>}
92
92
  * @memberof ProjectSettings
93
93
  */
94
- serviceConnections?: Array<string>;
94
+ serviceConnections: Array<string>;
95
95
  /**
96
96
  *
97
97
  * @type {boolean}
98
98
  * @memberof ProjectSettings
99
99
  */
100
- createVpc?: boolean;
100
+ createVpc: boolean;
101
101
  /**
102
102
  *
103
103
  * @type {string}
104
104
  * @memberof ProjectSettings
105
105
  */
106
- vpcId?: string;
106
+ vpcId: string;
107
107
  /**
108
108
  *
109
109
  * @type {Array<string>}
110
110
  * @memberof ProjectSettings
111
111
  */
112
- batchSubnets?: Array<string>;
112
+ batchSubnets: Array<string>;
113
113
  /**
114
114
  *
115
115
  * @type {string}
116
116
  * @memberof ProjectSettings
117
117
  */
118
- kmsArn?: string;
118
+ kmsArn: string;
119
119
  }
120
120
 
121
121
  /**
@@ -123,6 +123,21 @@ export interface ProjectSettings {
123
123
  */
124
124
  export function instanceOfProjectSettings(value: object): boolean {
125
125
  let isInstance = true;
126
+ isInstance = isInstance && "budgetAmount" in value;
127
+ isInstance = isInstance && "budgetPeriod" in value;
128
+ isInstance = isInstance && "dragenAmi" in value;
129
+ isInstance = isInstance && "enableCompute" in value;
130
+ isInstance = isInstance && "enableDragen" in value;
131
+ isInstance = isInstance && "enableBackup" in value;
132
+ isInstance = isInstance && "enableSftp" in value;
133
+ isInstance = isInstance && "maxF1VCPU" in value;
134
+ isInstance = isInstance && "maxSpotVCPU" in value;
135
+ isInstance = isInstance && "retentionPolicyDays" in value;
136
+ isInstance = isInstance && "serviceConnections" in value;
137
+ isInstance = isInstance && "createVpc" in value;
138
+ isInstance = isInstance && "vpcId" in value;
139
+ isInstance = isInstance && "batchSubnets" in value;
140
+ isInstance = isInstance && "kmsArn" in value;
126
141
 
127
142
  return isInstance;
128
143
  }
@@ -137,21 +152,21 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
137
152
  }
138
153
  return {
139
154
 
140
- 'budgetAmount': !exists(json, 'budgetAmount') ? undefined : json['budgetAmount'],
141
- 'budgetPeriod': !exists(json, 'budgetPeriod') ? undefined : BudgetPeriodFromJSON(json['budgetPeriod']),
142
- 'dragenAmi': !exists(json, 'dragenAmi') ? undefined : json['dragenAmi'],
143
- 'enableBackup': !exists(json, 'enableBackup') ? undefined : json['enableBackup'],
144
- 'enableCompute': !exists(json, 'enableCompute') ? undefined : json['enableCompute'],
145
- 'enableDragen': !exists(json, 'enableDragen') ? undefined : json['enableDragen'],
146
- 'enableSftp': !exists(json, 'enableSftp') ? undefined : json['enableSftp'],
147
- 'maxF1VCPU': !exists(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
148
- 'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
149
- 'retentionPolicyDays': !exists(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
150
- 'serviceConnections': !exists(json, 'serviceConnections') ? undefined : json['serviceConnections'],
151
- 'createVpc': !exists(json, 'createVpc') ? undefined : json['createVpc'],
152
- 'vpcId': !exists(json, 'vpcId') ? undefined : json['vpcId'],
153
- 'batchSubnets': !exists(json, 'batchSubnets') ? undefined : json['batchSubnets'],
154
- 'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
155
+ 'budgetAmount': json['budgetAmount'],
156
+ 'budgetPeriod': BudgetPeriodFromJSON(json['budgetPeriod']),
157
+ 'dragenAmi': json['dragenAmi'],
158
+ 'enableCompute': json['enableCompute'],
159
+ 'enableDragen': json['enableDragen'],
160
+ 'enableBackup': json['enableBackup'],
161
+ 'enableSftp': json['enableSftp'],
162
+ 'maxF1VCPU': json['maxF1VCPU'],
163
+ 'maxSpotVCPU': json['maxSpotVCPU'],
164
+ 'retentionPolicyDays': json['retentionPolicyDays'],
165
+ 'serviceConnections': json['serviceConnections'],
166
+ 'createVpc': json['createVpc'],
167
+ 'vpcId': json['vpcId'],
168
+ 'batchSubnets': json['batchSubnets'],
169
+ 'kmsArn': json['kmsArn'],
155
170
  };
156
171
  }
157
172
 
@@ -167,9 +182,9 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
167
182
  'budgetAmount': value.budgetAmount,
168
183
  'budgetPeriod': BudgetPeriodToJSON(value.budgetPeriod),
169
184
  'dragenAmi': value.dragenAmi,
170
- 'enableBackup': value.enableBackup,
171
185
  'enableCompute': value.enableCompute,
172
186
  'enableDragen': value.enableDragen,
187
+ 'enableBackup': value.enableBackup,
173
188
  'enableSftp': value.enableSftp,
174
189
  'maxF1VCPU': value.maxF1VCPU,
175
190
  'maxSpotVCPU': value.maxSpotVCPU,