@cirrobio/api-client 0.12.24 → 0.12.26

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.12.24 --save
39
+ npm install @cirrobio/api-client@0.12.26 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApproveProjectAccessRequest, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectInput, ProjectUser, SetUserProjectRoleRequest, Tag } from '../models/index';
13
+ import type { ApproveProjectAccessRequest, CloudQuota, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectInput, ProjectUser, RequestQuotaIncreaseCommand, RequestQuotaIncreaseResponse, SetUserProjectRoleRequest, Tag } from '../models/index';
14
14
  export interface ApproveAccessRequestRequest {
15
15
  projectId: string;
16
16
  accessRequestId: string;
@@ -40,9 +40,16 @@ export interface GetProjectRequest {
40
40
  export interface GetProjectUsersRequest {
41
41
  projectId: string;
42
42
  }
43
+ export interface GetQuotasRequest {
44
+ projectId: string;
45
+ }
43
46
  export interface RedeployProjectRequest {
44
47
  projectId: string;
45
48
  }
49
+ export interface RequestQuotaIncreaseRequest {
50
+ projectId: string;
51
+ requestQuotaIncreaseCommand: RequestQuotaIncreaseCommand;
52
+ }
46
53
  export interface SetUserProjectRoleOperationRequest {
47
54
  projectId: string;
48
55
  setUserProjectRoleRequest: SetUserProjectRoleRequest;
@@ -172,6 +179,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
172
179
  * Get projects
173
180
  */
174
181
  getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
182
+ /**
183
+ * Retrieves a list of relevant cloud service quotas for project
184
+ * Get cloud quotas
185
+ */
186
+ getQuotasRaw(requestParameters: GetQuotasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CloudQuota>>>;
187
+ /**
188
+ * Retrieves a list of relevant cloud service quotas for project
189
+ * Get cloud quotas
190
+ */
191
+ getQuotas(requestParameters: GetQuotasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CloudQuota>>;
175
192
  /**
176
193
  * Redeploys cloud resources for a project
177
194
  * Redeploy project
@@ -182,6 +199,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
182
199
  * Redeploy project
183
200
  */
184
201
  redeployProject(requestParameters: RedeployProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
202
+ /**
203
+ * Request a service quota increase for a project\'s cloud account
204
+ * Request quota increase
205
+ */
206
+ requestQuotaIncreaseRaw(requestParameters: RequestQuotaIncreaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RequestQuotaIncreaseResponse>>;
207
+ /**
208
+ * Request a service quota increase for a project\'s cloud account
209
+ * Request quota increase
210
+ */
211
+ requestQuotaIncrease(requestParameters: RequestQuotaIncreaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RequestQuotaIncreaseResponse>;
185
212
  /**
186
213
  * Sets a user\'s role within a project
187
214
  * Set role
@@ -445,6 +445,43 @@ class ProjectsApi extends runtime.BaseAPI {
445
445
  return yield response.value();
446
446
  });
447
447
  }
448
+ /**
449
+ * Retrieves a list of relevant cloud service quotas for project
450
+ * Get cloud quotas
451
+ */
452
+ getQuotasRaw(requestParameters, initOverrides) {
453
+ return __awaiter(this, void 0, void 0, function* () {
454
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
455
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getQuotas.');
456
+ }
457
+ const queryParameters = {};
458
+ const headerParameters = {};
459
+ if (this.configuration && this.configuration.accessToken) {
460
+ const token = this.configuration.accessToken;
461
+ const tokenString = yield token("accessToken", []);
462
+ if (tokenString) {
463
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
464
+ }
465
+ }
466
+ const response = yield this.request({
467
+ path: `/projects/{projectId}/cloud-quotas`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
468
+ method: 'GET',
469
+ headers: headerParameters,
470
+ query: queryParameters,
471
+ }, initOverrides);
472
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.CloudQuotaFromJSON));
473
+ });
474
+ }
475
+ /**
476
+ * Retrieves a list of relevant cloud service quotas for project
477
+ * Get cloud quotas
478
+ */
479
+ getQuotas(requestParameters, initOverrides) {
480
+ return __awaiter(this, void 0, void 0, function* () {
481
+ const response = yield this.getQuotasRaw(requestParameters, initOverrides);
482
+ return yield response.value();
483
+ });
484
+ }
448
485
  /**
449
486
  * Redeploys cloud resources for a project
450
487
  * Redeploy project
@@ -481,6 +518,48 @@ class ProjectsApi extends runtime.BaseAPI {
481
518
  yield this.redeployProjectRaw(requestParameters, initOverrides);
482
519
  });
483
520
  }
521
+ /**
522
+ * Request a service quota increase for a project\'s cloud account
523
+ * Request quota increase
524
+ */
525
+ requestQuotaIncreaseRaw(requestParameters, initOverrides) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
528
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling requestQuotaIncrease.');
529
+ }
530
+ if (requestParameters.requestQuotaIncreaseCommand === null || requestParameters.requestQuotaIncreaseCommand === undefined) {
531
+ throw new runtime.RequiredError('requestQuotaIncreaseCommand', 'Required parameter requestParameters.requestQuotaIncreaseCommand was null or undefined when calling requestQuotaIncrease.');
532
+ }
533
+ const queryParameters = {};
534
+ const headerParameters = {};
535
+ headerParameters['Content-Type'] = 'application/json';
536
+ if (this.configuration && this.configuration.accessToken) {
537
+ const token = this.configuration.accessToken;
538
+ const tokenString = yield token("accessToken", []);
539
+ if (tokenString) {
540
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
541
+ }
542
+ }
543
+ const response = yield this.request({
544
+ path: `/projects/{projectId}/cloud-quotas`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
545
+ method: 'PUT',
546
+ headers: headerParameters,
547
+ query: queryParameters,
548
+ body: (0, index_1.RequestQuotaIncreaseCommandToJSON)(requestParameters.requestQuotaIncreaseCommand),
549
+ }, initOverrides);
550
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RequestQuotaIncreaseResponseFromJSON)(jsonValue));
551
+ });
552
+ }
553
+ /**
554
+ * Request a service quota increase for a project\'s cloud account
555
+ * Request quota increase
556
+ */
557
+ requestQuotaIncrease(requestParameters, initOverrides) {
558
+ return __awaiter(this, void 0, void 0, function* () {
559
+ const response = yield this.requestQuotaIncreaseRaw(requestParameters, initOverrides);
560
+ return yield response.value();
561
+ });
562
+ }
484
563
  /**
485
564
  * Sets a user\'s role within a project
486
565
  * Set role
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApproveProjectAccessRequest, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectInput, ProjectUser, SetUserProjectRoleRequest, Tag } from '../models/index';
13
+ import type { ApproveProjectAccessRequest, CloudQuota, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectInput, ProjectUser, RequestQuotaIncreaseCommand, RequestQuotaIncreaseResponse, SetUserProjectRoleRequest, Tag } from '../models/index';
14
14
  export interface ApproveAccessRequestRequest {
15
15
  projectId: string;
16
16
  accessRequestId: string;
@@ -40,9 +40,16 @@ export interface GetProjectRequest {
40
40
  export interface GetProjectUsersRequest {
41
41
  projectId: string;
42
42
  }
43
+ export interface GetQuotasRequest {
44
+ projectId: string;
45
+ }
43
46
  export interface RedeployProjectRequest {
44
47
  projectId: string;
45
48
  }
49
+ export interface RequestQuotaIncreaseRequest {
50
+ projectId: string;
51
+ requestQuotaIncreaseCommand: RequestQuotaIncreaseCommand;
52
+ }
46
53
  export interface SetUserProjectRoleOperationRequest {
47
54
  projectId: string;
48
55
  setUserProjectRoleRequest: SetUserProjectRoleRequest;
@@ -172,6 +179,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
172
179
  * Get projects
173
180
  */
