oci-datascience 2.104.0 → 2.105.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/lib/client.d.ts +99 -0
- package/lib/client.js +826 -66
- package/lib/client.js.map +1 -1
- package/lib/model/index.d.ts +10 -0
- package/lib/model/index.js +14 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/metadata.d.ts +13 -0
- package/lib/model/metadata.js.map +1 -1
- package/lib/model/model-artifact-reference-details.d.ts +24 -0
- package/lib/model/model-artifact-reference-details.js +69 -0
- package/lib/model/model-artifact-reference-details.js.map +1 -0
- package/lib/model/model-category.d.ts +29 -0
- package/lib/model/model-category.js +40 -0
- package/lib/model/model-category.js.map +1 -0
- package/lib/model/model-summary.d.ts +8 -0
- package/lib/model/model-summary.js.map +1 -1
- package/lib/model/model-version-set-category.d.ts +29 -0
- package/lib/model/model-version-set-category.js +40 -0
- package/lib/model/model-version-set-category.js.map +1 -0
- package/lib/model/model-version-set-summary.d.ts +4 -0
- package/lib/model/model-version-set-summary.js.map +1 -1
- package/lib/model/model-version-set.d.ts +4 -0
- package/lib/model/model-version-set.js.map +1 -1
- package/lib/model/model.d.ts +8 -0
- package/lib/model/model.js.map +1 -1
- package/lib/model/o-ss-model-artifact-reference-details.d.ts +37 -0
- package/lib/model/o-ss-model-artifact-reference-details.js +55 -0
- package/lib/model/o-ss-model-artifact-reference-details.js.map +1 -0
- package/lib/model/register-model-artifact-reference-details.d.ts +27 -0
- package/lib/model/register-model-artifact-reference-details.js +62 -0
- package/lib/model/register-model-artifact-reference-details.js.map +1 -0
- package/lib/model/work-request-operation-type.d.ts +1 -0
- package/lib/model/work-request-operation-type.js +1 -0
- package/lib/model/work-request-operation-type.js.map +1 -1
- package/lib/request/create-model-custom-metadatum-artifact-request.d.ts +61 -0
- package/lib/request/create-model-custom-metadatum-artifact-request.js +15 -0
- package/lib/request/create-model-custom-metadatum-artifact-request.js.map +1 -0
- package/lib/request/create-model-defined-metadatum-artifact-request.d.ts +61 -0
- package/lib/request/create-model-defined-metadatum-artifact-request.js +15 -0
- package/lib/request/create-model-defined-metadatum-artifact-request.js.map +1 -0
- package/lib/request/delete-model-custom-metadatum-artifact-request.d.ts +40 -0
- package/lib/request/delete-model-custom-metadatum-artifact-request.js +15 -0
- package/lib/request/delete-model-custom-metadatum-artifact-request.js.map +1 -0
- package/lib/request/delete-model-defined-metadatum-artifact-request.d.ts +40 -0
- package/lib/request/delete-model-defined-metadatum-artifact-request.js +15 -0
- package/lib/request/delete-model-defined-metadatum-artifact-request.js.map +1 -0
- package/lib/request/get-model-custom-metadatum-artifact-content-request.d.ts +37 -0
- package/lib/request/get-model-custom-metadatum-artifact-content-request.js +15 -0
- package/lib/request/get-model-custom-metadatum-artifact-content-request.js.map +1 -0
- package/lib/request/get-model-defined-metadatum-artifact-content-request.d.ts +37 -0
- package/lib/request/get-model-defined-metadatum-artifact-content-request.js +15 -0
- package/lib/request/get-model-defined-metadatum-artifact-content-request.js.map +1 -0
- package/lib/request/head-model-custom-metadatum-artifact-request.d.ts +31 -0
- package/lib/request/head-model-custom-metadatum-artifact-request.js +15 -0
- package/lib/request/head-model-custom-metadatum-artifact-request.js.map +1 -0
- package/lib/request/head-model-defined-metadatum-artifact-request.d.ts +31 -0
- package/lib/request/head-model-defined-metadatum-artifact-request.js +15 -0
- package/lib/request/head-model-defined-metadatum-artifact-request.js.map +1 -0
- package/lib/request/index.d.ts +22 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-model-version-sets-request.d.ts +9 -0
- package/lib/request/list-model-version-sets-request.js +5 -0
- package/lib/request/list-model-version-sets-request.js.map +1 -1
- package/lib/request/list-models-request.d.ts +9 -0
- package/lib/request/list-models-request.js +5 -0
- package/lib/request/list-models-request.js.map +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -0
- package/lib/request/list-work-requests-request.js +1 -0
- package/lib/request/list-work-requests-request.js.map +1 -1
- package/lib/request/register-model-artifact-reference-request.d.ts +46 -0
- package/lib/request/register-model-artifact-reference-request.js +15 -0
- package/lib/request/register-model-artifact-reference-request.js.map +1 -0
- package/lib/request/update-model-custom-metadatum-artifact-request.d.ts +61 -0
- package/lib/request/update-model-custom-metadatum-artifact-request.js +15 -0
- package/lib/request/update-model-custom-metadatum-artifact-request.js.map +1 -0
- package/lib/request/update-model-defined-metadatum-artifact-request.d.ts +61 -0
- package/lib/request/update-model-defined-metadatum-artifact-request.js +15 -0
- package/lib/request/update-model-defined-metadatum-artifact-request.js.map +1 -0
- package/lib/response/create-model-custom-metadatum-artifact-response.d.ts +25 -0
- package/lib/response/create-model-custom-metadatum-artifact-response.js +15 -0
- package/lib/response/create-model-custom-metadatum-artifact-response.js.map +1 -0
- package/lib/response/create-model-defined-metadatum-artifact-response.d.ts +25 -0
- package/lib/response/create-model-defined-metadatum-artifact-response.js +15 -0
- package/lib/response/create-model-defined-metadatum-artifact-response.js.map +1 -0
- package/lib/response/delete-model-custom-metadatum-artifact-response.d.ts +20 -0
- package/lib/response/delete-model-custom-metadatum-artifact-response.js +15 -0
- package/lib/response/delete-model-custom-metadatum-artifact-response.js.map +1 -0
- package/lib/response/delete-model-defined-metadatum-artifact-response.d.ts +20 -0
- package/lib/response/delete-model-defined-metadatum-artifact-response.js +15 -0
- package/lib/response/delete-model-defined-metadatum-artifact-response.js.map +1 -0
- package/lib/response/get-model-custom-metadatum-artifact-content-response.d.ts +52 -0
- package/lib/response/get-model-custom-metadatum-artifact-content-response.js +15 -0
- package/lib/response/get-model-custom-metadatum-artifact-content-response.js.map +1 -0
- package/lib/response/get-model-defined-metadatum-artifact-content-response.d.ts +52 -0
- package/lib/response/get-model-defined-metadatum-artifact-content-response.js +15 -0
- package/lib/response/get-model-defined-metadatum-artifact-content-response.js.map +1 -0
- package/lib/response/head-model-custom-metadatum-artifact-response.d.ts +46 -0
- package/lib/response/head-model-custom-metadatum-artifact-response.js +15 -0
- package/lib/response/head-model-custom-metadatum-artifact-response.js.map +1 -0
- package/lib/response/head-model-defined-metadatum-artifact-response.d.ts +46 -0
- package/lib/response/head-model-defined-metadatum-artifact-response.js +15 -0
- package/lib/response/head-model-defined-metadatum-artifact-response.js.map +1 -0
- package/lib/response/index.d.ts +22 -0
- package/lib/response/register-model-artifact-reference-response.d.ts +26 -0
- package/lib/response/register-model-artifact-reference-response.js +15 -0
- package/lib/response/register-model-artifact-reference-response.js.map +1 -0
- package/lib/response/update-model-custom-metadatum-artifact-response.d.ts +25 -0
- package/lib/response/update-model-custom-metadatum-artifact-response.js +15 -0
- package/lib/response/update-model-custom-metadatum-artifact-response.js.map +1 -0
- package/lib/response/update-model-defined-metadatum-artifact-response.d.ts +25 -0
- package/lib/response/update-model-defined-metadatum-artifact-response.js +15 -0
- package/lib/response/update-model-defined-metadatum-artifact-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1652,6 +1652,134 @@ class DataScienceClient {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Creates model custom metadata artifact for specified model.
|
|
1657
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1658
|
+
* @param CreateModelCustomMetadatumArtifactRequest
|
|
1659
|
+
* @return CreateModelCustomMetadatumArtifactResponse
|
|
1660
|
+
* @throws OciError when an error occurs
|
|
1661
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelCustomMetadatumArtifact.ts.html |here} to see how to use CreateModelCustomMetadatumArtifact API.
|
|
1662
|
+
*/
|
|
1663
|
+
createModelCustomMetadatumArtifact(createModelCustomMetadatumArtifactRequest) {
|
|
1664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1665
|
+
if (this.logger)
|
|
1666
|
+
this.logger.debug("Calling operation DataScienceClient#createModelCustomMetadatumArtifact.");
|
|
1667
|
+
const operationName = "createModelCustomMetadatumArtifact";
|
|
1668
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelCustomMetadatumArtifact";
|
|
1669
|
+
const pathParams = {
|
|
1670
|
+
"{modelId}": createModelCustomMetadatumArtifactRequest.modelId,
|
|
1671
|
+
"{metadatumKeyName}": createModelCustomMetadatumArtifactRequest.metadatumKeyName
|
|
1672
|
+
};
|
|
1673
|
+
const queryParams = {};
|
|
1674
|
+
let headerParams = {
|
|
1675
|
+
"opc-request-id": createModelCustomMetadatumArtifactRequest.opcRequestId,
|
|
1676
|
+
"content-length": createModelCustomMetadatumArtifactRequest.contentLength,
|
|
1677
|
+
"content-disposition": createModelCustomMetadatumArtifactRequest.contentDisposition,
|
|
1678
|
+
"if-match": createModelCustomMetadatumArtifactRequest.ifMatch
|
|
1679
|
+
};
|
|
1680
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1681
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelCustomMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
1682
|
+
if (this.logger)
|
|
1683
|
+
retrier.logger = this.logger;
|
|
1684
|
+
const request = yield oci_common_2.composeRequest({
|
|
1685
|
+
baseEndpoint: this._endpoint,
|
|
1686
|
+
defaultHeaders: this._defaultHeaders,
|
|
1687
|
+
path: "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact",
|
|
1688
|
+
method: "POST",
|
|
1689
|
+
bodyContent: createModelCustomMetadatumArtifactRequest.modelCustomMetadatumArtifact,
|
|
1690
|
+
pathParams: pathParams,
|
|
1691
|
+
headerParams: headerParams,
|
|
1692
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
1693
|
+
queryParams: queryParams
|
|
1694
|
+
});
|
|
1695
|
+
try {
|
|
1696
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
|
|
1697
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1698
|
+
responseObject: {},
|
|
1699
|
+
responseHeaders: [
|
|
1700
|
+
{
|
|
1701
|
+
value: response.headers.get("etag"),
|
|
1702
|
+
key: "etag",
|
|
1703
|
+
dataType: "string"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
value: response.headers.get("opc-request-id"),
|
|
1707
|
+
key: "opcRequestId",
|
|
1708
|
+
dataType: "string"
|
|
1709
|
+
}
|
|
1710
|
+
]
|
|
1711
|
+
});
|
|
1712
|
+
return sdkResponse;
|
|
1713
|
+
}
|
|
1714
|
+
catch (err) {
|
|
1715
|
+
throw err;
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
* Creates model defined metadata artifact for specified model.
|
|
1721
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1722
|
+
* @param CreateModelDefinedMetadatumArtifactRequest
|
|
1723
|
+
* @return CreateModelDefinedMetadatumArtifactResponse
|
|
1724
|
+
* @throws OciError when an error occurs
|
|
1725
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/CreateModelDefinedMetadatumArtifact.ts.html |here} to see how to use CreateModelDefinedMetadatumArtifact API.
|
|
1726
|
+
*/
|
|
1727
|
+
createModelDefinedMetadatumArtifact(createModelDefinedMetadatumArtifactRequest) {
|
|
1728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1729
|
+
if (this.logger)
|
|
1730
|
+
this.logger.debug("Calling operation DataScienceClient#createModelDefinedMetadatumArtifact.");
|
|
1731
|
+
const operationName = "createModelDefinedMetadatumArtifact";
|
|
1732
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/CreateModelDefinedMetadatumArtifact";
|
|
1733
|
+
const pathParams = {
|
|
1734
|
+
"{modelId}": createModelDefinedMetadatumArtifactRequest.modelId,
|
|
1735
|
+
"{metadatumKeyName}": createModelDefinedMetadatumArtifactRequest.metadatumKeyName
|
|
1736
|
+
};
|
|
1737
|
+
const queryParams = {};
|
|
1738
|
+
let headerParams = {
|
|
1739
|
+
"opc-request-id": createModelDefinedMetadatumArtifactRequest.opcRequestId,
|
|
1740
|
+
"content-length": createModelDefinedMetadatumArtifactRequest.contentLength,
|
|
1741
|
+
"content-disposition": createModelDefinedMetadatumArtifactRequest.contentDisposition,
|
|
1742
|
+
"if-match": createModelDefinedMetadatumArtifactRequest.ifMatch
|
|
1743
|
+
};
|
|
1744
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1745
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createModelDefinedMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
1746
|
+
if (this.logger)
|
|
1747
|
+
retrier.logger = this.logger;
|
|
1748
|
+
const request = yield oci_common_2.composeRequest({
|
|
1749
|
+
baseEndpoint: this._endpoint,
|
|
1750
|
+
defaultHeaders: this._defaultHeaders,
|
|
1751
|
+
path: "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact",
|
|
1752
|
+
method: "POST",
|
|
1753
|
+
bodyContent: createModelDefinedMetadatumArtifactRequest.modelDefinedMetadatumArtifact,
|
|
1754
|
+
pathParams: pathParams,
|
|
1755
|
+
headerParams: headerParams,
|
|
1756
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
1757
|
+
queryParams: queryParams
|
|
1758
|
+
});
|
|
1759
|
+
try {
|
|
1760
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
|
|
1761
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1762
|
+
responseObject: {},
|
|
1763
|
+
responseHeaders: [
|
|
1764
|
+
{
|
|
1765
|
+
value: response.headers.get("etag"),
|
|
1766
|
+
key: "etag",
|
|
1767
|
+
dataType: "string"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
value: response.headers.get("opc-request-id"),
|
|
1771
|
+
key: "opcRequestId",
|
|
1772
|
+
dataType: "string"
|
|
1773
|
+
}
|
|
1774
|
+
]
|
|
1775
|
+
});
|
|
1776
|
+
return sdkResponse;
|
|
1777
|
+
}
|
|
1778
|
+
catch (err) {
|
|
1779
|
+
throw err;
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1655
1783
|
/**
|
|
1656
1784
|
* Creates a new model deployment.
|
|
1657
1785
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -2740,6 +2868,118 @@ class DataScienceClient {
|
|
|
2740
2868
|
}
|
|
2741
2869
|
});
|
|
2742
2870
|
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Deletes model custom metadata artifact for specified model metadata key.
|
|
2873
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2874
|
+
* @param DeleteModelCustomMetadatumArtifactRequest
|
|
2875
|
+
* @return DeleteModelCustomMetadatumArtifactResponse
|
|
2876
|
+
* @throws OciError when an error occurs
|
|
2877
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteModelCustomMetadatumArtifact.ts.html |here} to see how to use DeleteModelCustomMetadatumArtifact API.
|
|
2878
|
+
*/
|
|
2879
|
+
deleteModelCustomMetadatumArtifact(deleteModelCustomMetadatumArtifactRequest) {
|
|
2880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2881
|
+
if (this.logger)
|
|
2882
|
+
this.logger.debug("Calling operation DataScienceClient#deleteModelCustomMetadatumArtifact.");
|
|
2883
|
+
const operationName = "deleteModelCustomMetadatumArtifact";
|
|
2884
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/DeleteModelCustomMetadatumArtifact";
|
|
2885
|
+
const pathParams = {
|
|
2886
|
+
"{modelId}": deleteModelCustomMetadatumArtifactRequest.modelId,
|
|
2887
|
+
"{metadatumKeyName}": deleteModelCustomMetadatumArtifactRequest.metadatumKeyName
|
|
2888
|
+
};
|
|
2889
|
+
const queryParams = {};
|
|
2890
|
+
let headerParams = {
|
|
2891
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2892
|
+
"opc-request-id": deleteModelCustomMetadatumArtifactRequest.opcRequestId,
|
|
2893
|
+
"if-match": deleteModelCustomMetadatumArtifactRequest.ifMatch
|
|
2894
|
+
};
|
|
2895
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2896
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelCustomMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
2897
|
+
if (this.logger)
|
|
2898
|
+
retrier.logger = this.logger;
|
|
2899
|
+
const request = yield oci_common_2.composeRequest({
|
|
2900
|
+
baseEndpoint: this._endpoint,
|
|
2901
|
+
defaultHeaders: this._defaultHeaders,
|
|
2902
|
+
path: "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact",
|
|
2903
|
+
method: "DELETE",
|
|
2904
|
+
pathParams: pathParams,
|
|
2905
|
+
headerParams: headerParams,
|
|
2906
|
+
queryParams: queryParams
|
|
2907
|
+
});
|
|
2908
|
+
try {
|
|
2909
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2910
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2911
|
+
responseObject: {},
|
|
2912
|
+
responseHeaders: [
|
|
2913
|
+
{
|
|
2914
|
+
value: response.headers.get("opc-request-id"),
|
|
2915
|
+
key: "opcRequestId",
|
|
2916
|
+
dataType: "string"
|
|
2917
|
+
}
|
|
2918
|
+
]
|
|
2919
|
+
});
|
|
2920
|
+
return sdkResponse;
|
|
2921
|
+
}
|
|
2922
|
+
catch (err) {
|
|
2923
|
+
throw err;
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
}
|
|
2927
|
+
/**
|
|
2928
|
+
* Deletes model defined metadata artifact for specified model metadata key.
|
|
2929
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2930
|
+
* @param DeleteModelDefinedMetadatumArtifactRequest
|
|
2931
|
+
* @return DeleteModelDefinedMetadatumArtifactResponse
|
|
2932
|
+
* @throws OciError when an error occurs
|
|
2933
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/DeleteModelDefinedMetadatumArtifact.ts.html |here} to see how to use DeleteModelDefinedMetadatumArtifact API.
|
|
2934
|
+
*/
|
|
2935
|
+
deleteModelDefinedMetadatumArtifact(deleteModelDefinedMetadatumArtifactRequest) {
|
|
2936
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2937
|
+
if (this.logger)
|
|
2938
|
+
this.logger.debug("Calling operation DataScienceClient#deleteModelDefinedMetadatumArtifact.");
|
|
2939
|
+
const operationName = "deleteModelDefinedMetadatumArtifact";
|
|
2940
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/DeleteModelDefinedMetadatumArtifact";
|
|
2941
|
+
const pathParams = {
|
|
2942
|
+
"{modelId}": deleteModelDefinedMetadatumArtifactRequest.modelId,
|
|
2943
|
+
"{metadatumKeyName}": deleteModelDefinedMetadatumArtifactRequest.metadatumKeyName
|
|
2944
|
+
};
|
|
2945
|
+
const queryParams = {};
|
|
2946
|
+
let headerParams = {
|
|
2947
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2948
|
+
"opc-request-id": deleteModelDefinedMetadatumArtifactRequest.opcRequestId,
|
|
2949
|
+
"if-match": deleteModelDefinedMetadatumArtifactRequest.ifMatch
|
|
2950
|
+
};
|
|
2951
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2952
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteModelDefinedMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
2953
|
+
if (this.logger)
|
|
2954
|
+
retrier.logger = this.logger;
|
|
2955
|
+
const request = yield oci_common_2.composeRequest({
|
|
2956
|
+
baseEndpoint: this._endpoint,
|
|
2957
|
+
defaultHeaders: this._defaultHeaders,
|
|
2958
|
+
path: "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact",
|
|
2959
|
+
method: "DELETE",
|
|
2960
|
+
pathParams: pathParams,
|
|
2961
|
+
headerParams: headerParams,
|
|
2962
|
+
queryParams: queryParams
|
|
2963
|
+
});
|
|
2964
|
+
try {
|
|
2965
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2966
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2967
|
+
responseObject: {},
|
|
2968
|
+
responseHeaders: [
|
|
2969
|
+
{
|
|
2970
|
+
value: response.headers.get("opc-request-id"),
|
|
2971
|
+
key: "opcRequestId",
|
|
2972
|
+
dataType: "string"
|
|
2973
|
+
}
|
|
2974
|
+
]
|
|
2975
|
+
});
|
|
2976
|
+
return sdkResponse;
|
|
2977
|
+
}
|
|
2978
|
+
catch (err) {
|
|
2979
|
+
throw err;
|
|
2980
|
+
}
|
|
2981
|
+
});
|
|
2982
|
+
}
|
|
2743
2983
|
/**
|
|
2744
2984
|
* Deletes the specified model deployment. Any unsaved work in this model deployment is lost.
|
|
2745
2985
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -3643,6 +3883,174 @@ class DataScienceClient {
|
|
|
3643
3883
|
}
|
|
3644
3884
|
});
|
|
3645
3885
|
}
|
|
3886
|
+
/**
|
|
3887
|
+
* Downloads model custom metadata artifact content for specified model metadata key.
|
|
3888
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3889
|
+
* @param GetModelCustomMetadatumArtifactContentRequest
|
|
3890
|
+
* @return GetModelCustomMetadatumArtifactContentResponse
|
|
3891
|
+
* @throws OciError when an error occurs
|
|
3892
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelCustomMetadatumArtifactContent.ts.html |here} to see how to use GetModelCustomMetadatumArtifactContent API.
|
|
3893
|
+
*/
|
|
3894
|
+
getModelCustomMetadatumArtifactContent(getModelCustomMetadatumArtifactContentRequest) {
|
|
3895
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3896
|
+
if (this.logger)
|
|
3897
|
+
this.logger.debug("Calling operation DataScienceClient#getModelCustomMetadatumArtifactContent.");
|
|
3898
|
+
const operationName = "getModelCustomMetadatumArtifactContent";
|
|
3899
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/GetModelCustomMetadatumArtifactContent";
|
|
3900
|
+
const pathParams = {
|
|
3901
|
+
"{modelId}": getModelCustomMetadatumArtifactContentRequest.modelId,
|
|
3902
|
+
"{metadatumKeyName}": getModelCustomMetadatumArtifactContentRequest.metadatumKeyName
|
|
3903
|
+
};
|
|
3904
|
+
const queryParams = {};
|
|
3905
|
+
let headerParams = {
|
|
3906
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3907
|
+
"opc-request-id": getModelCustomMetadatumArtifactContentRequest.opcRequestId,
|
|
3908
|
+
"range": getModelCustomMetadatumArtifactContentRequest.range
|
|
3909
|
+
};
|
|
3910
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3911
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelCustomMetadatumArtifactContentRequest.retryConfiguration, specRetryConfiguration);
|
|
3912
|
+
if (this.logger)
|
|
3913
|
+
retrier.logger = this.logger;
|
|
3914
|
+
const request = yield oci_common_2.composeRequest({
|
|
3915
|
+
baseEndpoint: this._endpoint,
|
|
3916
|
+
defaultHeaders: this._defaultHeaders,
|
|
3917
|
+
path: "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact/content",
|
|
3918
|
+
method: "GET",
|
|
3919
|
+
pathParams: pathParams,
|
|
3920
|
+
headerParams: headerParams,
|
|
3921
|
+
queryParams: queryParams
|
|
3922
|
+
});
|
|
3923
|
+
try {
|
|
3924
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3925
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
3926
|
+
responseObject: {},
|
|
3927
|
+
body: response.body,
|
|
3928
|
+
bodyKey: "value",
|
|
3929
|
+
bodyModel: "string",
|
|
3930
|
+
responseHeaders: [
|
|
3931
|
+
{
|
|
3932
|
+
value: response.headers.get("etag"),
|
|
3933
|
+
key: "etag",
|
|
3934
|
+
dataType: "string"
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
value: response.headers.get("opc-request-id"),
|
|
3938
|
+
key: "opcRequestId",
|
|
3939
|
+
dataType: "string"
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
value: response.headers.get("content-length"),
|
|
3943
|
+
key: "contentLength",
|
|
3944
|
+
dataType: "number"
|
|
3945
|
+
},
|
|
3946
|
+
{
|
|
3947
|
+
value: response.headers.get("content-disposition"),
|
|
3948
|
+
key: "contentDisposition",
|
|
3949
|
+
dataType: "string"
|
|
3950
|
+
},
|
|
3951
|
+
{
|
|
3952
|
+
value: response.headers.get("content-md5"),
|
|
3953
|
+
key: "contentMd5",
|
|
3954
|
+
dataType: "string"
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
value: response.headers.get("last-modified"),
|
|
3958
|
+
key: "lastModified",
|
|
3959
|
+
dataType: "Date"
|
|
3960
|
+
}
|
|
3961
|
+
]
|
|
3962
|
+
});
|
|
3963
|
+
return sdkResponse;
|
|
3964
|
+
}
|
|
3965
|
+
catch (err) {
|
|
3966
|
+
throw err;
|
|
3967
|
+
}
|
|
3968
|
+
});
|
|
3969
|
+
}
|
|
3970
|
+
/**
|
|
3971
|
+
* Downloads model defined metadata artifact content for specified model metadata key.
|
|
3972
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3973
|
+
* @param GetModelDefinedMetadatumArtifactContentRequest
|
|
3974
|
+
* @return GetModelDefinedMetadatumArtifactContentResponse
|
|
3975
|
+
* @throws OciError when an error occurs
|
|
3976
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetModelDefinedMetadatumArtifactContent.ts.html |here} to see how to use GetModelDefinedMetadatumArtifactContent API.
|
|
3977
|
+
*/
|
|
3978
|
+
getModelDefinedMetadatumArtifactContent(getModelDefinedMetadatumArtifactContentRequest) {
|
|
3979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3980
|
+
if (this.logger)
|
|
3981
|
+
this.logger.debug("Calling operation DataScienceClient#getModelDefinedMetadatumArtifactContent.");
|
|
3982
|
+
const operationName = "getModelDefinedMetadatumArtifactContent";
|
|
3983
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/GetModelDefinedMetadatumArtifactContent";
|
|
3984
|
+
const pathParams = {
|
|
3985
|
+
"{modelId}": getModelDefinedMetadatumArtifactContentRequest.modelId,
|
|
3986
|
+
"{metadatumKeyName}": getModelDefinedMetadatumArtifactContentRequest.metadatumKeyName
|
|
3987
|
+
};
|
|
3988
|
+
const queryParams = {};
|
|
3989
|
+
let headerParams = {
|
|
3990
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3991
|
+
"opc-request-id": getModelDefinedMetadatumArtifactContentRequest.opcRequestId,
|
|
3992
|
+
"range": getModelDefinedMetadatumArtifactContentRequest.range
|
|
3993
|
+
};
|
|
3994
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3995
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelDefinedMetadatumArtifactContentRequest.retryConfiguration, specRetryConfiguration);
|
|
3996
|
+
if (this.logger)
|
|
3997
|
+
retrier.logger = this.logger;
|
|
3998
|
+
const request = yield oci_common_2.composeRequest({
|
|
3999
|
+
baseEndpoint: this._endpoint,
|
|
4000
|
+
defaultHeaders: this._defaultHeaders,
|
|
4001
|
+
path: "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact/content",
|
|
4002
|
+
method: "GET",
|
|
4003
|
+
pathParams: pathParams,
|
|
4004
|
+
headerParams: headerParams,
|
|
4005
|
+
queryParams: queryParams
|
|
4006
|
+
});
|
|
4007
|
+
try {
|
|
4008
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4009
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4010
|
+
responseObject: {},
|
|
4011
|
+
body: response.body,
|
|
4012
|
+
bodyKey: "value",
|
|
4013
|
+
bodyModel: "string",
|
|
4014
|
+
responseHeaders: [
|
|
4015
|
+
{
|
|
4016
|
+
value: response.headers.get("etag"),
|
|
4017
|
+
key: "etag",
|
|
4018
|
+
dataType: "string"
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
value: response.headers.get("opc-request-id"),
|
|
4022
|
+
key: "opcRequestId",
|
|
4023
|
+
dataType: "string"
|
|
4024
|
+
},
|
|
4025
|
+
{
|
|
4026
|
+
value: response.headers.get("content-length"),
|
|
4027
|
+
key: "contentLength",
|
|
4028
|
+
dataType: "number"
|
|
4029
|
+
},
|
|
4030
|
+
{
|
|
4031
|
+
value: response.headers.get("content-disposition"),
|
|
4032
|
+
key: "contentDisposition",
|
|
4033
|
+
dataType: "string"
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
value: response.headers.get("content-md5"),
|
|
4037
|
+
key: "contentMd5",
|
|
4038
|
+
dataType: "string"
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
value: response.headers.get("last-modified"),
|
|
4042
|
+
key: "lastModified",
|
|
4043
|
+
dataType: "Date"
|
|
4044
|
+
}
|
|
4045
|
+
]
|
|
4046
|
+
});
|
|
4047
|
+
return sdkResponse;
|
|
4048
|
+
}
|
|
4049
|
+
catch (err) {
|
|
4050
|
+
throw err;
|
|
4051
|
+
}
|
|
4052
|
+
});
|
|
4053
|
+
}
|
|
3646
4054
|
/**
|
|
3647
4055
|
* Retrieves the model deployment for the specified `modelDeploymentId`.
|
|
3648
4056
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -4158,39 +4566,186 @@ class DataScienceClient {
|
|
|
4158
4566
|
getStepArtifactContent(getStepArtifactContentRequest) {
|
|
4159
4567
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4160
4568
|
if (this.logger)
|
|
4161
|
-
this.logger.debug("Calling operation DataScienceClient#getStepArtifactContent.");
|
|
4162
|
-
const operationName = "getStepArtifactContent";
|
|
4163
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/GetStepArtifactContent";
|
|
4569
|
+
this.logger.debug("Calling operation DataScienceClient#getStepArtifactContent.");
|
|
4570
|
+
const operationName = "getStepArtifactContent";
|
|
4571
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Pipeline/GetStepArtifactContent";
|
|
4572
|
+
const pathParams = {
|
|
4573
|
+
"{pipelineId}": getStepArtifactContentRequest.pipelineId,
|
|
4574
|
+
"{stepName}": getStepArtifactContentRequest.stepName
|
|
4575
|
+
};
|
|
4576
|
+
const queryParams = {};
|
|
4577
|
+
let headerParams = {
|
|
4578
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4579
|
+
"opc-request-id": getStepArtifactContentRequest.opcRequestId,
|
|
4580
|
+
"range": getStepArtifactContentRequest.range
|
|
4581
|
+
};
|
|
4582
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4583
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStepArtifactContentRequest.retryConfiguration, specRetryConfiguration);
|
|
4584
|
+
if (this.logger)
|
|
4585
|
+
retrier.logger = this.logger;
|
|
4586
|
+
const request = yield oci_common_2.composeRequest({
|
|
4587
|
+
baseEndpoint: this._endpoint,
|
|
4588
|
+
defaultHeaders: this._defaultHeaders,
|
|
4589
|
+
path: "/pipelines/{pipelineId}/steps/{stepName}/artifact/content",
|
|
4590
|
+
method: "GET",
|
|
4591
|
+
pathParams: pathParams,
|
|
4592
|
+
headerParams: headerParams,
|
|
4593
|
+
queryParams: queryParams
|
|
4594
|
+
});
|
|
4595
|
+
try {
|
|
4596
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
|
|
4597
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4598
|
+
responseObject: {},
|
|
4599
|
+
body: response.body,
|
|
4600
|
+
bodyKey: "value",
|
|
4601
|
+
bodyModel: "string",
|
|
4602
|
+
responseHeaders: [
|
|
4603
|
+
{
|
|
4604
|
+
value: response.headers.get("etag"),
|
|
4605
|
+
key: "etag",
|
|
4606
|
+
dataType: "string"
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
value: response.headers.get("opc-request-id"),
|
|
4610
|
+
key: "opcRequestId",
|
|
4611
|
+
dataType: "string"
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
value: response.headers.get("content-length"),
|
|
4615
|
+
key: "contentLength",
|
|
4616
|
+
dataType: "number"
|
|
4617
|
+
},
|
|
4618
|
+
{
|
|
4619
|
+
value: response.headers.get("content-md5"),
|
|
4620
|
+
key: "contentMd5",
|
|
4621
|
+
dataType: "string"
|
|
4622
|
+
},
|
|
4623
|
+
{
|
|
4624
|
+
value: response.headers.get("last-modified"),
|
|
4625
|
+
key: "lastModified",
|
|
4626
|
+
dataType: "Date"
|
|
4627
|
+
},
|
|
4628
|
+
{
|
|
4629
|
+
value: response.headers.get("content-disposition"),
|
|
4630
|
+
key: "contentDisposition",
|
|
4631
|
+
dataType: "string"
|
|
4632
|
+
}
|
|
4633
|
+
]
|
|
4634
|
+
});
|
|
4635
|
+
return sdkResponse;
|
|
4636
|
+
}
|
|
4637
|
+
catch (err) {
|
|
4638
|
+
throw err;
|
|
4639
|
+
}
|
|
4640
|
+
});
|
|
4641
|
+
}
|
|
4642
|
+
/**
|
|
4643
|
+
* Gets the specified work request's information.
|
|
4644
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4645
|
+
* @param GetWorkRequestRequest
|
|
4646
|
+
* @return GetWorkRequestResponse
|
|
4647
|
+
* @throws OciError when an error occurs
|
|
4648
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
4649
|
+
*/
|
|
4650
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
4651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4652
|
+
if (this.logger)
|
|
4653
|
+
this.logger.debug("Calling operation DataScienceClient#getWorkRequest.");
|
|
4654
|
+
const operationName = "getWorkRequest";
|
|
4655
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/WorkRequest/GetWorkRequest";
|
|
4656
|
+
const pathParams = {
|
|
4657
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
4658
|
+
};
|
|
4659
|
+
const queryParams = {};
|
|
4660
|
+
let headerParams = {
|
|
4661
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4662
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
4663
|
+
};
|
|
4664
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4665
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
4666
|
+
if (this.logger)
|
|
4667
|
+
retrier.logger = this.logger;
|
|
4668
|
+
const request = yield oci_common_2.composeRequest({
|
|
4669
|
+
baseEndpoint: this._endpoint,
|
|
4670
|
+
defaultHeaders: this._defaultHeaders,
|
|
4671
|
+
path: "/workRequests/{workRequestId}",
|
|
4672
|
+
method: "GET",
|
|
4673
|
+
pathParams: pathParams,
|
|
4674
|
+
headerParams: headerParams,
|
|
4675
|
+
queryParams: queryParams
|
|
4676
|
+
});
|
|
4677
|
+
try {
|
|
4678
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4679
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4680
|
+
responseObject: {},
|
|
4681
|
+
body: yield response.json(),
|
|
4682
|
+
bodyKey: "workRequest",
|
|
4683
|
+
bodyModel: model.WorkRequest,
|
|
4684
|
+
type: "model.WorkRequest",
|
|
4685
|
+
responseHeaders: [
|
|
4686
|
+
{
|
|
4687
|
+
value: response.headers.get("etag"),
|
|
4688
|
+
key: "etag",
|
|
4689
|
+
dataType: "string"
|
|
4690
|
+
},
|
|
4691
|
+
{
|
|
4692
|
+
value: response.headers.get("opc-request-id"),
|
|
4693
|
+
key: "opcRequestId",
|
|
4694
|
+
dataType: "string"
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
value: response.headers.get("retry-after"),
|
|
4698
|
+
key: "retryAfter",
|
|
4699
|
+
dataType: "number"
|
|
4700
|
+
}
|
|
4701
|
+
]
|
|
4702
|
+
});
|
|
4703
|
+
return sdkResponse;
|
|
4704
|
+
}
|
|
4705
|
+
catch (err) {
|
|
4706
|
+
throw err;
|
|
4707
|
+
}
|
|
4708
|
+
});
|
|
4709
|
+
}
|
|
4710
|
+
/**
|
|
4711
|
+
* Gets job artifact metadata.
|
|
4712
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4713
|
+
* @param HeadJobArtifactRequest
|
|
4714
|
+
* @return HeadJobArtifactResponse
|
|
4715
|
+
* @throws OciError when an error occurs
|
|
4716
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadJobArtifact.ts.html |here} to see how to use HeadJobArtifact API.
|
|
4717
|
+
*/
|
|
4718
|
+
headJobArtifact(headJobArtifactRequest) {
|
|
4719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4720
|
+
if (this.logger)
|
|
4721
|
+
this.logger.debug("Calling operation DataScienceClient#headJobArtifact.");
|
|
4722
|
+
const operationName = "headJobArtifact";
|
|
4723
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Job/HeadJobArtifact";
|
|
4164
4724
|
const pathParams = {
|
|
4165
|
-
"{
|
|
4166
|
-
"{stepName}": getStepArtifactContentRequest.stepName
|
|
4725
|
+
"{jobId}": headJobArtifactRequest.jobId
|
|
4167
4726
|
};
|
|
4168
4727
|
const queryParams = {};
|
|
4169
4728
|
let headerParams = {
|
|
4170
4729
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4171
|
-
"opc-request-id":
|
|
4172
|
-
"range": getStepArtifactContentRequest.range
|
|
4730
|
+
"opc-request-id": headJobArtifactRequest.opcRequestId
|
|
4173
4731
|
};
|
|
4174
4732
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4175
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4733
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headJobArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
4176
4734
|
if (this.logger)
|
|
4177
4735
|
retrier.logger = this.logger;
|
|
4178
4736
|
const request = yield oci_common_2.composeRequest({
|
|
4179
4737
|
baseEndpoint: this._endpoint,
|
|
4180
4738
|
defaultHeaders: this._defaultHeaders,
|
|
4181
|
-
path: "/
|
|
4182
|
-
method: "
|
|
4739
|
+
path: "/jobs/{jobId}/artifact/content",
|
|
4740
|
+
method: "HEAD",
|
|
4183
4741
|
pathParams: pathParams,
|
|
4184
4742
|
headerParams: headerParams,
|
|
4185
4743
|
queryParams: queryParams
|
|
4186
4744
|
});
|
|
4187
4745
|
try {
|
|
4188
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink
|
|
4746
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4189
4747
|
const sdkResponse = oci_common_2.composeResponse({
|
|
4190
4748
|
responseObject: {},
|
|
4191
|
-
body: response.body,
|
|
4192
|
-
bodyKey: "value",
|
|
4193
|
-
bodyModel: "string",
|
|
4194
4749
|
responseHeaders: [
|
|
4195
4750
|
{
|
|
4196
4751
|
value: response.headers.get("etag"),
|
|
@@ -4212,15 +4767,15 @@ class DataScienceClient {
|
|
|
4212
4767
|
key: "contentMd5",
|
|
4213
4768
|
dataType: "string"
|
|
4214
4769
|
},
|
|
4215
|
-
{
|
|
4216
|
-
value: response.headers.get("last-modified"),
|
|
4217
|
-
key: "lastModified",
|
|
4218
|
-
dataType: "Date"
|
|
4219
|
-
},
|
|
4220
4770
|
{
|
|
4221
4771
|
value: response.headers.get("content-disposition"),
|
|
4222
4772
|
key: "contentDisposition",
|
|
4223
4773
|
dataType: "string"
|
|
4774
|
+
},
|
|
4775
|
+
{
|
|
4776
|
+
value: response.headers.get("last-modified"),
|
|
4777
|
+
key: "lastModified",
|
|
4778
|
+
dataType: "Date"
|
|
4224
4779
|
}
|
|
4225
4780
|
]
|
|
4226
4781
|
});
|
|
@@ -4232,36 +4787,36 @@ class DataScienceClient {
|
|
|
4232
4787
|
});
|
|
4233
4788
|
}
|
|
4234
4789
|
/**
|
|
4235
|
-
* Gets
|
|
4790
|
+
* Gets model artifact metadata for specified model.
|
|
4236
4791
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4237
|
-
* @param
|
|
4238
|
-
* @return
|
|
4792
|
+
* @param HeadModelArtifactRequest
|
|
4793
|
+
* @return HeadModelArtifactResponse
|
|
4239
4794
|
* @throws OciError when an error occurs
|
|
4240
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/
|
|
4795
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadModelArtifact.ts.html |here} to see how to use HeadModelArtifact API.
|
|
4241
4796
|
*/
|
|
4242
|
-
|
|
4797
|
+
headModelArtifact(headModelArtifactRequest) {
|
|
4243
4798
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4244
4799
|
if (this.logger)
|
|
4245
|
-
this.logger.debug("Calling operation DataScienceClient#
|
|
4246
|
-
const operationName = "
|
|
4247
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/
|
|
4800
|
+
this.logger.debug("Calling operation DataScienceClient#headModelArtifact.");
|
|
4801
|
+
const operationName = "headModelArtifact";
|
|
4802
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/HeadModelArtifact";
|
|
4248
4803
|
const pathParams = {
|
|
4249
|
-
"{
|
|
4804
|
+
"{modelId}": headModelArtifactRequest.modelId
|
|
4250
4805
|
};
|
|
4251
4806
|
const queryParams = {};
|
|
4252
4807
|
let headerParams = {
|
|
4253
4808
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4254
|
-
"opc-request-id":
|
|
4809
|
+
"opc-request-id": headModelArtifactRequest.opcRequestId
|
|
4255
4810
|
};
|
|
4256
4811
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4257
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4812
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headModelArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
4258
4813
|
if (this.logger)
|
|
4259
4814
|
retrier.logger = this.logger;
|
|
4260
4815
|
const request = yield oci_common_2.composeRequest({
|
|
4261
4816
|
baseEndpoint: this._endpoint,
|
|
4262
4817
|
defaultHeaders: this._defaultHeaders,
|
|
4263
|
-
path: "/
|
|
4264
|
-
method: "
|
|
4818
|
+
path: "/models/{modelId}/artifact/content",
|
|
4819
|
+
method: "HEAD",
|
|
4265
4820
|
pathParams: pathParams,
|
|
4266
4821
|
headerParams: headerParams,
|
|
4267
4822
|
queryParams: queryParams
|
|
@@ -4270,10 +4825,6 @@ class DataScienceClient {
|
|
|
4270
4825
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4271
4826
|
const sdkResponse = oci_common_2.composeResponse({
|
|
4272
4827
|
responseObject: {},
|
|
4273
|
-
body: yield response.json(),
|
|
4274
|
-
bodyKey: "workRequest",
|
|
4275
|
-
bodyModel: model.WorkRequest,
|
|
4276
|
-
type: "model.WorkRequest",
|
|
4277
4828
|
responseHeaders: [
|
|
4278
4829
|
{
|
|
4279
4830
|
value: response.headers.get("etag"),
|
|
@@ -4286,9 +4837,24 @@ class DataScienceClient {
|
|
|
4286
4837
|
dataType: "string"
|
|
4287
4838
|
},
|
|
4288
4839
|
{
|
|
4289
|
-
value: response.headers.get("
|
|
4290
|
-
key: "
|
|
4840
|
+
value: response.headers.get("content-length"),
|
|
4841
|
+
key: "contentLength",
|
|
4291
4842
|
dataType: "number"
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
value: response.headers.get("content-disposition"),
|
|
4846
|
+
key: "contentDisposition",
|
|
4847
|
+
dataType: "string"
|
|
4848
|
+
},
|
|
4849
|
+
{
|
|
4850
|
+
value: response.headers.get("content-md5"),
|
|
4851
|
+
key: "contentMd5",
|
|
4852
|
+
dataType: "string"
|
|
4853
|
+
},
|
|
4854
|
+
{
|
|
4855
|
+
value: response.headers.get("last-modified"),
|
|
4856
|
+
key: "lastModified",
|
|
4857
|
+
dataType: "Date"
|
|
4292
4858
|
}
|
|
4293
4859
|
]
|
|
4294
4860
|
});
|
|
@@ -4300,35 +4866,36 @@ class DataScienceClient {
|
|
|
4300
4866
|
});
|
|
4301
4867
|
}
|
|
4302
4868
|
/**
|
|
4303
|
-
* Gets
|
|
4869
|
+
* Gets custom metadata artifact metadata for specified model metadata key.
|
|
4304
4870
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4305
|
-
* @param
|
|
4306
|
-
* @return
|
|
4871
|
+
* @param HeadModelCustomMetadatumArtifactRequest
|
|
4872
|
+
* @return HeadModelCustomMetadatumArtifactResponse
|
|
4307
4873
|
* @throws OciError when an error occurs
|
|
4308
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/
|
|
4874
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadModelCustomMetadatumArtifact.ts.html |here} to see how to use HeadModelCustomMetadatumArtifact API.
|
|
4309
4875
|
*/
|
|
4310
|
-
|
|
4876
|
+
headModelCustomMetadatumArtifact(headModelCustomMetadatumArtifactRequest) {
|
|
4311
4877
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4312
4878
|
if (this.logger)
|
|
4313
|
-
this.logger.debug("Calling operation DataScienceClient#
|
|
4314
|
-
const operationName = "
|
|
4315
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/
|
|
4879
|
+
this.logger.debug("Calling operation DataScienceClient#headModelCustomMetadatumArtifact.");
|
|
4880
|
+
const operationName = "headModelCustomMetadatumArtifact";
|
|
4881
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/HeadModelCustomMetadatumArtifact";
|
|
4316
4882
|
const pathParams = {
|
|
4317
|
-
"{
|
|
4883
|
+
"{modelId}": headModelCustomMetadatumArtifactRequest.modelId,
|
|
4884
|
+
"{metadatumKeyName}": headModelCustomMetadatumArtifactRequest.metadatumKeyName
|
|
4318
4885
|
};
|
|
4319
4886
|
const queryParams = {};
|
|
4320
4887
|
let headerParams = {
|
|
4321
4888
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4322
|
-
"opc-request-id":
|
|
4889
|
+
"opc-request-id": headModelCustomMetadatumArtifactRequest.opcRequestId
|
|
4323
4890
|
};
|
|
4324
4891
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4325
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4892
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headModelCustomMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
4326
4893
|
if (this.logger)
|
|
4327
4894
|
retrier.logger = this.logger;
|
|
4328
4895
|
const request = yield oci_common_2.composeRequest({
|
|
4329
4896
|
baseEndpoint: this._endpoint,
|
|
4330
4897
|
defaultHeaders: this._defaultHeaders,
|
|
4331
|
-
path: "/
|
|
4898
|
+
path: "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact/content",
|
|
4332
4899
|
method: "HEAD",
|
|
4333
4900
|
pathParams: pathParams,
|
|
4334
4901
|
headerParams: headerParams,
|
|
@@ -4355,13 +4922,13 @@ class DataScienceClient {
|
|
|
4355
4922
|
dataType: "number"
|
|
4356
4923
|
},
|
|
4357
4924
|
{
|
|
4358
|
-
value: response.headers.get("content-
|
|
4359
|
-
key: "
|
|
4925
|
+
value: response.headers.get("content-disposition"),
|
|
4926
|
+
key: "contentDisposition",
|
|
4360
4927
|
dataType: "string"
|
|
4361
4928
|
},
|
|
4362
4929
|
{
|
|
4363
|
-
value: response.headers.get("content-
|
|
4364
|
-
key: "
|
|
4930
|
+
value: response.headers.get("content-md5"),
|
|
4931
|
+
key: "contentMd5",
|
|
4365
4932
|
dataType: "string"
|
|
4366
4933
|
},
|
|
4367
4934
|
{
|
|
@@ -4379,35 +4946,36 @@ class DataScienceClient {
|
|
|
4379
4946
|
});
|
|
4380
4947
|
}
|
|
4381
4948
|
/**
|
|
4382
|
-
* Gets
|
|
4949
|
+
* Gets defined metadata artifact metadata for specified model metadata key.
|
|
4383
4950
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4384
|
-
* @param
|
|
4385
|
-
* @return
|
|
4951
|
+
* @param HeadModelDefinedMetadatumArtifactRequest
|
|
4952
|
+
* @return HeadModelDefinedMetadatumArtifactResponse
|
|
4386
4953
|
* @throws OciError when an error occurs
|
|
4387
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/
|
|
4954
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/HeadModelDefinedMetadatumArtifact.ts.html |here} to see how to use HeadModelDefinedMetadatumArtifact API.
|
|
4388
4955
|
*/
|
|
4389
|
-
|
|
4956
|
+
headModelDefinedMetadatumArtifact(headModelDefinedMetadatumArtifactRequest) {
|
|
4390
4957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4391
4958
|
if (this.logger)
|
|
4392
|
-
this.logger.debug("Calling operation DataScienceClient#
|
|
4393
|
-
const operationName = "
|
|
4394
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/
|
|
4959
|
+
this.logger.debug("Calling operation DataScienceClient#headModelDefinedMetadatumArtifact.");
|
|
4960
|
+
const operationName = "headModelDefinedMetadatumArtifact";
|
|
4961
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/HeadModelDefinedMetadatumArtifact";
|
|
4395
4962
|
const pathParams = {
|
|
4396
|
-
"{modelId}":
|
|
4963
|
+
"{modelId}": headModelDefinedMetadatumArtifactRequest.modelId,
|
|
4964
|
+
"{metadatumKeyName}": headModelDefinedMetadatumArtifactRequest.metadatumKeyName
|
|
4397
4965
|
};
|
|
4398
4966
|
const queryParams = {};
|
|
4399
4967
|
let headerParams = {
|
|
4400
4968
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4401
|
-
"opc-request-id":
|
|
4969
|
+
"opc-request-id": headModelDefinedMetadatumArtifactRequest.opcRequestId
|
|
4402
4970
|
};
|
|
4403
4971
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4404
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
4972
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headModelDefinedMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
4405
4973
|
if (this.logger)
|
|
4406
4974
|
retrier.logger = this.logger;
|
|
4407
4975
|
const request = yield oci_common_2.composeRequest({
|
|
4408
4976
|
baseEndpoint: this._endpoint,
|
|
4409
4977
|
defaultHeaders: this._defaultHeaders,
|
|
4410
|
-
path: "/models/{modelId}/artifact/content",
|
|
4978
|
+
path: "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact/content",
|
|
4411
4979
|
method: "HEAD",
|
|
4412
4980
|
pathParams: pathParams,
|
|
4413
4981
|
headerParams: headerParams,
|
|
@@ -5530,6 +6098,7 @@ class DataScienceClient {
|
|
|
5530
6098
|
const pathParams = {};
|
|
5531
6099
|
const queryParams = {
|
|
5532
6100
|
"compartmentId": listModelVersionSetsRequest.compartmentId,
|
|
6101
|
+
"category": listModelVersionSetsRequest.category,
|
|
5533
6102
|
"id": listModelVersionSetsRequest.id,
|
|
5534
6103
|
"projectId": listModelVersionSetsRequest.projectId,
|
|
5535
6104
|
"name": listModelVersionSetsRequest.name,
|
|
@@ -5649,6 +6218,7 @@ class DataScienceClient {
|
|
|
5649
6218
|
"compartmentId": listModelsRequest.compartmentId,
|
|
5650
6219
|
"modelVersionSetName": listModelsRequest.modelVersionSetName,
|
|
5651
6220
|
"versionLabel": listModelsRequest.versionLabel,
|
|
6221
|
+
"category": listModelsRequest.category,
|
|
5652
6222
|
"id": listModelsRequest.id,
|
|
5653
6223
|
"projectId": listModelsRequest.projectId,
|
|
5654
6224
|
"displayName": listModelsRequest.displayName,
|
|
@@ -6775,6 +7345,68 @@ class DataScienceClient {
|
|
|
6775
7345
|
listWorkRequestsResponseIterator(request) {
|
|
6776
7346
|
return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
|
|
6777
7347
|
}
|
|
7348
|
+
/**
|
|
7349
|
+
* Registers model artifact reference metadata
|
|
7350
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7351
|
+
* @param RegisterModelArtifactReferenceRequest
|
|
7352
|
+
* @return RegisterModelArtifactReferenceResponse
|
|
7353
|
+
* @throws OciError when an error occurs
|
|
7354
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/RegisterModelArtifactReference.ts.html |here} to see how to use RegisterModelArtifactReference API.
|
|
7355
|
+
*/
|
|
7356
|
+
registerModelArtifactReference(registerModelArtifactReferenceRequest) {
|
|
7357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7358
|
+
if (this.logger)
|
|
7359
|
+
this.logger.debug("Calling operation DataScienceClient#registerModelArtifactReference.");
|
|
7360
|
+
const operationName = "registerModelArtifactReference";
|
|
7361
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/RegisterModelArtifactReferenceDetails/RegisterModelArtifactReference";
|
|
7362
|
+
const pathParams = {
|
|
7363
|
+
"{modelId}": registerModelArtifactReferenceRequest.modelId
|
|
7364
|
+
};
|
|
7365
|
+
const queryParams = {};
|
|
7366
|
+
let headerParams = {
|
|
7367
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7368
|
+
"opc-request-id": registerModelArtifactReferenceRequest.opcRequestId,
|
|
7369
|
+
"opc-retry-token": registerModelArtifactReferenceRequest.opcRetryToken,
|
|
7370
|
+
"if-match": registerModelArtifactReferenceRequest.ifMatch
|
|
7371
|
+
};
|
|
7372
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7373
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, registerModelArtifactReferenceRequest.retryConfiguration, specRetryConfiguration);
|
|
7374
|
+
if (this.logger)
|
|
7375
|
+
retrier.logger = this.logger;
|
|
7376
|
+
const request = yield oci_common_2.composeRequest({
|
|
7377
|
+
baseEndpoint: this._endpoint,
|
|
7378
|
+
defaultHeaders: this._defaultHeaders,
|
|
7379
|
+
path: "/models/{modelId}/actions/registerArtifactReference",
|
|
7380
|
+
method: "POST",
|
|
7381
|
+
bodyContent: common.ObjectSerializer.serialize(registerModelArtifactReferenceRequest.registerModelArtifactReferenceDetails, "RegisterModelArtifactReferenceDetails", model.RegisterModelArtifactReferenceDetails.getJsonObj),
|
|
7382
|
+
pathParams: pathParams,
|
|
7383
|
+
headerParams: headerParams,
|
|
7384
|
+
queryParams: queryParams
|
|
7385
|
+
});
|
|
7386
|
+
try {
|
|
7387
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7388
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7389
|
+
responseObject: {},
|
|
7390
|
+
responseHeaders: [
|
|
7391
|
+
{
|
|
7392
|
+
value: response.headers.get("opc-request-id"),
|
|
7393
|
+
key: "opcRequestId",
|
|
7394
|
+
dataType: "string"
|
|
7395
|
+
},
|
|
7396
|
+
{
|
|
7397
|
+
value: response.headers.get("opc-work-request-id"),
|
|
7398
|
+
key: "opcWorkRequestId",
|
|
7399
|
+
dataType: "string"
|
|
7400
|
+
}
|
|
7401
|
+
]
|
|
7402
|
+
});
|
|
7403
|
+
return sdkResponse;
|
|
7404
|
+
}
|
|
7405
|
+
catch (err) {
|
|
7406
|
+
throw err;
|
|
7407
|
+
}
|
|
7408
|
+
});
|
|
7409
|
+
}
|
|
6778
7410
|
/**
|
|
6779
7411
|
* Restore archived model artifact
|
|
6780
7412
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -7101,6 +7733,134 @@ class DataScienceClient {
|
|
|
7101
7733
|
}
|
|
7102
7734
|
});
|
|
7103
7735
|
}
|
|
7736
|
+
/**
|
|
7737
|
+
* Updates model custom metadata artifact for specified model metadata key.
|
|
7738
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7739
|
+
* @param UpdateModelCustomMetadatumArtifactRequest
|
|
7740
|
+
* @return UpdateModelCustomMetadatumArtifactResponse
|
|
7741
|
+
* @throws OciError when an error occurs
|
|
7742
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/UpdateModelCustomMetadatumArtifact.ts.html |here} to see how to use UpdateModelCustomMetadatumArtifact API.
|
|
7743
|
+
*/
|
|
7744
|
+
updateModelCustomMetadatumArtifact(updateModelCustomMetadatumArtifactRequest) {
|
|
7745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7746
|
+
if (this.logger)
|
|
7747
|
+
this.logger.debug("Calling operation DataScienceClient#updateModelCustomMetadatumArtifact.");
|
|
7748
|
+
const operationName = "updateModelCustomMetadatumArtifact";
|
|
7749
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/UpdateModelCustomMetadatumArtifact";
|
|
7750
|
+
const pathParams = {
|
|
7751
|
+
"{modelId}": updateModelCustomMetadatumArtifactRequest.modelId,
|
|
7752
|
+
"{metadatumKeyName}": updateModelCustomMetadatumArtifactRequest.metadatumKeyName
|
|
7753
|
+
};
|
|
7754
|
+
const queryParams = {};
|
|
7755
|
+
let headerParams = {
|
|
7756
|
+
"opc-request-id": updateModelCustomMetadatumArtifactRequest.opcRequestId,
|
|
7757
|
+
"content-length": updateModelCustomMetadatumArtifactRequest.contentLength,
|
|
7758
|
+
"content-disposition": updateModelCustomMetadatumArtifactRequest.contentDisposition,
|
|
7759
|
+
"if-match": updateModelCustomMetadatumArtifactRequest.ifMatch
|
|
7760
|
+
};
|
|
7761
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7762
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelCustomMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
7763
|
+
if (this.logger)
|
|
7764
|
+
retrier.logger = this.logger;
|
|
7765
|
+
const request = yield oci_common_2.composeRequest({
|
|
7766
|
+
baseEndpoint: this._endpoint,
|
|
7767
|
+
defaultHeaders: this._defaultHeaders,
|
|
7768
|
+
path: "/models/{modelId}/customMetadata/{metadatumKeyName}/artifact",
|
|
7769
|
+
method: "PUT",
|
|
7770
|
+
bodyContent: updateModelCustomMetadatumArtifactRequest.modelCustomMetadatumArtifact,
|
|
7771
|
+
pathParams: pathParams,
|
|
7772
|
+
headerParams: headerParams,
|
|
7773
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
7774
|
+
queryParams: queryParams
|
|
7775
|
+
});
|
|
7776
|
+
try {
|
|
7777
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
|
|
7778
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7779
|
+
responseObject: {},
|
|
7780
|
+
responseHeaders: [
|
|
7781
|
+
{
|
|
7782
|
+
value: response.headers.get("etag"),
|
|
7783
|
+
key: "etag",
|
|
7784
|
+
dataType: "string"
|
|
7785
|
+
},
|
|
7786
|
+
{
|
|
7787
|
+
value: response.headers.get("opc-request-id"),
|
|
7788
|
+
key: "opcRequestId",
|
|
7789
|
+
dataType: "string"
|
|
7790
|
+
}
|
|
7791
|
+
]
|
|
7792
|
+
});
|
|
7793
|
+
return sdkResponse;
|
|
7794
|
+
}
|
|
7795
|
+
catch (err) {
|
|
7796
|
+
throw err;
|
|
7797
|
+
}
|
|
7798
|
+
});
|
|
7799
|
+
}
|
|
7800
|
+
/**
|
|
7801
|
+
* Updates model defined metadata artifact for specified model metadata key.
|
|
7802
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7803
|
+
* @param UpdateModelDefinedMetadatumArtifactRequest
|
|
7804
|
+
* @return UpdateModelDefinedMetadatumArtifactResponse
|
|
7805
|
+
* @throws OciError when an error occurs
|
|
7806
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/UpdateModelDefinedMetadatumArtifact.ts.html |here} to see how to use UpdateModelDefinedMetadatumArtifact API.
|
|
7807
|
+
*/
|
|
7808
|
+
updateModelDefinedMetadatumArtifact(updateModelDefinedMetadatumArtifactRequest) {
|
|
7809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7810
|
+
if (this.logger)
|
|
7811
|
+
this.logger.debug("Calling operation DataScienceClient#updateModelDefinedMetadatumArtifact.");
|
|
7812
|
+
const operationName = "updateModelDefinedMetadatumArtifact";
|
|
7813
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/UpdateModelDefinedMetadatumArtifact";
|
|
7814
|
+
const pathParams = {
|
|
7815
|
+
"{modelId}": updateModelDefinedMetadatumArtifactRequest.modelId,
|
|
7816
|
+
"{metadatumKeyName}": updateModelDefinedMetadatumArtifactRequest.metadatumKeyName
|
|
7817
|
+
};
|
|
7818
|
+
const queryParams = {};
|
|
7819
|
+
let headerParams = {
|
|
7820
|
+
"opc-request-id": updateModelDefinedMetadatumArtifactRequest.opcRequestId,
|
|
7821
|
+
"content-length": updateModelDefinedMetadatumArtifactRequest.contentLength,
|
|
7822
|
+
"content-disposition": updateModelDefinedMetadatumArtifactRequest.contentDisposition,
|
|
7823
|
+
"if-match": updateModelDefinedMetadatumArtifactRequest.ifMatch
|
|
7824
|
+
};
|
|
7825
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7826
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateModelDefinedMetadatumArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
7827
|
+
if (this.logger)
|
|
7828
|
+
retrier.logger = this.logger;
|
|
7829
|
+
const request = yield oci_common_2.composeRequest({
|
|
7830
|
+
baseEndpoint: this._endpoint,
|
|
7831
|
+
defaultHeaders: this._defaultHeaders,
|
|
7832
|
+
path: "/models/{modelId}/definedMetadata/{metadatumKeyName}/artifact",
|
|
7833
|
+
method: "PUT",
|
|
7834
|
+
bodyContent: updateModelDefinedMetadatumArtifactRequest.modelDefinedMetadatumArtifact,
|
|
7835
|
+
pathParams: pathParams,
|
|
7836
|
+
headerParams: headerParams,
|
|
7837
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
7838
|
+
queryParams: queryParams
|
|
7839
|
+
});
|
|
7840
|
+
try {
|
|
7841
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
|
|
7842
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7843
|
+
responseObject: {},
|
|
7844
|
+
responseHeaders: [
|
|
7845
|
+
{
|
|
7846
|
+
value: response.headers.get("etag"),
|
|
7847
|
+
key: "etag",
|
|
7848
|
+
dataType: "string"
|
|
7849
|
+
},
|
|
7850
|
+
{
|
|
7851
|
+
value: response.headers.get("opc-request-id"),
|
|
7852
|
+
key: "opcRequestId",
|
|
7853
|
+
dataType: "string"
|
|
7854
|
+
}
|
|
7855
|
+
]
|
|
7856
|
+
});
|
|
7857
|
+
return sdkResponse;
|
|
7858
|
+
}
|
|
7859
|
+
catch (err) {
|
|
7860
|
+
throw err;
|
|
7861
|
+
}
|
|
7862
|
+
});
|
|
7863
|
+
}
|
|
7104
7864
|
/**
|
|
7105
7865
|
* Updates the properties of a model deployment. Some of the properties of `modelDeploymentConfigurationDetails` or `CategoryLogDetails` can also be updated with zero down time
|
|
7106
7866
|
* when the model deployment's lifecycle state is ACTIVE or NEEDS_ATTENTION i.e `instanceShapeName`, `instanceCount` and `modelId`, separately `loadBalancerShape` or `CategoryLogDetails`
|