Package org.azd.release.gates
Class GatesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.release.gates.GatesRequestBuilder
Provides functionality to work with Release Gates Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionGatesRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionupdate
(int gateStepId, ReleaseGatesUpdateRequest releaseGatesUpdateRequest) Updates the gate for a deployment.updateAsync
(int gateStepId, ReleaseGatesUpdateRequest releaseGatesUpdateRequest) Updates the gate for a deployment.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
GatesRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
updateAsync
public CompletableFuture<ReleaseGates> updateAsync(int gateStepId, ReleaseGatesUpdateRequest releaseGatesUpdateRequest) throws AzDException Updates the gate for a deployment.- Parameters:
gateStepId
- Gate step Id.releaseGatesUpdateRequest
- Represents the request body to update release gates.- Returns:
- Release Gates object
ReleaseGates
- Throws:
AzDException
- Default Api exception handler.
-
update
public ReleaseGates update(int gateStepId, ReleaseGatesUpdateRequest releaseGatesUpdateRequest) throws AzDException Updates the gate for a deployment.- Parameters:
gateStepId
- Gate step Id.releaseGatesUpdateRequest
- Represents the request body to update release gates.- Returns:
- Release Gates object
ReleaseGates
- Throws:
AzDException
- Default Api exception handler.
-