@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.
Files changed (25) hide show
  1. package/dist/es/es2018/platform-cdp-machine-learning.js +500 -374
  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 +476 -347
  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 + '")');
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
- 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);
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
- 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 + '")');
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
- 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 + '")');
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
- 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 + '")');
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
- 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 + '")');
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 + '")');
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
- 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);
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
- 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 + '")');
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
- 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 + '")');
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/v61.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 = "00d91a5e9670906e48ab7002bbc53044";
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
- const obj_description = obj.description;
1149
- const path_description = path + '.description';
1150
- if (typeof obj_description !== 'string') {
1151
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_label = obj.label;
1174
- const path_label = path + '.label';
1175
- if (typeof obj_label !== 'string') {
1176
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
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
- const obj_namespace = obj.namespace;
1202
- const path_namespace = path + '.namespace';
1203
- if (typeof obj_namespace !== 'string') {
1204
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
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
- const obj_connectorType = obj.connectorType;
1667
- const path_connectorType = path + '.connectorType';
1668
- if (typeof obj_connectorType !== 'string') {
1669
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
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 = "b700ad4033c4cc1a2f1373d916e31c4d";
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
- const obj_activeSetup = obj.activeSetup;
1869
- const path_activeSetup = path + '.activeSetup';
1870
- const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
1871
- if (referencepath_activeSetupValidationError !== null) {
1872
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
1873
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1874
- return new TypeError(message);
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
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
1877
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
1878
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
1879
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
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
- const obj_createdBy = obj.createdBy;
1882
- const path_createdBy = path + '.createdBy';
1883
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
1884
- if (referencepath_createdByValidationError !== null) {
1885
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1886
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1887
- return new TypeError(message);
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
- const obj_createdDate = obj.createdDate;
1890
- const path_createdDate = path + '.createdDate';
1891
- if (typeof obj_createdDate !== 'string') {
1892
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
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
- const obj_description = obj.description;
1895
- const path_description = path + '.description';
1896
- if (typeof obj_description !== 'string') {
1897
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_historiesUrl = obj.historiesUrl;
1900
- const path_historiesUrl = path + '.historiesUrl';
1901
- if (typeof obj_historiesUrl !== 'string') {
1902
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
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
- const obj_id = obj.id;
1905
- const path_id = path + '.id';
1906
- if (typeof obj_id !== 'string') {
1907
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
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
- const obj_label = obj.label;
1910
- const path_label = path + '.label';
1911
- if (typeof obj_label !== 'string') {
1912
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
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
- const obj_lastModifiedBy = obj.lastModifiedBy;
1915
- const path_lastModifiedBy = path + '.lastModifiedBy';
1916
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
1917
- if (referencepath_lastModifiedByValidationError !== null) {
1918
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1919
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1920
- return new TypeError(message);
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
- const obj_lastModifiedDate = obj.lastModifiedDate;
1923
- const path_lastModifiedDate = path + '.lastModifiedDate';
1924
- if (typeof obj_lastModifiedDate !== 'string') {
1925
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
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
- const obj_latestSetup = obj.latestSetup;
1928
- const path_latestSetup = path + '.latestSetup';
1929
- const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
1930
- if (referencepath_latestSetupValidationError !== null) {
1931
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
1932
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1933
- return new TypeError(message);
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
- const obj_modelsUrl = obj.modelsUrl;
1949
- const path_modelsUrl = path + '.modelsUrl';
1950
- if (typeof obj_modelsUrl !== 'string') {
1951
- return new TypeError('Expected "string" but received "' + typeof obj_modelsUrl + '" (at "' + path_modelsUrl + '")');
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
- const obj_namespace = obj.namespace;
1959
- const path_namespace = path + '.namespace';
1960
- if (typeof obj_namespace !== 'string') {
1961
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
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
- const obj_outcomeDefinition = obj.outcomeDefinition;
1964
- const path_outcomeDefinition = path + '.outcomeDefinition';
1965
- const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
1966
- if (referencepath_outcomeDefinitionValidationError !== null) {
1967
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
1968
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1969
- return new TypeError(message);
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
- const obj_predictionType = obj.predictionType;
1972
- const path_predictionType = path + '.predictionType';
1973
- if (typeof obj_predictionType !== 'string') {
1974
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
1975
- }
1976
- const obj_refreshConfig = obj.refreshConfig;
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
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
1985
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
1986
- if (typeof obj_setupVersionsUrl !== 'string') {
1987
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
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
- const obj_totalInferenceCount = obj.totalInferenceCount;
1995
- const path_totalInferenceCount = path + '.totalInferenceCount';
1996
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
1997
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
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
- const obj_totalWarningsCount = obj.totalWarningsCount;
2000
- const path_totalWarningsCount = path + '.totalWarningsCount';
2001
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2002
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
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.id;
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
- const obj_activeSetup = obj.activeSetup;
2248
- const path_activeSetup = path + '.activeSetup';
2249
- const referencepath_activeSetupValidationError = validate$h(obj_activeSetup, path_activeSetup);
2250
- if (referencepath_activeSetupValidationError !== null) {
2251
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_activeSetup + '")\n';
2252
- message += referencepath_activeSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2253
- return new TypeError(message);
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
- const obj_activeSetupVersionNumber = obj.activeSetupVersionNumber;
2256
- const path_activeSetupVersionNumber = path + '.activeSetupVersionNumber';
2257
- if (typeof obj_activeSetupVersionNumber !== 'number' || (typeof obj_activeSetupVersionNumber === 'number' && Math.floor(obj_activeSetupVersionNumber) !== obj_activeSetupVersionNumber)) {
2258
- return new TypeError('Expected "integer" but received "' + typeof obj_activeSetupVersionNumber + '" (at "' + path_activeSetupVersionNumber + '")');
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
- const obj_createdBy = obj.createdBy;
2261
- const path_createdBy = path + '.createdBy';
2262
- const referencepath_createdByValidationError = validate$i(obj_createdBy, path_createdBy);
2263
- if (referencepath_createdByValidationError !== null) {
2264
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2265
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2266
- return new TypeError(message);
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
- const obj_createdDate = obj.createdDate;
2269
- const path_createdDate = path + '.createdDate';
2270
- if (typeof obj_createdDate !== 'string') {
2271
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
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
- const obj_description = obj.description;
2274
- const path_description = path + '.description';
2275
- if (typeof obj_description !== 'string') {
2276
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_historiesUrl = obj.historiesUrl;
2279
- const path_historiesUrl = path + '.historiesUrl';
2280
- if (typeof obj_historiesUrl !== 'string') {
2281
- return new TypeError('Expected "string" but received "' + typeof obj_historiesUrl + '" (at "' + path_historiesUrl + '")');
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
- const obj_id = obj.id;
2284
- const path_id = path + '.id';
2285
- if (typeof obj_id !== 'string') {
2286
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
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
- const obj_label = obj.label;
2289
- const path_label = path + '.label';
2290
- if (typeof obj_label !== 'string') {
2291
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
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
- const obj_lastModifiedBy = obj.lastModifiedBy;
2294
- const path_lastModifiedBy = path + '.lastModifiedBy';
2295
- const referencepath_lastModifiedByValidationError = validate$i(obj_lastModifiedBy, path_lastModifiedBy);
2296
- if (referencepath_lastModifiedByValidationError !== null) {
2297
- let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2298
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2299
- return new TypeError(message);
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
- const obj_lastModifiedDate = obj.lastModifiedDate;
2302
- const path_lastModifiedDate = path + '.lastModifiedDate';
2303
- if (typeof obj_lastModifiedDate !== 'string') {
2304
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
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
- const obj_latestSetup = obj.latestSetup;
2307
- const path_latestSetup = path + '.latestSetup';
2308
- const referencepath_latestSetupValidationError = validate$h(obj_latestSetup, path_latestSetup);
2309
- if (referencepath_latestSetupValidationError !== null) {
2310
- let message = 'Object doesn\'t match CdpAssetReferenceRepresentation (at "' + path_latestSetup + '")\n';
2311
- message += referencepath_latestSetupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2312
- return new TypeError(message);
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
- const obj_outcomeDefinition = obj.outcomeDefinition;
2343
- const path_outcomeDefinition = path + '.outcomeDefinition';
2344
- const referencepath_outcomeDefinitionValidationError = validate$8(obj_outcomeDefinition, path_outcomeDefinition);
2345
- if (referencepath_outcomeDefinitionValidationError !== null) {
2346
- let message = 'Object doesn\'t match CdpMlModelOutcomeDefinitionRepresentation (at "' + path_outcomeDefinition + '")\n';
2347
- message += referencepath_outcomeDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2348
- return new TypeError(message);
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
- const obj_predictionType = obj.predictionType;
2351
- const path_predictionType = path + '.predictionType';
2352
- if (typeof obj_predictionType !== 'string') {
2353
- return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
2354
- }
2355
- const obj_refreshConfig = obj.refreshConfig;
2356
- const path_refreshConfig = path + '.refreshConfig';
2357
- const referencepath_refreshConfigValidationError = validate$3(obj_refreshConfig, path_refreshConfig);
2358
- if (referencepath_refreshConfigValidationError !== null) {
2359
- let message = 'Object doesn\'t match CdpMlModelRefreshConfigRepresentation (at "' + path_refreshConfig + '")\n';
2360
- message += referencepath_refreshConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2361
- return new TypeError(message);
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
- const obj_setupVersionsUrl = obj.setupVersionsUrl;
2364
- const path_setupVersionsUrl = path + '.setupVersionsUrl';
2365
- if (typeof obj_setupVersionsUrl !== 'string') {
2366
- return new TypeError('Expected "string" but received "' + typeof obj_setupVersionsUrl + '" (at "' + path_setupVersionsUrl + '")');
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
- const obj_totalInferenceCount = obj.totalInferenceCount;
2374
- const path_totalInferenceCount = path + '.totalInferenceCount';
2375
- if (typeof obj_totalInferenceCount !== 'number' || (typeof obj_totalInferenceCount === 'number' && Math.floor(obj_totalInferenceCount) !== obj_totalInferenceCount)) {
2376
- return new TypeError('Expected "integer" but received "' + typeof obj_totalInferenceCount + '" (at "' + path_totalInferenceCount + '")');
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
- const obj_totalWarningsCount = obj.totalWarningsCount;
2379
- const path_totalWarningsCount = path + '.totalWarningsCount';
2380
- if (typeof obj_totalWarningsCount !== 'number' || (typeof obj_totalWarningsCount === 'number' && Math.floor(obj_totalWarningsCount) !== obj_totalWarningsCount)) {
2381
- return new TypeError('Expected "integer" but received "' + typeof obj_totalWarningsCount + '" (at "' + path_totalWarningsCount + '")');
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.modelId + '',
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('modelId', true, 0 /* UrlParameter */, 0 /* String */),
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', true, 2 /* Body */, 4 /* Unsupported */),
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', true, 2 /* Body */, 0 /* String */),
2662
- generateParamConfigMetadata('filter', true, 2 /* Body */, 4 /* Unsupported */),
2663
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
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.0-533e91908
3002
+ // version: 1.270.1-abfb311e8