174
181
  getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
182
+ /**
183
+ * Retrieves a list of relevant cloud service quotas for project
184
+ * Get cloud quotas
185
+ */
186
+ getQuotasRaw(requestParameters: GetQuotasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CloudQuota>>>;
187
+ /**
188
+ * Retrieves a list of relevant cloud service quotas for project
189
+ * Get cloud quotas
190
+ */
191
+ getQuotas(requestParameters: GetQuotasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CloudQuota>>;
175
192
  /**
176
193
  * Redeploys cloud resources for a project
177
194
  * Redeploy project
@@ -182,6 +199,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
182
199
  * Redeploy project
183
200
  */
184
201
  redeployProject(requestParameters: RedeployProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
202
+ /**
203
+ * Request a service quota increase for a project\'s cloud account
204
+ * Request quota increase
205
+ */
206
+ requestQuotaIncreaseRaw(requestParameters: RequestQuotaIncreaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RequestQuotaIncreaseResponse>>;
207
+ /**
208
+ * Request a service quota increase for a project\'s cloud account
209
+ * Request quota increase
210
+ */
211
+ requestQuotaIncrease(requestParameters: RequestQuotaIncreaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RequestQuotaIncreaseResponse>;
185
212
  /**
186
213
  * Sets a user\'s role within a project
187
214
  * Set role
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApproveProjectAccessRequestToJSON, CreateProjectAccessRequestToJSON, CreateResponseFromJSON, ProjectFromJSON, ProjectAccessRequestFromJSON, ProjectCreateOptionsFromJSON, ProjectDetailFromJSON, ProjectInputToJSON, ProjectUserFromJSON, SetUserProjectRoleRequestToJSON, TagToJSON, } from '../models/index';
24
+ import { ApproveProjectAccessRequestToJSON, CloudQuotaFromJSON, CreateProjectAccessRequestToJSON, CreateResponseFromJSON, ProjectFromJSON, ProjectAccessRequestFromJSON, ProjectCreateOptionsFromJSON, ProjectDetailFromJSON, ProjectInputToJSON, ProjectUserFromJSON, RequestQuotaIncreaseCommandToJSON, RequestQuotaIncreaseResponseFromJSON, SetUserProjectRoleRequestToJSON, TagToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -442,6 +442,43 @@ export class ProjectsApi extends runtime.BaseAPI {
442
442
  return yield response.value();
443
443
  });
444
444
  }
445
+ /**
446
+ * Retrieves a list of relevant cloud service quotas for project
447
+ * Get cloud quotas
448
+ */
449
+ getQuotasRaw(requestParameters, initOverrides) {
450
+ return __awaiter(this, void 0, void 0, function* () {
451
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
452
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getQuotas.');
453
+ }
454
+ const queryParameters = {};
455
+ const headerParameters = {};
456
+ if (this.configuration && this.configuration.accessToken) {
457
+ const token = this.configuration.accessToken;
458
+ const tokenString = yield token("accessToken", []);
459
+ if (tokenString) {
460
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
461
+ }
462
+ }
463
+ const response = yield this.request({
464
+ path: `/projects/{projectId}/cloud-quotas`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
465
+ method: 'GET',
466
+ headers: headerParameters,
467
+ query: queryParameters,
468
+ }, initOverrides);
469
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CloudQuotaFromJSON));
470
+ });
471
+ }
472
+ /**
473
+ * Retrieves a list of relevant cloud service quotas for project
474
+ * Get cloud quotas
475
+ */
476
+ getQuotas(requestParameters, initOverrides) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ const response = yield this.getQuotasRaw(requestParameters, initOverrides);
479
+ return yield response.value();
480
+ });
481
+ }
445
482
  /**
446
483
  * Redeploys cloud resources for a project
447
484
  * Redeploy project
@@ -478,6 +515,48 @@ export class ProjectsApi extends runtime.BaseAPI {
478
515
  yield this.redeployProjectRaw(requestParameters, initOverrides);
479
516
  });
480
517
  }
518
+ /**
519
+ * Request a service quota increase for a project\'s cloud account
520
+ * Request quota increase
521
+ */
522
+ requestQuotaIncreaseRaw(requestParameters, initOverrides) {
523
+ return __awaiter(this, void 0, void 0, function* () {
524
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
525
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling requestQuotaIncrease.');
526
+ }
527
+ if (requestParameters.requestQuotaIncreaseCommand === null || requestParameters.requestQuotaIncreaseCommand === undefined) {
528
+ throw new runtime.RequiredError('requestQuotaIncreaseCommand', 'Required parameter requestParameters.requestQuotaIncreaseCommand was null or undefined when calling requestQuotaIncrease.');
529
+ }
530
+ const queryParameters = {};
531
+ const headerParameters = {};
532
+ headerParameters['Content-Type'] = 'application/json';
533
+ if (this.configuration && this.configuration.accessToken) {
534
+ const token = this.configuration.accessToken;
535
+ const tokenString = yield token("accessToken", []);
536
+ if (tokenString) {
537
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
538
+ }
539
+ }
540
+ const response = yield this.request({
541
+ path: `/projects/{projectId}/cloud-quotas`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
542
+ method: 'PUT',
543
+ headers: headerParameters,
544
+ query: queryParameters,
545
+ body: RequestQuotaIncreaseCommandToJSON(requestParameters.requestQuotaIncreaseCommand),
546
+ }, initOverrides);
547
+ return new runtime.JSONApiResponse(response, (jsonValue) => RequestQuotaIncreaseResponseFromJSON(jsonValue));
548
+ });
549
+ }
550
+ /**
551
+ * Request a service quota increase for a project\'s cloud account
552
+ * Request quota increase
553
+ */
554
+ requestQuotaIncrease(requestParameters, initOverrides) {
555
+ return __awaiter(this, void 0, void 0, function* () {
556
+ const response = yield this.requestQuotaIncreaseRaw(requestParameters, initOverrides);
557
+ return yield response.value();
558
+ });
559
+ }
481
560
  /**
482
561
  * Sets a user\'s role within a project
483
562
  * Set role
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CloudQuota
16
+ */
17
+ export interface CloudQuota {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CloudQuota
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CloudQuota
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CloudQuota
34
+ */
35
+ service: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CloudQuota
40
+ */
41
+ code: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CloudQuota
46
+ */
47
+ appliedQuota: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CloudQuota
52
+ */
53
+ requestedQuota?: number | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof CloudQuota
58
+ */
59
+ hasOpenRequest: boolean;
60
+ }
61
+ /**
62
+ * Check if a given object implements the CloudQuota interface.
63
+ */
64
+ export declare function instanceOfCloudQuota(value: object): boolean;
65
+ export declare function CloudQuotaFromJSON(json: any): CloudQuota;
66
+ export declare function CloudQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloudQuota;
67
+ export declare function CloudQuotaToJSON(value?: CloudQuota | null): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the CloudQuota interface.
17
+ */
18
+ export function instanceOfCloudQuota(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "name" in value;
21
+ isInstance = isInstance && "description" in value;
22
+ isInstance = isInstance && "service" in value;
23
+ isInstance = isInstance && "code" in value;
24
+ isInstance = isInstance && "appliedQuota" in value;
25
+ isInstance = isInstance && "hasOpenRequest" in value;
26
+ return isInstance;
27
+ }
28
+ export function CloudQuotaFromJSON(json) {
29
+ return CloudQuotaFromJSONTyped(json, false);
30
+ }
31
+ export function CloudQuotaFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'],
37
+ 'description': json['description'],
38
+ 'service': json['service'],
39
+ 'code': json['code'],
40
+ 'appliedQuota': json['appliedQuota'],
41
+ 'requestedQuota': !exists(json, 'requestedQuota') ? undefined : json['requestedQuota'],
42
+ 'hasOpenRequest': json['hasOpenRequest'],
43
+ };
44
+ }
45
+ export function CloudQuotaToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'name': value.name,
54
+ 'description': value.description,
55
+ 'service': value.service,
56
+ 'code': value.code,
57
+ 'appliedQuota': value.appliedQuota,
58
+ 'requestedQuota': value.requestedQuota,
59
+ 'hasOpenRequest': value.hasOpenRequest,
60
+ };
61
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RequestQuotaIncreaseCommand
16
+ */
17
+ export interface RequestQuotaIncreaseCommand {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RequestQuotaIncreaseCommand
22
+ */
23
+ serviceCode: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RequestQuotaIncreaseCommand
28
+ */
29
+ quotaCode: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof RequestQuotaIncreaseCommand
34
+ */
35
+ value: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the RequestQuotaIncreaseCommand interface.
39
+ */
40
+ export declare function instanceOfRequestQuotaIncreaseCommand(value: object): boolean;
41
+ export declare function RequestQuotaIncreaseCommandFromJSON(json: any): RequestQuotaIncreaseCommand;
42
+ export declare function RequestQuotaIncreaseCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestQuotaIncreaseCommand;
43
+ export declare function RequestQuotaIncreaseCommandToJSON(value?: RequestQuotaIncreaseCommand | null): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the RequestQuotaIncreaseCommand interface.
16
+ */
17
+ export function instanceOfRequestQuotaIncreaseCommand(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "serviceCode" in value;
20
+ isInstance = isInstance && "quotaCode" in value;
21
+ isInstance = isInstance && "value" in value;
22
+ return isInstance;
23
+ }
24
+ export function RequestQuotaIncreaseCommandFromJSON(json) {
25
+ return RequestQuotaIncreaseCommandFromJSONTyped(json, false);
26
+ }
27
+ export function RequestQuotaIncreaseCommandFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'serviceCode': json['serviceCode'],
33
+ 'quotaCode': json['quotaCode'],
34
+ 'value': json['value'],
35
+ };
36
+ }
37
+ export function RequestQuotaIncreaseCommandToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'serviceCode': value.serviceCode,
46
+ 'quotaCode': value.quotaCode,
47
+ 'value': value.value,
48
+ };
49
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CloudQuota } from './CloudQuota';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RequestQuotaIncreaseResponse
17
+ */
18
+ export interface RequestQuotaIncreaseResponse {
19
+ /**
20
+ *
21
+ * @type {CloudQuota}
22
+ * @memberof RequestQuotaIncreaseResponse
23
+ */
24
+ quota: CloudQuota;
25
+ }
26
+ /**
27
+ * Check if a given object implements the RequestQuotaIncreaseResponse interface.
28
+ */
29
+ export declare function instanceOfRequestQuotaIncreaseResponse(value: object): boolean;
30
+ export declare function RequestQuotaIncreaseResponseFromJSON(json: any): RequestQuotaIncreaseResponse;
31
+ export declare function RequestQuotaIncreaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestQuotaIncreaseResponse;
32
+ export declare function RequestQuotaIncreaseResponseToJSON(value?: RequestQuotaIncreaseResponse | null): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CloudQuotaFromJSON, CloudQuotaToJSON, } from './CloudQuota';
15
+ /**
16
+ * Check if a given object implements the RequestQuotaIncreaseResponse interface.
17
+ */
18
+ export function instanceOfRequestQuotaIncreaseResponse(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "quota" in value;
21
+ return isInstance;
22
+ }
23
+ export function RequestQuotaIncreaseResponseFromJSON(json) {
24
+ return RequestQuotaIncreaseResponseFromJSONTyped(json, false);
25
+ }
26
+ export function RequestQuotaIncreaseResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'quota': CloudQuotaFromJSON(json['quota']),
32
+ };
33
+ }
34
+ export function RequestQuotaIncreaseResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'quota': CloudQuotaToJSON(value.quota),
43
+ };
44
+ }
@@ -23,6 +23,7 @@ export * from './BudgetPeriod';
23
23
  export * from './ClassificationInput';
