@nebius/js-sdk 0.1.16 → 0.1.18
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/compute/v1/index.d.ts +15 -0
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js +181 -2
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts +16 -12
- package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.js +4 -0
- package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/iam/v2/index.d.ts +21 -13
- package/dist/cjs/api/nebius/iam/v2/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v2/index.js +8 -0
- package/dist/cjs/api/nebius/iam/v2/index.js.map +1 -1
- package/dist/cjs/api/nebius/quotas/v1/index.d.ts +131 -5
- package/dist/cjs/api/nebius/quotas/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/quotas/v1/index.js +418 -1
- package/dist/cjs/api/nebius/quotas/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/compute/v1/index.d.ts +15 -0
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts +16 -12
- package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v2/index.d.ts +21 -13
- package/dist/esm/api/nebius/iam/v2/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/quotas/v1/index.d.ts +131 -5
- package/dist/esm/api/nebius/quotas/v1/index.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,369 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* Generated by Nebius TS generator. DO NOT EDIT! */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.QuotaAllowance = exports.QuotaAllowanceStatus = exports.QuotaAllowanceSpec = exports.QuotaAllowanceStatus_UsageState = exports.QuotaAllowanceStatus_State = exports.QuotaAllowanceService = exports.QuotaAllowanceServiceBaseClient = exports.QuotaAllowanceServiceServiceDescription = exports.GetByNameRequest = exports.ListQuotaAllowancesResponse = exports.GetQuotaAllowanceRequest = exports.ListQuotaAllowancesRequest = void 0;
|
|
4
|
+
exports.QuotaAllowance = exports.QuotaAllowanceStatus = exports.QuotaAllowanceSpec = exports.QuotaAllowanceStatus_UsageState = exports.QuotaAllowanceStatus_State = exports.QuotaAllowanceService = exports.QuotaAllowanceServiceBaseClient = exports.QuotaAllowanceServiceServiceDescription = exports.GetByNameRequest = exports.ListQuotaAllowancesResponse = exports.GetQuotaAllowanceRequest = exports.ListQuotaAllowancesRequest = exports.DeleteQuotaAllowanceRequest = exports.UpdateQuotaAllowanceRequest = exports.CreateQuotaAllowanceRequest = void 0;
|
|
5
5
|
const index_1 = require("../../../../runtime/protos/index");
|
|
6
6
|
const util_1 = require("util");
|
|
7
7
|
const protobuf_1 = require("../../../protobuf");
|
|
8
8
|
const logging_1 = require("../../../../runtime/util/logging");
|
|
9
9
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
10
10
|
const request_1 = require("../../../../runtime/request");
|
|
11
|
+
const operation_1 = require("../../../../runtime/operation");
|
|
11
12
|
const v1_1 = require("../../common/v1");
|
|
12
13
|
const __deprecatedWarned = new Set();
|
|
14
|
+
exports.CreateQuotaAllowanceRequest = {
|
|
15
|
+
$type: "nebius.quotas.v1.CreateQuotaAllowanceRequest",
|
|
16
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
17
|
+
if (message.metadata !== undefined) {
|
|
18
|
+
const w = writer.uint32(10).fork();
|
|
19
|
+
v1_1.ResourceMetadata.encode(message.metadata, w);
|
|
20
|
+
w.join();
|
|
21
|
+
}
|
|
22
|
+
if (message.spec !== undefined) {
|
|
23
|
+
const w = writer.uint32(18).fork();
|
|
24
|
+
exports.QuotaAllowanceSpec.encode(message.spec, w);
|
|
25
|
+
w.join();
|
|
26
|
+
}
|
|
27
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
28
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
decode(input, length) {
|
|
33
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
34
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBaseCreateQuotaAllowanceRequest();
|
|
36
|
+
let writer = undefined;
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1: {
|
|
41
|
+
if (tag !== 10)
|
|
42
|
+
break;
|
|
43
|
+
message.metadata = v1_1.ResourceMetadata.decode(reader, reader.uint32());
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
case 2: {
|
|
47
|
+
if (tag !== 18)
|
|
48
|
+
break;
|
|
49
|
+
message.spec = exports.QuotaAllowanceSpec.decode(reader, reader.uint32());
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
{
|
|
59
|
+
if (!writer)
|
|
60
|
+
writer = new index_1.BinaryWriter();
|
|
61
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
62
|
+
writer.uint32(tag).raw(skipped);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (writer) {
|
|
66
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
67
|
+
}
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
fromJSON(object) {
|
|
71
|
+
return applyCreateQuotaAllowanceRequestCustom({
|
|
72
|
+
$type: "nebius.quotas.v1.CreateQuotaAllowanceRequest",
|
|
73
|
+
metadata: (0, index_1.isSet)(object.metadata ?? object.metadata)
|
|
74
|
+
? v1_1.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
75
|
+
: undefined,
|
|
76
|
+
spec: (0, index_1.isSet)(object.spec ?? object.spec)
|
|
77
|
+
? exports.QuotaAllowanceSpec.fromJSON(object.spec ?? object.spec)
|
|
78
|
+
: undefined,
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
toJSON(message, use = "json") {
|
|
82
|
+
const obj = {};
|
|
83
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
84
|
+
if (message.metadata !== undefined) {
|
|
85
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
86
|
+
? v1_1.ResourceMetadata.toJSON(message.metadata, use)
|
|
87
|
+
: undefined;
|
|
88
|
+
}
|
|
89
|
+
if (message.spec !== undefined) {
|
|
90
|
+
obj[pick("spec", "spec")] = message.spec
|
|
91
|
+
? exports.QuotaAllowanceSpec.toJSON(message.spec, use)
|
|
92
|
+
: undefined;
|
|
93
|
+
}
|
|
94
|
+
return obj;
|
|
95
|
+
},
|
|
96
|
+
create(base) {
|
|
97
|
+
return exports.CreateQuotaAllowanceRequest.fromPartial(base ?? {});
|
|
98
|
+
},
|
|
99
|
+
fromPartial(object) {
|
|
100
|
+
const message = createBaseCreateQuotaAllowanceRequest();
|
|
101
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
102
|
+
? v1_1.ResourceMetadata.fromPartial(object.metadata)
|
|
103
|
+
: undefined;
|
|
104
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
105
|
+
? exports.QuotaAllowanceSpec.fromPartial(object.spec)
|
|
106
|
+
: undefined;
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
protobuf_1.protoRegistry.registerMessage(exports.CreateQuotaAllowanceRequest);
|
|
111
|
+
function CreateQuotaAllowanceRequestCustomInspect() {
|
|
112
|
+
const parts = [];
|
|
113
|
+
if (this.metadata !== undefined)
|
|
114
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
115
|
+
if (this.spec !== undefined)
|
|
116
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
117
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
118
|
+
}
|
|
119
|
+
function CreateQuotaAllowanceRequestCustomJson() {
|
|
120
|
+
const obj = {
|
|
121
|
+
type: this.$type,
|
|
122
|
+
};
|
|
123
|
+
if (this.metadata !== undefined)
|
|
124
|
+
obj.metadata = (0, logging_1.inspectJson)(this.metadata);
|
|
125
|
+
if (this.spec !== undefined)
|
|
126
|
+
obj.spec = (0, logging_1.inspectJson)(this.spec);
|
|
127
|
+
return obj;
|
|
128
|
+
}
|
|
129
|
+
function applyCreateQuotaAllowanceRequestCustom(message) {
|
|
130
|
+
message[logging_1.custom] = CreateQuotaAllowanceRequestCustomInspect;
|
|
131
|
+
message[logging_1.customJson] = CreateQuotaAllowanceRequestCustomJson;
|
|
132
|
+
return message;
|
|
133
|
+
}
|
|
134
|
+
function createBaseCreateQuotaAllowanceRequest() {
|
|
135
|
+
const message = {
|
|
136
|
+
$type: "nebius.quotas.v1.CreateQuotaAllowanceRequest",
|
|
137
|
+
metadata: undefined,
|
|
138
|
+
spec: undefined,
|
|
139
|
+
};
|
|
140
|
+
return applyCreateQuotaAllowanceRequestCustom(message);
|
|
141
|
+
}
|
|
142
|
+
exports.UpdateQuotaAllowanceRequest = {
|
|
143
|
+
$type: "nebius.quotas.v1.UpdateQuotaAllowanceRequest",
|
|
144
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
145
|
+
if (message.metadata !== undefined) {
|
|
146
|
+
const w = writer.uint32(10).fork();
|
|
147
|
+
v1_1.ResourceMetadata.encode(message.metadata, w);
|
|
148
|
+
w.join();
|
|
149
|
+
}
|
|
150
|
+
if (message.spec !== undefined) {
|
|
151
|
+
const w = writer.uint32(18).fork();
|
|
152
|
+
exports.QuotaAllowanceSpec.encode(message.spec, w);
|
|
153
|
+
w.join();
|
|
154
|
+
}
|
|
155
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
156
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
157
|
+
}
|
|
158
|
+
return writer;
|
|
159
|
+
},
|
|
160
|
+
decode(input, length) {
|
|
161
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
162
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
163
|
+
const message = createBaseUpdateQuotaAllowanceRequest();
|
|
164
|
+
let writer = undefined;
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
const tag = reader.uint32();
|
|
167
|
+
switch (tag >>> 3) {
|
|
168
|
+
case 1: {
|
|
169
|
+
if (tag !== 10)
|
|
170
|
+
break;
|
|
171
|
+
message.metadata = v1_1.ResourceMetadata.decode(reader, reader.uint32());
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
case 2: {
|
|
175
|
+
if (tag !== 18)
|
|
176
|
+
break;
|
|
177
|
+
message.spec = exports.QuotaAllowanceSpec.decode(reader, reader.uint32());
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
default:
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
{
|
|
187
|
+
if (!writer)
|
|
188
|
+
writer = new index_1.BinaryWriter();
|
|
189
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
190
|
+
writer.uint32(tag).raw(skipped);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (writer) {
|
|
194
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
195
|
+
}
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
fromJSON(object) {
|
|
199
|
+
return applyUpdateQuotaAllowanceRequestCustom({
|
|
200
|
+
$type: "nebius.quotas.v1.UpdateQuotaAllowanceRequest",
|
|
201
|
+
metadata: (0, index_1.isSet)(object.metadata ?? object.metadata)
|
|
202
|
+
? v1_1.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
203
|
+
: undefined,
|
|
204
|
+
spec: (0, index_1.isSet)(object.spec ?? object.spec)
|
|
205
|
+
? exports.QuotaAllowanceSpec.fromJSON(object.spec ?? object.spec)
|
|
206
|
+
: undefined,
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
toJSON(message, use = "json") {
|
|
210
|
+
const obj = {};
|
|
211
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
212
|
+
if (message.metadata !== undefined) {
|
|
213
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
214
|
+
? v1_1.ResourceMetadata.toJSON(message.metadata, use)
|
|
215
|
+
: undefined;
|
|
216
|
+
}
|
|
217
|
+
if (message.spec !== undefined) {
|
|
218
|
+
obj[pick("spec", "spec")] = message.spec
|
|
219
|
+
? exports.QuotaAllowanceSpec.toJSON(message.spec, use)
|
|
220
|
+
: undefined;
|
|
221
|
+
}
|
|
222
|
+
return obj;
|
|
223
|
+
},
|
|
224
|
+
create(base) {
|
|
225
|
+
return exports.UpdateQuotaAllowanceRequest.fromPartial(base ?? {});
|
|
226
|
+
},
|
|
227
|
+
fromPartial(object) {
|
|
228
|
+
const message = createBaseUpdateQuotaAllowanceRequest();
|
|
229
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
230
|
+
? v1_1.ResourceMetadata.fromPartial(object.metadata)
|
|
231
|
+
: undefined;
|
|
232
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
233
|
+
? exports.QuotaAllowanceSpec.fromPartial(object.spec)
|
|
234
|
+
: undefined;
|
|
235
|
+
return message;
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
protobuf_1.protoRegistry.registerMessage(exports.UpdateQuotaAllowanceRequest);
|
|
239
|
+
function UpdateQuotaAllowanceRequestCustomInspect() {
|
|
240
|
+
const parts = [];
|
|
241
|
+
if (this.metadata !== undefined)
|
|
242
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
243
|
+
if (this.spec !== undefined)
|
|
244
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
245
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
246
|
+
}
|
|
247
|
+
function UpdateQuotaAllowanceRequestCustomJson() {
|
|
248
|
+
const obj = {
|
|
249
|
+
type: this.$type,
|
|
250
|
+
};
|
|
251
|
+
if (this.metadata !== undefined)
|
|
252
|
+
obj.metadata = (0, logging_1.inspectJson)(this.metadata);
|
|
253
|
+
if (this.spec !== undefined)
|
|
254
|
+
obj.spec = (0, logging_1.inspectJson)(this.spec);
|
|
255
|
+
return obj;
|
|
256
|
+
}
|
|
257
|
+
function applyUpdateQuotaAllowanceRequestCustom(message) {
|
|
258
|
+
message[logging_1.custom] = UpdateQuotaAllowanceRequestCustomInspect;
|
|
259
|
+
message[logging_1.customJson] = UpdateQuotaAllowanceRequestCustomJson;
|
|
260
|
+
return message;
|
|
261
|
+
}
|
|
262
|
+
function createBaseUpdateQuotaAllowanceRequest() {
|
|
263
|
+
const message = {
|
|
264
|
+
$type: "nebius.quotas.v1.UpdateQuotaAllowanceRequest",
|
|
265
|
+
metadata: undefined,
|
|
266
|
+
spec: undefined,
|
|
267
|
+
};
|
|
268
|
+
return applyUpdateQuotaAllowanceRequestCustom(message);
|
|
269
|
+
}
|
|
270
|
+
exports.DeleteQuotaAllowanceRequest = {
|
|
271
|
+
$type: "nebius.quotas.v1.DeleteQuotaAllowanceRequest",
|
|
272
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
273
|
+
if (message.id !== "") {
|
|
274
|
+
writer.uint32(10).string(message.id);
|
|
275
|
+
}
|
|
276
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
277
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
278
|
+
}
|
|
279
|
+
return writer;
|
|
280
|
+
},
|
|
281
|
+
decode(input, length) {
|
|
282
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
283
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
284
|
+
const message = createBaseDeleteQuotaAllowanceRequest();
|
|
285
|
+
let writer = undefined;
|
|
286
|
+
while (reader.pos < end) {
|
|
287
|
+
const tag = reader.uint32();
|
|
288
|
+
switch (tag >>> 3) {
|
|
289
|
+
case 1: {
|
|
290
|
+
if (tag !== 10)
|
|
291
|
+
break;
|
|
292
|
+
message.id = reader.string();
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
default:
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
{
|
|
302
|
+
if (!writer)
|
|
303
|
+
writer = new index_1.BinaryWriter();
|
|
304
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
305
|
+
writer.uint32(tag).raw(skipped);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (writer) {
|
|
309
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
310
|
+
}
|
|
311
|
+
return message;
|
|
312
|
+
},
|
|
313
|
+
fromJSON(object) {
|
|
314
|
+
return applyDeleteQuotaAllowanceRequestCustom({
|
|
315
|
+
$type: "nebius.quotas.v1.DeleteQuotaAllowanceRequest",
|
|
316
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
317
|
+
? String(object.id ?? object.id)
|
|
318
|
+
: "",
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
toJSON(message, use = "json") {
|
|
322
|
+
const obj = {};
|
|
323
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
324
|
+
if (message.id !== "") {
|
|
325
|
+
obj[pick("id", "id")] = message.id;
|
|
326
|
+
}
|
|
327
|
+
return obj;
|
|
328
|
+
},
|
|
329
|
+
create(base) {
|
|
330
|
+
return exports.DeleteQuotaAllowanceRequest.fromPartial(base ?? {});
|
|
331
|
+
},
|
|
332
|
+
fromPartial(object) {
|
|
333
|
+
const message = createBaseDeleteQuotaAllowanceRequest();
|
|
334
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
335
|
+
? object.id
|
|
336
|
+
: "";
|
|
337
|
+
return message;
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
protobuf_1.protoRegistry.registerMessage(exports.DeleteQuotaAllowanceRequest);
|
|
341
|
+
function DeleteQuotaAllowanceRequestCustomInspect() {
|
|
342
|
+
const parts = [];
|
|
343
|
+
if (this.id !== "")
|
|
344
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
345
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
346
|
+
}
|
|
347
|
+
function DeleteQuotaAllowanceRequestCustomJson() {
|
|
348
|
+
const obj = {
|
|
349
|
+
type: this.$type,
|
|
350
|
+
};
|
|
351
|
+
if (this.id !== "")
|
|
352
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
353
|
+
return obj;
|
|
354
|
+
}
|
|
355
|
+
function applyDeleteQuotaAllowanceRequestCustom(message) {
|
|
356
|
+
message[logging_1.custom] = DeleteQuotaAllowanceRequestCustomInspect;
|
|
357
|
+
message[logging_1.customJson] = DeleteQuotaAllowanceRequestCustomJson;
|
|
358
|
+
return message;
|
|
359
|
+
}
|
|
360
|
+
function createBaseDeleteQuotaAllowanceRequest() {
|
|
361
|
+
const message = {
|
|
362
|
+
$type: "nebius.quotas.v1.DeleteQuotaAllowanceRequest",
|
|
363
|
+
id: "",
|
|
364
|
+
};
|
|
365
|
+
return applyDeleteQuotaAllowanceRequestCustom(message);
|
|
366
|
+
}
|
|
13
367
|
exports.ListQuotaAllowancesRequest = {
|
|
14
368
|
$type: "nebius.quotas.v1.ListQuotaAllowancesRequest",
|
|
15
369
|
encode(message, writer = new index_1.BinaryWriter()) {
|
|
@@ -541,6 +895,33 @@ exports.QuotaAllowanceServiceServiceDescription = {
|
|
|
541
895
|
responseSerialize: (value) => Buffer.from(exports.QuotaAllowance.encode(value).finish()),
|
|
542
896
|
responseDeserialize: (value) => exports.QuotaAllowance.decode(value),
|
|
543
897
|
},
|
|
898
|
+
create: {
|
|
899
|
+
path: "/nebius.quotas.v1.QuotaAllowanceService/Create",
|
|
900
|
+
requestStream: false,
|
|
901
|
+
responseStream: false,
|
|
902
|
+
requestSerialize: (value) => Buffer.from(exports.CreateQuotaAllowanceRequest.encode(value).finish()),
|
|
903
|
+
requestDeserialize: (value) => exports.CreateQuotaAllowanceRequest.decode(value),
|
|
904
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
905
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
906
|
+
},
|
|
907
|
+
update: {
|
|
908
|
+
path: "/nebius.quotas.v1.QuotaAllowanceService/Update",
|
|
909
|
+
requestStream: false,
|
|
910
|
+
responseStream: false,
|
|
911
|
+
requestSerialize: (value) => Buffer.from(exports.UpdateQuotaAllowanceRequest.encode(value).finish()),
|
|
912
|
+
requestDeserialize: (value) => exports.UpdateQuotaAllowanceRequest.decode(value),
|
|
913
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
914
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
915
|
+
},
|
|
916
|
+
delete: {
|
|
917
|
+
path: "/nebius.quotas.v1.QuotaAllowanceService/Delete",
|
|
918
|
+
requestStream: false,
|
|
919
|
+
responseStream: false,
|
|
920
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteQuotaAllowanceRequest.encode(value).finish()),
|
|
921
|
+
requestDeserialize: (value) => exports.DeleteQuotaAllowanceRequest.decode(value),
|
|
922
|
+
responseSerialize: (value) => Buffer.from(v1_1.Operation.encode(value).finish()),
|
|
923
|
+
responseDeserialize: (value) => v1_1.Operation.decode(value),
|
|
924
|
+
},
|
|
544
925
|
};
|
|
545
926
|
exports.QuotaAllowanceServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.QuotaAllowanceServiceServiceDescription, "nebius.quotas.v1.QuotaAllowanceService");
|
|
546
927
|
class QuotaAllowanceService {
|
|
@@ -555,6 +936,9 @@ class QuotaAllowanceService {
|
|
|
555
936
|
this.addr = addr;
|
|
556
937
|
this.spec = exports.QuotaAllowanceServiceServiceDescription;
|
|
557
938
|
}
|
|
939
|
+
getOperationService() {
|
|
940
|
+
return new v1_1.OperationService(this.sdk, this.addr);
|
|
941
|
+
}
|
|
558
942
|
list(...args) {
|
|
559
943
|
const spec = this.spec.list;
|
|
560
944
|
const request = args[0];
|
|
@@ -579,6 +963,39 @@ class QuotaAllowanceService {
|
|
|
579
963
|
const deserialize = spec.responseDeserialize;
|
|
580
964
|
return new request_1.Request(this.sdk, this.$type, "GetByName", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
581
965
|
}
|
|
966
|
+
create(...args) {
|
|
967
|
+
const spec = this.spec.create;
|
|
968
|
+
const request = args[0];
|
|
969
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
970
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
971
|
+
const deserialize = (value) => {
|
|
972
|
+
const resp = spec.responseDeserialize(value);
|
|
973
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
974
|
+
};
|
|
975
|
+
return new request_1.Request(this.sdk, this.$type, "Create", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
976
|
+
}
|
|
977
|
+
update(...args) {
|
|
978
|
+
const spec = this.spec.update;
|
|
979
|
+
const request = args[0];
|
|
980
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
981
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
982
|
+
const deserialize = (value) => {
|
|
983
|
+
const resp = spec.responseDeserialize(value);
|
|
984
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
985
|
+
};
|
|
986
|
+
return new request_1.Request(this.sdk, this.$type, "Update", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
987
|
+
}
|
|
988
|
+
delete(...args) {
|
|
989
|
+
const spec = this.spec.delete;
|
|
990
|
+
const request = args[0];
|
|
991
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
992
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
993
|
+
const deserialize = (value) => {
|
|
994
|
+
const resp = spec.responseDeserialize(value);
|
|
995
|
+
return new operation_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
996
|
+
};
|
|
997
|
+
return new request_1.Request(this.sdk, this.$type, "Delete", this.addr, spec.requestSerialize, deserialize, request, metadata, options);
|
|
998
|
+
}
|
|
582
999
|
}
|
|
583
1000
|
exports.QuotaAllowanceService = QuotaAllowanceService;
|
|
584
1001
|
const QuotaAllowanceStatus_State_VALUE_COMMENTS = {
|