@databricks/sdk-modelregistry 0.1.0-dev.1 → 0.1.0-dev.3
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/v1/client.d.ts +35 -35
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +89 -89
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +1 -1
- package/dist/v1/model.d.ts +71 -71
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +41 -73
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts +1 -2
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +1 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +6 -5
- package/src/v1/client.ts +251 -294
- package/src/v1/index.ts +34 -34
- package/src/v1/model.ts +89 -145
- package/src/v1/utils.ts +3 -3
package/dist/v1/client.js
CHANGED
|
@@ -5,13 +5,13 @@ import { NoOpLogger } from '@databricks/sdk-core/logger';
|
|
|
5
5
|
import { newHttpClient } from './transport';
|
|
6
6
|
import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse, } from './utils';
|
|
7
7
|
import pkgJson from '../../package.json' with { type: 'json' };
|
|
8
|
-
import { marshalApproveTransitionRequestSchema, marshalCreateCommentRequestSchema, marshalCreateModelVersionRequestSchema, marshalCreateRegisteredModelRequestSchema, marshalCreateRegistryWebhookRequestSchema, marshalCreateTransitionRequestSchema,
|
|
8
|
+
import { marshalApproveTransitionRequestSchema, marshalCreateCommentRequestSchema, marshalCreateModelVersionRequestSchema, marshalCreateRegisteredModelRequestSchema, marshalCreateRegistryWebhookRequestSchema, marshalCreateTransitionRequestSchema, marshalListLatestVersionsRequestSchema, marshalRejectTransitionRequestSchema, marshalRenameRegisteredModelRequestSchema, marshalSetModelVersionTagRequestSchema, marshalSetRegisteredModelTagRequestSchema, marshalTestRegistryWebhookRequestSchema, marshalTransitionModelVersionStageDatabricksRequestSchema, marshalUpdateCommentRequestSchema, marshalUpdateModelVersionRequestSchema, marshalUpdateRegisteredModelRequestSchema, marshalUpdateRegistryWebhookRequestSchema, unmarshalApproveTransitionResponseSchema, unmarshalCreateCommentResponseSchema, unmarshalCreateModelVersionResponseSchema, unmarshalCreateRegisteredModelResponseSchema, unmarshalCreateRegistryWebhookResponseSchema, unmarshalCreateTransitionResponseSchema, unmarshalDeleteCommentResponseSchema, unmarshalDeleteModelVersionResponseSchema, unmarshalDeleteModelVersionTagResponseSchema, unmarshalDeleteRegisteredModelResponseSchema, unmarshalDeleteRegisteredModelTagResponseSchema, unmarshalDeleteRegistryWebhookResponseSchema, unmarshalDeleteTransitionResponseSchema, unmarshalGetLatestVersionsResponseSchema, unmarshalGetModelVersionDownloadUriResponseSchema, unmarshalGetModelVersionResponseSchema, unmarshalGetRegisteredModelDatabricksResponseSchema, unmarshalListRegisteredModelsResponseSchema, unmarshalListRegistryWebhooksResponseSchema, unmarshalListTransitionResponseSchema, unmarshalRejectTransitionResponseSchema, unmarshalRenameRegisteredModelResponseSchema, unmarshalSearchModelVersionsResponseSchema, unmarshalSearchRegisteredModelsResponseSchema, unmarshalSetModelVersionTagResponseSchema, unmarshalSetRegisteredModelTagResponseSchema, unmarshalTestRegistryWebhookResponseSchema, unmarshalTransitionModelVersionStageDatabricksResponseSchema, unmarshalUpdateCommentResponseSchema, unmarshalUpdateModelVersionResponseSchema, unmarshalUpdateRegisteredModelResponseSchema, unmarshalUpdateRegistryWebhookResponseSchema, } from './model';
|
|
9
9
|
// Package identity segment for this client to be used in the User-Agent header.
|
|
10
10
|
const PACKAGE_SEGMENT = {
|
|
11
11
|
key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\/sdk-/, ''),
|
|
12
12
|
value: pkgJson.version,
|
|
13
13
|
};
|
|
14
|
-
export class
|
|
14
|
+
export class ModelRegistryClient {
|
|
15
15
|
host;
|
|
16
16
|
// Workspace ID used to route workspace-level calls on unified hosts (SPOG).
|
|
17
17
|
// When set, workspace-level methods send X-Databricks-Org-Id on every
|
|
@@ -54,11 +54,11 @@ export class ModelregistryClient {
|
|
|
54
54
|
httpClient: this.httpClient,
|
|
55
55
|
logger: this.logger,
|
|
56
56
|
});
|
|
57
|
-
resp = parseResponse(respBody,
|
|
57
|
+
resp = parseResponse(respBody, unmarshalApproveTransitionResponseSchema);
|
|
58
58
|
};
|
|
59
59
|
await executeCall(call, options);
|
|
60
60
|
if (resp === undefined) {
|
|
61
|
-
throw new Error('
|
|
61
|
+
throw new Error('operation completed without a result.');
|
|
62
62
|
}
|
|
63
63
|
return resp;
|
|
64
64
|
}
|
|
@@ -82,11 +82,11 @@ export class ModelregistryClient {
|
|
|
82
82
|
httpClient: this.httpClient,
|
|
83
83
|
logger: this.logger,
|
|
84
84
|
});
|
|
85
|
-
resp = parseResponse(respBody,
|
|
85
|
+
resp = parseResponse(respBody, unmarshalCreateCommentResponseSchema);
|
|
86
86
|
};
|
|
87
87
|
await executeCall(call, options);
|
|
88
88
|
if (resp === undefined) {
|
|
89
|
-
throw new Error('
|
|
89
|
+
throw new Error('operation completed without a result.');
|
|
90
90
|
}
|
|
91
91
|
return resp;
|
|
92
92
|
}
|
|
@@ -110,11 +110,11 @@ export class ModelregistryClient {
|
|
|
110
110
|
httpClient: this.httpClient,
|
|
111
111
|
logger: this.logger,
|
|
112
112
|
});
|
|
113
|
-
resp = parseResponse(respBody,
|
|
113
|
+
resp = parseResponse(respBody, unmarshalCreateRegistryWebhookResponseSchema);
|
|
114
114
|
};
|
|
115
115
|
await executeCall(call, options);
|
|
116
116
|
if (resp === undefined) {
|
|
117
|
-
throw new Error('
|
|
117
|
+
throw new Error('operation completed without a result.');
|
|
118
118
|
}
|
|
119
119
|
return resp;
|
|
120
120
|
}
|
|
@@ -135,11 +135,11 @@ export class ModelregistryClient {
|
|
|
135
135
|
httpClient: this.httpClient,
|
|
136
136
|
logger: this.logger,
|
|
137
137
|
});
|
|
138
|
-
resp = parseResponse(respBody,
|
|
138
|
+
resp = parseResponse(respBody, unmarshalCreateTransitionResponseSchema);
|
|
139
139
|
};
|
|
140
140
|
await executeCall(call, options);
|
|
141
141
|
if (resp === undefined) {
|
|
142
|
-
throw new Error('
|
|
142
|
+
throw new Error('operation completed without a result.');
|
|
143
143
|
}
|
|
144
144
|
return resp;
|
|
145
145
|
}
|
|
@@ -165,11 +165,11 @@ export class ModelregistryClient {
|
|
|
165
165
|
httpClient: this.httpClient,
|
|
166
166
|
logger: this.logger,
|
|
167
167
|
});
|
|
168
|
-
resp = parseResponse(respBody,
|
|
168
|
+
resp = parseResponse(respBody, unmarshalDeleteCommentResponseSchema);
|
|
169
169
|
};
|
|
170
170
|
await executeCall(call, options);
|
|
171
171
|
if (resp === undefined) {
|
|
172
|
-
throw new Error('
|
|
172
|
+
throw new Error('operation completed without a result.');
|
|
173
173
|
}
|
|
174
174
|
return resp;
|
|
175
175
|
}
|
|
@@ -198,11 +198,11 @@ export class ModelregistryClient {
|
|
|
198
198
|
httpClient: this.httpClient,
|
|
199
199
|
logger: this.logger,
|
|
200
200
|
});
|
|
201
|
-
resp = parseResponse(respBody,
|
|
201
|
+
resp = parseResponse(respBody, unmarshalDeleteRegistryWebhookResponseSchema);
|
|
202
202
|
};
|
|
203
203
|
await executeCall(call, options);
|
|
204
204
|
if (resp === undefined) {
|
|
205
|
-
throw new Error('
|
|
205
|
+
throw new Error('operation completed without a result.');
|
|
206
206
|
}
|
|
207
207
|
return resp;
|
|
208
208
|
}
|
|
@@ -240,11 +240,11 @@ export class ModelregistryClient {
|
|
|
240
240
|
httpClient: this.httpClient,
|
|
241
241
|
logger: this.logger,
|
|
242
242
|
});
|
|
243
|
-
resp = parseResponse(respBody,
|
|
243
|
+
resp = parseResponse(respBody, unmarshalDeleteTransitionResponseSchema);
|
|
244
244
|
};
|
|
245
245
|
await executeCall(call, options);
|
|
246
246
|
if (resp === undefined) {
|
|
247
|
-
throw new Error('
|
|
247
|
+
throw new Error('operation completed without a result.');
|
|
248
248
|
}
|
|
249
249
|
return resp;
|
|
250
250
|
}
|
|
@@ -274,11 +274,11 @@ export class ModelregistryClient {
|
|
|
274
274
|
httpClient: this.httpClient,
|
|
275
275
|
logger: this.logger,
|
|
276
276
|
});
|
|
277
|
-
resp = parseResponse(respBody,
|
|
277
|
+
resp = parseResponse(respBody, unmarshalGetRegisteredModelDatabricksResponseSchema);
|
|
278
278
|
};
|
|
279
279
|
await executeCall(call, options);
|
|
280
280
|
if (resp === undefined) {
|
|
281
|
-
throw new Error('
|
|
281
|
+
throw new Error('operation completed without a result.');
|
|
282
282
|
}
|
|
283
283
|
return resp;
|
|
284
284
|
}
|
|
@@ -316,11 +316,11 @@ export class ModelregistryClient {
|
|
|
316
316
|
httpClient: this.httpClient,
|
|
317
317
|
logger: this.logger,
|
|
318
318
|
});
|
|
319
|
-
resp = parseResponse(respBody,
|
|
319
|
+
resp = parseResponse(respBody, unmarshalListRegistryWebhooksResponseSchema);
|
|
320
320
|
};
|
|
321
321
|
await executeCall(call, options);
|
|
322
322
|
if (resp === undefined) {
|
|
323
|
-
throw new Error('
|
|
323
|
+
throw new Error('operation completed without a result.');
|
|
324
324
|
}
|
|
325
325
|
return resp;
|
|
326
326
|
}
|
|
@@ -362,11 +362,11 @@ export class ModelregistryClient {
|
|
|
362
362
|
httpClient: this.httpClient,
|
|
363
363
|
logger: this.logger,
|
|
364
364
|
});
|
|
365
|
-
resp = parseResponse(respBody,
|
|
365
|
+
resp = parseResponse(respBody, unmarshalListTransitionResponseSchema);
|
|
366
366
|
};
|
|
367
367
|
await executeCall(call, options);
|
|
368
368
|
if (resp === undefined) {
|
|
369
|
-
throw new Error('
|
|
369
|
+
throw new Error('operation completed without a result.');
|
|
370
370
|
}
|
|
371
371
|
return resp;
|
|
372
372
|
}
|
|
@@ -387,11 +387,11 @@ export class ModelregistryClient {
|
|
|
387
387
|
httpClient: this.httpClient,
|
|
388
388
|
logger: this.logger,
|
|
389
389
|
});
|
|
390
|
-
resp = parseResponse(respBody,
|
|
390
|
+
resp = parseResponse(respBody, unmarshalRejectTransitionResponseSchema);
|
|
391
391
|
};
|
|
392
392
|
await executeCall(call, options);
|
|
393
393
|
if (resp === undefined) {
|
|
394
|
-
throw new Error('
|
|
394
|
+
throw new Error('operation completed without a result.');
|
|
395
395
|
}
|
|
396
396
|
return resp;
|
|
397
397
|
}
|
|
@@ -415,11 +415,11 @@ export class ModelregistryClient {
|
|
|
415
415
|
httpClient: this.httpClient,
|
|
416
416
|
logger: this.logger,
|
|
417
417
|
});
|
|
418
|
-
resp = parseResponse(respBody,
|
|
418
|
+
resp = parseResponse(respBody, unmarshalTestRegistryWebhookResponseSchema);
|
|
419
419
|
};
|
|
420
420
|
await executeCall(call, options);
|
|
421
421
|
if (resp === undefined) {
|
|
422
|
-
throw new Error('
|
|
422
|
+
throw new Error('operation completed without a result.');
|
|
423
423
|
}
|
|
424
424
|
return resp;
|
|
425
425
|
}
|
|
@@ -444,11 +444,11 @@ export class ModelregistryClient {
|
|
|
444
444
|
httpClient: this.httpClient,
|
|
445
445
|
logger: this.logger,
|
|
446
446
|
});
|
|
447
|
-
resp = parseResponse(respBody,
|
|
447
|
+
resp = parseResponse(respBody, unmarshalTransitionModelVersionStageDatabricksResponseSchema);
|
|
448
448
|
};
|
|
449
449
|
await executeCall(call, options);
|
|
450
450
|
if (resp === undefined) {
|
|
451
|
-
throw new Error('
|
|
451
|
+
throw new Error('operation completed without a result.');
|
|
452
452
|
}
|
|
453
453
|
return resp;
|
|
454
454
|
}
|
|
@@ -469,11 +469,11 @@ export class ModelregistryClient {
|
|
|
469
469
|
httpClient: this.httpClient,
|
|
470
470
|
logger: this.logger,
|
|
471
471
|
});
|
|
472
|
-
resp = parseResponse(respBody,
|
|
472
|
+
resp = parseResponse(respBody, unmarshalUpdateCommentResponseSchema);
|
|
473
473
|
};
|
|
474
474
|
await executeCall(call, options);
|
|
475
475
|
if (resp === undefined) {
|
|
476
|
-
throw new Error('
|
|
476
|
+
throw new Error('operation completed without a result.');
|
|
477
477
|
}
|
|
478
478
|
return resp;
|
|
479
479
|
}
|
|
@@ -497,11 +497,11 @@ export class ModelregistryClient {
|
|
|
497
497
|
httpClient: this.httpClient,
|
|
498
498
|
logger: this.logger,
|
|
499
499
|
});
|
|
500
|
-
resp = parseResponse(respBody,
|
|
500
|
+
resp = parseResponse(respBody, unmarshalUpdateRegistryWebhookResponseSchema);
|
|
501
501
|
};
|
|
502
502
|
await executeCall(call, options);
|
|
503
503
|
if (resp === undefined) {
|
|
504
|
-
throw new Error('
|
|
504
|
+
throw new Error('operation completed without a result.');
|
|
505
505
|
}
|
|
506
506
|
return resp;
|
|
507
507
|
}
|
|
@@ -522,11 +522,11 @@ export class ModelregistryClient {
|
|
|
522
522
|
httpClient: this.httpClient,
|
|
523
523
|
logger: this.logger,
|
|
524
524
|
});
|
|
525
|
-
resp = parseResponse(respBody,
|
|
525
|
+
resp = parseResponse(respBody, unmarshalCreateModelVersionResponseSchema);
|
|
526
526
|
};
|
|
527
527
|
await executeCall(call, options);
|
|
528
528
|
if (resp === undefined) {
|
|
529
|
-
throw new Error('
|
|
529
|
+
throw new Error('operation completed without a result.');
|
|
530
530
|
}
|
|
531
531
|
return resp;
|
|
532
532
|
}
|
|
@@ -550,11 +550,11 @@ export class ModelregistryClient {
|
|
|
550
550
|
httpClient: this.httpClient,
|
|
551
551
|
logger: this.logger,
|
|
552
552
|
});
|
|
553
|
-
resp = parseResponse(respBody,
|
|
553
|
+
resp = parseResponse(respBody, unmarshalCreateRegisteredModelResponseSchema);
|
|
554
554
|
};
|
|
555
555
|
await executeCall(call, options);
|
|
556
556
|
if (resp === undefined) {
|
|
557
|
-
throw new Error('
|
|
557
|
+
throw new Error('operation completed without a result.');
|
|
558
558
|
}
|
|
559
559
|
return resp;
|
|
560
560
|
}
|
|
@@ -583,11 +583,11 @@ export class ModelregistryClient {
|
|
|
583
583
|
httpClient: this.httpClient,
|
|
584
584
|
logger: this.logger,
|
|
585
585
|
});
|
|
586
|
-
resp = parseResponse(respBody,
|
|
586
|
+
resp = parseResponse(respBody, unmarshalDeleteModelVersionResponseSchema);
|
|
587
587
|
};
|
|
588
588
|
await executeCall(call, options);
|
|
589
589
|
if (resp === undefined) {
|
|
590
|
-
throw new Error('
|
|
590
|
+
throw new Error('operation completed without a result.');
|
|
591
591
|
}
|
|
592
592
|
return resp;
|
|
593
593
|
}
|
|
@@ -619,11 +619,11 @@ export class ModelregistryClient {
|
|
|
619
619
|
httpClient: this.httpClient,
|
|
620
620
|
logger: this.logger,
|
|
621
621
|
});
|
|
622
|
-
resp = parseResponse(respBody,
|
|
622
|
+
resp = parseResponse(respBody, unmarshalDeleteModelVersionTagResponseSchema);
|
|
623
623
|
};
|
|
624
624
|
await executeCall(call, options);
|
|
625
625
|
if (resp === undefined) {
|
|
626
|
-
throw new Error('
|
|
626
|
+
throw new Error('operation completed without a result.');
|
|
627
627
|
}
|
|
628
628
|
return resp;
|
|
629
629
|
}
|
|
@@ -649,11 +649,11 @@ export class ModelregistryClient {
|
|
|
649
649
|
httpClient: this.httpClient,
|
|
650
650
|
logger: this.logger,
|
|
651
651
|
});
|
|
652
|
-
resp = parseResponse(respBody,
|
|
652
|
+
resp = parseResponse(respBody, unmarshalDeleteRegisteredModelResponseSchema);
|
|
653
653
|
};
|
|
654
654
|
await executeCall(call, options);
|
|
655
655
|
if (resp === undefined) {
|
|
656
|
-
throw new Error('
|
|
656
|
+
throw new Error('operation completed without a result.');
|
|
657
657
|
}
|
|
658
658
|
return resp;
|
|
659
659
|
}
|
|
@@ -682,36 +682,11 @@ export class ModelregistryClient {
|
|
|
682
682
|
httpClient: this.httpClient,
|
|
683
683
|
logger: this.logger,
|
|
684
684
|
});
|
|
685
|
-
resp = parseResponse(respBody,
|
|
685
|
+
resp = parseResponse(respBody, unmarshalDeleteRegisteredModelTagResponseSchema);
|
|
686
686
|
};
|
|
687
687
|
await executeCall(call, options);
|
|
688
688
|
if (resp === undefined) {
|
|
689
|
-
throw new Error('
|
|
690
|
-
}
|
|
691
|
-
return resp;
|
|
692
|
-
}
|
|
693
|
-
/** Gets the latest version of a registered model. */
|
|
694
|
-
async getLatestVersions(req, options) {
|
|
695
|
-
const url = `${this.host}/api/2.0/mlflow/registered-models/get-latest-versions`;
|
|
696
|
-
const body = marshalRequest(req, marshalGetLatestVersionsRequestSchema);
|
|
697
|
-
let resp;
|
|
698
|
-
const call = async (callSignal) => {
|
|
699
|
-
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
700
|
-
if (this.workspaceId !== undefined) {
|
|
701
|
-
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
702
|
-
}
|
|
703
|
-
headers.set('User-Agent', this.userAgent);
|
|
704
|
-
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
705
|
-
const respBody = await executeHttpCall({
|
|
706
|
-
request: httpReq,
|
|
707
|
-
httpClient: this.httpClient,
|
|
708
|
-
logger: this.logger,
|
|
709
|
-
});
|
|
710
|
-
resp = parseResponse(respBody, unmarshalGetLatestVersionsRequest_ResponseSchema);
|
|
711
|
-
};
|
|
712
|
-
await executeCall(call, options);
|
|
713
|
-
if (resp === undefined) {
|
|
714
|
-
throw new Error('API call completed without a result.');
|
|
689
|
+
throw new Error('operation completed without a result.');
|
|
715
690
|
}
|
|
716
691
|
return resp;
|
|
717
692
|
}
|
|
@@ -740,11 +715,11 @@ export class ModelregistryClient {
|
|
|
740
715
|
httpClient: this.httpClient,
|
|
741
716
|
logger: this.logger,
|
|
742
717
|
});
|
|
743
|
-
resp = parseResponse(respBody,
|
|
718
|
+
resp = parseResponse(respBody, unmarshalGetModelVersionResponseSchema);
|
|
744
719
|
};
|
|
745
720
|
await executeCall(call, options);
|
|
746
721
|
if (resp === undefined) {
|
|
747
|
-
throw new Error('
|
|
722
|
+
throw new Error('operation completed without a result.');
|
|
748
723
|
}
|
|
749
724
|
return resp;
|
|
750
725
|
}
|
|
@@ -773,11 +748,36 @@ export class ModelregistryClient {
|
|
|
773
748
|
httpClient: this.httpClient,
|
|
774
749
|
logger: this.logger,
|
|
775
750
|
});
|
|
776
|
-
resp = parseResponse(respBody,
|
|
751
|
+
resp = parseResponse(respBody, unmarshalGetModelVersionDownloadUriResponseSchema);
|
|
752
|
+
};
|
|
753
|
+
await executeCall(call, options);
|
|
754
|
+
if (resp === undefined) {
|
|
755
|
+
throw new Error('operation completed without a result.');
|
|
756
|
+
}
|
|
757
|
+
return resp;
|
|
758
|
+
}
|
|
759
|
+
/** Gets the latest version of a registered model. */
|
|
760
|
+
async listLatestVersions(req, options) {
|
|
761
|
+
const url = `${this.host}/api/2.0/mlflow/registered-models/get-latest-versions`;
|
|
762
|
+
const body = marshalRequest(req, marshalListLatestVersionsRequestSchema);
|
|
763
|
+
let resp;
|
|
764
|
+
const call = async (callSignal) => {
|
|
765
|
+
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
766
|
+
if (this.workspaceId !== undefined) {
|
|
767
|
+
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
768
|
+
}
|
|
769
|
+
headers.set('User-Agent', this.userAgent);
|
|
770
|
+
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
771
|
+
const respBody = await executeHttpCall({
|
|
772
|
+
request: httpReq,
|
|
773
|
+
httpClient: this.httpClient,
|
|
774
|
+
logger: this.logger,
|
|
775
|
+
});
|
|
776
|
+
resp = parseResponse(respBody, unmarshalGetLatestVersionsResponseSchema);
|
|
777
777
|
};
|
|
778
778
|
await executeCall(call, options);
|
|
779
779
|
if (resp === undefined) {
|
|
780
|
-
throw new Error('
|
|
780
|
+
throw new Error('operation completed without a result.');
|
|
781
781
|
}
|
|
782
782
|
return resp;
|
|
783
783
|
}
|
|
@@ -806,11 +806,11 @@ export class ModelregistryClient {
|
|
|
806
806
|
httpClient: this.httpClient,
|
|
807
807
|
logger: this.logger,
|
|
808
808
|
});
|
|
809
|
-
resp = parseResponse(respBody,
|
|
809
|
+
resp = parseResponse(respBody, unmarshalListRegisteredModelsResponseSchema);
|
|
810
810
|
};
|
|
811
811
|
await executeCall(call, options);
|
|
812
812
|
if (resp === undefined) {
|
|
813
|
-
throw new Error('
|
|
813
|
+
throw new Error('operation completed without a result.');
|
|
814
814
|
}
|
|
815
815
|
return resp;
|
|
816
816
|
}
|
|
@@ -844,11 +844,11 @@ export class ModelregistryClient {
|
|
|
844
844
|
httpClient: this.httpClient,
|
|
845
845
|
logger: this.logger,
|
|
846
846
|
});
|
|
847
|
-
resp = parseResponse(respBody,
|
|
847
|
+
resp = parseResponse(respBody, unmarshalRenameRegisteredModelResponseSchema);
|
|
848
848
|
};
|
|
849
849
|
await executeCall(call, options);
|
|
850
850
|
if (resp === undefined) {
|
|
851
|
-
throw new Error('
|
|
851
|
+
throw new Error('operation completed without a result.');
|
|
852
852
|
}
|
|
853
853
|
return resp;
|
|
854
854
|
}
|
|
@@ -883,11 +883,11 @@ export class ModelregistryClient {
|
|
|
883
883
|
httpClient: this.httpClient,
|
|
884
884
|
logger: this.logger,
|
|
885
885
|
});
|
|
886
|
-
resp = parseResponse(respBody,
|
|
886
|
+
resp = parseResponse(respBody, unmarshalSearchModelVersionsResponseSchema);
|
|
887
887
|
};
|
|
888
888
|
await executeCall(call, options);
|
|
889
889
|
if (resp === undefined) {
|
|
890
|
-
throw new Error('
|
|
890
|
+
throw new Error('operation completed without a result.');
|
|
891
891
|
}
|
|
892
892
|
return resp;
|
|
893
893
|
}
|
|
@@ -935,11 +935,11 @@ export class ModelregistryClient {
|
|
|
935
935
|
httpClient: this.httpClient,
|
|
936
936
|
logger: this.logger,
|
|
937
937
|
});
|
|
938
|
-
resp = parseResponse(respBody,
|
|
938
|
+
resp = parseResponse(respBody, unmarshalSearchRegisteredModelsResponseSchema);
|
|
939
939
|
};
|
|
940
940
|
await executeCall(call, options);
|
|
941
941
|
if (resp === undefined) {
|
|
942
|
-
throw new Error('
|
|
942
|
+
throw new Error('operation completed without a result.');
|
|
943
943
|
}
|
|
944
944
|
return resp;
|
|
945
945
|
}
|
|
@@ -973,11 +973,11 @@ export class ModelregistryClient {
|
|
|
973
973
|
httpClient: this.httpClient,
|
|
974
974
|
logger: this.logger,
|
|
975
975
|
});
|
|
976
|
-
resp = parseResponse(respBody,
|
|
976
|
+
resp = parseResponse(respBody, unmarshalSetModelVersionTagResponseSchema);
|
|
977
977
|
};
|
|
978
978
|
await executeCall(call, options);
|
|
979
979
|
if (resp === undefined) {
|
|
980
|
-
throw new Error('
|
|
980
|
+
throw new Error('operation completed without a result.');
|
|
981
981
|
}
|
|
982
982
|
return resp;
|
|
983
983
|
}
|
|
@@ -998,11 +998,11 @@ export class ModelregistryClient {
|
|
|
998
998
|
httpClient: this.httpClient,
|
|
999
999
|
logger: this.logger,
|
|
1000
1000
|
});
|
|
1001
|
-
resp = parseResponse(respBody,
|
|
1001
|
+
resp = parseResponse(respBody, unmarshalSetRegisteredModelTagResponseSchema);
|
|
1002
1002
|
};
|
|
1003
1003
|
await executeCall(call, options);
|
|
1004
1004
|
if (resp === undefined) {
|
|
1005
|
-
throw new Error('
|
|
1005
|
+
throw new Error('operation completed without a result.');
|
|
1006
1006
|
}
|
|
1007
1007
|
return resp;
|
|
1008
1008
|
}
|
|
@@ -1023,11 +1023,11 @@ export class ModelregistryClient {
|
|
|
1023
1023
|
httpClient: this.httpClient,
|
|
1024
1024
|
logger: this.logger,
|
|
1025
1025
|
});
|
|
1026
|
-
resp = parseResponse(respBody,
|
|
1026
|
+
resp = parseResponse(respBody, unmarshalUpdateModelVersionResponseSchema);
|
|
1027
1027
|
};
|
|
1028
1028
|
await executeCall(call, options);
|
|
1029
1029
|
if (resp === undefined) {
|
|
1030
|
-
throw new Error('
|
|
1030
|
+
throw new Error('operation completed without a result.');
|
|
1031
1031
|
}
|
|
1032
1032
|
return resp;
|
|
1033
1033
|
}
|
|
@@ -1048,11 +1048,11 @@ export class ModelregistryClient {
|
|
|
1048
1048
|
httpClient: this.httpClient,
|
|
1049
1049
|
logger: this.logger,
|
|
1050
1050
|
});
|
|
1051
|
-
resp = parseResponse(respBody,
|
|
1051
|
+
resp = parseResponse(respBody, unmarshalUpdateRegisteredModelResponseSchema);
|
|
1052
1052
|
};
|
|
1053
1053
|
await executeCall(call, options);
|
|
1054
1054
|
if (resp === undefined) {
|
|
1055
|
-
throw new Error('
|
|
1055
|
+
throw new Error('operation completed without a result.');
|
|
1056
1056
|
}
|
|
1057
1057
|
return resp;
|
|
1058
1058
|
}
|