24
24
  export * from './CloudAccount';
25
25
  export * from './CloudAccountType';
26
+ export * from './CloudQuota';
26
27
  export * from './ColumnDataType';
27
28
  export * from './ColumnDef';
28
29
  export * from './ColumnDefinition';
@@ -132,6 +133,8 @@ export * from './ProjectUser';
132
133
  export * from './Reference';
133
134
  export * from './ReferenceType';
134
135
  export * from './RepositoryType';
136
+ export * from './RequestQuotaIncreaseCommand';
137
+ export * from './RequestQuotaIncreaseResponse';
135
138
  export * from './RequestStatus';
136
139
  export * from './RequirementFulfillmentInput';
137
140
  export * from './RequirementInput';
@@ -25,6 +25,7 @@ export * from './BudgetPeriod';
25
25
  export * from './ClassificationInput';
26
26
  export * from './CloudAccount';
27
27
  export * from './CloudAccountType';
28
+ export * from './CloudQuota';
28
29
  export * from './ColumnDataType';
29
30
  export * from './ColumnDef';
30
31
  export * from './ColumnDefinition';
@@ -134,6 +135,8 @@ export * from './ProjectUser';
134
135
  export * from './Reference';
135
136
  export * from './ReferenceType';
136
137
  export * from './RepositoryType';
