@nebius/js-sdk 0.1.26 → 0.1.28
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/dist/cjs/api/nebius/audit/v2/index.d.ts +1 -1
- package/dist/cjs/api/nebius/capacity/v1/index.d.ts +682 -0
- package/dist/cjs/api/nebius/capacity/v1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/capacity/v1/index.js +2647 -0
- package/dist/cjs/api/nebius/capacity/v1/index.js.map +1 -0
- package/dist/cjs/api/nebius/common/v1alpha1/index.d.ts +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +7 -4
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/storage/v1/index.d.ts +6 -5
- package/dist/cjs/api/nebius/storage/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/storage/v1/index.js +1 -0
- package/dist/cjs/api/nebius/storage/v1/index.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/api/nebius/audit/v2/index.d.ts +1 -1
- package/dist/esm/api/nebius/capacity/v1/index.d.ts +682 -0
- package/dist/esm/api/nebius/capacity/v1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/capacity/v1/index.js +4 -0
- package/dist/esm/api/nebius/common/v1alpha1/index.d.ts +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +7 -4
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/storage/v1/index.d.ts +6 -5
- package/dist/esm/api/nebius/storage/v1/index.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
import { Long, unknownFieldsSymbol } from "../../../../runtime/protos/index";
|
|
2
|
+
import type { Dayjs, MessageFns, EnumInstance, EnumClass } from "../../../../runtime/protos/index";
|
|
3
|
+
import { customJson } from "../../../../runtime/util/logging";
|
|
4
|
+
import { ChannelCredentials, Client, ClientUnaryCall, ClientOptions, CallOptions, Metadata, ServiceError as GrpcServiceError, handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
5
|
+
import type { SDKInterface } from "../../../../sdk";
|
|
6
|
+
import { Request as SDKRequestClass, type RetryOptions } from "../../../../runtime/request";
|
|
7
|
+
import { ResourceMetadata } from "../../common/v1";
|
|
8
|
+
/**
|
|
9
|
+
* Get a Capacity Block Group by its ID.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export interface GetCapacityBlockGroupRequest {
|
|
13
|
+
$type: "nebius.capacity.v1.GetCapacityBlockGroupRequest";
|
|
14
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
15
|
+
[customJson]?: () => unknown;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Capacity Block Group.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const GetCapacityBlockGroupRequest: MessageFns<GetCapacityBlockGroupRequest, "nebius.capacity.v1.GetCapacityBlockGroupRequest">;
|
|
23
|
+
/**
|
|
24
|
+
* Get a Capacity Block Group in a Tenant by its Resource Affinity.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export interface GetCapacityBlockGroupByResourceAffinityRequest {
|
|
28
|
+
$type: "nebius.capacity.v1.GetCapacityBlockGroupByResourceAffinityRequest";
|
|
29
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
30
|
+
[customJson]?: () => unknown;
|
|
31
|
+
/**
|
|
32
|
+
* Tenant ID of the Capacity Block Group.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
parentId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the region where the Capacity Block Group is allocated.
|
|
38
|
+
* Example: "eu-north1".
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
region: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specifications of the Capacity Block Group.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
resourceAffinity?: ResourceAffinity | undefined;
|
|
47
|
+
}
|
|
48
|
+
export declare const GetCapacityBlockGroupByResourceAffinityRequest: MessageFns<GetCapacityBlockGroupByResourceAffinityRequest, "nebius.capacity.v1.GetCapacityBlockGroupByResourceAffinityRequest">;
|
|
49
|
+
/**
|
|
50
|
+
* List Capacity Block Groups by a Tenant ID.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export interface ListCapacityBlockGroupsRequest {
|
|
54
|
+
$type: "nebius.capacity.v1.ListCapacityBlockGroupsRequest";
|
|
55
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
56
|
+
[customJson]?: () => unknown;
|
|
57
|
+
/**
|
|
58
|
+
* Tenant ID of the Capacity Block Group.
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
parentId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Page size. Must be between [1...200].
|
|
64
|
+
* Optional; if not specified, a reasonable default will be chosen by the service.
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
pageSize: Long;
|
|
68
|
+
/**
|
|
69
|
+
* Listing continuation token. Pass an empty string to start listing from the first page.
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
pageToken: string;
|
|
73
|
+
}
|
|
74
|
+
export declare const ListCapacityBlockGroupsRequest: MessageFns<ListCapacityBlockGroupsRequest, "nebius.capacity.v1.ListCapacityBlockGroupsRequest">;
|
|
75
|
+
/**
|
|
76
|
+
* All existing Capacity Block Groups in a Tenant.
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
export interface ListCapacityBlockGroupsResponse {
|
|
80
|
+
$type: "nebius.capacity.v1.ListCapacityBlockGroupsResponse";
|
|
81
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
82
|
+
[customJson]?: () => unknown;
|
|
83
|
+
/**
|
|
84
|
+
* List of Capacity Block Groups on this result page.
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
items: CapacityBlockGroup[];
|
|
88
|
+
/**
|
|
89
|
+
* Listing continuation token for the next page of results.
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
nextPageToken: string;
|
|
93
|
+
}
|
|
94
|
+
export declare const ListCapacityBlockGroupsResponse: MessageFns<ListCapacityBlockGroupsResponse, "nebius.capacity.v1.ListCapacityBlockGroupsResponse">;
|
|
95
|
+
export type CapacityBlockGroupServiceServiceDescription = typeof CapacityBlockGroupServiceServiceDescription;
|
|
96
|
+
export declare const CapacityBlockGroupServiceServiceDescription: {
|
|
97
|
+
readonly get: {
|
|
98
|
+
readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/Get";
|
|
99
|
+
readonly requestStream: false;
|
|
100
|
+
readonly responseStream: false;
|
|
101
|
+
readonly requestSerialize: (value: GetCapacityBlockGroupRequest) => Buffer<ArrayBuffer>;
|
|
102
|
+
readonly sendResetMask: false;
|
|
103
|
+
readonly requestDeserialize: (value: Buffer) => GetCapacityBlockGroupRequest;
|
|
104
|
+
readonly responseSerialize: (value: CapacityBlockGroup) => Buffer<ArrayBuffer>;
|
|
105
|
+
readonly responseDeserialize: (value: Buffer) => CapacityBlockGroup;
|
|
106
|
+
};
|
|
107
|
+
readonly getByResourceAffinity: {
|
|
108
|
+
readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/GetByResourceAffinity";
|
|
109
|
+
readonly requestStream: false;
|
|
110
|
+
readonly responseStream: false;
|
|
111
|
+
readonly requestSerialize: (value: GetCapacityBlockGroupByResourceAffinityRequest) => Buffer<ArrayBuffer>;
|
|
112
|
+
readonly sendResetMask: false;
|
|
113
|
+
readonly requestDeserialize: (value: Buffer) => GetCapacityBlockGroupByResourceAffinityRequest;
|
|
114
|
+
readonly responseSerialize: (value: CapacityBlockGroup) => Buffer<ArrayBuffer>;
|
|
115
|
+
readonly responseDeserialize: (value: Buffer) => CapacityBlockGroup;
|
|
116
|
+
};
|
|
117
|
+
readonly list: {
|
|
118
|
+
readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/List";
|
|
119
|
+
readonly requestStream: false;
|
|
120
|
+
readonly responseStream: false;
|
|
121
|
+
readonly requestSerialize: (value: ListCapacityBlockGroupsRequest) => Buffer<ArrayBuffer>;
|
|
122
|
+
readonly sendResetMask: false;
|
|
123
|
+
readonly requestDeserialize: (value: Buffer) => ListCapacityBlockGroupsRequest;
|
|
124
|
+
readonly responseSerialize: (value: ListCapacityBlockGroupsResponse) => Buffer<ArrayBuffer>;
|
|
125
|
+
readonly responseDeserialize: (value: Buffer) => ListCapacityBlockGroupsResponse;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export interface CapacityBlockGroupServiceServer extends UntypedServiceImplementation {
|
|
129
|
+
get: handleUnaryCall<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
130
|
+
getByResourceAffinity: handleUnaryCall<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
131
|
+
list: handleUnaryCall<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
132
|
+
}
|
|
133
|
+
export interface CapacityBlockGroupServiceBaseClient extends Client {
|
|
134
|
+
get(request: GetCapacityBlockGroupRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: CapacityBlockGroup) => void): ClientUnaryCall;
|
|
135
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: CapacityBlockGroup) => void): ClientUnaryCall;
|
|
136
|
+
list(request: ListCapacityBlockGroupsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: ListCapacityBlockGroupsResponse) => void): ClientUnaryCall;
|
|
137
|
+
}
|
|
138
|
+
export declare const CapacityBlockGroupServiceBaseClient: {
|
|
139
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CapacityBlockGroupServiceBaseClient;
|
|
140
|
+
service: typeof CapacityBlockGroupServiceServiceDescription;
|
|
141
|
+
serviceName: string;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Capacity Block Group service provides read access to Capacity Block Groups resources.
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
export interface CapacityBlockGroupService {
|
|
148
|
+
$type: "nebius.capacity.v1.CapacityBlockGroupService";
|
|
149
|
+
/**
|
|
150
|
+
* Get Capacity Block Group by its ID.
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
get(request: GetCapacityBlockGroupRequest): SDKRequestClass<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
154
|
+
get(request: GetCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
155
|
+
get(request: GetCapacityBlockGroupRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
156
|
+
/**
|
|
157
|
+
* Get Capacity Block Group by its specification.
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest): SDKRequestClass<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
161
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata): SDKRequestClass<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
162
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
163
|
+
/**
|
|
164
|
+
* List all Capacity Block Groups for the specified Tenant.
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
list(request: ListCapacityBlockGroupsRequest): SDKRequestClass<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
168
|
+
list(request: ListCapacityBlockGroupsRequest, metadata: Metadata): SDKRequestClass<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
169
|
+
list(request: ListCapacityBlockGroupsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
170
|
+
}
|
|
171
|
+
export declare class CapacityBlockGroupService implements CapacityBlockGroupService {
|
|
172
|
+
private sdk;
|
|
173
|
+
$type: "nebius.capacity.v1.CapacityBlockGroupService";
|
|
174
|
+
private addr;
|
|
175
|
+
private spec;
|
|
176
|
+
private apiServiceName;
|
|
177
|
+
constructor(sdk: SDKInterface);
|
|
178
|
+
get(request: GetCapacityBlockGroupRequest): SDKRequestClass<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
179
|
+
get(request: GetCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
180
|
+
get(request: GetCapacityBlockGroupRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetCapacityBlockGroupRequest, CapacityBlockGroup>;
|
|
181
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest): SDKRequestClass<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
182
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata): SDKRequestClass<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
183
|
+
getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetCapacityBlockGroupByResourceAffinityRequest, CapacityBlockGroup>;
|
|
184
|
+
list(request: ListCapacityBlockGroupsRequest): SDKRequestClass<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
185
|
+
list(request: ListCapacityBlockGroupsRequest, metadata: Metadata): SDKRequestClass<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
186
|
+
list(request: ListCapacityBlockGroupsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListCapacityBlockGroupsRequest, ListCapacityBlockGroupsResponse>;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Shows a state of a Continuous Interval.
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
export type CurrentContinuousInterval_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
193
|
+
interface CurrentContinuousInterval_StateValueMembers {
|
|
194
|
+
/**
|
|
195
|
+
* Shouldn't happen.
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
199
|
+
/**
|
|
200
|
+
* Continuous Interval is in the future.
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
readonly STATE_SCHEDULED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
204
|
+
/**
|
|
205
|
+
* Continuous Interval is active.
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
209
|
+
/**
|
|
210
|
+
* Continuous Interval is in the past.
|
|
211
|
+
*
|
|
212
|
+
*/
|
|
213
|
+
readonly STATE_EXPIRED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
214
|
+
}
|
|
215
|
+
export type CurrentContinuousInterval_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED"> & CurrentContinuousInterval_StateValueMembers;
|
|
216
|
+
export declare const CurrentContinuousInterval_State: CurrentContinuousInterval_StateClass;
|
|
217
|
+
/**
|
|
218
|
+
* Shows the state of a Capacity Block Group with respect to its quota.
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
export type CapacityBlockGroupStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">;
|
|
222
|
+
interface CapacityBlockGroupStatus_StateValueMembers {
|
|
223
|
+
/**
|
|
224
|
+
* Shouldn't happen.
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">;
|
|
228
|
+
/**
|
|
229
|
+
* Capacity Block Group quota is being allocated as one or more capacity intervals have started.
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
readonly STATE_ALLOCATING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">;
|
|
233
|
+
/**
|
|
234
|
+
* Capacity Block Group quota is already allocated and active as one or more capacity intervals are active.
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
237
|
+
readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">;
|
|
238
|
+
/**
|
|
239
|
+
* Capacity Block Group is being shut down due to absence of active intervals at the time.
|
|
240
|
+
*
|
|
241
|
+
*/
|
|
242
|
+
readonly STATE_SHUTTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">;
|
|
243
|
+
/**
|
|
244
|
+
* Capacity Block Group is inactive due to absence of active intervals at the time.
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
readonly STATE_INACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">;
|
|
248
|
+
}
|
|
249
|
+
export type CapacityBlockGroupStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE"> & CapacityBlockGroupStatus_StateValueMembers;
|
|
250
|
+
export declare const CapacityBlockGroupStatus_State: CapacityBlockGroupStatus_StateClass;
|
|
251
|
+
/**
|
|
252
|
+
* Shows the usage state if a Capacity Block Group quota.
|
|
253
|
+
*
|
|
254
|
+
*/
|
|
255
|
+
export type CapacityBlockGroupStatus_UsageState = EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">;
|
|
256
|
+
interface CapacityBlockGroupStatus_UsageStateValueMembers {
|
|
257
|
+
/**
|
|
258
|
+
* Shouldn't happen.
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
261
|
+
readonly USAGE_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">;
|
|
262
|
+
/**
|
|
263
|
+
* Capacity Block Group quota is actively in use.
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
readonly USAGE_STATE_USED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">;
|
|
267
|
+
/**
|
|
268
|
+
* Capacity Block Group quota is not currently in use.
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
271
|
+
readonly USAGE_STATE_NOT_USED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">;
|
|
272
|
+
/**
|
|
273
|
+
* Capacity Block Group region is unreachable, the current usage is therefore unknown.
|
|
274
|
+
* Please, retry the request later.
|
|
275
|
+
*
|
|
276
|
+
*/
|
|
277
|
+
readonly USAGE_STATE_UNKNOWN: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">;
|
|
278
|
+
}
|
|
279
|
+
export type CapacityBlockGroupStatus_UsageStateClass = EnumClass<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN"> & CapacityBlockGroupStatus_UsageStateValueMembers;
|
|
280
|
+
export declare const CapacityBlockGroupStatus_UsageState: CapacityBlockGroupStatus_UsageStateClass;
|
|
281
|
+
/**
|
|
282
|
+
* Capacity Block Group specification.
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
export interface CapacityBlockGroupSpec {
|
|
286
|
+
$type: "nebius.capacity.v1.CapacityBlockGroupSpec";
|
|
287
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
288
|
+
[customJson]?: () => unknown;
|
|
289
|
+
}
|
|
290
|
+
export declare const CapacityBlockGroupSpec: MessageFns<CapacityBlockGroupSpec, "nebius.capacity.v1.CapacityBlockGroupSpec">;
|
|
291
|
+
/**
|
|
292
|
+
* Current, last or future concatenation of Capacity Intervals in a Capacity Block Group.
|
|
293
|
+
*
|
|
294
|
+
*/
|
|
295
|
+
export interface CurrentContinuousInterval {
|
|
296
|
+
$type: "nebius.capacity.v1.CurrentContinuousInterval";
|
|
297
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
298
|
+
[customJson]?: () => unknown;
|
|
299
|
+
/**
|
|
300
|
+
* Start time of the first interval(s) in Continuous Interval.
|
|
301
|
+
*
|
|
302
|
+
*/
|
|
303
|
+
startTime?: Dayjs | undefined;
|
|
304
|
+
/**
|
|
305
|
+
* End time of the last interval(s) in Continuous Interval.
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
308
|
+
endTime?: Dayjs | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* Quota quantity that is currently set, was set or will be set in the Continuous Interval depending on it's
|
|
311
|
+
* start_time and end_time.
|
|
312
|
+
* If the Continuous Interval is currently active, quantity is the sum of quantities of the currently active
|
|
313
|
+
* non-zero intervals.
|
|
314
|
+
* If the Continuous Interval is in the past, quantity is the sum of quantities of the last non-zero active
|
|
315
|
+
* intervals.
|
|
316
|
+
* If the Continuous Interval is in the future, quantity is the sum of the quantities of the first scheduled
|
|
317
|
+
* non-zero active intervals.
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
quantity: Long;
|
|
321
|
+
/**
|
|
322
|
+
* Continuous Interval state.
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
325
|
+
state: CurrentContinuousInterval_State;
|
|
326
|
+
}
|
|
327
|
+
export declare const CurrentContinuousInterval: MessageFns<CurrentContinuousInterval, "nebius.capacity.v1.CurrentContinuousInterval">;
|
|
328
|
+
/**
|
|
329
|
+
* Capacity Block Group status.
|
|
330
|
+
*
|
|
331
|
+
*/
|
|
332
|
+
export interface CapacityBlockGroupStatus {
|
|
333
|
+
$type: "nebius.capacity.v1.CapacityBlockGroupStatus";
|
|
334
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
335
|
+
[customJson]?: () => unknown;
|
|
336
|
+
/**
|
|
337
|
+
* Name of the region where the Capacity Block Group is allocated.
|
|
338
|
+
* Example: "eu-north1".
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
region: string;
|
|
342
|
+
/**
|
|
343
|
+
* Specification of the Capacity Block Group.
|
|
344
|
+
*
|
|
345
|
+
*/
|
|
346
|
+
resourceAffinity?: ResourceAffinity | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* Service for which the Capacity Block Group is allocated.
|
|
349
|
+
*
|
|
350
|
+
*/
|
|
351
|
+
service: string;
|
|
352
|
+
/**
|
|
353
|
+
* Capacity Block Group state with respect to quota allocation.
|
|
354
|
+
*
|
|
355
|
+
*/
|
|
356
|
+
state: CapacityBlockGroupStatus_State;
|
|
357
|
+
/**
|
|
358
|
+
* Capacity Block Group current quota limit.
|
|
359
|
+
*
|
|
360
|
+
*/
|
|
361
|
+
currentLimit: Long;
|
|
362
|
+
/**
|
|
363
|
+
* Capacity Block Group quota usage.
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
usage: Long;
|
|
367
|
+
/**
|
|
368
|
+
* Capacity Block Group quota usage percentage.
|
|
369
|
+
*
|
|
370
|
+
*/
|
|
371
|
+
usagePercentage: string;
|
|
372
|
+
/**
|
|
373
|
+
* Time of the next Capacity Block Group quota change.
|
|
374
|
+
*
|
|
375
|
+
*/
|
|
376
|
+
nextChangeAt?: Dayjs | undefined;
|
|
377
|
+
/**
|
|
378
|
+
* The next expected change of the Capacity Block Group quota limit.
|
|
379
|
+
* the quota limit change that is currently performed.
|
|
380
|
+
*
|
|
381
|
+
*/
|
|
382
|
+
nextChangeTo?: Long | undefined;
|
|
383
|
+
/**
|
|
384
|
+
* Current concatenation of non-zero Capacity Intervals that overlap or follow each other without a break.
|
|
385
|
+
* If all Capacity Intervals are in the past, returns the last Continuous Interval.
|
|
386
|
+
* If all Capacity Intervals are in the future, returns the first Continuous Interval scheduled.
|
|
387
|
+
*
|
|
388
|
+
*/
|
|
389
|
+
currentContinuousInterval?: CurrentContinuousInterval | undefined;
|
|
390
|
+
/**
|
|
391
|
+
* Capacity Block Group quota usage state.
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
usageState: CapacityBlockGroupStatus_UsageState;
|
|
395
|
+
/**
|
|
396
|
+
* Shows that changes are in flight.
|
|
397
|
+
*
|
|
398
|
+
*/
|
|
399
|
+
reconciling: boolean;
|
|
400
|
+
}
|
|
401
|
+
export declare const CapacityBlockGroupStatus: MessageFns<CapacityBlockGroupStatus, "nebius.capacity.v1.CapacityBlockGroupStatus">;
|
|
402
|
+
/**
|
|
403
|
+
* Capacity Block Group is a parent resource for Capacity Intervals.
|
|
404
|
+
*
|
|
405
|
+
*/
|
|
406
|
+
export interface CapacityBlockGroup {
|
|
407
|
+
$type: "nebius.capacity.v1.CapacityBlockGroup";
|
|
408
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
409
|
+
[customJson]?: () => unknown;
|
|
410
|
+
metadata?: ResourceMetadata | undefined;
|
|
411
|
+
spec?: CapacityBlockGroupSpec | undefined;
|
|
412
|
+
status?: CapacityBlockGroupStatus | undefined;
|
|
413
|
+
}
|
|
414
|
+
export declare const CapacityBlockGroup: MessageFns<CapacityBlockGroup, "nebius.capacity.v1.CapacityBlockGroup">;
|
|
415
|
+
/**
|
|
416
|
+
* Getting Capacity Interval by its ID.
|
|
417
|
+
*
|
|
418
|
+
*/
|
|
419
|
+
export interface GetCapacityIntervalRequest {
|
|
420
|
+
$type: "nebius.capacity.v1.GetCapacityIntervalRequest";
|
|
421
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
422
|
+
[customJson]?: () => unknown;
|
|
423
|
+
id: string;
|
|
424
|
+
}
|
|
425
|
+
export declare const GetCapacityIntervalRequest: MessageFns<GetCapacityIntervalRequest, "nebius.capacity.v1.GetCapacityIntervalRequest">;
|
|
426
|
+
/**
|
|
427
|
+
* Listing all existing Capacity Intervals in a Capacity Block Group.
|
|
428
|
+
*
|
|
429
|
+
*/
|
|
430
|
+
export interface ListCapacityIntervalsRequest {
|
|
431
|
+
$type: "nebius.capacity.v1.ListCapacityIntervalsRequest";
|
|
432
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
433
|
+
[customJson]?: () => unknown;
|
|
434
|
+
/**
|
|
435
|
+
* Capacity Block Group ID for which the Capacity Intervals should be listed.
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
parentId: string;
|
|
439
|
+
/**
|
|
440
|
+
* Page size. Must be between [1...200].
|
|
441
|
+
* Optional; if not specified, a reasonable default will be chosen by the service.
|
|
442
|
+
*
|
|
443
|
+
*/
|
|
444
|
+
pageSize: Long;
|
|
445
|
+
/**
|
|
446
|
+
* Listing continuation token. Pass an empty string to start listing from the first page.
|
|
447
|
+
*
|
|
448
|
+
*/
|
|
449
|
+
pageToken: string;
|
|
450
|
+
}
|
|
451
|
+
export declare const ListCapacityIntervalsRequest: MessageFns<ListCapacityIntervalsRequest, "nebius.capacity.v1.ListCapacityIntervalsRequest">;
|
|
452
|
+
/**
|
|
453
|
+
* All existing Capacity Intervals in a Capacity Block Group.
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
export interface ListCapacityIntervalsResponse {
|
|
457
|
+
$type: "nebius.capacity.v1.ListCapacityIntervalsResponse";
|
|
458
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
459
|
+
[customJson]?: () => unknown;
|
|
460
|
+
/**
|
|
461
|
+
* List of Capacity Intervals on this result page.
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
items: CapacityInterval[];
|
|
465
|
+
/**
|
|
466
|
+
* Listing continuation token for the next page of results.
|
|
467
|
+
*
|
|
468
|
+
*/
|
|
469
|
+
nextPageToken: string;
|
|
470
|
+
}
|
|
471
|
+
export declare const ListCapacityIntervalsResponse: MessageFns<ListCapacityIntervalsResponse, "nebius.capacity.v1.ListCapacityIntervalsResponse">;
|
|
472
|
+
export type CapacityIntervalServiceServiceDescription = typeof CapacityIntervalServiceServiceDescription;
|
|
473
|
+
export declare const CapacityIntervalServiceServiceDescription: {
|
|
474
|
+
readonly get: {
|
|
475
|
+
readonly path: "/nebius.capacity.v1.CapacityIntervalService/Get";
|
|
476
|
+
readonly requestStream: false;
|
|
477
|
+
readonly responseStream: false;
|
|
478
|
+
readonly requestSerialize: (value: GetCapacityIntervalRequest) => Buffer<ArrayBuffer>;
|
|
479
|
+
readonly sendResetMask: false;
|
|
480
|
+
readonly requestDeserialize: (value: Buffer) => GetCapacityIntervalRequest;
|
|
481
|
+
readonly responseSerialize: (value: CapacityInterval) => Buffer<ArrayBuffer>;
|
|
482
|
+
readonly responseDeserialize: (value: Buffer) => CapacityInterval;
|
|
483
|
+
};
|
|
484
|
+
readonly list: {
|
|
485
|
+
readonly path: "/nebius.capacity.v1.CapacityIntervalService/List";
|
|
486
|
+
readonly requestStream: false;
|
|
487
|
+
readonly responseStream: false;
|
|
488
|
+
readonly requestSerialize: (value: ListCapacityIntervalsRequest) => Buffer<ArrayBuffer>;
|
|
489
|
+
readonly sendResetMask: false;
|
|
490
|
+
readonly requestDeserialize: (value: Buffer) => ListCapacityIntervalsRequest;
|
|
491
|
+
readonly responseSerialize: (value: ListCapacityIntervalsResponse) => Buffer<ArrayBuffer>;
|
|
492
|
+
readonly responseDeserialize: (value: Buffer) => ListCapacityIntervalsResponse;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
export interface CapacityIntervalServiceServer extends UntypedServiceImplementation {
|
|
496
|
+
get: handleUnaryCall<GetCapacityIntervalRequest, CapacityInterval>;
|
|
497
|
+
list: handleUnaryCall<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
498
|
+
}
|
|
499
|
+
export interface CapacityIntervalServiceBaseClient extends Client {
|
|
500
|
+
get(request: GetCapacityIntervalRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: CapacityInterval) => void): ClientUnaryCall;
|
|
501
|
+
list(request: ListCapacityIntervalsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: ListCapacityIntervalsResponse) => void): ClientUnaryCall;
|
|
502
|
+
}
|
|
503
|
+
export declare const CapacityIntervalServiceBaseClient: {
|
|
504
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CapacityIntervalServiceBaseClient;
|
|
505
|
+
service: typeof CapacityIntervalServiceServiceDescription;
|
|
506
|
+
serviceName: string;
|
|
507
|
+
};
|
|
508
|
+
/**
|
|
509
|
+
* Capacity Interval service provides read access to Capacity Intervals resources.
|
|
510
|
+
*
|
|
511
|
+
*/
|
|
512
|
+
export interface CapacityIntervalService {
|
|
513
|
+
$type: "nebius.capacity.v1.CapacityIntervalService";
|
|
514
|
+
/**
|
|
515
|
+
* Get Capacity Interval by its ID.
|
|
516
|
+
*
|
|
517
|
+
*/
|
|
518
|
+
get(request: GetCapacityIntervalRequest): SDKRequestClass<GetCapacityIntervalRequest, CapacityInterval>;
|
|
519
|
+
get(request: GetCapacityIntervalRequest, metadata: Metadata): SDKRequestClass<GetCapacityIntervalRequest, CapacityInterval>;
|
|
520
|
+
get(request: GetCapacityIntervalRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetCapacityIntervalRequest, CapacityInterval>;
|
|
521
|
+
/**
|
|
522
|
+
* List all capacity intervals in a Capacity Block Group.
|
|
523
|
+
*
|
|
524
|
+
*/
|
|
525
|
+
list(request: ListCapacityIntervalsRequest): SDKRequestClass<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
526
|
+
list(request: ListCapacityIntervalsRequest, metadata: Metadata): SDKRequestClass<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
527
|
+
list(request: ListCapacityIntervalsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
528
|
+
}
|
|
529
|
+
export declare class CapacityIntervalService implements CapacityIntervalService {
|
|
530
|
+
private sdk;
|
|
531
|
+
$type: "nebius.capacity.v1.CapacityIntervalService";
|
|
532
|
+
private addr;
|
|
533
|
+
private spec;
|
|
534
|
+
private apiServiceName;
|
|
535
|
+
constructor(sdk: SDKInterface);
|
|
536
|
+
get(request: GetCapacityIntervalRequest): SDKRequestClass<GetCapacityIntervalRequest, CapacityInterval>;
|
|
537
|
+
get(request: GetCapacityIntervalRequest, metadata: Metadata): SDKRequestClass<GetCapacityIntervalRequest, CapacityInterval>;
|
|
538
|
+
get(request: GetCapacityIntervalRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetCapacityIntervalRequest, CapacityInterval>;
|
|
539
|
+
list(request: ListCapacityIntervalsRequest): SDKRequestClass<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
540
|
+
list(request: ListCapacityIntervalsRequest, metadata: Metadata): SDKRequestClass<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
541
|
+
list(request: ListCapacityIntervalsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListCapacityIntervalsRequest, ListCapacityIntervalsResponse>;
|
|
542
|
+
}
|
|
543
|
+
export type CapacityIntervalStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
544
|
+
interface CapacityIntervalStatus_StateValueMembers {
|
|
545
|
+
/**
|
|
546
|
+
* Shouldn't happen.
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
550
|
+
/**
|
|
551
|
+
* Capacity Interval is fully in the future (now < start_time).
|
|
552
|
+
*
|
|
553
|
+
*/
|
|
554
|
+
readonly STATE_SCHEDULED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
555
|
+
/**
|
|
556
|
+
* Capacity Interval is currently active (start_time <= now < end_time).
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
559
|
+
readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
560
|
+
/**
|
|
561
|
+
* Capacity Interval is fully in the past (end_time <= now).
|
|
562
|
+
*
|
|
563
|
+
*/
|
|
564
|
+
readonly STATE_EXPIRED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">;
|
|
565
|
+
}
|
|
566
|
+
export type CapacityIntervalStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED"> & CapacityIntervalStatus_StateValueMembers;
|
|
567
|
+
export declare const CapacityIntervalStatus_State: CapacityIntervalStatus_StateClass;
|
|
568
|
+
/**
|
|
569
|
+
* Capacity Interval specification.
|
|
570
|
+
*
|
|
571
|
+
*/
|
|
572
|
+
export interface CapacityIntervalSpec {
|
|
573
|
+
$type: "nebius.capacity.v1.CapacityIntervalSpec";
|
|
574
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
575
|
+
[customJson]?: () => unknown;
|
|
576
|
+
}
|
|
577
|
+
export declare const CapacityIntervalSpec: MessageFns<CapacityIntervalSpec, "nebius.capacity.v1.CapacityIntervalSpec">;
|
|
578
|
+
/**
|
|
579
|
+
* Capacity Interval status data.
|
|
580
|
+
*
|
|
581
|
+
*/
|
|
582
|
+
export interface CapacityIntervalStatus {
|
|
583
|
+
$type: "nebius.capacity.v1.CapacityIntervalStatus";
|
|
584
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
585
|
+
[customJson]?: () => unknown;
|
|
586
|
+
/**
|
|
587
|
+
* Tenant ID for which the Capacity Interval is created.
|
|
588
|
+
*
|
|
589
|
+
*/
|
|
590
|
+
containerId: string;
|
|
591
|
+
/**
|
|
592
|
+
* Name of the region where the Capacity Interval is created.
|
|
593
|
+
* Example: "eu-north1".
|
|
594
|
+
*
|
|
595
|
+
*/
|
|
596
|
+
region: string;
|
|
597
|
+
/**
|
|
598
|
+
* Specification of the Capacity Interval.
|
|
599
|
+
*
|
|
600
|
+
*/
|
|
601
|
+
resourceAffinity?: ResourceAffinity | undefined;
|
|
602
|
+
/**
|
|
603
|
+
* Service for which the Capacity Interval is created.
|
|
604
|
+
*
|
|
605
|
+
*/
|
|
606
|
+
service: string;
|
|
607
|
+
/**
|
|
608
|
+
* Resource quantity of the Capacity Interval.
|
|
609
|
+
*
|
|
610
|
+
*/
|
|
611
|
+
quantity: Long;
|
|
612
|
+
/**
|
|
613
|
+
* Start time of the Capacity Interval.
|
|
614
|
+
*
|
|
615
|
+
*/
|
|
616
|
+
startTime?: Dayjs | undefined;
|
|
617
|
+
/**
|
|
618
|
+
* End time of the Capacity Interval.
|
|
619
|
+
*
|
|
620
|
+
*/
|
|
621
|
+
endTime?: Dayjs | undefined;
|
|
622
|
+
/**
|
|
623
|
+
* State of the Capacity Interval.
|
|
624
|
+
*
|
|
625
|
+
*/
|
|
626
|
+
state: CapacityIntervalStatus_State;
|
|
627
|
+
/**
|
|
628
|
+
* Shows that changes are in flight.
|
|
629
|
+
*
|
|
630
|
+
*/
|
|
631
|
+
reconciling: boolean;
|
|
632
|
+
}
|
|
633
|
+
export declare const CapacityIntervalStatus: MessageFns<CapacityIntervalStatus, "nebius.capacity.v1.CapacityIntervalStatus">;
|
|
634
|
+
/**
|
|
635
|
+
* Capacity Intervals represents a timeframe during which the specified resources can be used.
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
export interface CapacityInterval {
|
|
639
|
+
$type: "nebius.capacity.v1.CapacityInterval";
|
|
640
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
641
|
+
[customJson]?: () => unknown;
|
|
642
|
+
metadata?: ResourceMetadata | undefined;
|
|
643
|
+
spec?: CapacityIntervalSpec | undefined;
|
|
644
|
+
status?: CapacityIntervalStatus | undefined;
|
|
645
|
+
}
|
|
646
|
+
export declare const CapacityInterval: MessageFns<CapacityInterval, "nebius.capacity.v1.CapacityInterval">;
|
|
647
|
+
/**
|
|
648
|
+
* First version of Compute service resource affinity
|
|
649
|
+
*
|
|
650
|
+
*/
|
|
651
|
+
export interface ResourceAffinityComputeV1 {
|
|
652
|
+
$type: "nebius.capacity.v1.ResourceAffinityComputeV1";
|
|
653
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
654
|
+
[customJson]?: () => unknown;
|
|
655
|
+
/**
|
|
656
|
+
* The fabric where the Capacity Block Group is allocated.
|
|
657
|
+
*
|
|
658
|
+
*/
|
|
659
|
+
fabric: string;
|
|
660
|
+
/**
|
|
661
|
+
* The platform for which the Capacity Block Group is allocated.
|
|
662
|
+
*
|
|
663
|
+
*/
|
|
664
|
+
platform: string;
|
|
665
|
+
}
|
|
666
|
+
export declare const ResourceAffinityComputeV1: MessageFns<ResourceAffinityComputeV1, "nebius.capacity.v1.ResourceAffinityComputeV1">;
|
|
667
|
+
/**
|
|
668
|
+
* Specification of the Capacity Block Group.
|
|
669
|
+
*
|
|
670
|
+
*/
|
|
671
|
+
export interface ResourceAffinity {
|
|
672
|
+
$type: "nebius.capacity.v1.ResourceAffinity";
|
|
673
|
+
[unknownFieldsSymbol]?: Uint8Array | undefined;
|
|
674
|
+
[customJson]?: () => unknown;
|
|
675
|
+
versions?: {
|
|
676
|
+
$case: "computeV1";
|
|
677
|
+
computeV1: ResourceAffinityComputeV1;
|
|
678
|
+
} | undefined;
|
|
679
|
+
}
|
|
680
|
+
export declare const ResourceAffinity: MessageFns<ResourceAffinity, "nebius.capacity.v1.ResourceAffinity">;
|
|
681
|
+
export {};
|
|
682
|
+
//# sourceMappingURL=index.d.ts.map
|