@salesforce/lds-adapters-platform-cdp-machine-learning 1.270.0 → 1.270.1
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/es/es2018/platform-cdp-machine-learning.js +500 -374
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModel.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/resources/{getSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/resources/{patchSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +5 -5
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +19 -19
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelCollectionRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +9 -9
- package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +24 -24
- package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +41 -41
- package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +35 -35
- package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
- package/package.json +16 -5
- package/sfdc/index.js +476 -347
- package/src/raml/api.raml +71 -71
- package/src/raml/luvio.raml +5 -5
package/sfdc/index.js
CHANGED
|
@@ -288,56 +288,74 @@ function validate$h(obj, path = 'CdpAssetReferenceRepresentation') {
|
|
|
288
288
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
289
289
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
290
290
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
291
|
+
if (obj.createdBy !== undefined) {
|
|
292
|
+
const obj_createdBy = obj.createdBy;
|
|
293
|
+
const path_createdBy = path + '.createdBy';
|
|
294
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
295
|
+
if (referencepath_createdByValidationError !== null) {
|
|
296
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
297
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
298
|
+
return new TypeError(message);
|
|
299
|
+
}
|
|
298
300
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
if (obj.createdDate !== undefined) {
|
|
302
|
+
const obj_createdDate = obj.createdDate;
|
|
303
|
+
const path_createdDate = path + '.createdDate';
|
|
304
|
+
if (typeof obj_createdDate !== 'string') {
|
|
305
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
306
|
+
}
|
|
303
307
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
+
if (obj.id !== undefined) {
|
|
309
|
+
const obj_id = obj.id;
|
|
310
|
+
const path_id = path + '.id';
|
|
311
|
+
if (typeof obj_id !== 'string') {
|
|
312
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
313
|
+
}
|
|
308
314
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
315
|
+
if (obj.label !== undefined) {
|
|
316
|
+
const obj_label = obj.label;
|
|
317
|
+
const path_label = path + '.label';
|
|
318
|
+
if (typeof obj_label !== 'string') {
|
|
319
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
320
|
+
}
|
|
313
321
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
322
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
323
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
324
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
325
|
+
const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
|
|
326
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
327
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
328
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
329
|
+
return new TypeError(message);
|
|
330
|
+
}
|
|
321
331
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
332
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
333
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
334
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
335
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
336
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
337
|
+
}
|
|
326
338
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
339
|
+
if (obj.name !== undefined) {
|
|
340
|
+
const obj_name = obj.name;
|
|
341
|
+
const path_name = path + '.name';
|
|
342
|
+
if (typeof obj_name !== 'string') {
|
|
343
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
344
|
+
}
|
|
331
345
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
346
|
+
if (obj.namespace !== undefined) {
|
|
347
|
+
const obj_namespace = obj.namespace;
|
|
348
|
+
const path_namespace = path + '.namespace';
|
|
349
|
+
if (typeof obj_namespace !== 'string') {
|
|
350
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
351
|
+
}
|
|
336
352
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
353
|
+
if (obj.url !== undefined) {
|
|
354
|
+
const obj_url = obj.url;
|
|
355
|
+
const path_url = path + '.url';
|
|
356
|
+
if (typeof obj_url !== 'string') {
|
|
357
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
358
|
+
}
|
|
341
359
|
}
|
|
342
360
|
})();
|
|
343
361
|
return v_error === undefined ? null : v_error;
|
|
@@ -362,8 +380,16 @@ function validate$g(obj, path = 'CdpMlModelParameterOverrideBaseRepresentation')
|
|
|
362
380
|
return v_error === undefined ? null : v_error;
|
|
363
381
|
}
|
|
364
382
|
|
|
383
|
+
// Should match with keyBuilder
|
|
384
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
385
|
+
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
386
|
+
const urlArray = object.url.split('/');
|
|
387
|
+
const idOrName = urlArray[urlArray.length - 1];
|
|
388
|
+
return `${keyPrefix}::${RepresentationType$5}:(id:${idOrName},type:${type})`;
|
|
389
|
+
}
|
|
390
|
+
|
|
365
391
|
const TTL$5 = 1000;
|
|
366
|
-
const VERSION$5 = "
|
|
392
|
+
const VERSION$5 = "8cbcca9da420023a34b1f2bef797cf75";
|
|
367
393
|
function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
368
394
|
const v_error = (() => {
|
|
369
395
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -397,18 +423,22 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
397
423
|
if (typeof obj_capability !== 'string') {
|
|
398
424
|
return new TypeError('Expected "string" but received "' + typeof obj_capability + '" (at "' + path_capability + '")');
|
|
399
425
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
426
|
+
if (obj.createdBy !== undefined) {
|
|
427
|
+
const obj_createdBy = obj.createdBy;
|
|
428
|
+
const path_createdBy = path + '.createdBy';
|
|
429
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
430
|
+
if (referencepath_createdByValidationError !== null) {
|
|
431
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
432
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
433
|
+
return new TypeError(message);
|
|
434
|
+
}
|
|
407
435
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
436
|
+
if (obj.createdDate !== undefined) {
|
|
437
|
+
const obj_createdDate = obj.createdDate;
|
|
438
|
+
const path_createdDate = path + '.createdDate';
|
|
439
|
+
if (typeof obj_createdDate !== 'string') {
|
|
440
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
441
|
+
}
|
|
412
442
|
}
|
|
413
443
|
const obj_customizableFields = obj.customizableFields;
|
|
414
444
|
const path_customizableFields = path + '.customizableFields';
|
|
@@ -425,10 +455,12 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
425
455
|
return new TypeError(message);
|
|
426
456
|
}
|
|
427
457
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
458
|
+
if (obj.description !== undefined) {
|
|
459
|
+
const obj_description = obj.description;
|
|
460
|
+
const path_description = path + '.description';
|
|
461
|
+
if (typeof obj_description !== 'string') {
|
|
462
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
463
|
+
}
|
|
432
464
|
}
|
|
433
465
|
const obj_filter = obj.filter;
|
|
434
466
|
const path_filter = path + '.filter';
|
|
@@ -438,46 +470,60 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
438
470
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
439
471
|
return new TypeError(message);
|
|
440
472
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
473
|
+
if (obj.id !== undefined) {
|
|
474
|
+
const obj_id = obj.id;
|
|
475
|
+
const path_id = path + '.id';
|
|
476
|
+
if (typeof obj_id !== 'string') {
|
|
477
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
478
|
+
}
|
|
445
479
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
453
|
-
const referencepath_lastActivatedByValidationError = validate$i(obj_lastActivatedBy, path_lastActivatedBy);
|
|
454
|
-
if (referencepath_lastActivatedByValidationError !== null) {
|
|
455
|
-
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
456
|
-
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
457
|
-
return new TypeError(message);
|
|
480
|
+
if (obj.label !== undefined) {
|
|
481
|
+
const obj_label = obj.label;
|
|
482
|
+
const path_label = path + '.label';
|
|
483
|
+
if (typeof obj_label !== 'string') {
|
|
484
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
485
|
+
}
|
|
458
486
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
487
|
+
if (obj.lastActivatedBy !== undefined) {
|
|
488
|
+
const obj_lastActivatedBy = obj.lastActivatedBy;
|
|
489
|
+
const path_lastActivatedBy = path + '.lastActivatedBy';
|
|
490
|
+
const referencepath_lastActivatedByValidationError = validate$i(obj_lastActivatedBy, path_lastActivatedBy);
|
|
491
|
+
if (referencepath_lastActivatedByValidationError !== null) {
|
|
492
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastActivatedBy + '")\n';
|
|
493
|
+
message += referencepath_lastActivatedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
494
|
+
return new TypeError(message);
|
|
495
|
+
}
|
|
463
496
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
return new TypeError(message);
|
|
497
|
+
if (obj.lastActivatedDate !== undefined) {
|
|
498
|
+
const obj_lastActivatedDate = obj.lastActivatedDate;
|
|
499
|
+
const path_lastActivatedDate = path + '.lastActivatedDate';
|
|
500
|
+
if (typeof obj_lastActivatedDate !== 'string') {
|
|
501
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
|
|
502
|
+
}
|
|
471
503
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
504
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
505
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
506
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
507
|
+
const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
|
|
508
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
509
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
510
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
511
|
+
return new TypeError(message);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
515
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
516
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
517
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
518
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
519
|
+
}
|
|
476
520
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
521
|
+
if (obj.metricsUrl !== undefined) {
|
|
522
|
+
const obj_metricsUrl = obj.metricsUrl;
|
|
523
|
+
const path_metricsUrl = path + '.metricsUrl';
|
|
524
|
+
if (typeof obj_metricsUrl !== 'string') {
|
|
525
|
+
return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
|
|
526
|
+
}
|
|
481
527
|
}
|
|
482
528
|
const obj_name = obj.name;
|
|
483
529
|
const path_name = path + '.name';
|
|
@@ -523,15 +569,6 @@ function validate$f(obj, path = 'CdpMlConfiguredModelRepresentation') {
|
|
|
523
569
|
return v_error === undefined ? null : v_error;
|
|
524
570
|
}
|
|
525
571
|
const RepresentationType$5 = 'CdpMlConfiguredModelRepresentation';
|
|
526
|
-
function keyBuilder$d(luvio, config) {
|
|
527
|
-
return keyPrefix + '::' + RepresentationType$5 + ':' + config.modelId;
|
|
528
|
-
}
|
|
529
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
530
|
-
const keyParams = {
|
|
531
|
-
modelId: object.id
|
|
532
|
-
};
|
|
533
|
-
return keyBuilder$d(luvio, keyParams);
|
|
534
|
-
}
|
|
535
572
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
536
573
|
return input;
|
|
537
574
|
}
|
|
@@ -612,12 +649,12 @@ const adapterName$7 = 'createCdpMlConfiguredModelCollection';
|
|
|
612
649
|
const createCdpMlConfiguredModelCollection_ConfigPropertyMetadata = [
|
|
613
650
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
614
651
|
generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
615
|
-
generateParamConfigMetadata('artifact',
|
|
652
|
+
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
616
653
|
generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
|
|
617
654
|
generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
618
|
-
generateParamConfigMetadata('description',
|
|
619
|
-
generateParamConfigMetadata('filter',
|
|
620
|
-
generateParamConfigMetadata('label',
|
|
655
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
656
|
+
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
657
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
621
658
|
generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
622
659
|
generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
|
|
623
660
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
@@ -727,14 +764,21 @@ const createCdpMlConfiguredModelCollectionAdapterFactory = (luvio) => {
|
|
|
727
764
|
};
|
|
728
765
|
};
|
|
729
766
|
|
|
730
|
-
function
|
|
731
|
-
return
|
|
767
|
+
function IsWorkspaceId(workspaceIdOrName) {
|
|
768
|
+
return workspaceIdOrName.indexOf('__') === -1 || workspaceIdOrName.startsWith('12s');
|
|
769
|
+
}
|
|
770
|
+
function IsModelId(modelIdOrName) {
|
|
771
|
+
return modelIdOrName.startsWith('12r');
|
|
732
772
|
}
|
|
773
|
+
|
|
733
774
|
function keyBuilder$c(luvio, params) {
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
775
|
+
const modelIdOrName = params.urlParams.modelIdOrName;
|
|
776
|
+
const type = IsModelId(modelIdOrName) ? 'id' : 'name';
|
|
777
|
+
return `${keyPrefix}::${RepresentationType$5}:(id:${params.urlParams.modelIdOrName},type:${type})`;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
function select$b(luvio, params) {
|
|
781
|
+
return select$d();
|
|
738
782
|
}
|
|
739
783
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
740
784
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
@@ -772,7 +816,7 @@ function createResourceRequest$6(config) {
|
|
|
772
816
|
const headers = {};
|
|
773
817
|
return {
|
|
774
818
|
baseUri: '/services/data/v61.0',
|
|
775
|
-
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.
|
|
819
|
+
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
|
|
776
820
|
method: 'get',
|
|
777
821
|
body: null,
|
|
778
822
|
urlParams: config.urlParams,
|
|
@@ -784,7 +828,7 @@ function createResourceRequest$6(config) {
|
|
|
784
828
|
|
|
785
829
|
const adapterName$6 = 'getCdpMlConfiguredModel';
|
|
786
830
|
const getCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
787
|
-
generateParamConfigMetadata('
|
|
831
|
+
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
788
832
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
789
833
|
];
|
|
790
834
|
const getCdpMlConfiguredModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCdpMlConfiguredModel_ConfigPropertyMetadata);
|
|
@@ -870,25 +914,27 @@ const getCdpMlConfiguredModelAdapterFactory = (luvio) => function cdpMachineLear
|
|
|
870
914
|
};
|
|
871
915
|
|
|
872
916
|
const TTL$4 = 1000;
|
|
873
|
-
const VERSION$4 = "
|
|
917
|
+
const VERSION$4 = "2b3092c57f5f0a17513ae28d59875559";
|
|
874
918
|
function validate$e(obj, path = 'CdpMlConfiguredModelCollectionRepresentation') {
|
|
875
919
|
const v_error = (() => {
|
|
876
920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
877
921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
878
922
|
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
923
|
+
if (obj.models !== undefined) {
|
|
924
|
+
const obj_models = obj.models;
|
|
925
|
+
const path_models = path + '.models';
|
|
926
|
+
if (!ArrayIsArray(obj_models)) {
|
|
927
|
+
return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
|
|
928
|
+
}
|
|
929
|
+
for (let i = 0; i < obj_models.length; i++) {
|
|
930
|
+
const obj_models_item = obj_models[i];
|
|
931
|
+
const path_models_item = path_models + '[' + i + ']';
|
|
932
|
+
const referencepath_models_itemValidationError = validate$f(obj_models_item, path_models_item);
|
|
933
|
+
if (referencepath_models_itemValidationError !== null) {
|
|
934
|
+
let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
|
|
935
|
+
message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
936
|
+
return new TypeError(message);
|
|
937
|
+
}
|
|
892
938
|
}
|
|
893
939
|
}
|
|
894
940
|
const obj_totalSize = obj.totalSize;
|
|
@@ -1126,7 +1172,7 @@ function validate$c(obj, path = 'CdpMlModelParameterDefinitionBaseRepresentation
|
|
|
1126
1172
|
}
|
|
1127
1173
|
|
|
1128
1174
|
const TTL$3 = 1000;
|
|
1129
|
-
const VERSION$3 = "
|
|
1175
|
+
const VERSION$3 = "6367fbb84e5d44f20b66ff347cdd5487";
|
|
1130
1176
|
function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
1131
1177
|
const v_error = (() => {
|
|
1132
1178
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1145,10 +1191,12 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
1145
1191
|
if (typeof obj_createdDate !== 'string') {
|
|
1146
1192
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1147
1193
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1194
|
+
if (obj.description !== undefined) {
|
|
1195
|
+
const obj_description = obj.description;
|
|
1196
|
+
const path_description = path + '.description';
|
|
1197
|
+
if (typeof obj_description !== 'string') {
|
|
1198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1199
|
+
}
|
|
1152
1200
|
}
|
|
1153
1201
|
const obj_id = obj.id;
|
|
1154
1202
|
const path_id = path + '.id';
|
|
@@ -1170,10 +1218,12 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
1170
1218
|
return new TypeError(message);
|
|
1171
1219
|
}
|
|
1172
1220
|
}
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1221
|
+
if (obj.label !== undefined) {
|
|
1222
|
+
const obj_label = obj.label;
|
|
1223
|
+
const path_label = path + '.label';
|
|
1224
|
+
if (typeof obj_label !== 'string') {
|
|
1225
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1226
|
+
}
|
|
1177
1227
|
}
|
|
1178
1228
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1179
1229
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
@@ -1198,10 +1248,12 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
|
|
|
1198
1248
|
if (typeof obj_name !== 'string') {
|
|
1199
1249
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1200
1250
|
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1251
|
+
if (obj.namespace !== undefined) {
|
|
1252
|
+
const obj_namespace = obj.namespace;
|
|
1253
|
+
const path_namespace = path + '.namespace';
|
|
1254
|
+
if (typeof obj_namespace !== 'string') {
|
|
1255
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1256
|
+
}
|
|
1205
1257
|
}
|
|
1206
1258
|
const obj_outputFields = obj.outputFields;
|
|
1207
1259
|
const path_outputFields = path + '.outputFields';
|
|
@@ -1663,10 +1715,12 @@ function validate$9(obj, path = 'CdpMlModelTypeRepresentation') {
|
|
|
1663
1715
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1664
1716
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1665
1717
|
}
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1718
|
+
if (obj.connectorType !== undefined) {
|
|
1719
|
+
const obj_connectorType = obj.connectorType;
|
|
1720
|
+
const path_connectorType = path + '.connectorType';
|
|
1721
|
+
if (typeof obj_connectorType !== 'string') {
|
|
1722
|
+
return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
|
|
1723
|
+
}
|
|
1670
1724
|
}
|
|
1671
1725
|
const obj_modelType = obj.modelType;
|
|
1672
1726
|
const path_modelType = path + '.modelType';
|
|
@@ -1846,8 +1900,16 @@ function validate$3(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
|
|
|
1846
1900
|
return v_error === undefined ? null : v_error;
|
|
1847
1901
|
}
|
|
1848
1902
|
|
|
1903
|
+
// Should match with keyBuilder
|
|
1904
|
+
function keyBuilderFromType(luvio, object) {
|
|
1905
|
+
const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
|
|
1906
|
+
const urlArray = object.url.split('/');
|
|
1907
|
+
const idOrName = urlArray[urlArray.length - 1];
|
|
1908
|
+
return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1849
1911
|
const TTL$1 = 1000;
|
|
1850
|
-
const VERSION$1 = "
|
|
1912
|
+
const VERSION$1 = "1b661a85ba4e745b802d9861a883d1b6";
|
|
1851
1913
|
function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
1852
1914
|
const v_error = (() => {
|
|
1853
1915
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1865,72 +1927,94 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1865
1927
|
return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
|
|
1866
1928
|
}
|
|
1867
1929
|
}
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1930
|
+
if (obj.activeSetup !== undefined) {
|
|
1931
|
+
const obj_activeSetup = obj.activeSetup;
|
|
1932
|
+
const path_activeSetup = path + '.activeSetup';
|
|
1933
|
+
const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
|
|
1934
|
+
if (referencepath_activeSetupValidationError !== null) {
|
|
1935
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
1936
|
+
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1937
|
+
return new TypeError(message);
|
|
1938
|
+
}
|
|
1875
1939
|
}
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1940
|
+
if (obj.activeSetupVersionNumber !== undefined) {
|
|
1941
|
+
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
1942
|
+
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
1943
|
+
if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
|
|
1944
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
1945
|
+
}
|
|
1880
1946
|
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1947
|
+
if (obj.createdBy !== undefined) {
|
|
1948
|
+
const obj_createdBy = obj.createdBy;
|
|
1949
|
+
const path_createdBy = path + '.createdBy';
|
|
1950
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
1951
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1952
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1953
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1954
|
+
return new TypeError(message);
|
|
1955
|
+
}
|
|
1888
1956
|
}
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1957
|
+
if (obj.createdDate !== undefined) {
|
|
1958
|
+
const obj_createdDate = obj.createdDate;
|
|
1959
|
+
const path_createdDate = path + '.createdDate';
|
|
1960
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1961
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1962
|
+
}
|
|
1893
1963
|
}
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1964
|
+
if (obj.description !== undefined) {
|
|
1965
|
+
const obj_description = obj.description;
|
|
1966
|
+
const path_description = path + '.description';
|
|
1967
|
+
if (typeof obj_description !== 'string') {
|
|
1968
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1969
|
+
}
|
|
1898
1970
|
}
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1971
|
+
if (obj.historiesUrl !== undefined) {
|
|
1972
|
+
const obj_historiesUrl = obj.historiesUrl;
|
|
1973
|
+
const path_historiesUrl = path + '.historiesUrl';
|
|
1974
|
+
if (typeof obj_historiesUrl !== 'string') {
|
|
1975
|
+
return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
1976
|
+
}
|
|
1903
1977
|
}
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1978
|
+
if (obj.id !== undefined) {
|
|
1979
|
+
const obj_id = obj.id;
|
|
1980
|
+
const path_id = path + '.id';
|
|
1981
|
+
if (typeof obj_id !== 'string') {
|
|
1982
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1983
|
+
}
|
|
1908
1984
|
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1985
|
+
if (obj.label !== undefined) {
|
|
1986
|
+
const obj_label = obj.label;
|
|
1987
|
+
const path_label = path + '.label';
|
|
1988
|
+
if (typeof obj_label !== 'string') {
|
|
1989
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1990
|
+
}
|
|
1913
1991
|
}
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1992
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1993
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1994
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1995
|
+
const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1996
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1997
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1998
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1999
|
+
return new TypeError(message);
|
|
2000
|
+
}
|
|
1921
2001
|
}
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
2002
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
2003
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
2004
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
2005
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
2006
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
2007
|
+
}
|
|
1926
2008
|
}
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
2009
|
+
if (obj.latestSetup !== undefined) {
|
|
2010
|
+
const obj_latestSetup = obj.latestSetup;
|
|
2011
|
+
const path_latestSetup = path + '.latestSetup';
|
|
2012
|
+
const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
|
|
2013
|
+
if (referencepath_latestSetupValidationError !== null) {
|
|
2014
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
2015
|
+
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2016
|
+
return new TypeError(message);
|
|
2017
|
+
}
|
|
1934
2018
|
}
|
|
1935
2019
|
const obj_modelCount = obj.modelCount;
|
|
1936
2020
|
const path_modelCount = path + '.modelCount';
|
|
@@ -1945,61 +2029,77 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
|
|
|
1945
2029
|
message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1946
2030
|
return new TypeError(message);
|
|
1947
2031
|
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2032
|
+
if (obj.modelsUrl !== undefined) {
|
|
2033
|
+
const obj_modelsUrl = obj.modelsUrl;
|
|
2034
|
+
const path_modelsUrl = path + '.modelsUrl';
|
|
2035
|
+
if (typeof obj_modelsUrl !== 'string') {
|
|
2036
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
|
|
2037
|
+
}
|
|
1952
2038
|
}
|
|
1953
2039
|
const obj_name = obj.name;
|
|
1954
2040
|
const path_name = path + '.name';
|
|
1955
2041
|
if (typeof obj_name !== 'string') {
|
|
1956
2042
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1957
2043
|
}
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
2044
|
+
if (obj.namespace !== undefined) {
|
|
2045
|
+
const obj_namespace = obj.namespace;
|
|
2046
|
+
const path_namespace = path + '.namespace';
|
|
2047
|
+
if (typeof obj_namespace !== 'string') {
|
|
2048
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
2049
|
+
}
|
|
1962
2050
|
}
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
2051
|
+
if (obj.outcomeDefinition !== undefined) {
|
|
2052
|
+
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
2053
|
+
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
2054
|
+
const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
|
|
2055
|
+
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
2056
|
+
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
2057
|
+
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2058
|
+
return new TypeError(message);
|
|
2059
|
+
}
|
|
1970
2060
|
}
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
const path_refreshConfig = path + '.refreshConfig';
|
|
1978
|
-
const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
|
|
1979
|
-
if (referencepath_refreshConfigValidationError !== null) {
|
|
1980
|
-
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
1981
|
-
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1982
|
-
return new TypeError(message);
|
|
2061
|
+
if (obj.predictionType !== undefined) {
|
|
2062
|
+
const obj_predictionType = obj.predictionType;
|
|
2063
|
+
const path_predictionType = path + '.predictionType';
|
|
2064
|
+
if (typeof obj_predictionType !== 'string') {
|
|
2065
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
2066
|
+
}
|
|
1983
2067
|
}
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
2068
|
+
if (obj.refreshConfig !== undefined) {
|
|
2069
|
+
const obj_refreshConfig = obj.refreshConfig;
|
|
2070
|
+
const path_refreshConfig = path + '.refreshConfig';
|
|
2071
|
+
const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
|
|
2072
|
+
if (referencepath_refreshConfigValidationError !== null) {
|
|
2073
|
+
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
2074
|
+
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2075
|
+
return new TypeError(message);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
if (obj.setupVersionsUrl !== undefined) {
|
|
2079
|
+
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
2080
|
+
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
2081
|
+
if (typeof obj_setupVersionsUrl !== 'string') {
|
|
2082
|
+
return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
2083
|
+
}
|
|
1988
2084
|
}
|
|
1989
2085
|
const obj_status = obj.status;
|
|
1990
2086
|
const path_status = path + '.status';
|
|
1991
2087
|
if (typeof obj_status !== 'string') {
|
|
1992
2088
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1993
2089
|
}
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
2090
|
+
if (obj.totalInferenceCount !== undefined) {
|
|
2091
|
+
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
2092
|
+
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
2093
|
+
if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
|
|
2094
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
2095
|
+
}
|
|
1998
2096
|
}
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2097
|
+
if (obj.totalWarningsCount !== undefined) {
|
|
2098
|
+
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
2099
|
+
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
2100
|
+
if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
|
|
2101
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
2102
|
+
}
|
|
2003
2103
|
}
|
|
2004
2104
|
const obj_url = obj.url;
|
|
2005
2105
|
const path_url = path + '.url';
|
|
@@ -2013,12 +2113,6 @@ const RepresentationType$1 = 'CdpMlWorkspaceDetailRepresentation';
|
|
|
2013
2113
|
function keyBuilder$4(luvio, config) {
|
|
2014
2114
|
return keyPrefix + '::' + RepresentationType$1 + ':' + config.workspaceIdOrName;
|
|
2015
2115
|
}
|
|
2016
|
-
function keyBuilderFromType(luvio, object) {
|
|
2017
|
-
const keyParams = {
|
|
2018
|
-
workspaceIdOrName: object.id
|
|
2019
|
-
};
|
|
2020
|
-
return keyBuilder$4(luvio, keyParams);
|
|
2021
|
-
}
|
|
2022
2116
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2023
2117
|
return input;
|
|
2024
2118
|
}
|
|
@@ -2058,14 +2152,15 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2058
2152
|
});
|
|
2059
2153
|
}
|
|
2060
2154
|
|
|
2155
|
+
function keyBuilder$3(luvio, params) {
|
|
2156
|
+
const idOrName = params.urlParams.workspaceIdOrName;
|
|
2157
|
+
const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
|
|
2158
|
+
return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2061
2161
|
function select$3(luvio, params) {
|
|
2062
2162
|
return select$4();
|
|
2063
2163
|
}
|
|
2064
|
-
function keyBuilder$3(luvio, params) {
|
|
2065
|
-
return keyBuilder$4(luvio, {
|
|
2066
|
-
workspaceIdOrName: params.urlParams.workspaceIdOrName
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
2164
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
2070
2165
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
2071
2166
|
}
|
|
@@ -2115,7 +2210,7 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
2115
2210
|
const config = {
|
|
2116
2211
|
urlParams: {},
|
|
2117
2212
|
};
|
|
2118
|
-
config.urlParams.workspaceIdOrName = representation.
|
|
2213
|
+
config.urlParams.workspaceIdOrName = representation.name;
|
|
2119
2214
|
return createResourceRequest$2(config);
|
|
2120
2215
|
}
|
|
2121
2216
|
|
|
@@ -2244,72 +2339,94 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
2244
2339
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2245
2340
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2246
2341
|
}
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2342
|
+
if (obj.activeSetup !== undefined) {
|
|
2343
|
+
const obj_activeSetup = obj.activeSetup;
|
|
2344
|
+
const path_activeSetup = path + '.activeSetup';
|
|
2345
|
+
const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
|
|
2346
|
+
if (referencepath_activeSetupValidationError !== null) {
|
|
2347
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
|
|
2348
|
+
message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2349
|
+
return new TypeError(message);
|
|
2350
|
+
}
|
|
2254
2351
|
}
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2352
|
+
if (obj.activeSetupVersionNumber !== undefined) {
|
|
2353
|
+
const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
|
|
2354
|
+
const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
|
|
2355
|
+
if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
|
|
2356
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
|
|
2357
|
+
}
|
|
2259
2358
|
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2359
|
+
if (obj.createdBy !== undefined) {
|
|
2360
|
+
const obj_createdBy = obj.createdBy;
|
|
2361
|
+
const path_createdBy = path + '.createdBy';
|
|
2362
|
+
const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
|
|
2363
|
+
if (referencepath_createdByValidationError !== null) {
|
|
2364
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2365
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2366
|
+
return new TypeError(message);
|
|
2367
|
+
}
|
|
2267
2368
|
}
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2369
|
+
if (obj.createdDate !== undefined) {
|
|
2370
|
+
const obj_createdDate = obj.createdDate;
|
|
2371
|
+
const path_createdDate = path + '.createdDate';
|
|
2372
|
+
if (typeof obj_createdDate !== 'string') {
|
|
2373
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
2374
|
+
}
|
|
2272
2375
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2376
|
+
if (obj.description !== undefined) {
|
|
2377
|
+
const obj_description = obj.description;
|
|
2378
|
+
const path_description = path + '.description';
|
|
2379
|
+
if (typeof obj_description !== 'string') {
|
|
2380
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2381
|
+
}
|
|
2277
2382
|
}
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2383
|
+
if (obj.historiesUrl !== undefined) {
|
|
2384
|
+
const obj_historiesUrl = obj.historiesUrl;
|
|
2385
|
+
const path_historiesUrl = path + '.historiesUrl';
|
|
2386
|
+
if (typeof obj_historiesUrl !== 'string') {
|
|
2387
|
+
return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
|
|
2388
|
+
}
|
|
2282
2389
|
}
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2390
|
+
if (obj.id !== undefined) {
|
|
2391
|
+
const obj_id = obj.id;
|
|
2392
|
+
const path_id = path + '.id';
|
|
2393
|
+
if (typeof obj_id !== 'string') {
|
|
2394
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2395
|
+
}
|
|
2287
2396
|
}
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2397
|
+
if (obj.label !== undefined) {
|
|
2398
|
+
const obj_label = obj.label;
|
|
2399
|
+
const path_label = path + '.label';
|
|
2400
|
+
if (typeof obj_label !== 'string') {
|
|
2401
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2402
|
+
}
|
|
2292
2403
|
}
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2404
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
2405
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2406
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2407
|
+
const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2408
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2409
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2410
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2411
|
+
return new TypeError(message);
|
|
2412
|
+
}
|
|
2300
2413
|
}
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2414
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
2415
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
2416
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
2417
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
2418
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
2419
|
+
}
|
|
2305
2420
|
}
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2421
|
+
if (obj.latestSetup !== undefined) {
|
|
2422
|
+
const obj_latestSetup = obj.latestSetup;
|
|
2423
|
+
const path_latestSetup = path + '.latestSetup';
|
|
2424
|
+
const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
|
|
2425
|
+
if (referencepath_latestSetupValidationError !== null) {
|
|
2426
|
+
let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
|
|
2427
|
+
message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2428
|
+
return new TypeError(message);
|
|
2429
|
+
}
|
|
2313
2430
|
}
|
|
2314
2431
|
const obj_modelCount = obj.modelCount;
|
|
2315
2432
|
const path_modelCount = path + '.modelCount';
|
|
@@ -2339,46 +2456,58 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
|
|
|
2339
2456
|
if (typeof obj_namespace !== 'string') {
|
|
2340
2457
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
2341
2458
|
}
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2459
|
+
if (obj.outcomeDefinition !== undefined) {
|
|
2460
|
+
const obj_outcomeDefinition = obj.outcomeDefinition;
|
|
2461
|
+
const path_outcomeDefinition = path + '.outcomeDefinition';
|
|
2462
|
+
const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
|
|
2463
|
+
if (referencepath_outcomeDefinitionValidationError !== null) {
|
|
2464
|
+
let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
|
|
2465
|
+
message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2466
|
+
return new TypeError(message);
|
|
2467
|
+
}
|
|
2349
2468
|
}
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2469
|
+
if (obj.predictionType !== undefined) {
|
|
2470
|
+
const obj_predictionType = obj.predictionType;
|
|
2471
|
+
const path_predictionType = path + '.predictionType';
|
|
2472
|
+
if (typeof obj_predictionType !== 'string') {
|
|
2473
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
if (obj.refreshConfig !== undefined) {
|
|
2477
|
+
const obj_refreshConfig = obj.refreshConfig;
|
|
2478
|
+
const path_refreshConfig = path + '.refreshConfig';
|
|
2479
|
+
const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
|
|
2480
|
+
if (referencepath_refreshConfigValidationError !== null) {
|
|
2481
|
+
let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
|
|
2482
|
+
message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2483
|
+
return new TypeError(message);
|
|
2484
|
+
}
|
|
2362
2485
|
}
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2486
|
+
if (obj.setupVersionsUrl !== undefined) {
|
|
2487
|
+
const obj_setupVersionsUrl = obj.setupVersionsUrl;
|
|
2488
|
+
const path_setupVersionsUrl = path + '.setupVersionsUrl';
|
|
2489
|
+
if (typeof obj_setupVersionsUrl !== 'string') {
|
|
2490
|
+
return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
|
|
2491
|
+
}
|
|
2367
2492
|
}
|
|
2368
2493
|
const obj_status = obj.status;
|
|
2369
2494
|
const path_status = path + '.status';
|
|
2370
2495
|
if (typeof obj_status !== 'string') {
|
|
2371
2496
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
2372
2497
|
}
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2498
|
+
if (obj.totalInferenceCount !== undefined) {
|
|
2499
|
+
const obj_totalInferenceCount = obj.totalInferenceCount;
|
|
2500
|
+
const path_totalInferenceCount = path + '.totalInferenceCount';
|
|
2501
|
+
if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
|
|
2502
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
|
|
2503
|
+
}
|
|
2377
2504
|
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2505
|
+
if (obj.totalWarningsCount !== undefined) {
|
|
2506
|
+
const obj_totalWarningsCount = obj.totalWarningsCount;
|
|
2507
|
+
const path_totalWarningsCount = path + '.totalWarningsCount';
|
|
2508
|
+
if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
|
|
2509
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
|
|
2510
|
+
}
|
|
2382
2511
|
}
|
|
2383
2512
|
const obj_url = obj.url;
|
|
2384
2513
|
const path_url = path + '.url';
|
|
@@ -2640,7 +2769,7 @@ function createResourceRequest(config) {
|
|
|
2640
2769
|
const headers = {};
|
|
2641
2770
|
return {
|
|
2642
2771
|
baseUri: '/services/data/v61.0',
|
|
2643
|
-
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.
|
|
2772
|
+
basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
|
|
2644
2773
|
method: 'patch',
|
|
2645
2774
|
body: config.body,
|
|
2646
2775
|
urlParams: config.urlParams,
|
|
@@ -2652,15 +2781,15 @@ function createResourceRequest(config) {
|
|
|
2652
2781
|
|
|
2653
2782
|
const adapterName = 'updateCdpMlConfiguredModel';
|
|
2654
2783
|
const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
|
|
2655
|
-
generateParamConfigMetadata('
|
|
2784
|
+
generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2656
2785
|
generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2657
2786
|
generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2658
|
-
generateParamConfigMetadata('artifact',
|
|
2787
|
+
generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2659
2788
|
generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
|
|
2660
2789
|
generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2661
|
-
generateParamConfigMetadata('description',
|
|
2662
|
-
generateParamConfigMetadata('filter',
|
|
2663
|
-
generateParamConfigMetadata('label',
|
|
2790
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2791
|
+
generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2792
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
2664
2793
|
generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2665
2794
|
generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
|
|
2666
2795
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2870,4 +2999,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2870
2999
|
});
|
|
2871
3000
|
|
|
2872
3001
|
export { createCdpMlConfiguredModelCollection, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
|
|
2873
|
-
// version: 1.270.
|
|
3002
|
+
// version: 1.270.1-abfb311e8
|