138
+ export * from './RequestQuotaIncreaseCommand';
139
+ export * from './RequestQuotaIncreaseResponse';
137
140
  export * from './RequestStatus';
138
141
  export * from './RequirementFulfillmentInput';
139
142
  export * from './RequirementInput';
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CloudQuota
16
+ */
17
+ export interface CloudQuota {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CloudQuota
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CloudQuota
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CloudQuota
34
+ */
35
+ service: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CloudQuota
40
+ */
41
+ code: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CloudQuota
46
+ */
47
+ appliedQuota: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CloudQuota
52
+ */
53
+ requestedQuota?: number | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof CloudQuota
58
+ */
59
+ hasOpenRequest: boolean;
60
+ }
61
+ /**
62
+ * Check if a given object implements the CloudQuota interface.
63
+ */
64
+ export declare function instanceOfCloudQuota(value: object): boolean;
65
+ export declare function CloudQuotaFromJSON(json: any): CloudQuota;
66
+ export declare function CloudQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloudQuota;
67
+ export declare function CloudQuotaToJSON(value?: CloudQuota | null): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CloudQuotaToJSON = exports.CloudQuotaFromJSONTyped = exports.CloudQuotaFromJSON = exports.instanceOfCloudQuota = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CloudQuota interface.
20
+ */
21
+ function instanceOfCloudQuota(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "service" in value;
26
+ isInstance = isInstance && "code" in value;
27
+ isInstance = isInstance && "appliedQuota" in value;
28
+ isInstance = isInstance && "hasOpenRequest" in value;
29
+ return isInstance;
30
+ }
31
+ exports.instanceOfCloudQuota = instanceOfCloudQuota;
32
+ function CloudQuotaFromJSON(json) {
33
+ return CloudQuotaFromJSONTyped(json, false);
34
+ }
35
+ exports.CloudQuotaFromJSON = CloudQuotaFromJSON;
36
+ function CloudQuotaFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'name': json['name'],
42
+ 'description': json['description'],
43
+ 'service': json['service'],
44
+ 'code': json['code'],
45
+ 'appliedQuota': json['appliedQuota'],
46
+ 'requestedQuota': !(0, runtime_1.exists)(json, 'requestedQuota') ? undefined : json['requestedQuota'],
47
+ 'hasOpenRequest': json['hasOpenRequest'],
48
+ };
49
+ }
50
+ exports.CloudQuotaFromJSONTyped = CloudQuotaFromJSONTyped;
51
+ function CloudQuotaToJSON(value) {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+ 'name': value.name,
60
+ 'description': value.description,
61
+ 'service': value.service,
62
+ 'code': value.code,
63
+ 'appliedQuota': value.appliedQuota,
64
+ 'requestedQuota': value.requestedQuota,
65
+ 'hasOpenRequest': value.hasOpenRequest,
66
+ };
67
+ }
68
+ exports.CloudQuotaToJSON = CloudQuotaToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RequestQuotaIncreaseCommand
16
+ */
17
+ export interface RequestQuotaIncreaseCommand {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RequestQuotaIncreaseCommand
22
+ */
23
+ serviceCode: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RequestQuotaIncreaseCommand
28
+ */
29
+ quotaCode: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof RequestQuotaIncreaseCommand
34
+ */
35
+ value: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the RequestQuotaIncreaseCommand interface.
39
+ */
40
+ export declare function instanceOfRequestQuotaIncreaseCommand(value: object): boolean;
41
+ export declare function RequestQuotaIncreaseCommandFromJSON(json: any): RequestQuotaIncreaseCommand;
42
+ export declare function RequestQuotaIncreaseCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestQuotaIncreaseCommand;
43
+ export declare function RequestQuotaIncreaseCommandToJSON(value?: RequestQuotaIncreaseCommand | null): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.RequestQuotaIncreaseCommandToJSON = exports.RequestQuotaIncreaseCommandFromJSONTyped = exports.RequestQuotaIncreaseCommandFromJSON = exports.instanceOfRequestQuotaIncreaseCommand = void 0;
17
+ /**
18
+ * Check if a given object implements the RequestQuotaIncreaseCommand interface.
19
+ */
20
+ function instanceOfRequestQuotaIncreaseCommand(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "serviceCode" in value;
23
+ isInstance = isInstance && "quotaCode" in value;
24
+ isInstance = isInstance && "value" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfRequestQuotaIncreaseCommand = instanceOfRequestQuotaIncreaseCommand;
28
+ function RequestQuotaIncreaseCommandFromJSON(json) {
29
+ return RequestQuotaIncreaseCommandFromJSONTyped(json, false);
30
+ }
31
+ exports.RequestQuotaIncreaseCommandFromJSON = RequestQuotaIncreaseCommandFromJSON;
32
+ function RequestQuotaIncreaseCommandFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'serviceCode': json['serviceCode'],
38
+ 'quotaCode': json['quotaCode'],
39
+ 'value': json['value'],
40
+ };
41
+ }
42
+ exports.RequestQuotaIncreaseCommandFromJSONTyped = RequestQuotaIncreaseCommandFromJSONTyped;
43
+ function RequestQuotaIncreaseCommandToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'serviceCode': value.serviceCode,
52
+ 'quotaCode': value.quotaCode,
53
+ 'value': value.value,
54
+ };
55
+ }
56
+ exports.RequestQuotaIncreaseCommandToJSON = RequestQuotaIncreaseCommandToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CloudQuota } from './CloudQuota';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RequestQuotaIncreaseResponse
17
+ */
18
+ export interface RequestQuotaIncreaseResponse {
19
+ /**
20
+ *
21
+ * @type {CloudQuota}
22
+ * @memberof RequestQuotaIncreaseResponse
23
+ */
24
+ quota: CloudQuota;
25
+ }
26
+ /**
27
+ * Check if a given object implements the RequestQuotaIncreaseResponse interface.
28
+ */
29
+ export declare function instanceOfRequestQuotaIncreaseResponse(value: object): boolean;
30
+ export declare function RequestQuotaIncreaseResponseFromJSON(json: any): RequestQuotaIncreaseResponse;
31
+ export declare function RequestQuotaIncreaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestQuotaIncreaseResponse;
32
+ export declare function RequestQuotaIncreaseResponseToJSON(value?: RequestQuotaIncreaseResponse | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.RequestQuotaIncreaseResponseToJSON = exports.RequestQuotaIncreaseResponseFromJSONTyped = exports.RequestQuotaIncreaseResponseFromJSON = exports.instanceOfRequestQuotaIncreaseResponse = void 0;
17
+ const CloudQuota_1 = require("./CloudQuota");
18
+ /**
19
+ * Check if a given object implements the RequestQuotaIncreaseResponse interface.
20
+ */
21
+ function instanceOfRequestQuotaIncreaseResponse(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "quota" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfRequestQuotaIncreaseResponse = instanceOfRequestQuotaIncreaseResponse;
27
+ function RequestQuotaIncreaseResponseFromJSON(json) {
28
+ return RequestQuotaIncreaseResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.RequestQuotaIncreaseResponseFromJSON = RequestQuotaIncreaseResponseFromJSON;
31
+ function RequestQuotaIncreaseResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'quota': (0, CloudQuota_1.CloudQuotaFromJSON)(json['quota']),
37
+ };
38
+ }
39
+ exports.RequestQuotaIncreaseResponseFromJSONTyped = RequestQuotaIncreaseResponseFromJSONTyped;
40
+ function RequestQuotaIncreaseResponseToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'quota': (0, CloudQuota_1.CloudQuotaToJSON)(value.quota),
49
+ };
50
+ }
51
+ exports.RequestQuotaIncreaseResponseToJSON = RequestQuotaIncreaseResponseToJSON;
@@ -23,6 +23,7 @@ export * from './BudgetPeriod';
23
23
  export * from './ClassificationInput';
