oci-dataflow 2.44.0 → 2.46.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 +64 -24
- package/lib/client.js +286 -24
- package/lib/client.js.map +1 -1
- package/lib/dataflow-waiter.d.ts +8 -0
- package/lib/dataflow-waiter.js +12 -0
- package/lib/dataflow-waiter.js.map +1 -1
- package/lib/model/application-type.d.ts +1 -0
- package/lib/model/application-type.js +1 -0
- package/lib/model/application-type.js.map +1 -1
- package/lib/model/application.d.ts +13 -1
- package/lib/model/application.js.map +1 -1
- package/lib/model/create-application-details.d.ts +14 -2
- package/lib/model/create-application-details.js.map +1 -1
- package/lib/model/create-run-details.d.ts +13 -1
- package/lib/model/create-run-details.js.map +1 -1
- package/lib/model/create-statement-details.d.ts +29 -0
- package/lib/model/create-statement-details.js +30 -0
- package/lib/model/create-statement-details.js.map +1 -0
- package/lib/model/image-png-statement-output-data.d.ts +33 -0
- package/lib/model/image-png-statement-output-data.js +55 -0
- package/lib/model/image-png-statement-output-data.js.map +1 -0
- package/lib/model/index.d.ts +20 -0
- package/lib/model/index.js +21 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/run.d.ts +13 -1
- package/lib/model/run.js.map +1 -1
- package/lib/model/statement-collection.d.ts +29 -0
- package/lib/model/statement-collection.js +62 -0
- package/lib/model/statement-collection.js.map +1 -0
- package/lib/model/statement-lifecycle-state.d.ts +34 -0
- package/lib/model/statement-lifecycle-state.js +45 -0
- package/lib/model/statement-lifecycle-state.js.map +1 -0
- package/lib/model/statement-output-data.d.ts +24 -0
- package/lib/model/statement-output-data.js +77 -0
- package/lib/model/statement-output-data.js.map +1 -0
- package/lib/model/statement-output.d.ts +54 -0
- package/lib/model/statement-output.js +64 -0
- package/lib/model/statement-output.js.map +1 -0
- package/lib/model/statement-summary.d.ts +51 -0
- package/lib/model/statement-summary.js +30 -0
- package/lib/model/statement-summary.js.map +1 -0
- package/lib/model/statement.d.ts +63 -0
- package/lib/model/statement.js +54 -0
- package/lib/model/statement.js.map +1 -0
- package/lib/model/text-html-statement-output-data.d.ts +31 -0
- package/lib/model/text-html-statement-output-data.js +55 -0
- package/lib/model/text-html-statement-output-data.js.map +1 -0
- package/lib/model/text-plain-statement-output-data.d.ts +31 -0
- package/lib/model/text-plain-statement-output-data.js +55 -0
- package/lib/model/text-plain-statement-output-data.js.map +1 -0
- package/lib/model/update-application-details.d.ts +13 -1
- package/lib/model/update-application-details.js.map +1 -1
- package/lib/model/update-run-details.d.ts +13 -1
- package/lib/model/update-run-details.js.map +1 -1
- package/lib/request/change-application-compartment-request.d.ts +1 -1
- package/lib/request/change-private-endpoint-compartment-request.d.ts +1 -1
- package/lib/request/change-run-compartment-request.d.ts +1 -1
- package/lib/request/create-application-request.d.ts +1 -1
- package/lib/request/create-private-endpoint-request.d.ts +1 -1
- package/lib/request/create-run-request.d.ts +1 -1
- package/lib/request/create-statement-request.d.ts +35 -0
- package/lib/request/create-statement-request.js +15 -0
- package/lib/request/create-statement-request.js.map +1 -0
- package/lib/request/delete-application-request.d.ts +1 -1
- package/lib/request/delete-private-endpoint-request.d.ts +1 -1
- package/lib/request/delete-run-request.d.ts +1 -1
- package/lib/request/delete-statement-request.d.ts +41 -0
- package/lib/request/delete-statement-request.js +15 -0
- package/lib/request/delete-statement-request.js.map +1 -0
- package/lib/request/get-application-request.d.ts +1 -1
- package/lib/request/get-private-endpoint-request.d.ts +1 -1
- package/lib/request/get-run-log-request.d.ts +1 -1
- package/lib/request/get-run-request.d.ts +1 -1
- package/lib/request/get-statement-request.d.ts +34 -0
- package/lib/request/get-statement-request.js +15 -0
- package/lib/request/get-statement-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +8 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-applications-request.d.ts +1 -1
- package/lib/request/list-private-endpoints-request.d.ts +1 -1
- package/lib/request/list-run-logs-request.d.ts +1 -1
- package/lib/request/list-runs-request.d.ts +1 -1
- package/lib/request/list-statements-request.d.ts +65 -0
- package/lib/request/list-statements-request.js +28 -0
- package/lib/request/list-statements-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-application-request.d.ts +1 -1
- package/lib/request/update-private-endpoint-request.d.ts +1 -1
- package/lib/request/update-run-request.d.ts +1 -1
- package/lib/response/create-statement-response.d.ts +31 -0
- package/lib/response/create-statement-response.js +15 -0
- package/lib/response/create-statement-response.js.map +1 -0
- package/lib/response/delete-statement-response.d.ts +20 -0
- package/lib/response/delete-statement-response.js +15 -0
- package/lib/response/delete-statement-response.js.map +1 -0
- package/lib/response/get-statement-response.d.ts +31 -0
- package/lib/response/get-statement-response.js +15 -0
- package/lib/response/get-statement-response.js.map +1 -0
- package/lib/response/index.d.ts +8 -0
- package/lib/response/list-statements-response.d.ts +38 -0
- package/lib/response/list-statements-response.js +15 -0
- package/lib/response/list-statements-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -160,7 +160,7 @@ class DataFlowClient {
|
|
|
160
160
|
* @param ChangeApplicationCompartmentRequest
|
|
161
161
|
* @return ChangeApplicationCompartmentResponse
|
|
162
162
|
* @throws OciError when an error occurs
|
|
163
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
163
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ChangeApplicationCompartment.ts.html |here} to see how to use ChangeApplicationCompartment API.
|
|
164
164
|
*/
|
|
165
165
|
changeApplicationCompartment(changeApplicationCompartmentRequest) {
|
|
166
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -218,7 +218,7 @@ class DataFlowClient {
|
|
|
218
218
|
* @param ChangePrivateEndpointCompartmentRequest
|
|
219
219
|
* @return ChangePrivateEndpointCompartmentResponse
|
|
220
220
|
* @throws OciError when an error occurs
|
|
221
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
221
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ChangePrivateEndpointCompartment.ts.html |here} to see how to use ChangePrivateEndpointCompartment API.
|
|
222
222
|
*/
|
|
223
223
|
changePrivateEndpointCompartment(changePrivateEndpointCompartmentRequest) {
|
|
224
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -283,7 +283,7 @@ class DataFlowClient {
|
|
|
283
283
|
* @param ChangeRunCompartmentRequest
|
|
284
284
|
* @return ChangeRunCompartmentResponse
|
|
285
285
|
* @throws OciError when an error occurs
|
|
286
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
286
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ChangeRunCompartment.ts.html |here} to see how to use ChangeRunCompartment API.
|
|
287
287
|
*/
|
|
288
288
|
changeRunCompartment(changeRunCompartmentRequest) {
|
|
289
289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -341,7 +341,7 @@ class DataFlowClient {
|
|
|
341
341
|
* @param CreateApplicationRequest
|
|
342
342
|
* @return CreateApplicationResponse
|
|
343
343
|
* @throws OciError when an error occurs
|
|
344
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
344
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/CreateApplication.ts.html |here} to see how to use CreateApplication API.
|
|
345
345
|
*/
|
|
346
346
|
createApplication(createApplicationRequest) {
|
|
347
347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -405,7 +405,7 @@ class DataFlowClient {
|
|
|
405
405
|
* @param CreatePrivateEndpointRequest
|
|
406
406
|
* @return CreatePrivateEndpointResponse
|
|
407
407
|
* @throws OciError when an error occurs
|
|
408
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
408
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/CreatePrivateEndpoint.ts.html |here} to see how to use CreatePrivateEndpoint API.
|
|
409
409
|
*/
|
|
410
410
|
createPrivateEndpoint(createPrivateEndpointRequest) {
|
|
411
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -479,7 +479,7 @@ class DataFlowClient {
|
|
|
479
479
|
* @param CreateRunRequest
|
|
480
480
|
* @return CreateRunResponse
|
|
481
481
|
* @throws OciError when an error occurs
|
|
482
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
482
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/CreateRun.ts.html |here} to see how to use CreateRun API.
|
|
483
483
|
*/
|
|
484
484
|
createRun(createRunRequest) {
|
|
485
485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -536,6 +536,71 @@ class DataFlowClient {
|
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* Executes a statement for a Session run.
|
|
541
|
+
*
|
|
542
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
543
|
+
* @param CreateStatementRequest
|
|
544
|
+
* @return CreateStatementResponse
|
|
545
|
+
* @throws OciError when an error occurs
|
|
546
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/CreateStatement.ts.html |here} to see how to use CreateStatement API.
|
|
547
|
+
*/
|
|
548
|
+
createStatement(createStatementRequest) {
|
|
549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
if (this.logger)
|
|
551
|
+
this.logger.debug("Calling operation DataFlowClient#createStatement.");
|
|
552
|
+
const operationName = "createStatement";
|
|
553
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Statement/CreateStatement";
|
|
554
|
+
const pathParams = {
|
|
555
|
+
"{runId}": createStatementRequest.runId
|
|
556
|
+
};
|
|
557
|
+
const queryParams = {};
|
|
558
|
+
let headerParams = {
|
|
559
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
560
|
+
"opc-request-id": createStatementRequest.opcRequestId
|
|
561
|
+
};
|
|
562
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
563
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createStatementRequest.retryConfiguration, specRetryConfiguration);
|
|
564
|
+
if (this.logger)
|
|
565
|
+
retrier.logger = this.logger;
|
|
566
|
+
const request = yield oci_common_2.composeRequest({
|
|
567
|
+
baseEndpoint: this._endpoint,
|
|
568
|
+
defaultHeaders: this._defaultHeaders,
|
|
569
|
+
path: "/runs/{runId}/statements",
|
|
570
|
+
method: "POST",
|
|
571
|
+
bodyContent: common.ObjectSerializer.serialize(createStatementRequest.createStatementDetails, "CreateStatementDetails", model.CreateStatementDetails.getJsonObj),
|
|
572
|
+
pathParams: pathParams,
|
|
573
|
+
headerParams: headerParams,
|
|
574
|
+
queryParams: queryParams
|
|
575
|
+
});
|
|
576
|
+
try {
|
|
577
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
578
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
579
|
+
responseObject: {},
|
|
580
|
+
body: yield response.json(),
|
|
581
|
+
bodyKey: "statement",
|
|
582
|
+
bodyModel: model.Statement,
|
|
583
|
+
type: "model.Statement",
|
|
584
|
+
responseHeaders: [
|
|
585
|
+
{
|
|
586
|
+
value: response.headers.get("etag"),
|
|
587
|
+
key: "etag",
|
|
588
|
+
dataType: "string"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
value: response.headers.get("opc-request-id"),
|
|
592
|
+
key: "opcRequestId",
|
|
593
|
+
dataType: "string"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
});
|
|
597
|
+
return sdkResponse;
|
|
598
|
+
}
|
|
599
|
+
catch (err) {
|
|
600
|
+
throw err;
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
}
|
|
539
604
|
/**
|
|
540
605
|
* Deletes an application using an `applicationId`.
|
|
541
606
|
*
|
|
@@ -543,7 +608,7 @@ class DataFlowClient {
|
|
|
543
608
|
* @param DeleteApplicationRequest
|
|
544
609
|
* @return DeleteApplicationResponse
|
|
545
610
|
* @throws OciError when an error occurs
|
|
546
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
611
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/DeleteApplication.ts.html |here} to see how to use DeleteApplication API.
|
|
547
612
|
*/
|
|
548
613
|
deleteApplication(deleteApplicationRequest) {
|
|
549
614
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -599,7 +664,7 @@ class DataFlowClient {
|
|
|
599
664
|
* @param DeletePrivateEndpointRequest
|
|
600
665
|
* @return DeletePrivateEndpointResponse
|
|
601
666
|
* @throws OciError when an error occurs
|
|
602
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
667
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/DeletePrivateEndpoint.ts.html |here} to see how to use DeletePrivateEndpoint API.
|
|
603
668
|
*/
|
|
604
669
|
deletePrivateEndpoint(deletePrivateEndpointRequest) {
|
|
605
670
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -661,7 +726,7 @@ class DataFlowClient {
|
|
|
661
726
|
* @param DeleteRunRequest
|
|
662
727
|
* @return DeleteRunResponse
|
|
663
728
|
* @throws OciError when an error occurs
|
|
664
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
729
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/DeleteRun.ts.html |here} to see how to use DeleteRun API.
|
|
665
730
|
*/
|
|
666
731
|
deleteRun(deleteRunRequest) {
|
|
667
732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -710,6 +775,63 @@ class DataFlowClient {
|
|
|
710
775
|
}
|
|
711
776
|
});
|
|
712
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* Cancels the specified statement for a Session run.
|
|
780
|
+
*
|
|
781
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
782
|
+
* @param DeleteStatementRequest
|
|
783
|
+
* @return DeleteStatementResponse
|
|
784
|
+
* @throws OciError when an error occurs
|
|
785
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/DeleteStatement.ts.html |here} to see how to use DeleteStatement API.
|
|
786
|
+
*/
|
|
787
|
+
deleteStatement(deleteStatementRequest) {
|
|
788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
789
|
+
if (this.logger)
|
|
790
|
+
this.logger.debug("Calling operation DataFlowClient#deleteStatement.");
|
|
791
|
+
const operationName = "deleteStatement";
|
|
792
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Statement/DeleteStatement";
|
|
793
|
+
const pathParams = {
|
|
794
|
+
"{runId}": deleteStatementRequest.runId,
|
|
795
|
+
"{statementId}": deleteStatementRequest.statementId
|
|
796
|
+
};
|
|
797
|
+
const queryParams = {};
|
|
798
|
+
let headerParams = {
|
|
799
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
800
|
+
"opc-request-id": deleteStatementRequest.opcRequestId,
|
|
801
|
+
"if-match": deleteStatementRequest.ifMatch
|
|
802
|
+
};
|
|
803
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
804
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteStatementRequest.retryConfiguration, specRetryConfiguration);
|
|
805
|
+
if (this.logger)
|
|
806
|
+
retrier.logger = this.logger;
|
|
807
|
+
const request = yield oci_common_2.composeRequest({
|
|
808
|
+
baseEndpoint: this._endpoint,
|
|
809
|
+
defaultHeaders: this._defaultHeaders,
|
|
810
|
+
path: "/runs/{runId}/statements/{statementId}",
|
|
811
|
+
method: "DELETE",
|
|
812
|
+
pathParams: pathParams,
|
|
813
|
+
headerParams: headerParams,
|
|
814
|
+
queryParams: queryParams
|
|
815
|
+
});
|
|
816
|
+
try {
|
|
817
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
818
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
819
|
+
responseObject: {},
|
|
820
|
+
responseHeaders: [
|
|
821
|
+
{
|
|
822
|
+
value: response.headers.get("opc-request-id"),
|
|
823
|
+
key: "opcRequestId",
|
|
824
|
+
dataType: "string"
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
});
|
|
828
|
+
return sdkResponse;
|
|
829
|
+
}
|
|
830
|
+
catch (err) {
|
|
831
|
+
throw err;
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
}
|
|
713
835
|
/**
|
|
714
836
|
* Retrieves an application using an `applicationId`.
|
|
715
837
|
*
|
|
@@ -717,7 +839,7 @@ class DataFlowClient {
|
|
|
717
839
|
* @param GetApplicationRequest
|
|
718
840
|
* @return GetApplicationResponse
|
|
719
841
|
* @throws OciError when an error occurs
|
|
720
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
842
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/GetApplication.ts.html |here} to see how to use GetApplication API.
|
|
721
843
|
*/
|
|
722
844
|
getApplication(getApplicationRequest) {
|
|
723
845
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -781,7 +903,7 @@ class DataFlowClient {
|
|
|
781
903
|
* @param GetPrivateEndpointRequest
|
|
782
904
|
* @return GetPrivateEndpointResponse
|
|
783
905
|
* @throws OciError when an error occurs
|
|
784
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
906
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/GetPrivateEndpoint.ts.html |here} to see how to use GetPrivateEndpoint API.
|
|
785
907
|
*/
|
|
786
908
|
getPrivateEndpoint(getPrivateEndpointRequest) {
|
|
787
909
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -845,7 +967,7 @@ class DataFlowClient {
|
|
|
845
967
|
* @param GetRunRequest
|
|
846
968
|
* @return GetRunResponse
|
|
847
969
|
* @throws OciError when an error occurs
|
|
848
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
970
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/GetRun.ts.html |here} to see how to use GetRun API.
|
|
849
971
|
*/
|
|
850
972
|
getRun(getRunRequest) {
|
|
851
973
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -909,7 +1031,7 @@ class DataFlowClient {
|
|
|
909
1031
|
* @param GetRunLogRequest
|
|
910
1032
|
* @return GetRunLogResponse
|
|
911
1033
|
* @throws OciError when an error occurs
|
|
912
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1034
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/GetRunLog.ts.html |here} to see how to use GetRunLog API.
|
|
913
1035
|
*/
|
|
914
1036
|
getRunLog(getRunLogRequest) {
|
|
915
1037
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -989,6 +1111,71 @@ class DataFlowClient {
|
|
|
989
1111
|
}
|
|
990
1112
|
});
|
|
991
1113
|
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Retrieves the statement corresponding to the `statementId` for a Session run specified by `runId`.
|
|
1116
|
+
*
|
|
1117
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1118
|
+
* @param GetStatementRequest
|
|
1119
|
+
* @return GetStatementResponse
|
|
1120
|
+
* @throws OciError when an error occurs
|
|
1121
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/GetStatement.ts.html |here} to see how to use GetStatement API.
|
|
1122
|
+
*/
|
|
1123
|
+
getStatement(getStatementRequest) {
|
|
1124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1125
|
+
if (this.logger)
|
|
1126
|
+
this.logger.debug("Calling operation DataFlowClient#getStatement.");
|
|
1127
|
+
const operationName = "getStatement";
|
|
1128
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/Statement/GetStatement";
|
|
1129
|
+
const pathParams = {
|
|
1130
|
+
"{runId}": getStatementRequest.runId,
|
|
1131
|
+
"{statementId}": getStatementRequest.statementId
|
|
1132
|
+
};
|
|
1133
|
+
const queryParams = {};
|
|
1134
|
+
let headerParams = {
|
|
1135
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1136
|
+
"opc-request-id": getStatementRequest.opcRequestId
|
|
1137
|
+
};
|
|
1138
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1139
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStatementRequest.retryConfiguration, specRetryConfiguration);
|
|
1140
|
+
if (this.logger)
|
|
1141
|
+
retrier.logger = this.logger;
|
|
1142
|
+
const request = yield oci_common_2.composeRequest({
|
|
1143
|
+
baseEndpoint: this._endpoint,
|
|
1144
|
+
defaultHeaders: this._defaultHeaders,
|
|
1145
|
+
path: "/runs/{runId}/statements/{statementId}",
|
|
1146
|
+
method: "GET",
|
|
1147
|
+
pathParams: pathParams,
|
|
1148
|
+
headerParams: headerParams,
|
|
1149
|
+
queryParams: queryParams
|
|
1150
|
+
});
|
|
1151
|
+
try {
|
|
1152
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1153
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1154
|
+
responseObject: {},
|
|
1155
|
+
body: yield response.json(),
|
|
1156
|
+
bodyKey: "statement",
|
|
1157
|
+
bodyModel: model.Statement,
|
|
1158
|
+
type: "model.Statement",
|
|
1159
|
+
responseHeaders: [
|
|
1160
|
+
{
|
|
1161
|
+
value: response.headers.get("etag"),
|
|
1162
|
+
key: "etag",
|
|
1163
|
+
dataType: "string"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
value: response.headers.get("opc-request-id"),
|
|
1167
|
+
key: "opcRequestId",
|
|
1168
|
+
dataType: "string"
|
|
1169
|
+
}
|
|
1170
|
+
]
|
|
1171
|
+
});
|
|
1172
|
+
return sdkResponse;
|
|
1173
|
+
}
|
|
1174
|
+
catch (err) {
|
|
1175
|
+
throw err;
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
992
1179
|
/**
|
|
993
1180
|
* Gets the status of the work request with the given OCID.
|
|
994
1181
|
*
|
|
@@ -996,7 +1183,7 @@ class DataFlowClient {
|
|
|
996
1183
|
* @param GetWorkRequestRequest
|
|
997
1184
|
* @return GetWorkRequestResponse
|
|
998
1185
|
* @throws OciError when an error occurs
|
|
999
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1000
1187
|
*/
|
|
1001
1188
|
getWorkRequest(getWorkRequestRequest) {
|
|
1002
1189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1055,7 +1242,7 @@ class DataFlowClient {
|
|
|
1055
1242
|
* @param ListApplicationsRequest
|
|
1056
1243
|
* @return ListApplicationsResponse
|
|
1057
1244
|
* @throws OciError when an error occurs
|
|
1058
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1245
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListApplications.ts.html |here} to see how to use ListApplications API.
|
|
1059
1246
|
*/
|
|
1060
1247
|
listApplications(listApplicationsRequest) {
|
|
1061
1248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1172,7 +1359,7 @@ class DataFlowClient {
|
|
|
1172
1359
|
* @param ListPrivateEndpointsRequest
|
|
1173
1360
|
* @return ListPrivateEndpointsResponse
|
|
1174
1361
|
* @throws OciError when an error occurs
|
|
1175
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1362
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListPrivateEndpoints.ts.html |here} to see how to use ListPrivateEndpoints API.
|
|
1176
1363
|
*/
|
|
1177
1364
|
listPrivateEndpoints(listPrivateEndpointsRequest) {
|
|
1178
1365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1249,7 +1436,7 @@ class DataFlowClient {
|
|
|
1249
1436
|
* @param ListRunLogsRequest
|
|
1250
1437
|
* @return ListRunLogsResponse
|
|
1251
1438
|
* @throws OciError when an error occurs
|
|
1252
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1439
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListRunLogs.ts.html |here} to see how to use ListRunLogs API.
|
|
1253
1440
|
*/
|
|
1254
1441
|
listRunLogs(listRunLogsRequest) {
|
|
1255
1442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1361,7 +1548,7 @@ class DataFlowClient {
|
|
|
1361
1548
|
* @param ListRunsRequest
|
|
1362
1549
|
* @return ListRunsResponse
|
|
1363
1550
|
* @throws OciError when an error occurs
|
|
1364
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1551
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListRuns.ts.html |here} to see how to use ListRuns API.
|
|
1365
1552
|
*/
|
|
1366
1553
|
listRuns(listRunsRequest) {
|
|
1367
1554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1473,6 +1660,81 @@ class DataFlowClient {
|
|
|
1473
1660
|
listRunsResponseIterator(request) {
|
|
1474
1661
|
return oci_common_1.paginateResponses(request, req => this.listRuns(req));
|
|
1475
1662
|
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Lists all statements for a Session run.
|
|
1665
|
+
*
|
|
1666
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1667
|
+
* @param ListStatementsRequest
|
|
1668
|
+
* @return ListStatementsResponse
|
|
1669
|
+
* @throws OciError when an error occurs
|
|
1670
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListStatements.ts.html |here} to see how to use ListStatements API.
|
|
1671
|
+
*/
|
|
1672
|
+
listStatements(listStatementsRequest) {
|
|
1673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1674
|
+
if (this.logger)
|
|
1675
|
+
this.logger.debug("Calling operation DataFlowClient#listStatements.");
|
|
1676
|
+
const operationName = "listStatements";
|
|
1677
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/StatementCollection/ListStatements";
|
|
1678
|
+
const pathParams = {
|
|
1679
|
+
"{runId}": listStatementsRequest.runId
|
|
1680
|
+
};
|
|
1681
|
+
const queryParams = {
|
|
1682
|
+
"lifecycleState": listStatementsRequest.lifecycleState,
|
|
1683
|
+
"sortBy": listStatementsRequest.sortBy,
|
|
1684
|
+
"sortOrder": listStatementsRequest.sortOrder,
|
|
1685
|
+
"limit": listStatementsRequest.limit,
|
|
1686
|
+
"page": listStatementsRequest.page
|
|
1687
|
+
};
|
|
1688
|
+
let headerParams = {
|
|
1689
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1690
|
+
"opc-request-id": listStatementsRequest.opcRequestId
|
|
1691
|
+
};
|
|
1692
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1693
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStatementsRequest.retryConfiguration, specRetryConfiguration);
|
|
1694
|
+
if (this.logger)
|
|
1695
|
+
retrier.logger = this.logger;
|
|
1696
|
+
const request = yield oci_common_2.composeRequest({
|
|
1697
|
+
baseEndpoint: this._endpoint,
|
|
1698
|
+
defaultHeaders: this._defaultHeaders,
|
|
1699
|
+
path: "/runs/{runId}/statements",
|
|
1700
|
+
method: "GET",
|
|
1701
|
+
pathParams: pathParams,
|
|
1702
|
+
headerParams: headerParams,
|
|
1703
|
+
queryParams: queryParams
|
|
1704
|
+
});
|
|
1705
|
+
try {
|
|
1706
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1707
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1708
|
+
responseObject: {},
|
|
1709
|
+
body: yield response.json(),
|
|
1710
|
+
bodyKey: "statementCollection",
|
|
1711
|
+
bodyModel: model.StatementCollection,
|
|
1712
|
+
type: "model.StatementCollection",
|
|
1713
|
+
responseHeaders: [
|
|
1714
|
+
{
|
|
1715
|
+
value: response.headers.get("opc-prev-page"),
|
|
1716
|
+
key: "opcPrevPage",
|
|
1717
|
+
dataType: "string"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
value: response.headers.get("opc-next-page"),
|
|
1721
|
+
key: "opcNextPage",
|
|
1722
|
+
dataType: "string"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
value: response.headers.get("opc-request-id"),
|
|
1726
|
+
key: "opcRequestId",
|
|
1727
|
+
dataType: "string"
|
|
1728
|
+
}
|
|
1729
|
+
]
|
|
1730
|
+
});
|
|
1731
|
+
return sdkResponse;
|
|
1732
|
+
}
|
|
1733
|
+
catch (err) {
|
|
1734
|
+
throw err;
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1476
1738
|
/**
|
|
1477
1739
|
* Return a (paginated) list of errors for a given work request.
|
|
1478
1740
|
*
|
|
@@ -1480,7 +1742,7 @@ class DataFlowClient {
|
|
|
1480
1742
|
* @param ListWorkRequestErrorsRequest
|
|
1481
1743
|
* @return ListWorkRequestErrorsResponse
|
|
1482
1744
|
* @throws OciError when an error occurs
|
|
1483
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1745
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1484
1746
|
*/
|
|
1485
1747
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1486
1748
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1552,7 +1814,7 @@ class DataFlowClient {
|
|
|
1552
1814
|
* @param ListWorkRequestLogsRequest
|
|
1553
1815
|
* @return ListWorkRequestLogsResponse
|
|
1554
1816
|
* @throws OciError when an error occurs
|
|
1555
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1817
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1556
1818
|
*/
|
|
1557
1819
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1558
1820
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1624,7 +1886,7 @@ class DataFlowClient {
|
|
|
1624
1886
|
* @param ListWorkRequestsRequest
|
|
1625
1887
|
* @return ListWorkRequestsResponse
|
|
1626
1888
|
* @throws OciError when an error occurs
|
|
1627
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1889
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1628
1890
|
*/
|
|
1629
1891
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1630
1892
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1695,7 +1957,7 @@ class DataFlowClient {
|
|
|
1695
1957
|
* @param UpdateApplicationRequest
|
|
1696
1958
|
* @return UpdateApplicationResponse
|
|
1697
1959
|
* @throws OciError when an error occurs
|
|
1698
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1960
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/UpdateApplication.ts.html |here} to see how to use UpdateApplication API.
|
|
1699
1961
|
*/
|
|
1700
1962
|
updateApplication(updateApplicationRequest) {
|
|
1701
1963
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1763,7 +2025,7 @@ class DataFlowClient {
|
|
|
1763
2025
|
* @param UpdatePrivateEndpointRequest
|
|
1764
2026
|
* @return UpdatePrivateEndpointResponse
|
|
1765
2027
|
* @throws OciError when an error occurs
|
|
1766
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2028
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/UpdatePrivateEndpoint.ts.html |here} to see how to use UpdatePrivateEndpoint API.
|
|
1767
2029
|
*/
|
|
1768
2030
|
updatePrivateEndpoint(updatePrivateEndpointRequest) {
|
|
1769
2031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1825,7 +2087,7 @@ class DataFlowClient {
|
|
|
1825
2087
|
* @param UpdateRunRequest
|
|
1826
2088
|
* @return UpdateRunResponse
|
|
1827
2089
|
* @throws OciError when an error occurs
|
|
1828
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2090
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.46.0/dataflow/UpdateRun.ts.html |here} to see how to use UpdateRun API.
|
|
1829
2091
|
*/
|
|
1830
2092
|
updateRun(updateRunRequest) {
|
|
1831
2093
|
return __awaiter(this, void 0, void 0, function* () {
|