Package org.azd.build.yaml
Class YamlRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.yaml.YamlRequestBuilder
Provides functionality to work with Build Yaml Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
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
ConstructorDescriptionYamlRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(int definitionId) Converts a definition to YAML.get
(int definitionId, Consumer<YamlRequestBuilder.RequestConfiguration> requestConfiguration) Converts a definition to YAML.getAsync
(int definitionId) Converts a definition to YAML.getAsync
(int definitionId, Consumer<YamlRequestBuilder.RequestConfiguration> requestConfiguration) Converts a definition to YAML.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
YamlRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
getAsync
Converts a definition to YAML.- Parameters:
definitionId
- The ID of the definition.- Returns:
- Yaml build object
YamlBuild
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<YamlBuild> getAsync(int definitionId, Consumer<YamlRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Converts a definition to YAML.- Parameters:
definitionId
- The ID of the definition.requestConfiguration
- Consumer of query parameters to filter.- Returns:
- Yaml build object
YamlBuild
- Throws:
AzDException
- Default Api Exception handler.
-
get
Converts a definition to YAML.- Parameters:
definitionId
- The ID of the definition.- Returns:
- Yaml build object
YamlBuild
- Throws:
AzDException
- Default Api Exception handler.
-
get
public YamlBuild get(int definitionId, Consumer<YamlRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Converts a definition to YAML.- Parameters:
definitionId
- The ID of the definition.requestConfiguration
- Consumer of query parameters to filter.- Returns:
- Yaml build object
YamlBuild
- Throws:
AzDException
- Default Api Exception handler.
-