@salesforce/lds-adapters-platform-cdp-machine-learning 1.266.0-dev4 → 1.266.0-dev6

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.
Files changed (25) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +508 -382
  2. package/dist/es/es2018/types/src/generated/adapters/createCdpMlConfiguredModelCollection.d.ts +4 -4
  3. package/dist/es/es2018/types/src/generated/adapters/getCdpMlConfiguredModel.d.ts +5 -5
  4. package/dist/es/es2018/types/src/generated/adapters/updateCdpMlConfiguredModel.d.ts +7 -7
  5. package/dist/es/es2018/types/src/generated/resources/{getSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +1 -1
  6. package/dist/es/es2018/types/src/generated/resources/{patchSsotMachineLearningWorkspacesModelsByModelIdAndWorkspaceIdOrName.d.ts → patchSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName.d.ts} +5 -5
  7. package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningWorkspacesModelsByWorkspaceIdOrName.d.ts +4 -4
  8. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +11 -11
  9. package/dist/es/es2018/types/src/generated/types/CdpAssetReferenceRepresentation.d.ts +19 -19
  10. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelCollectionRepresentation.d.ts +3 -3
  11. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelInputRepresentation.d.ts +9 -9
  12. package/dist/es/es2018/types/src/generated/types/CdpMlConfiguredModelRepresentation.d.ts +24 -24
  13. package/dist/es/es2018/types/src/generated/types/CdpMlModelArtifactBaseRepresentation.d.ts +7 -7
  14. package/dist/es/es2018/types/src/generated/types/CdpMlModelTypeRepresentation.d.ts +3 -3
  15. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceDetailRepresentation.d.ts +41 -41
  16. package/dist/es/es2018/types/src/generated/types/CdpMlWorkspaceRepresentation.d.ts +35 -35
  17. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesByWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  18. package/dist/es/es2018/types/src/raml-artifacts/resources/getSsotMachineLearningWorkspacesModelsByModelIdOrNameAndWorkspaceIdOrName/keyBuilder.d.ts +3 -0
  19. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlConfiguredModelRepresentation/keyBuilderFromType.d.ts +3 -0
  20. package/dist/es/es2018/types/src/raml-artifacts/types/CdpMlWorkspaceDetailRepresentation/keyBuilderFromType.d.ts +3 -0
  21. package/dist/es/es2018/types/src/raml-artifacts/utils/nameOrId.d.ts +3 -0
  22. package/package.json +16 -5
  23. package/sfdc/index.js +484 -355
  24. package/src/raml/api.raml +71 -71
  25. 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
- const obj_createdBy = obj.createdBy;
292
- const path_createdBy = path + '.createdBy';
293
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
294
- if (referencepath_createdByValidationError !== null) {
295
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
296
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
297
- return new TypeError(message);
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
- const obj_createdDate = obj.createdDate;
300
- const path_createdDate = path + '.createdDate';
301
- if (typeof obj_createdDate !== 'string') {
302
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
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
- const obj_id = obj.id;
305
- const path_id = path + '.id';
306
- if (typeof obj_id !== 'string') {
307
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
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
- const obj_label = obj.label;
310
- const path_label = path + '.label';
311
- if (typeof obj_label !== 'string') {
312
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
313
- }
314
- const obj_lastModifiedBy = obj.lastModifiedBy;
315
- const path_lastModifiedBy = path + '.lastModifiedBy';
316
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
317
- if (referencepath_lastModifiedByValidationError !== null) {
318
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
319
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
320
- return new TypeError(message);
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
+ }
321
321
  }
322
- const obj_lastModifiedDate = obj.lastModifiedDate;
323
- const path_lastModifiedDate = path + '.lastModifiedDate';
324
- if (typeof obj_lastModifiedDate !== 'string') {
325
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
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
+ }
326
331
  }
327
- const obj_name = obj.name;
328
- const path_name = path + '.name';
329
- if (typeof obj_name !== 'string') {
330
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
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
+ }
331
338
  }
332
- const obj_namespace = obj.namespace;
333
- const path_namespace = path + '.namespace';
334
- if (typeof obj_namespace !== 'string') {
335
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
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
+ }
336
345
  }