24
24
  export * from './CloudAccount';
25
25
  export * from './CloudAccountType';
26
+ export * from './CloudQuota';
26
27
  export * from './ColumnDataType';
27
28
  export * from './ColumnDef';
28
29
  export * from './ColumnDefinition';
@@ -132,6 +133,8 @@ export * from './ProjectUser';
132
133
  export * from './Reference';
133
134
  export * from './ReferenceType';
134
135
  export * from './RepositoryType';
136
+ export * from './RequestQuotaIncreaseCommand';
137
+ export * from './RequestQuotaIncreaseResponse';
135
138
  export * from './RequestStatus';
136
139
  export * from './RequirementFulfillmentInput';
137
140
  export * from './RequirementInput';
@@ -41,6 +41,7 @@ __exportStar(require("./BudgetPeriod"), exports);
41
41
  __exportStar(require("./ClassificationInput"), exports);
42
42
  __exportStar(require("./CloudAccount"), exports);
43
43
  __exportStar(require("./CloudAccountType"), exports);
44
+ __exportStar(require("./CloudQuota"), exports);
44
45
  __exportStar(require("./ColumnDataType"), exports);
45
46
  __exportStar(require("./ColumnDef"), exports);
46
47
  __exportStar(require("./ColumnDefinition"), exports);
@@ -150,6 +151,8 @@ __exportStar(require("./ProjectUser"), exports);
150
151
  __exportStar(require("./Reference"), exports);
151
152
  __exportStar(require("./ReferenceType"), exports);
152
153
  __exportStar(require("./RepositoryType"), exports);
154
+ __exportStar(require("./RequestQuotaIncreaseCommand"), exports);
155
+ __exportStar(require("./RequestQuotaIncreaseResponse"), exports);
153
156
  __exportStar(require("./RequestStatus"), exports);
154
157
  __exportStar(require("./RequirementFulfillmentInput"), exports);
155
158
  __exportStar(require("./RequirementInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.12.24",
3
+ "version": "0.12.26",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {