oci-devops 2.114.1 → 2.115.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 +20 -0
- package/lib/client.js +132 -0
- package/lib/client.js.map +1 -1
- package/lib/model/build-stage-run-progress.d.ts +1 -0
- package/lib/model/build-stage-run-progress.js +1 -0
- package/lib/model/build-stage-run-progress.js.map +1 -1
- package/lib/model/build-stage.d.ts +1 -0
- package/lib/model/build-stage.js +1 -0
- package/lib/model/build-stage.js.map +1 -1
- package/lib/model/create-or-update-protected-branch-details.d.ts +1 -1
- package/lib/model/delete-protected-branch-details.d.ts +1 -1
- package/lib/model/index.d.ts +0 -10
- package/lib/model/index.js +9 -19
- package/lib/model/index.js.map +1 -1
- package/lib/model/merge-check-settings-value.d.ts +1 -1
- package/lib/model/merge-check-settings-value.js +1 -1
- package/lib/model/merge-settings.d.ts +2 -2
- package/lib/model/protected-branch.d.ts +1 -1
- package/lib/model/pull-request.d.ts +4 -0
- package/lib/model/pull-request.js.map +1 -1
- package/lib/model/repository-commit.d.ts +4 -0
- package/lib/model/repository-commit.js.map +1 -1
- package/lib/request/index.d.ts +4 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/reopen-pull-request-comment-request.d.ts +34 -0
- package/lib/request/reopen-pull-request-comment-request.js +15 -0
- package/lib/request/reopen-pull-request-comment-request.js.map +1 -0
- package/lib/request/resolve-pull-request-comment-request.d.ts +34 -0
- package/lib/request/resolve-pull-request-comment-request.js +15 -0
- package/lib/request/resolve-pull-request-comment-request.js.map +1 -0
- package/lib/response/index.d.ts +4 -0
- package/lib/response/reopen-pull-request-comment-response.d.ts +27 -0
- package/lib/response/reopen-pull-request-comment-response.js +15 -0
- package/lib/response/reopen-pull-request-comment-response.js.map +1 -0
- package/lib/response/resolve-pull-request-comment-response.d.ts +27 -0
- package/lib/response/resolve-pull-request-comment-response.js +15 -0
- package/lib/response/resolve-pull-request-comment-response.js.map +1 -0
- package/package.json +3 -3
- package/lib/model/generic-artifact-location-details.d.ts +0 -22
- package/lib/model/generic-artifact-location-details.js +0 -68
- package/lib/model/generic-artifact-location-details.js.map +0 -1
- package/lib/model/generic-artifacts.d.ts +0 -29
- package/lib/model/generic-artifacts.js +0 -60
- package/lib/model/generic-artifacts.js.map +0 -1
- package/lib/model/object-storage-generic-artifact-location-details.d.ts +0 -40
- package/lib/model/object-storage-generic-artifact-location-details.js +0 -54
- package/lib/model/object-storage-generic-artifact-location-details.js.map +0 -1
- package/lib/model/stage-output.d.ts +0 -26
- package/lib/model/stage-output.js +0 -72
- package/lib/model/stage-output.js.map +0 -1
- package/lib/model/test-report-output.d.ts +0 -28
- package/lib/model/test-report-output.js +0 -52
- package/lib/model/test-report-output.js.map +0 -1
package/lib/client.d.ts
CHANGED
|
@@ -1164,6 +1164,26 @@ export declare class DevopsClient {
|
|
|
1164
1164
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/devops/ReopenPullRequest.ts.html |here} to see how to use ReopenPullRequest API.
|
|
1165
1165
|
*/
|
|
1166
1166
|
reopenPullRequest(reopenPullRequestRequest: requests.ReopenPullRequestRequest): Promise<responses.ReopenPullRequestResponse>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Reopen a PullRequest Comment
|
|
1169
|
+
*
|
|
1170
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1171
|
+
* @param ReopenPullRequestCommentRequest
|
|
1172
|
+
* @return ReopenPullRequestCommentResponse
|
|
1173
|
+
* @throws OciError when an error occurs
|
|
1174
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/devops/ReopenPullRequestComment.ts.html |here} to see how to use ReopenPullRequestComment API.
|
|
1175
|
+
*/
|
|
1176
|
+
reopenPullRequestComment(reopenPullRequestCommentRequest: requests.ReopenPullRequestCommentRequest): Promise<responses.ReopenPullRequestCommentResponse>;
|
|
1177
|
+
/**
|
|
1178
|
+
* Resolve a PullRequest Comment
|
|
1179
|
+
*
|
|
1180
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1181
|
+
* @param ResolvePullRequestCommentRequest
|
|
1182
|
+
* @return ResolvePullRequestCommentResponse
|
|
1183
|
+
* @throws OciError when an error occurs
|
|
1184
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/devops/ResolvePullRequestComment.ts.html |here} to see how to use ResolvePullRequestComment API.
|
|
1185
|
+
*/
|
|
1186
|
+
resolvePullRequestComment(resolvePullRequestCommentRequest: requests.ResolvePullRequestCommentRequest): Promise<responses.ResolvePullRequestCommentResponse>;
|
|
1167
1187
|
/**
|
|
1168
1188
|
* Review a PullRequest
|
|
1169
1189
|
*
|
package/lib/client.js
CHANGED
|
@@ -7873,6 +7873,138 @@ class DevopsClient {
|
|
|
7873
7873
|
}
|
|
7874
7874
|
});
|
|
7875
7875
|
}
|
|
7876
|
+
/**
|
|
7877
|
+
* Reopen a PullRequest Comment
|
|
7878
|
+
*
|
|
7879
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7880
|
+
* @param ReopenPullRequestCommentRequest
|
|
7881
|
+
* @return ReopenPullRequestCommentResponse
|
|
7882
|
+
* @throws OciError when an error occurs
|
|
7883
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/devops/ReopenPullRequestComment.ts.html |here} to see how to use ReopenPullRequestComment API.
|
|
7884
|
+
*/
|
|
7885
|
+
reopenPullRequestComment(reopenPullRequestCommentRequest) {
|
|
7886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7887
|
+
if (this.logger)
|
|
7888
|
+
this.logger.debug("Calling operation DevopsClient#reopenPullRequestComment.");
|
|
7889
|
+
const operationName = "reopenPullRequestComment";
|
|
7890
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/devops/20210630/PullRequest/ReopenPullRequestComment";
|
|
7891
|
+
const pathParams = {
|
|
7892
|
+
"{pullRequestId}": reopenPullRequestCommentRequest.pullRequestId,
|
|
7893
|
+
"{commentId}": reopenPullRequestCommentRequest.commentId
|
|
7894
|
+
};
|
|
7895
|
+
const queryParams = {};
|
|
7896
|
+
let headerParams = {
|
|
7897
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7898
|
+
"if-match": reopenPullRequestCommentRequest.ifMatch,
|
|
7899
|
+
"opc-request-id": reopenPullRequestCommentRequest.opcRequestId
|
|
7900
|
+
};
|
|
7901
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7902
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reopenPullRequestCommentRequest.retryConfiguration, specRetryConfiguration);
|
|
7903
|
+
if (this.logger)
|
|
7904
|
+
retrier.logger = this.logger;
|
|
7905
|
+
const request = yield oci_common_1.composeRequest({
|
|
7906
|
+
baseEndpoint: this._endpoint,
|
|
7907
|
+
defaultHeaders: this._defaultHeaders,
|
|
7908
|
+
path: "/pullRequests/{pullRequestId}/comments/{commentId}/actions/reopen",
|
|
7909
|
+
method: "POST",
|
|
7910
|
+
pathParams: pathParams,
|
|
7911
|
+
headerParams: headerParams,
|
|
7912
|
+
queryParams: queryParams
|
|
7913
|
+
});
|
|
7914
|
+
try {
|
|
7915
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7916
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
7917
|
+
responseObject: {},
|
|
7918
|
+
body: yield response.json(),
|
|
7919
|
+
bodyKey: "pullRequestComment",
|
|
7920
|
+
bodyModel: model.PullRequestComment,
|
|
7921
|
+
type: "model.PullRequestComment",
|
|
7922
|
+
responseHeaders: [
|
|
7923
|
+
{
|
|
7924
|
+
value: response.headers.get("opc-request-id"),
|
|
7925
|
+
key: "opcRequestId",
|
|
7926
|
+
dataType: "string"
|
|
7927
|
+
},
|
|
7928
|
+
{
|
|
7929
|
+
value: response.headers.get("etag"),
|
|
7930
|
+
key: "etag",
|
|
7931
|
+
dataType: "string"
|
|
7932
|
+
}
|
|
7933
|
+
]
|
|
7934
|
+
});
|
|
7935
|
+
return sdkResponse;
|
|
7936
|
+
}
|
|
7937
|
+
catch (err) {
|
|
7938
|
+
throw err;
|
|
7939
|
+
}
|
|
7940
|
+
});
|
|
7941
|
+
}
|
|
7942
|
+
/**
|
|
7943
|
+
* Resolve a PullRequest Comment
|
|
7944
|
+
*
|
|
7945
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7946
|
+
* @param ResolvePullRequestCommentRequest
|
|
7947
|
+
* @return ResolvePullRequestCommentResponse
|
|
7948
|
+
* @throws OciError when an error occurs
|
|
7949
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/devops/ResolvePullRequestComment.ts.html |here} to see how to use ResolvePullRequestComment API.
|
|
7950
|
+
*/
|
|
7951
|
+
resolvePullRequestComment(resolvePullRequestCommentRequest) {
|
|
7952
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7953
|
+
if (this.logger)
|
|
7954
|
+
this.logger.debug("Calling operation DevopsClient#resolvePullRequestComment.");
|
|
7955
|
+
const operationName = "resolvePullRequestComment";
|
|
7956
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/devops/20210630/PullRequest/ResolvePullRequestComment";
|
|
7957
|
+
const pathParams = {
|
|
7958
|
+
"{pullRequestId}": resolvePullRequestCommentRequest.pullRequestId,
|
|
7959
|
+
"{commentId}": resolvePullRequestCommentRequest.commentId
|
|
7960
|
+
};
|
|
7961
|
+
const queryParams = {};
|
|
7962
|
+
let headerParams = {
|
|
7963
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7964
|
+
"if-match": resolvePullRequestCommentRequest.ifMatch,
|
|
7965
|
+
"opc-request-id": resolvePullRequestCommentRequest.opcRequestId
|
|
7966
|
+
};
|
|
7967
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7968
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resolvePullRequestCommentRequest.retryConfiguration, specRetryConfiguration);
|
|
7969
|
+
if (this.logger)
|
|
7970
|
+
retrier.logger = this.logger;
|
|
7971
|
+
const request = yield oci_common_1.composeRequest({
|
|
7972
|
+
baseEndpoint: this._endpoint,
|
|
7973
|
+
defaultHeaders: this._defaultHeaders,
|
|
7974
|
+
path: "/pullRequests/{pullRequestId}/comments/{commentId}/actions/resolve",
|
|
7975
|
+
method: "POST",
|
|
7976
|
+
pathParams: pathParams,
|
|
7977
|
+
headerParams: headerParams,
|
|
7978
|
+
queryParams: queryParams
|
|
7979
|
+
});
|
|
7980
|
+
try {
|
|
7981
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7982
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
7983
|
+
responseObject: {},
|
|
7984
|
+
body: yield response.json(),
|
|
7985
|
+
bodyKey: "pullRequestComment",
|
|
7986
|
+
bodyModel: model.PullRequestComment,
|
|
7987
|
+
type: "model.PullRequestComment",
|
|
7988
|
+
responseHeaders: [
|
|
7989
|
+
{
|
|
7990
|
+
value: response.headers.get("opc-request-id"),
|
|
7991
|
+
key: "opcRequestId",
|
|
7992
|
+
dataType: "string"
|
|
7993
|
+
},
|
|
7994
|
+
{
|
|
7995
|
+
value: response.headers.get("etag"),
|
|
7996
|
+
key: "etag",
|
|
7997
|
+
dataType: "string"
|
|
7998
|
+
}
|
|
7999
|
+
]
|
|
8000
|
+
});
|
|
8001
|
+
return sdkResponse;
|
|
8002
|
+
}
|
|
8003
|
+
catch (err) {
|
|
8004
|
+
throw err;
|
|
8005
|
+
}
|
|
8006
|
+
});
|
|
8007
|
+
}
|
|
7876
8008
|
/**
|
|
7877
8009
|
* Review a PullRequest
|
|
7878
8010
|
*
|