@ibm-cloud/ibm_dph_services 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dph/v1.js CHANGED
@@ -639,6 +639,8 @@ var DphV1 = /** @class */ (function (_super) {
639
639
  * version creation or retiring.
640
640
  * @param {AssetListAccessControl} [params.accessControl] - Access control object.
641
641
  * @param {string} [params.lastUpdatedAt] - Timestamp of last asset update.
642
+ * @param {ContainerIdentity} [params.subContainer] - The identity schema for a IBM knowledge catalog container
643
+ * (catalog/project/space).
642
644
  * @param {boolean} [params.isRestricted] - Indicates whether the data product is restricted or not. A restricted data
643
645
  * product indicates that orders of the data product requires explicit approval before data is delivered.
644
646
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -666,6 +668,7 @@ var DphV1 = /** @class */ (function (_super) {
666
668
  'comments',
667
669
  'accessControl',
668
670
  'lastUpdatedAt',
671
+ 'subContainer',
669
672
  'isRestricted',
670
673
  'headers',
671
674
  ];
@@ -691,6 +694,7 @@ var DphV1 = /** @class */ (function (_super) {
691
694
  'comments': _params.comments,
692
695
  'access_control': _params.accessControl,
693
696
  'last_updated_at': _params.lastUpdatedAt,
697
+ 'sub_container': _params.subContainer,
694
698
  'is_restricted': _params.isRestricted,
695
699
  };
696
700
  var path = {
@@ -1068,11 +1072,14 @@ var DphV1 = /** @class */ (function (_super) {
1068
1072
  * @param {string} params.dataProductId - Data product ID. Use '-' to skip specifying the data product ID explicitly.
1069
1073
  * @param {string} params.draftId - Data product draft id.
1070
1074
  * @param {string} params.contractTermsId - Contract terms id.
1071
- * @param {string} [params.accept] - The type of the response: application/odcs+yaml or application/json.
1075
+ * @param {string} [params.accept] - The type of the response: application/json or application/odcs+yaml.
1072
1076
  * @param {boolean} [params.includeContractDocuments] - Set to false to exclude external contract documents (e.g.,
1073
1077
  * Terms and Conditions URLs) from the response. By default, these are included.
1078
+ * @param {boolean} [params.autopopulateServerInformation] - Set to true to autopopulate server information from
1079
+ * connection details. Default is false.
1080
+ * @param {string} [params.serverAssetId] - Asset ID of the server used for autopopulating connection details.
1074
1081
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1075
- * @returns {Promise<DphV1.Response<NodeJS.ReadableStream>>}
1082
+ * @returns {Promise<DphV1.Response<DphV1.ContractTerms>>}
1076
1083
  */
1077
1084
  DphV1.prototype.getDataProductDraftContractTerms = function (params) {
1078
1085
  var _params = __assign({}, params);
@@ -1083,6 +1090,8 @@ var DphV1 = /** @class */ (function (_super) {
1083
1090
  'contractTermsId',
1084
1091
  'accept',
1085
1092
  'includeContractDocuments',
1093
+ 'autopopulateServerInformation',
1094
+ 'serverAssetId',
1086
1095
  'headers',
1087
1096
  ];
1088
1097
  var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
@@ -1091,6 +1100,8 @@ var DphV1 = /** @class */ (function (_super) {
1091
1100
  }
1092
1101
  var query = {
1093
1102
  'include_contract_documents': _params.includeContractDocuments,
1103
+ 'autopopulate_server_information': _params.autopopulateServerInformation,
1104
+ 'server_asset_id': _params.serverAssetId,
1094
1105
  };
1095
1106
  var path = {
1096
1107
  'data_product_id': _params.dataProductId,
@@ -1104,7 +1115,6 @@ var DphV1 = /** @class */ (function (_super) {
1104
1115
  method: 'GET',
1105
1116
  qs: query,
1106
1117
  path: path,
1107
- responseType: 'stream',
1108
1118
  },
1109
1119
  defaultOptions: extend(true, {}, this.baseOptions, {
1110
1120
  headers: extend(true, sdkHeaders, {
@@ -1138,6 +1148,7 @@ var DphV1 = /** @class */ (function (_super) {
1138
1148
  * @param {ContractTemplateCustomProperty[]} [params.customProperties] - Custom properties that are not part of the
1139
1149
  * standard contract.
1140
1150
  * @param {ContractTest} [params.contractTest] - Contains the contract test status and related metadata.
1151
+ * @param {ContractServer[]} [params.servers] - List of server definitions.
1141
1152
  * @param {ContractSchema[]} [params.schema] - Schema details of the data asset.
1142
1153
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1143
1154
  * @returns {Promise<DphV1.Response<DphV1.ContractTerms>>}
@@ -1162,6 +1173,7 @@ var DphV1 = /** @class */ (function (_super) {
1162
1173
  'supportAndCommunication',
1163
1174
  'customProperties',
1164
1175
  'contractTest',
1176
+ 'servers',
1165
1177
  'schema',
1166
1178
  'headers',
1167
1179
  ];
@@ -1183,6 +1195,7 @@ var DphV1 = /** @class */ (function (_super) {
1183
1195
  'support_and_communication': _params.supportAndCommunication,
1184
1196
  'custom_properties': _params.customProperties,
1185
1197
  'contract_test': _params.contractTest,
1198
+ 'servers': _params.servers,
1186
1199
  'schema': _params.schema,
1187
1200
  };
1188
1201
  var path = {
@@ -1269,6 +1282,69 @@ var DphV1 = /** @class */ (function (_super) {
1269
1282
  };
1270
1283
  return this.createRequest(parameters);
1271
1284
  };
1285
+ /**
1286
+ * Retrieve a data product contract terms identified by id in specified format.
1287
+ *
1288
+ * Retrieve a data product contract terms identified by id in specified format.
1289
+ *
1290
+ * @param {Object} params - The parameters to send to the service.
1291
+ * @param {string} params.dataProductId - Data product ID. Use '-' to skip specifying the data product ID explicitly.
1292
+ * @param {string} params.draftId - Data product draft id.
1293
+ * @param {string} params.contractTermsId - Contract terms id.
1294
+ * @param {string} params.format - The format for returning contract terms. For example: odcs.
1295
+ * @param {string} params.formatVersion - The version of the format for returning contract terms. For example: 3.
1296
+ * @param {string} [params.accept] - The type of the response: application/odcs+yaml or application/json.
1297
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1298
+ * @returns {Promise<DphV1.Response<NodeJS.ReadableStream>>}
1299
+ */
1300
+ DphV1.prototype.getContractTermsInSpecifiedFormat = function (params) {
1301
+ var _params = __assign({}, params);
1302
+ var _requiredParams = [
1303
+ 'dataProductId',
1304
+ 'draftId',
1305
+ 'contractTermsId',
1306
+ 'format',
1307
+ 'formatVersion',
1308
+ ];
1309
+ var _validParams = [
1310
+ 'dataProductId',
1311
+ 'draftId',
1312
+ 'contractTermsId',
1313
+ 'format',
1314
+ 'formatVersion',
1315
+ 'accept',
1316
+ 'headers',
1317
+ ];
1318
+ var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
1319
+ if (_validationErrors) {
1320
+ return Promise.reject(_validationErrors);
1321
+ }
1322
+ var query = {
1323
+ 'format': _params.format,
1324
+ 'format_version': _params.formatVersion,
1325
+ };
1326
+ var path = {
1327
+ 'data_product_id': _params.dataProductId,
1328
+ 'draft_id': _params.draftId,
1329
+ 'contract_terms_id': _params.contractTermsId,
1330
+ };
1331
+ var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'getContractTermsInSpecifiedFormat');
1332
+ var parameters = {
1333
+ options: {
1334
+ url: '/data_product_exchange/v1/data_products/{data_product_id}/drafts/{draft_id}/contract_terms/{contract_terms_id}/format',
1335
+ method: 'GET',
1336
+ qs: query,
1337
+ path: path,
1338
+ responseType: 'stream',
1339
+ },
1340
+ defaultOptions: extend(true, {}, this.baseOptions, {
1341
+ headers: extend(true, sdkHeaders, {
1342
+ 'Accept': _params.accept,
1343
+ }, _params.headers),
1344
+ }),
1345
+ };
1346
+ return this.createRequest(parameters);
1347
+ };
1272
1348
  /**
1273
1349
  * Publish a draft of an existing data product.
1274
1350
  *
@@ -1449,6 +1525,61 @@ var DphV1 = /** @class */ (function (_super) {
1449
1525
  };
1450
1526
  return this.createRequest(parameters);
1451
1527
  };
1528
+ /**
1529
+ * Retrieve a published data product contract terms identified by id.
1530
+ *
1531
+ * Retrieve a published data product contract terms identified by id.
1532
+ *
1533
+ * @param {Object} params - The parameters to send to the service.
1534
+ * @param {string} params.dataProductId - Data product ID. Use '-' to skip specifying the data product ID explicitly.
1535
+ * @param {string} params.releaseId - Data product release id.
1536
+ * @param {string} params.contractTermsId - Contract terms id.
1537
+ * @param {string} [params.accept] - The type of the response: application/odcs+yaml or application/json.
1538
+ * @param {boolean} [params.includeContractDocuments] - Set to false to exclude external contract documents (e.g.,
1539
+ * Terms and Conditions URLs) from the response. By default, these are included.
1540
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1541
+ * @returns {Promise<DphV1.Response<NodeJS.ReadableStream>>}
1542
+ */
1543
+ DphV1.prototype.getPublishedDataProductDraftContractTerms = function (params) {
1544
+ var _params = __assign({}, params);
1545
+ var _requiredParams = ['dataProductId', 'releaseId', 'contractTermsId'];
1546
+ var _validParams = [
1547
+ 'dataProductId',
1548
+ 'releaseId',
1549
+ 'contractTermsId',
1550
+ 'accept',
1551
+ 'includeContractDocuments',
1552
+ 'headers',
1553
+ ];
1554
+ var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
1555
+ if (_validationErrors) {
1556
+ return Promise.reject(_validationErrors);
1557
+ }
1558
+ var query = {
1559
+ 'include_contract_documents': _params.includeContractDocuments,
1560
+ };
1561
+ var path = {
1562
+ 'data_product_id': _params.dataProductId,
1563
+ 'release_id': _params.releaseId,
1564
+ 'contract_terms_id': _params.contractTermsId,
1565
+ };
1566
+ var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'getPublishedDataProductDraftContractTerms');
1567
+ var parameters = {
1568
+ options: {
1569
+ url: '/data_product_exchange/v1/data_products/{data_product_id}/releases/{release_id}/contract_terms/{contract_terms_id}',
1570
+ method: 'GET',
1571
+ qs: query,
1572
+ path: path,
1573
+ responseType: 'stream',
1574
+ },
1575
+ defaultOptions: extend(true, {}, this.baseOptions, {
1576
+ headers: extend(true, sdkHeaders, {
1577
+ 'Accept': _params.accept,
1578
+ }, _params.headers),
1579
+ }),
1580
+ };
1581
+ return this.createRequest(parameters);
1582
+ };
1452
1583
  /**
1453
1584
  * Retrieve a list of data product releases.
1454
1585
  *
@@ -1519,19 +1650,22 @@ var DphV1 = /** @class */ (function (_super) {
1519
1650
  * @param {string} params.releaseId - Data product release id.
1520
1651
  * @param {boolean} [params.revokeAccess] - Revoke's Access from all the Subscriptions of the Data Product. No user's
1521
1652
  * can able to see the subscribed assets anymore.
1653
+ * @param {string} [params.startAt] - The date and time when the revoke access operation should start (ISO 8601
1654
+ * format, e.g., 2025-09-24T06:55:29Z). If not provided, the operation starts immediately.
1522
1655
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1523
1656
  * @returns {Promise<DphV1.Response<DphV1.DataProductRelease>>}
1524
1657
  */
1525
1658
  DphV1.prototype.retireDataProductRelease = function (params) {
1526
1659
  var _params = __assign({}, params);
1527
1660
  var _requiredParams = ['dataProductId', 'releaseId'];
1528
- var _validParams = ['dataProductId', 'releaseId', 'revokeAccess', 'headers'];
1661
+ var _validParams = ['dataProductId', 'releaseId', 'revokeAccess', 'startAt', 'headers'];
1529
1662
  var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
1530
1663
  if (_validationErrors) {
1531
1664
  return Promise.reject(_validationErrors);
1532
1665
  }
1533
1666
  var query = {
1534
1667
  'revoke_access': _params.revokeAccess,
1668
+ 'start_at': _params.startAt,
1535
1669
  };
1536
1670
  var path = {
1537
1671
  'data_product_id': _params.dataProductId,
@@ -1548,7 +1682,53 @@ var DphV1 = /** @class */ (function (_super) {
1548
1682
  defaultOptions: extend(true, {}, this.baseOptions, {
1549
1683
  headers: extend(true, sdkHeaders, {
1550
1684
  'Accept': 'application/json',
1551
- 'Content-Type': 'application/json',
1685
+ 'Content-Type': 'application/x-www-form-urlencoded',
1686
+ }, _params.headers),
1687
+ }),
1688
+ };
1689
+ return this.createRequest(parameters);
1690
+ };
1691
+ /**
1692
+ * Revoke access from Data Product subscriptions.
1693
+ *
1694
+ * Revoke's access from Subscriptions of the data product id passed in the path parameter. Optionally specify a future
1695
+ * date-time when the revoke access operation should start using the start_at field in ISO 8601 format (e.g.,
1696
+ * 2025-09-24T06:55:29Z). If start_at is not provided, the revoke access operation starts immediately.
1697
+ *
1698
+ * @param {Object} params - The parameters to send to the service.
1699
+ * @param {string} params.dataProductId - Data product ID. Use '-' to skip specifying the data product ID explicitly.
1700
+ * @param {string} params.releaseId - The unique identifier of the data product release.
1701
+ * @param {NodeJS.ReadableStream | Buffer} [params.body] - Request parameters to handle revoke access from
1702
+ * subscriptions. The start_at field can be used to schedule the revoke access operation for a future date-time.
1703
+ * @param {string} [params.contentType] - The type of the input.
1704
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1705
+ * @returns {Promise<DphV1.Response<DphV1.RevokeAccessResponse>>}
1706
+ */
1707
+ DphV1.prototype.createRevokeAccessProcess = function (params) {
1708
+ var _params = __assign({}, params);
1709
+ var _requiredParams = ['dataProductId', 'releaseId'];
1710
+ var _validParams = ['dataProductId', 'releaseId', 'body', 'contentType', 'headers'];
1711
+ var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
1712
+ if (_validationErrors) {
1713
+ return Promise.reject(_validationErrors);
1714
+ }
1715
+ var body = _params.body;
1716
+ var path = {
1717
+ 'data_product_id': _params.dataProductId,
1718
+ 'release_id': _params.releaseId,
1719
+ };
1720
+ var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'createRevokeAccessProcess');
1721
+ var parameters = {
1722
+ options: {
1723
+ url: '/data_product_exchange/v1/data_products/{data_product_id}/releases/{release_id}/revoke_access',
1724
+ method: 'POST',
1725
+ body: body,
1726
+ path: path,
1727
+ },
1728
+ defaultOptions: extend(true, {}, this.baseOptions, {
1729
+ headers: extend(true, sdkHeaders, {
1730
+ 'Accept': 'application/json',
1731
+ 'Content-Type': _params.contentType,
1552
1732
  }, _params.headers),
1553
1733
  }),
1554
1734
  };
@@ -1567,13 +1747,15 @@ var DphV1 = /** @class */ (function (_super) {
1567
1747
  * catalog is looked up by using the uid of the default data product catalog.
1568
1748
  * @param {string} [params.contractTemplateName] - Name of the data product contract template. If not supplied, the
1569
1749
  * data product templates within the catalog will returned.
1750
+ * @param {string} [params.domainIds] - Comma-separated domain IDs to filter data product contract templates. If not
1751
+ * supplied, the data product templates within the catalog will returned.
1570
1752
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1571
1753
  * @returns {Promise<DphV1.Response<DphV1.DataProductContractTemplateCollection>>}
1572
1754
  */
1573
1755
  DphV1.prototype.listDataProductContractTemplate = function (params) {
1574
1756
  var _params = __assign({}, params);
1575
1757
  var _requiredParams = [];
1576
- var _validParams = ['containerId', 'contractTemplateName', 'headers'];
1758
+ var _validParams = ['containerId', 'contractTemplateName', 'domainIds', 'headers'];
1577
1759
  var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
1578
1760
  if (_validationErrors) {
1579
1761
  return Promise.reject(_validationErrors);
@@ -1581,6 +1763,7 @@ var DphV1 = /** @class */ (function (_super) {
1581
1763
  var query = {
1582
1764
  'container.id': _params.containerId,
1583
1765
  'contract_template.name': _params.contractTemplateName,
1766
+ 'domain.ids': _params.domainIds,
1584
1767
  };
1585
1768
  var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'listDataProductContractTemplate');
1586
1769
  var parameters = {
@@ -1605,6 +1788,8 @@ var DphV1 = /** @class */ (function (_super) {
1605
1788
  * @param {Object} params - The parameters to send to the service.
1606
1789
  * @param {ContainerReference} params.container - Container reference.
1607
1790
  * @param {string} [params.id] - The identifier of the data product contract template.
1791
+ * @param {string} [params.creatorId] - The identifier of the user who created the data product contract template.
1792
+ * @param {string} [params.createdAt] - The timestamp when the data product contract template was created.
1608
1793
  * @param {string} [params.name] - The name of the contract template.
1609
1794
  * @param {ErrorMessage} [params.error] - Contains the code and details.
1610
1795
  * @param {ContractTerms} [params.contractTerms] - Defines the complete structure of a contract terms.
@@ -1612,6 +1797,8 @@ var DphV1 = /** @class */ (function (_super) {
1612
1797
  * catalog is looked up by using the uid of the default data product catalog.
1613
1798
  * @param {string} [params.contractTemplateName] - Name of the data product contract template. If not supplied, the
1614
1799
  * data product templates within the catalog will returned.
1800
+ * @param {string} [params.domainIds] - Comma-separated domain IDs to filter data product contract templates. If not
1801
+ * supplied, the data product templates within the catalog will returned.
1615
1802
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1616
1803
  * @returns {Promise<DphV1.Response<DphV1.DataProductContractTemplate>>}
1617
1804
  */
@@ -1621,11 +1808,14 @@ var DphV1 = /** @class */ (function (_super) {
1621
1808
  var _validParams = [
1622
1809
  'container',
1623
1810
  'id',
1811
+ 'creatorId',
1812
+ 'createdAt',
1624
1813
  'name',
1625
1814
  'error',
1626
1815
  'contractTerms',
1627
1816
  'containerId',
1628
1817
  'contractTemplateName',
1818
+ 'domainIds',
1629
1819
  'headers',
1630
1820
  ];
1631
1821
  var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
@@ -1635,6 +1825,8 @@ var DphV1 = /** @class */ (function (_super) {
1635
1825
  var body = {
1636
1826
  'container': _params.container,
1637
1827
  'id': _params.id,
1828
+ 'creator_id': _params.creatorId,
1829
+ 'created_at': _params.createdAt,
1638
1830
  'name': _params.name,
1639
1831
  'error': _params.error,
1640
1832
  'contract_terms': _params.contractTerms,
@@ -1642,6 +1834,7 @@ var DphV1 = /** @class */ (function (_super) {
1642
1834
  var query = {
1643
1835
  'container.id': _params.containerId,
1644
1836
  'contract_template.name': _params.contractTemplateName,
1837
+ 'domain.ids': _params.domainIds,
1645
1838
  };
1646
1839
  var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'createContractTemplate');
1647
1840
  var parameters = {
@@ -1800,19 +1993,21 @@ var DphV1 = /** @class */ (function (_super) {
1800
1993
  * @param {Object} [params] - The parameters to send to the service.
1801
1994
  * @param {string} [params.containerId] - Container ID of the data product catalog. If not supplied, the data product
1802
1995
  * catalog is looked up by using the uid of the default data product catalog.
1996
+ * @param {boolean} [params.includeSubdomains] - Include subdomains in the response.
1803
1997
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1804
1998
  * @returns {Promise<DphV1.Response<DphV1.DataProductDomainCollection>>}
1805
1999
  */
1806
2000
  DphV1.prototype.listDataProductDomains = function (params) {
1807
2001
  var _params = __assign({}, params);
1808
2002
  var _requiredParams = [];
1809
- var _validParams = ['containerId', 'headers'];
2003
+ var _validParams = ['containerId', 'includeSubdomains', 'headers'];
1810
2004
  var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
1811
2005
  if (_validationErrors) {
1812
2006
  return Promise.reject(_validationErrors);
1813
2007
  }
1814
2008
  var query = {
1815
2009
  'container.id': _params.containerId,
2010
+ 'include_subdomains': _params.includeSubdomains,
1816
2011
  };
1817
2012
  var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'listDataProductDomains');
1818
2013
  var parameters = {
@@ -1841,11 +2036,13 @@ var DphV1 = /** @class */ (function (_super) {
1841
2036
  * @param {string} [params.name] - The name of the data product domain.
1842
2037
  * @param {string} [params.description] - The description of the data product domain.
1843
2038
  * @param {string} [params.id] - The identifier of the data product domain.
2039
+ * @param {string} [params.createdBy] - The identifier of the creator of the data product domain.
1844
2040
  * @param {MemberRolesSchema} [params.memberRoles] - Member roles of a corresponding asset.
1845
2041
  * @param {PropertiesSchema} [params.properties] - Properties of the corresponding asset.
1846
2042
  * @param {InitializeSubDomain[]} [params.subDomains] - List of sub domains to be added within a domain.
1847
- * @param {string} [params.containerId] - Container ID of the data product catalog. If not supplied, the data product
1848
- * catalog is looked up by using the uid of the default data product catalog.
2043
+ * @param {ContainerIdentity} [params.subContainer] - The identity schema for a IBM knowledge catalog container
2044
+ * (catalog/project/space).
2045
+ * @param {boolean} [params.linkToSubcontainers] - Link domains to subcontainers.
1849
2046
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1850
2047
  * @returns {Promise<DphV1.Response<DphV1.DataProductDomain>>}
1851
2048
  */
@@ -1859,10 +2056,12 @@ var DphV1 = /** @class */ (function (_super) {
1859
2056
  'name',
1860
2057
  'description',
1861
2058
  'id',
2059
+ 'createdBy',
1862
2060
  'memberRoles',
1863
2061
  'properties',
1864
2062
  'subDomains',
1865
- 'containerId',
2063
+ 'subContainer',
2064
+ 'linkToSubcontainers',
1866
2065
  'headers',
1867
2066
  ];
1868
2067
  var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
@@ -1876,12 +2075,14 @@ var DphV1 = /** @class */ (function (_super) {
1876
2075
  'name': _params.name,
1877
2076
  'description': _params.description,
1878
2077
  'id': _params.id,
2078
+ 'created_by': _params.createdBy,
1879
2079
  'member_roles': _params.memberRoles,
1880
2080
  'properties': _params.properties,
1881
2081
  'sub_domains': _params.subDomains,
2082
+ 'sub_container': _params.subContainer,
1882
2083
  };
1883
2084
  var query = {
1884
- 'container.id': _params.containerId,
2085
+ 'link_to_subcontainers': _params.linkToSubcontainers,
1885
2086
  };
1886
2087
  var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'createDataProductDomain');
1887
2088
  var parameters = {
@@ -2186,6 +2387,50 @@ var DphV1 = /** @class */ (function (_super) {
2186
2387
  };
2187
2388
  return this.createRequest(parameters);
2188
2389
  };
2390
+ /*************************
2391
+ * dataProductRevokeAccessJobRuns
2392
+ ************************/
2393
+ /**
2394
+ * Access revoke status of the subscriptions against the data product release id.
2395
+ *
2396
+ * Retrieves the status of revoke access requests.
2397
+ *
2398
+ * @param {Object} params - The parameters to send to the service.
2399
+ * @param {string} params.releaseId - Pass the data product release version id to retrieve job runs state for that
2400
+ * specific DPV ID.
2401
+ * @param {number} [params.limit] - Limit the number of tracking assets in the results. The maximum is 200.
2402
+ * @param {string} [params.start] - Start token for pagination.
2403
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2404
+ * @returns {Promise<DphV1.Response<DphV1.RevokeAccessStateResponse>>}
2405
+ */
2406
+ DphV1.prototype.getRevokeAccessProcessState = function (params) {
2407
+ var _params = __assign({}, params);
2408
+ var _requiredParams = ['releaseId'];
2409
+ var _validParams = ['releaseId', 'limit', 'start', 'headers'];
2410
+ var _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
2411
+ if (_validationErrors) {
2412
+ return Promise.reject(_validationErrors);
2413
+ }
2414
+ var query = {
2415
+ 'release_id': _params.releaseId,
2416
+ 'limit': _params.limit,
2417
+ 'start': _params.start,
2418
+ };
2419
+ var sdkHeaders = (0, common_1.getSdkHeaders)(DphV1.DEFAULT_SERVICE_NAME, 'v1', 'getRevokeAccessProcessState');
2420
+ var parameters = {
2421
+ options: {
2422
+ url: '/data_product_exchange/v1/data_product_revoke_access/job_runs',
2423
+ method: 'GET',
2424
+ qs: query,
2425
+ },
2426
+ defaultOptions: extend(true, {}, this.baseOptions, {
2427
+ headers: extend(true, sdkHeaders, {
2428
+ 'Accept': 'application/json',
2429
+ }, _params.headers),
2430
+ }),
2431
+ };
2432
+ return this.createRequest(parameters);
2433
+ };
2189
2434
  DphV1.DEFAULT_SERVICE_NAME = 'dph';
2190
2435
  return DphV1;
2191
2436
  }(ibm_cloud_sdk_core_1.BaseService));
@@ -2238,13 +2483,33 @@ var DphV1 = /** @class */ (function (_super) {
2238
2483
  /** Constants for the `getDataProductDraftContractTerms` operation. */
2239
2484
  var GetDataProductDraftContractTermsConstants;
2240
2485
  (function (GetDataProductDraftContractTermsConstants) {
2241
- /** The type of the response: application/odcs+yaml or application/json. */
2486
+ /** The type of the response: application/json or application/odcs+yaml. */
2242
2487
  var Accept;
2243
2488
  (function (Accept) {
2244
- Accept["APPLICATION_ODCS_YAML"] = "application/odcs+yaml";
2245
2489
  Accept["APPLICATION_JSON"] = "application/json";
2490
+ Accept["APPLICATION_ODCS_YAML"] = "application/odcs+yaml";
2246
2491
  })(Accept = GetDataProductDraftContractTermsConstants.Accept || (GetDataProductDraftContractTermsConstants.Accept = {}));
2247
2492
  })(GetDataProductDraftContractTermsConstants = DphV1.GetDataProductDraftContractTermsConstants || (DphV1.GetDataProductDraftContractTermsConstants = {}));
2493
+ /** Constants for the `getContractTermsInSpecifiedFormat` operation. */
2494
+ var GetContractTermsInSpecifiedFormatConstants;
2495
+ (function (GetContractTermsInSpecifiedFormatConstants) {
2496
+ /** The type of the response: application/odcs+yaml or application/json. */
2497
+ var Accept;
2498
+ (function (Accept) {
2499
+ Accept["APPLICATION_ODCS_YAML"] = "application/odcs+yaml";
2500
+ Accept["APPLICATION_JSON"] = "application/json";
2501
+ })(Accept = GetContractTermsInSpecifiedFormatConstants.Accept || (GetContractTermsInSpecifiedFormatConstants.Accept = {}));
2502
+ })(GetContractTermsInSpecifiedFormatConstants = DphV1.GetContractTermsInSpecifiedFormatConstants || (DphV1.GetContractTermsInSpecifiedFormatConstants = {}));
2503
+ /** Constants for the `getPublishedDataProductDraftContractTerms` operation. */
2504
+ var GetPublishedDataProductDraftContractTermsConstants;
2505
+ (function (GetPublishedDataProductDraftContractTermsConstants) {
2506
+ /** The type of the response: application/odcs+yaml or application/json. */
2507
+ var Accept;
2508
+ (function (Accept) {
2509
+ Accept["APPLICATION_ODCS_YAML"] = "application/odcs+yaml";
2510
+ Accept["APPLICATION_JSON"] = "application/json";
2511
+ })(Accept = GetPublishedDataProductDraftContractTermsConstants.Accept || (GetPublishedDataProductDraftContractTermsConstants.Accept = {}));
2512
+ })(GetPublishedDataProductDraftContractTermsConstants = DphV1.GetPublishedDataProductDraftContractTermsConstants || (DphV1.GetPublishedDataProductDraftContractTermsConstants = {}));
2248
2513
  /** Constants for the `listDataProductReleases` operation. */
2249
2514
  var ListDataProductReleasesConstants;
2250
2515
  (function (ListDataProductReleasesConstants) {
@@ -2405,6 +2670,18 @@ var DphV1 = /** @class */ (function (_super) {
2405
2670
  })(Types = Constants.Types || (Constants.Types = {}));
2406
2671
  })(Constants = DataProductVersionSummary.Constants || (DataProductVersionSummary.Constants = {}));
2407
2672
  })(DataProductVersionSummary = DphV1.DataProductVersionSummary || (DphV1.DataProductVersionSummary = {}));
2673
+ var EngineDetailsModel;
2674
+ (function (EngineDetailsModel) {
2675
+ var Constants;
2676
+ (function (Constants) {
2677
+ /** The type of the engine (eg: Presto/Spark). */
2678
+ var EngineType;
2679
+ (function (EngineType) {
2680
+ EngineType["SPARK"] = "spark";
2681
+ EngineType["PRESTO"] = "presto";
2682
+ })(EngineType = Constants.EngineType || (Constants.EngineType = {}));
2683
+ })(Constants = EngineDetailsModel.Constants || (EngineDetailsModel.Constants = {}));
2684
+ })(EngineDetailsModel = DphV1.EngineDetailsModel || (DphV1.EngineDetailsModel = {}));
2408
2685
  var ErrorModelResource;
2409
2686
  (function (ErrorModelResource) {
2410
2687
  var Constants;