@nirvana-labs/nirvana 1.78.0 → 1.80.0
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/CHANGELOG.md +39 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/instance-types/instance-types.d.mts +4 -0
- package/resources/instance-types/instance-types.d.mts.map +1 -1
- package/resources/instance-types/instance-types.d.ts +4 -0
- package/resources/instance-types/instance-types.d.ts.map +1 -1
- package/resources/organizations/organizations.d.mts +9 -1
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +9 -1
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs.map +1 -1
- package/resources/quotas/index.d.mts +2 -0
- package/resources/quotas/index.d.mts.map +1 -0
- package/resources/quotas/index.d.ts +2 -0
- package/resources/quotas/index.d.ts.map +1 -0
- package/resources/quotas/index.js +7 -0
- package/resources/quotas/index.js.map +1 -0
- package/resources/quotas/index.mjs +3 -0
- package/resources/quotas/index.mjs.map +1 -0
- package/resources/quotas/quotas.d.mts +132 -0
- package/resources/quotas/quotas.d.mts.map +1 -0
- package/resources/quotas/quotas.d.ts +132 -0
- package/resources/quotas/quotas.d.ts.map +1 -0
- package/resources/quotas/quotas.js +32 -0
- package/resources/quotas/quotas.js.map +1 -0
- package/resources/quotas/quotas.mjs +28 -0
- package/resources/quotas/quotas.mjs.map +1 -0
- package/resources/quotas.d.mts +2 -0
- package/resources/quotas.d.mts.map +1 -0
- package/resources/quotas.d.ts +2 -0
- package/resources/quotas.d.ts.map +1 -0
- package/resources/quotas.js +6 -0
- package/resources/quotas.js.map +1 -0
- package/resources/quotas.mjs +3 -0
- package/resources/quotas.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/instance-types/instance-types.ts +5 -0
- package/src/resources/organizations/api.md +1 -0
- package/src/resources/organizations/organizations.ts +11 -0
- package/src/resources/quotas/api.md +16 -0
- package/src/resources/quotas/index.ts +3 -0
- package/src/resources/quotas/quotas.ts +170 -0
- package/src/resources/quotas.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Quotas extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List quota usage and limits for the current organization across all regions
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const quotaList = await client.quotas.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<QuotaList> {
|
|
19
|
+
return this._client.get('/v1/quotas', options);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Get quota usage and limits for the current organization in a single region
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const quota = await client.quotas.get('us-sva-1');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
get(region: 'us-sva-1' | 'us-sva-2' | 'us-chi-1', options?: RequestOptions): APIPromise<Quota> {
|
|
31
|
+
return this._client.get(path`/v1/quotas/${region}`, options);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Quota response.
|
|
37
|
+
*/
|
|
38
|
+
export interface Quota {
|
|
39
|
+
/**
|
|
40
|
+
* Compute quota.
|
|
41
|
+
*/
|
|
42
|
+
compute: QuotaCompute;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Networking quota.
|
|
46
|
+
*/
|
|
47
|
+
networking: QuotaNetworking;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* NKS quota.
|
|
51
|
+
*/
|
|
52
|
+
nks: QuotaNKS;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Region the resource is in.
|
|
56
|
+
*/
|
|
57
|
+
region: Shared.RegionName;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Storage quota.
|
|
61
|
+
*/
|
|
62
|
+
storage: QuotaStorage;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Compute quota.
|
|
67
|
+
*/
|
|
68
|
+
export interface QuotaCompute {
|
|
69
|
+
/**
|
|
70
|
+
* Quota resource detail.
|
|
71
|
+
*/
|
|
72
|
+
memory_gb: QuotaResourceDetail;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Quota resource detail.
|
|
76
|
+
*/
|
|
77
|
+
vcpu: QuotaResourceDetail;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface QuotaList {
|
|
81
|
+
items: Array<Quota>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Pagination response details.
|
|
85
|
+
*/
|
|
86
|
+
pagination: Shared.Pagination;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Networking quota.
|
|
91
|
+
*/
|
|
92
|
+
export interface QuotaNetworking {
|
|
93
|
+
/**
|
|
94
|
+
* Quota resource detail.
|
|
95
|
+
*/
|
|
96
|
+
connect_connections: QuotaResourceDetail;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Quota resource detail.
|
|
100
|
+
*/
|
|
101
|
+
public_ips: QuotaResourceDetail;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Quota resource detail.
|
|
105
|
+
*/
|
|
106
|
+
vpcs: QuotaResourceDetail;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* NKS quota.
|
|
111
|
+
*/
|
|
112
|
+
export interface QuotaNKS {
|
|
113
|
+
/**
|
|
114
|
+
* Quota resource detail.
|
|
115
|
+
*/
|
|
116
|
+
clusters: QuotaResourceDetail;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Quota resource detail.
|
|
120
|
+
*/
|
|
121
|
+
memory_gb: QuotaResourceDetail;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Quota resource detail.
|
|
125
|
+
*/
|
|
126
|
+
public_ips: QuotaResourceDetail;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Quota resource detail.
|
|
130
|
+
*/
|
|
131
|
+
vcpu: QuotaResourceDetail;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Quota resource detail.
|
|
136
|
+
*/
|
|
137
|
+
export interface QuotaResourceDetail {
|
|
138
|
+
limit: number;
|
|
139
|
+
|
|
140
|
+
remaining: number;
|
|
141
|
+
|
|
142
|
+
used: number;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Storage quota.
|
|
147
|
+
*/
|
|
148
|
+
export interface QuotaStorage {
|
|
149
|
+
/**
|
|
150
|
+
* Quota resource detail.
|
|
151
|
+
*/
|
|
152
|
+
abs: QuotaResourceDetail;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Quota resource detail.
|
|
156
|
+
*/
|
|
157
|
+
local_nvme: QuotaResourceDetail;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export declare namespace Quotas {
|
|
161
|
+
export {
|
|
162
|
+
type Quota as Quota,
|
|
163
|
+
type QuotaCompute as QuotaCompute,
|
|
164
|
+
type QuotaList as QuotaList,
|
|
165
|
+
type QuotaNetworking as QuotaNetworking,
|
|
166
|
+
type QuotaNKS as QuotaNKS,
|
|
167
|
+
type QuotaResourceDetail as QuotaResourceDetail,
|
|
168
|
+
type QuotaStorage as QuotaStorage,
|
|
169
|
+
};
|
|
170
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.80.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.80.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.80.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.80.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|