337
- const obj_url = obj.url;
338
- const path_url = path + '.url';
339
- if (typeof obj_url !== 'string') {
340
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
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
+ }
352
+ }
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 = "fd6be4e2373b9db208417a21b7500f5f";
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
- const obj_createdBy = obj.createdBy;
401
- const path_createdBy = path + '.createdBy';
402
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
403
- if (referencepath_createdByValidationError !== null) {
404
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
405
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
406
- return new TypeError(message);
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
- const obj_createdDate = obj.createdDate;
409
- const path_createdDate = path + '.createdDate';
410
- if (typeof obj_createdDate !== 'string') {
411
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
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
- const obj_description = obj.description;
429
- const path_description = path + '.description';
430
- if (typeof obj_description !== 'string') {
431
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_id = obj.id;
442
- const path_id = path + '.id';
443
- if (typeof obj_id !== 'string') {
444
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
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
- const obj_label = obj.label;
447
- const path_label = path + '.label';
448
- if (typeof obj_label !== 'string') {
449
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
450
- }
451
- const obj_lastActivatedBy = obj.lastActivatedBy;
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
- const obj_lastActivatedDate = obj.lastActivatedDate;
460
- const path_lastActivatedDate = path + '.lastActivatedDate';
461
- if (typeof obj_lastActivatedDate !== 'string') {
462
- return new TypeError('Expected "string" but received "' + typeof obj_lastActivatedDate + '" (at "' + path_lastActivatedDate + '")');
463
- }
464
- const obj_lastModifiedBy = obj.lastModifiedBy;
465
- const path_lastModifiedBy = path + '.lastModifiedBy';
466
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
467
- if (referencepath_lastModifiedByValidationError !== null) {
468
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
469
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
470
- return new TypeError(message);
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
+ }
471
496
  }
472
- const obj_lastModifiedDate = obj.lastModifiedDate;
473
- const path_lastModifiedDate = path + '.lastModifiedDate';
474
- if (typeof obj_lastModifiedDate !== 'string') {
475
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
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
+ }
476
503
  }
477
- const obj_metricsUrl = obj.metricsUrl;
478
- const path_metricsUrl = path + '.metricsUrl';
479
- if (typeof obj_metricsUrl !== 'string') {
480
- return new TypeError('Expected "string" but received "' + typeof obj_metricsUrl + '" (at "' + path_metricsUrl + '")');
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
+ }
520
+ }
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', true, 2 /* Body */, 4 /* Unsupported */),
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', true, 2 /* Body */, 0 /* String */),
619
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
620
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
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 select$b(luvio, params) {
731
- return select$d();
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
- return keyBuilder$d(luvio, {
735
- modelId: params.urlParams.modelId,
736
- workspaceIdOrName: params.urlParams.workspaceIdOrName
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/v60.0',
775
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
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('modelId', true, 0 /* UrlParameter */, 0 /* String */),
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 = "06a9e2678743ed66dde7a06f3c7a39c6";
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
- const obj_models = obj.models;
880
- const path_models = path + '.models';
881
- if (!ArrayIsArray(obj_models)) {
882
- return new TypeError('Expected "array" but received "' + typeof obj_models + '" (at "' + path_models + '")');
883
- }
884
- for (let i = 0; i < obj_models.length; i++) {
885
- const obj_models_item = obj_models[i];
886
- const path_models_item = path_models + '[' + i + ']';
887
- const referencepath_models_itemValidationError = validate$f(obj_models_item, path_models_item);
888
- if (referencepath_models_itemValidationError !== null) {
889
- let message = 'Object doesn\'t match CdpMlConfiguredModelRepresentation (at "' + path_models_item + '")\n';
890
- message += referencepath_models_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
891
- return new TypeError(message);
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 = "9ed2828bcb548d3096bd7f51010ee720";
1175
+ const VERSION$3 = "77ba1b67b026afced29c97c46e76d4c2";
1130
1176
  function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1131
1177
  const v_error = (() => {
1132
1178
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1149,10 +1195,12 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1149
1195
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1150
1196
  }
1151
1197
  }
1152
- const obj_description = obj.description;
1153
- const path_description = path + '.description';
1154
- if (typeof obj_description !== 'string') {
1155
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1198
+ if (obj.description !== undefined) {
1199
+ const obj_description = obj.description;
1200
+ const path_description = path + '.description';
1201
+ if (typeof obj_description !== 'string') {
1202
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1203
+ }
1156
1204
  }
1157
1205
  if (obj.id !== undefined) {
1158
1206
  const obj_id = obj.id;
@@ -1176,10 +1224,12 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1176
1224
  return new TypeError(message);
1177
1225
  }
1178
1226
  }
1179
- const obj_label = obj.label;
1180
- const path_label = path + '.label';
1181
- if (typeof obj_label !== 'string') {
1182
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1227
+ if (obj.label !== undefined) {
1228
+ const obj_label = obj.label;
1229
+ const path_label = path + '.label';
1230
+ if (typeof obj_label !== 'string') {
1231
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1232
+ }
1183
1233
  }
1184
1234
  if (obj.lastModifiedBy !== undefined) {
1185
1235
  const obj_lastModifiedBy = obj.lastModifiedBy;
@@ -1208,10 +1258,12 @@ function validate$b(obj, path = 'CdpMlModelArtifactBaseRepresentation') {
1208
1258
  if (typeof obj_name !== 'string') {
1209
1259
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1210
1260
  }
1211
- const obj_namespace = obj.namespace;
1212
- const path_namespace = path + '.namespace';
1213
- if (typeof obj_namespace !== 'string') {
1214
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1261
+ if (obj.namespace !== undefined) {
1262
+ const obj_namespace = obj.namespace;
1263
+ const path_namespace = path + '.namespace';
1264
+ if (typeof obj_namespace !== 'string') {
1265
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1266
+ }
1215
1267
  }
1216
1268
  const obj_outputFields = obj.outputFields;
1217
1269
  const path_outputFields = path + '.outputFields';
@@ -1696,10 +1748,12 @@ function validate$9(obj, path = 'CdpMlModelTypeRepresentation') {
1696
1748
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1697
1749
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1698
1750
  }
1699
- const obj_connectorType = obj.connectorType;
1700
- const path_connectorType = path + '.connectorType';
1701
- if (typeof obj_connectorType !== 'string') {
1702
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
1751
+ if (obj.connectorType !== undefined) {
1752
+ const obj_connectorType = obj.connectorType;
1753
+ const path_connectorType = path + '.connectorType';
1754
+ if (typeof obj_connectorType !== 'string') {
1755
+ return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
1756
+ }
1703
1757
  }
1704
1758
  const obj_modelType = obj.modelType;
1705
1759
  const path_modelType = path + '.modelType';
@@ -1879,8 +1933,16 @@ function validate$3(obj, path = 'CdpMlModelRefreshConfigRepresentation') {
1879
1933
  return v_error === undefined ? null : v_error;
1880
1934
  }
1881
1935
 
1936
+ // Should match with keyBuilder
1937
+ function keyBuilderFromType(luvio, object) {
1938
+ const type = object.url.indexOf(object.name) > -1 ? 'name' : 'id';
1939
+ const urlArray = object.url.split('/');
1940
+ const idOrName = urlArray[urlArray.length - 1];
1941
+ return `${keyPrefix}::${RepresentationType$1}:(id:${idOrName},type:${type})`;
1942
+ }
1943
+
1882
1944
  const TTL$1 = 1000;
1883
- const VERSION$1 = "b700ad4033c4cc1a2f1373d916e31c4d";
1945
+ const VERSION$1 = "1b661a85ba4e745b802d9861a883d1b6";
1884
1946
  function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1885
1947
  const v_error = (() => {
1886
1948
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1898,72 +1960,94 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1898
1960
  return new TypeError('Expected "string" but received "' + typeof obj_activations_item + '" (at "' + path_activations_item + '")');
1899
1961
  }
1900
1962
  }
1901
- const obj_activeSetup = obj.activeSetup;
1902
- const path_activeSetup = path + '.activeSetup';
1903
- const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
1904
- if (referencepath_activeSetupValidationError !== null) {
1905
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1906
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1907
- return new TypeError(message);
1963
+ if (obj.activeSetup !== undefined) {
1964
+ const obj_activeSetup = obj.activeSetup;
1965
+ const path_activeSetup = path + '.activeSetup';
1966
+ const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
1967
+ if (referencepath_activeSetupValidationError !== null) {
1968
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1969
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1970
+ return new TypeError(message);
1971
+ }
1908
1972
  }
1909
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1910
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1911
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1912
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1913
- }
1914
- const obj_createdBy = obj.createdBy;
1915
- const path_createdBy = path + '.createdBy';
1916
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1917
- if (referencepath_createdByValidationError !== null) {
1918
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1919
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1920
- return new TypeError(message);
1973
+ if (obj.activeSetupVersionNumber !== undefined) {
1974
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1975
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1976
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1977
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
1978
+ }
1921
1979
  }
1922
- const obj_createdDate = obj.createdDate;
1923
- const path_createdDate = path + '.createdDate';
1924
- if (typeof obj_createdDate !== 'string') {
1925
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1980
+ if (obj.createdBy !== undefined) {
1981
+ const obj_createdBy = obj.createdBy;
1982
+ const path_createdBy = path + '.createdBy';
1983
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1984
+ if (referencepath_createdByValidationError !== null) {
1985
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1986
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1987
+ return new TypeError(message);
1988
+ }
1926
1989
  }
1927
- const obj_description = obj.description;
1928
- const path_description = path + '.description';
1929
- if (typeof obj_description !== 'string') {
1930
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1990
+ if (obj.createdDate !== undefined) {
1991
+ const obj_createdDate = obj.createdDate;
1992
+ const path_createdDate = path + '.createdDate';
1993
+ if (typeof obj_createdDate !== 'string') {
1994
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1995
+ }
1931
1996
  }
1932
- const obj_historiesUrl = obj.historiesUrl;
1933
- const path_historiesUrl = path + '.historiesUrl';
1934
- if (typeof obj_historiesUrl !== 'string') {
1935
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
1997
+ if (obj.description !== undefined) {
1998
+ const obj_description = obj.description;
1999
+ const path_description = path + '.description';
2000
+ if (typeof obj_description !== 'string') {
2001
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2002
+ }
1936
2003
  }
1937
- const obj_id = obj.id;
1938
- const path_id = path + '.id';
1939
- if (typeof obj_id !== 'string') {
1940
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2004
+ if (obj.historiesUrl !== undefined) {
2005
+ const obj_historiesUrl = obj.historiesUrl;
2006
+ const path_historiesUrl = path + '.historiesUrl';
2007
+ if (typeof obj_historiesUrl !== 'string') {
2008
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2009
+ }
1941
2010
  }
1942
- const obj_label = obj.label;
1943
- const path_label = path + '.label';
1944
- if (typeof obj_label !== 'string') {
1945
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1946
- }
1947
- const obj_lastModifiedBy = obj.lastModifiedBy;
1948
- const path_lastModifiedBy = path + '.lastModifiedBy';
1949
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1950
- if (referencepath_lastModifiedByValidationError !== null) {
1951
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1952
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1953
- return new TypeError(message);
2011
+ if (obj.id !== undefined) {
2012
+ const obj_id = obj.id;
2013
+ const path_id = path + '.id';
2014
+ if (typeof obj_id !== 'string') {
2015
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2016
+ }
1954
2017
  }
1955
- const obj_lastModifiedDate = obj.lastModifiedDate;
1956
- const path_lastModifiedDate = path + '.lastModifiedDate';
1957
- if (typeof obj_lastModifiedDate !== 'string') {
1958
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1959
- }
1960
- const obj_latestSetup = obj.latestSetup;
1961
- const path_latestSetup = path + '.latestSetup';
1962
- const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
1963
- if (referencepath_latestSetupValidationError !== null) {
1964
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1965
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1966
- return new TypeError(message);
2018
+ if (obj.label !== undefined) {
2019
+ const obj_label = obj.label;
2020
+ const path_label = path + '.label';
2021
+ if (typeof obj_label !== 'string') {
2022
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2023
+ }
2024
+ }
2025
+ if (obj.lastModifiedBy !== undefined) {
2026
+ const obj_lastModifiedBy = obj.lastModifiedBy;
2027
+ const path_lastModifiedBy = path + '.lastModifiedBy';
2028
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
2029
+ if (referencepath_lastModifiedByValidationError !== null) {
2030
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2031
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2032
+ return new TypeError(message);
2033
+ }
2034
+ }
2035
+ if (obj.lastModifiedDate !== undefined) {
2036
+ const obj_lastModifiedDate = obj.lastModifiedDate;
2037
+ const path_lastModifiedDate = path + '.lastModifiedDate';
2038
+ if (typeof obj_lastModifiedDate !== 'string') {
2039
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2040
+ }
2041
+ }
2042
+ if (obj.latestSetup !== undefined) {
2043
+ const obj_latestSetup = obj.latestSetup;
2044
+ const path_latestSetup = path + '.latestSetup';
2045
+ const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
2046
+ if (referencepath_latestSetupValidationError !== null) {
2047
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2048
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2049
+ return new TypeError(message);
2050
+ }
1967
2051
  }
1968
2052
  const obj_modelCount = obj.modelCount;
1969
2053
  const path_modelCount = path + '.modelCount';
@@ -1978,61 +2062,77 @@ function validate$2(obj, path = 'CdpMlWorkspaceDetailRepresentation') {
1978
2062
  message += referencepath_modelTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1979
2063
  return new TypeError(message);
1980
2064
  }
1981
- const obj_modelsUrl = obj.modelsUrl;
1982
- const path_modelsUrl = path + '.modelsUrl';
1983
- if (typeof obj_modelsUrl !== 'string') {
1984
- return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2065
+ if (obj.modelsUrl !== undefined) {
2066
+ const obj_modelsUrl = obj.modelsUrl;
2067
+ const path_modelsUrl = path + '.modelsUrl';
2068
+ if (typeof obj_modelsUrl !== 'string') {
2069
+ return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
2070
+ }
1985
2071
  }
1986
2072
  const obj_name = obj.name;
1987
2073
  const path_name = path + '.name';
1988
2074
  if (typeof obj_name !== 'string') {
1989
2075
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1990
2076
  }
1991
- const obj_namespace = obj.namespace;
1992
- const path_namespace = path + '.namespace';
1993
- if (typeof obj_namespace !== 'string') {
1994
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2077
+ if (obj.namespace !== undefined) {
2078
+ const obj_namespace = obj.namespace;
2079
+ const path_namespace = path + '.namespace';
2080
+ if (typeof obj_namespace !== 'string') {
2081
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2082
+ }
1995
2083
  }
1996
- const obj_outcomeDefinition = obj.outcomeDefinition;
1997
- const path_outcomeDefinition = path + '.outcomeDefinition';
1998
- const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
1999
- if (referencepath_outcomeDefinitionValidationError !== null) {
2000
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2001
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2002
- return new TypeError(message);
2084
+ if (obj.outcomeDefinition !== undefined) {
2085
+ const obj_outcomeDefinition = obj.outcomeDefinition;
2086
+ const path_outcomeDefinition = path + '.outcomeDefinition';
2087
+ const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
2088
+ if (referencepath_outcomeDefinitionValidationError !== null) {
2089
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2090
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2091
+ return new TypeError(message);
2092
+ }
2003
2093
  }
2004
- const obj_predictionType = obj.predictionType;
2005
- const path_predictionType = path + '.predictionType';
2006
- if (typeof obj_predictionType !== 'string') {
2007
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2008
- }
2009
- const obj_refreshConfig = obj.refreshConfig;
2010
- const path_refreshConfig = path + '.refreshConfig';
2011
- const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2012
- if (referencepath_refreshConfigValidationError !== null) {
2013
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2014
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2015
- return new TypeError(message);
2094
+ if (obj.predictionType !== undefined) {
2095
+ const obj_predictionType = obj.predictionType;
2096
+ const path_predictionType = path + '.predictionType';
2097
+ if (typeof obj_predictionType !== 'string') {
2098
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2099
+ }
2016
2100
  }
2017
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
2018
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
2019
- if (typeof obj_setupVersionsUrl !== 'string') {
2020
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2101
+ if (obj.refreshConfig !== undefined) {
2102
+ const obj_refreshConfig = obj.refreshConfig;
2103
+ const path_refreshConfig = path + '.refreshConfig';
2104
+ const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2105
+ if (referencepath_refreshConfigValidationError !== null) {
2106
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2107
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2108
+ return new TypeError(message);
2109
+ }
2110
+ }
2111
+ if (obj.setupVersionsUrl !== undefined) {
2112
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
2113
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
2114
+ if (typeof obj_setupVersionsUrl !== 'string') {
2115
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2116
+ }
2021
2117
  }
2022
2118
  const obj_status = obj.status;
2023
2119
  const path_status = path + '.status';
2024
2120
  if (typeof obj_status !== 'string') {
2025
2121
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
2026
2122
  }
2027
- const obj_totalInferenceCount = obj.totalInferenceCount;
2028
- const path_totalInferenceCount = path + '.totalInferenceCount';
2029
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2030
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2123
+ if (obj.totalInferenceCount !== undefined) {
2124
+ const obj_totalInferenceCount = obj.totalInferenceCount;
2125
+ const path_totalInferenceCount = path + '.totalInferenceCount';
2126
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2127
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2128
+ }
2031
2129
  }
2032
- const obj_totalWarningsCount = obj.totalWarningsCount;
2033
- const path_totalWarningsCount = path + '.totalWarningsCount';
2034
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2035
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2130
+ if (obj.totalWarningsCount !== undefined) {
2131
+ const obj_totalWarningsCount = obj.totalWarningsCount;
2132
+ const path_totalWarningsCount = path + '.totalWarningsCount';
2133
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2134
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2135
+ }
2036
2136
  }
2037
2137
  const obj_url = obj.url;
2038
2138
  const path_url = path + '.url';
@@ -2046,12 +2146,6 @@ const RepresentationType$1 = 'CdpMlWorkspaceDetailRepresentation';
2046
2146
  function keyBuilder$4(luvio, config) {
2047
2147
  return keyPrefix + '::' + RepresentationType$1 + ':' + config.workspaceIdOrName;
2048
2148
  }
2049
- function keyBuilderFromType(luvio, object) {
2050
- const keyParams = {
2051
- workspaceIdOrName: object.id
2052
- };
2053
- return keyBuilder$4(luvio, keyParams);
2054
- }
2055
2149
  function normalize$1(input, existing, path, luvio, store, timestamp) {
2056
2150
  return input;
2057
2151
  }
@@ -2091,14 +2185,15 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2091
2185
  });
2092
2186
  }
2093
2187
 
2188
+ function keyBuilder$3(luvio, params) {
2189
+ const idOrName = params.urlParams.workspaceIdOrName;
2190
+ const type = IsWorkspaceId(idOrName) ? 'id' : 'name';
2191
+ return `${keyPrefix}::${RepresentationType$1}:(id:${params.urlParams.workspaceIdOrName},type:${type})`;
2192
+ }
2193
+
2094
2194
  function select$3(luvio, params) {
2095
2195
  return select$4();
2096
2196
  }
2097
- function keyBuilder$3(luvio, params) {
2098
- return keyBuilder$4(luvio, {
2099
- workspaceIdOrName: params.urlParams.workspaceIdOrName
2100
- });
2101
- }
2102
2197
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2103
2198
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
2104
2199
  }
@@ -2148,7 +2243,7 @@ function createResourceRequestFromRepresentation(representation) {
2148
2243
  const config = {
2149
2244
  urlParams: {},
2150
2245
  };
2151
- config.urlParams.workspaceIdOrName = representation.id;
2246
+ config.urlParams.workspaceIdOrName = representation.name;
2152
2247
  return createResourceRequest$2(config);
2153
2248
  }
2154
2249
 
@@ -2277,72 +2372,94 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2277
2372
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2278
2373
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2279
2374
  }
2280
- const obj_activeSetup = obj.activeSetup;
2281
- const path_activeSetup = path + '.activeSetup';
2282
- const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
2283
- if (referencepath_activeSetupValidationError !== null) {
2284
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
2285
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2286
- return new TypeError(message);
2375
+ if (obj.activeSetup !== undefined) {
2376
+ const obj_activeSetup = obj.activeSetup;
2377
+ const path_activeSetup = path + '.activeSetup';
2378
+ const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
2379
+ if (referencepath_activeSetupValidationError !== null) {
2380
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
2381
+ message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2382
+ return new TypeError(message);
2383
+ }
2287
2384
  }
2288
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2289
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2290
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2291
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2292
- }
2293
- const obj_createdBy = obj.createdBy;
2294
- const path_createdBy = path + '.createdBy';
2295
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
2296
- if (referencepath_createdByValidationError !== null) {
2297
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2298
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2299
- return new TypeError(message);
2385
+ if (obj.activeSetupVersionNumber !== undefined) {
2386
+ const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2387
+ const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2388
+ if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2389
+ return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
2390
+ }
2300
2391
  }
2301
- const obj_createdDate = obj.createdDate;
2302
- const path_createdDate = path + '.createdDate';
2303
- if (typeof obj_createdDate !== 'string') {
2304
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2392
+ if (obj.createdBy !== undefined) {
2393
+ const obj_createdBy = obj.createdBy;
2394
+ const path_createdBy = path + '.createdBy';
2395
+ const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
2396
+ if (referencepath_createdByValidationError !== null) {
2397
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2398
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2399
+ return new TypeError(message);
2400
+ }
2305
2401
  }
2306
- const obj_description = obj.description;
2307
- const path_description = path + '.description';
2308
- if (typeof obj_description !== 'string') {
2309
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2402
+ if (obj.createdDate !== undefined) {
2403
+ const obj_createdDate = obj.createdDate;
2404
+ const path_createdDate = path + '.createdDate';
2405
+ if (typeof obj_createdDate !== 'string') {
2406
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2407
+ }
2310
2408
  }
2311
- const obj_historiesUrl = obj.historiesUrl;
2312
- const path_historiesUrl = path + '.historiesUrl';
2313
- if (typeof obj_historiesUrl !== 'string') {
2314
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2409
+ if (obj.description !== undefined) {
2410
+ const obj_description = obj.description;
2411
+ const path_description = path + '.description';
2412
+ if (typeof obj_description !== 'string') {
2413
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2414
+ }
2315
2415
  }
2316
- const obj_id = obj.id;
2317
- const path_id = path + '.id';
2318
- if (typeof obj_id !== 'string') {
2319
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2416
+ if (obj.historiesUrl !== undefined) {
2417
+ const obj_historiesUrl = obj.historiesUrl;
2418
+ const path_historiesUrl = path + '.historiesUrl';
2419
+ if (typeof obj_historiesUrl !== 'string') {
2420
+ return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
2421
+ }
2320
2422
  }
2321
- const obj_label = obj.label;
2322
- const path_label = path + '.label';
2323
- if (typeof obj_label !== 'string') {
2324
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2325
- }
2326
- const obj_lastModifiedBy = obj.lastModifiedBy;
2327
- const path_lastModifiedBy = path + '.lastModifiedBy';
2328
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
2329
- if (referencepath_lastModifiedByValidationError !== null) {
2330
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2331
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2332
- return new TypeError(message);
2423
+ if (obj.id !== undefined) {
2424
+ const obj_id = obj.id;
2425
+ const path_id = path + '.id';
2426
+ if (typeof obj_id !== 'string') {
2427
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2428
+ }
2333
2429
  }
2334
- const obj_lastModifiedDate = obj.lastModifiedDate;
2335
- const path_lastModifiedDate = path + '.lastModifiedDate';
2336
- if (typeof obj_lastModifiedDate !== 'string') {
2337
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2338
- }
2339
- const obj_latestSetup = obj.latestSetup;
2340
- const path_latestSetup = path + '.latestSetup';
2341
- const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
2342
- if (referencepath_latestSetupValidationError !== null) {
2343
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2344
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2345
- return new TypeError(message);
2430
+ if (obj.label !== undefined) {
2431
+ const obj_label = obj.label;
2432
+ const path_label = path + '.label';
2433
+ if (typeof obj_label !== 'string') {
2434
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2435
+ }
2436
+ }
2437
+ if (obj.lastModifiedBy !== undefined) {
2438
+ const obj_lastModifiedBy = obj.lastModifiedBy;
2439
+ const path_lastModifiedBy = path + '.lastModifiedBy';
2440
+ const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
2441
+ if (referencepath_lastModifiedByValidationError !== null) {
2442
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2443
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2444
+ return new TypeError(message);
2445
+ }
2446
+ }
2447
+ if (obj.lastModifiedDate !== undefined) {
2448
+ const obj_lastModifiedDate = obj.lastModifiedDate;
2449
+ const path_lastModifiedDate = path + '.lastModifiedDate';
2450
+ if (typeof obj_lastModifiedDate !== 'string') {
2451
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2452
+ }
2453
+ }
2454
+ if (obj.latestSetup !== undefined) {
2455
+ const obj_latestSetup = obj.latestSetup;
2456
+ const path_latestSetup = path + '.latestSetup';
2457
+ const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
2458
+ if (referencepath_latestSetupValidationError !== null) {
2459
+ let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2460
+ message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2461
+ return new TypeError(message);
2462
+ }
2346
2463
  }
2347
2464
  const obj_modelCount = obj.modelCount;
2348
2465
  const path_modelCount = path + '.modelCount';
@@ -2372,46 +2489,58 @@ function validate$1(obj, path = 'CdpMlWorkspaceRepresentation') {
2372
2489
  if (typeof obj_namespace !== 'string') {
2373
2490
  return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2374
2491
  }
2375
- const obj_outcomeDefinition = obj.outcomeDefinition;
2376
- const path_outcomeDefinition = path + '.outcomeDefinition';
2377
- const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
2378
- if (referencepath_outcomeDefinitionValidationError !== null) {
2379
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2380
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2381
- return new TypeError(message);
2492
+ if (obj.outcomeDefinition !== undefined) {
2493
+ const obj_outcomeDefinition = obj.outcomeDefinition;
2494
+ const path_outcomeDefinition = path + '.outcomeDefinition';
2495
+ const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
2496
+ if (referencepath_outcomeDefinitionValidationError !== null) {
2497
+ let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2498
+ message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2499
+ return new TypeError(message);
2500
+ }
2382
2501
  }
2383
- const obj_predictionType = obj.predictionType;
2384
- const path_predictionType = path + '.predictionType';
2385
- if (typeof obj_predictionType !== 'string') {
2386
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2387
- }
2388
- const obj_refreshConfig = obj.refreshConfig;
2389
- const path_refreshConfig = path + '.refreshConfig';
2390
- const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2391
- if (referencepath_refreshConfigValidationError !== null) {
2392
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2393
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2394
- return new TypeError(message);
2502
+ if (obj.predictionType !== undefined) {
2503
+ const obj_predictionType = obj.predictionType;
2504
+ const path_predictionType = path + '.predictionType';
2505
+ if (typeof obj_predictionType !== 'string') {
2506
+ return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2507
+ }
2395
2508
  }
2396
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
2397
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
2398
- if (typeof obj_setupVersionsUrl !== 'string') {
2399
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2509
+ if (obj.refreshConfig !== undefined) {
2510
+ const obj_refreshConfig = obj.refreshConfig;
2511
+ const path_refreshConfig = path + '.refreshConfig';
2512
+ const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2513
+ if (referencepath_refreshConfigValidationError !== null) {
2514
+ let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2515
+ message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2516
+ return new TypeError(message);
2517
+ }
2518
+ }
2519
+ if (obj.setupVersionsUrl !== undefined) {
2520
+ const obj_setupVersionsUrl = obj.setupVersionsUrl;
2521
+ const path_setupVersionsUrl = path + '.setupVersionsUrl';
2522
+ if (typeof obj_setupVersionsUrl !== 'string') {
2523
+ return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
2524
+ }
2400
2525
  }
2401
2526
  const obj_status = obj.status;
2402
2527
  const path_status = path + '.status';
2403
2528
  if (typeof obj_status !== 'string') {
2404
2529
  return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
2405
2530
  }
2406
- const obj_totalInferenceCount = obj.totalInferenceCount;
2407
- const path_totalInferenceCount = path + '.totalInferenceCount';
2408
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2409
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2531
+ if (obj.totalInferenceCount !== undefined) {
2532
+ const obj_totalInferenceCount = obj.totalInferenceCount;
2533
+ const path_totalInferenceCount = path + '.totalInferenceCount';
2534
+ if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2535
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
2536
+ }
2410
2537
  }
2411
- const obj_totalWarningsCount = obj.totalWarningsCount;
2412
- const path_totalWarningsCount = path + '.totalWarningsCount';
2413
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2414
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2538
+ if (obj.totalWarningsCount !== undefined) {
2539
+ const obj_totalWarningsCount = obj.totalWarningsCount;
2540
+ const path_totalWarningsCount = path + '.totalWarningsCount';
2541
+ if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2542
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
2543
+ }
2415
2544
  }
2416
2545
  const obj_url = obj.url;
2417
2546
  const path_url = path + '.url';
@@ -2694,7 +2823,7 @@ function createResourceRequest(config) {
2694
2823
  const headers = {};
2695
2824
  return {
2696
2825
  baseUri: '/services/data/v60.0',
2697
- basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelId + '',
2826
+ basePath: '/ssot/machine-learning/workspaces/' + config.urlParams.workspaceIdOrName + '/models/' + config.urlParams.modelIdOrName + '',
2698
2827
  method: 'patch',
2699
2828
  body: config.body,
2700
2829
  urlParams: config.urlParams,
@@ -2706,15 +2835,15 @@ function createResourceRequest(config) {
2706
2835
 
2707
2836
  const adapterName = 'updateCdpMlConfiguredModel';
2708
2837
  const updateCdpMlConfiguredModel_ConfigPropertyMetadata = [
2709
- generateParamConfigMetadata('modelId', true, 0 /* UrlParameter */, 0 /* String */),
2838
+ generateParamConfigMetadata('modelIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2710
2839
  generateParamConfigMetadata('workspaceIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
2711
2840
  generateParamConfigMetadata('actionableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2712
- generateParamConfigMetadata('artifact', true, 2 /* Body */, 4 /* Unsupported */),
2841
+ generateParamConfigMetadata('artifact', false, 2 /* Body */, 4 /* Unsupported */),
2713
2842
  generateParamConfigMetadata('capability', true, 2 /* Body */, 0 /* String */),
2714
2843
  generateParamConfigMetadata('customizableFields', true, 2 /* Body */, 4 /* Unsupported */, true),
2715
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2716
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2717
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2844
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2845
+ generateParamConfigMetadata('filter', false, 2 /* Body */, 4 /* Unsupported */),
2846
+ generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
2718
2847
  generateParamConfigMetadata('parameterOverrides', true, 2 /* Body */, 4 /* Unsupported */, true),
2719
2848
  generateParamConfigMetadata('position', true, 2 /* Body */, 3 /* Integer */),
2720
2849
  generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
@@ -2924,4 +3053,4 @@ withDefaultLuvio((luvio) => {
2924
3053
  });
2925
3054
 
2926
3055
  export { createCdpMlConfiguredModelCollection, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, updateCdpMlConfiguredModel };
2927
- // version: 1.266.0-dev4-322da3218
3056
+ // version: 1.266.0-dev6-769774ed6