oci-goldengate 2.121.1 → 2.122.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 +10 -0
- package/lib/client.js +65 -0
- package/lib/client.js.map +1 -1
- package/lib/model/create-pipeline-details.d.ts +6 -0
- package/lib/model/create-pipeline-details.js.map +1 -1
- package/lib/model/default-pause-pipeline-details.d.ts +26 -0
- package/lib/model/default-pause-pipeline-details.js +55 -0
- package/lib/model/default-pause-pipeline-details.js.map +1 -0
- package/lib/model/index.d.ts +6 -0
- package/lib/model/index.js +12 -6
- package/lib/model/index.js.map +1 -1
- package/lib/model/operation-type.d.ts +1 -0
- package/lib/model/operation-type.js +1 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/pause-pipeline-details.d.ts +24 -0
- package/lib/model/pause-pipeline-details.js +69 -0
- package/lib/model/pause-pipeline-details.js.map +1 -0
- package/lib/model/pause-pipeline-type.d.ts +24 -0
- package/lib/model/pause-pipeline-type.js +35 -0
- package/lib/model/pause-pipeline-type.js.map +1 -0
- package/lib/model/pipeline-lifecycle-sub-state.d.ts +5 -0
- package/lib/model/pipeline-lifecycle-sub-state.js +5 -0
- package/lib/model/pipeline-lifecycle-sub-state.js.map +1 -1
- package/lib/model/pipeline-summary.d.ts +6 -0
- package/lib/model/pipeline-summary.js.map +1 -1
- package/lib/model/pipeline.d.ts +13 -0
- package/lib/model/pipeline.js +11 -0
- package/lib/model/pipeline.js.map +1 -1
- package/lib/model/update-pipeline-details.d.ts +6 -0
- package/lib/model/update-pipeline-details.js.map +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/pause-pipeline-request.d.ts +54 -0
- package/lib/request/pause-pipeline-request.js +15 -0
- package/lib/request/pause-pipeline-request.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/lib/response/pause-pipeline-response.d.ts +26 -0
- package/lib/response/pause-pipeline-response.js +15 -0
- package/lib/response/pause-pipeline-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -884,6 +884,16 @@ export declare class GoldenGateClient {
|
|
|
884
884
|
* @param request a request which can be sent to the service operation
|
|
885
885
|
*/
|
|
886
886
|
listWorkRequestsResponseIterator(request: requests.ListWorkRequestsRequest): AsyncIterableIterator<responses.ListWorkRequestsResponse>;
|
|
887
|
+
/**
|
|
888
|
+
* Pauses the pipeline.
|
|
889
|
+
*
|
|
890
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
891
|
+
* @param PausePipelineRequest
|
|
892
|
+
* @return PausePipelineResponse
|
|
893
|
+
* @throws OciError when an error occurs
|
|
894
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/PausePipeline.ts.html |here} to see how to use PausePipeline API.
|
|
895
|
+
*/
|
|
896
|
+
pausePipeline(pausePipelineRequest: requests.PausePipelineRequest): Promise<responses.PausePipelineResponse>;
|
|
887
897
|
/**
|
|
888
898
|
* Refresh the external Connection attributes.
|
|
889
899
|
*
|
package/lib/client.js
CHANGED
|
@@ -4893,6 +4893,71 @@ class GoldenGateClient {
|
|
|
4893
4893
|
listWorkRequestsResponseIterator(request) {
|
|
4894
4894
|
return oci_common_1.paginateResponses(request, req => this.listWorkRequests(req));
|
|
4895
4895
|
}
|
|
4896
|
+
/**
|
|
4897
|
+
* Pauses the pipeline.
|
|
4898
|
+
*
|
|
4899
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4900
|
+
* @param PausePipelineRequest
|
|
4901
|
+
* @return PausePipelineResponse
|
|
4902
|
+
* @throws OciError when an error occurs
|
|
4903
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/goldengate/PausePipeline.ts.html |here} to see how to use PausePipeline API.
|
|
4904
|
+
*/
|
|
4905
|
+
pausePipeline(pausePipelineRequest) {
|
|
4906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4907
|
+
if (this.logger)
|
|
4908
|
+
this.logger.debug("Calling operation GoldenGateClient#pausePipeline.");
|
|
4909
|
+
const operationName = "pausePipeline";
|
|
4910
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/PausePipeline";
|
|
4911
|
+
const pathParams = {
|
|
4912
|
+
"{pipelineId}": pausePipelineRequest.pipelineId
|
|
4913
|
+
};
|
|
4914
|
+
const queryParams = {
|
|
4915
|
+
"isLockOverride": pausePipelineRequest.isLockOverride
|
|
4916
|
+
};
|
|
4917
|
+
let headerParams = {
|
|
4918
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4919
|
+
"if-match": pausePipelineRequest.ifMatch,
|
|
4920
|
+
"opc-request-id": pausePipelineRequest.opcRequestId,
|
|
4921
|
+
"opc-retry-token": pausePipelineRequest.opcRetryToken
|
|
4922
|
+
};
|
|
4923
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4924
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, pausePipelineRequest.retryConfiguration, specRetryConfiguration);
|
|
4925
|
+
if (this.logger)
|
|
4926
|
+
retrier.logger = this.logger;
|
|
4927
|
+
const request = yield oci_common_2.composeRequest({
|
|
4928
|
+
baseEndpoint: this._endpoint,
|
|
4929
|
+
defaultHeaders: this._defaultHeaders,
|
|
4930
|
+
path: "/pipelines/{pipelineId}/actions/pause",
|
|
4931
|
+
method: "POST",
|
|
4932
|
+
bodyContent: common.ObjectSerializer.serialize(pausePipelineRequest.pausePipelineDetails, "PausePipelineDetails", model.PausePipelineDetails.getJsonObj),
|
|
4933
|
+
pathParams: pathParams,
|
|
4934
|
+
headerParams: headerParams,
|
|
4935
|
+
queryParams: queryParams
|
|
4936
|
+
});
|
|
4937
|
+
try {
|
|
4938
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4939
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
4940
|
+
responseObject: {},
|
|
4941
|
+
responseHeaders: [
|
|
4942
|
+
{
|
|
4943
|
+
value: response.headers.get("opc-work-request-id"),
|
|
4944
|
+
key: "opcWorkRequestId",
|
|
4945
|
+
dataType: "string"
|
|
4946
|
+
},
|
|
4947
|
+
{
|
|
4948
|
+
value: response.headers.get("opc-request-id"),
|
|
4949
|
+
key: "opcRequestId",
|
|
4950
|
+
dataType: "string"
|
|
4951
|
+
}
|
|
4952
|
+
]
|
|
4953
|
+
});
|
|
4954
|
+
return sdkResponse;
|
|
4955
|
+
}
|
|
4956
|
+
catch (err) {
|
|
4957
|
+
throw err;
|
|
4958
|
+
}
|
|
4959
|
+
});
|
|
4960
|
+
}
|
|
4896
4961
|
/**
|
|
4897
4962
|
* Refresh the external Connection attributes.
|
|
4898
4963
|
*
|