Package org.azd.release.definitions
Class DefinitionsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.release.definitions.DefinitionsRequestBuilder
Provides functionality to work with Release Definitions Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.static class
Represents the query parameters.static class
Request configuration object for the query parameters.static class
Represents the query parameters.static class
Request configuration object for the query parameters.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
ConstructorDescriptionDefinitionsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ReleaseDefinition releaseDefinition) Create a release definitioncreateAsync
(ReleaseDefinition releaseDefinition) Create a release definitiondelete
(int definitionId) Delete a release definition.delete
(int definitionId, Consumer<DefinitionsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a release definition.deleteAsync
(int definitionId) Delete a release definition.deleteAsync
(int definitionId, Consumer<DefinitionsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a release definition.get
(int definitionId) Get a release definition.get
(int definitionId, Consumer<DefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a release definition.getAsync
(int definitionId) Get a release definition.getAsync
(int definitionId, Consumer<DefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a release definition.list()
Get a list of release definitions.list
(Consumer<DefinitionsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of release definitions.Get a list of release definitions.listAsync
(Consumer<DefinitionsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of release definitions.revision()
Provides functionality to work with Release Definition revisions Api.update
(ReleaseDefinition releaseDefinition) Update a release definition.updateAsync
(ReleaseDefinition releaseDefinition) Update a release definition.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
DefinitionsRequestBuilder
public DefinitionsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
revision
Provides functionality to work with Release Definition revisions Api.- Returns:
- DefinitionsRevisionRequestBuilder
DefinitionsRevisionRequestBuilder
-
createAsync
public CompletableFuture<ReleaseDefinition> createAsync(ReleaseDefinition releaseDefinition) throws AzDException Create a release definition- Parameters:
releaseDefinition
- Release definition object to create the definition.- Returns:
- ReleaseDefinition
ReleaseDefinition
- Throws:
AzDException
- Default Api Exception handler.
-
deleteAsync
Delete a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.- Throws:
AzDException
- Default Api Exception handler.
-
deleteAsync
public CompletableFuture<Void> deleteAsync(int definitionId, Consumer<DefinitionsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) throws AzDException Delete a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.requestConfiguration
- Request configuration of query parameters.- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Get a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.- Returns:
- ReleaseDefinition
ReleaseDefinition
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<ReleaseDefinition> getAsync(int definitionId, Consumer<DefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration) throws AzDException Get a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.- Returns:
- ReleaseDefinition
ReleaseDefinition
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Get a list of release definitions.- Returns:
- ReleaseDefinitions
ReleaseDefinitions
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<ReleaseDefinitions> listAsync(Consumer<DefinitionsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of release definitions.- Returns:
- ReleaseDefinitions
ReleaseDefinitions
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<ReleaseDefinition> updateAsync(ReleaseDefinition releaseDefinition) throws AzDException Update a release definition.- Parameters:
releaseDefinition
- Pass the release definitionReleaseDefinition
object. You can get it by running either getReleaseDefinitions() or getReleaseDefinition(int definitionId)- Returns:
- a ReleaseDefinition
ReleaseDefinition
object. - Throws:
AzDException
- Default Api exception handler.
-
create
Create a release definition- Parameters:
releaseDefinition
- Release definition object to create the definition.- Returns:
- ReleaseDefinition
ReleaseDefinition
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Delete a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.- Throws:
AzDException
- Default Api Exception handler.
-
delete
public Void delete(int definitionId, Consumer<DefinitionsRequestBuilder.DeleteRequestConfiguration> requestConfiguration) throws AzDException Delete a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.requestConfiguration
- Request configuration of query parameters.- Throws:
AzDException
- Default Api Exception handler.
-
get
Get a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.- Returns:
- ReleaseDefinition
ReleaseDefinition
- Throws:
AzDException
- Default Api Exception handler.
-
get
public ReleaseDefinition get(int definitionId, Consumer<DefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration) throws AzDException Get a release definition.- Parameters:
definitionId
- Id of the release definition/pipeline.- Returns:
- ReleaseDefinition
ReleaseDefinition
- Throws:
AzDException
- Default Api Exception handler.
-
list
Get a list of release definitions.- Returns:
- ReleaseDefinitions
ReleaseDefinitions
- Throws:
AzDException
- Default Api Exception handler.
-
list
public ReleaseDefinitions list(Consumer<DefinitionsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of release definitions.- Returns:
- ReleaseDefinitions
ReleaseDefinitions
- Throws:
AzDException
- Default Api Exception handler.
-
update
Update a release definition.- Parameters:
releaseDefinition
- Pass the release definitionReleaseDefinition
object. You can get it by running either getReleaseDefinitions() or getReleaseDefinition(int definitionId)- Returns:
- a ReleaseDefinition
ReleaseDefinition
object. - Throws:
AzDException
- Default Api exception handler.
-