Package org.azd.core.projects
Class PropertiesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.core.projects.PropertiesRequestBuilder
Provides functionality to manage project properties 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
ConstructorsConstructorDescriptionPropertiesRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionGet a collection of team project properties.Get a collection of team project properties.Get a collection of team project properties.Get a collection of team project properties.set(String projectId, JsonPatchDocument projectProperty) Create, update, and delete team project properties.setAsync(String projectId, JsonPatchDocument projectProperty) Create, update, and delete team project properties.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
PropertiesRequestBuilder
public PropertiesRequestBuilder(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
-
getAsync
Get a collection of team project properties.- Parameters:
projectId- provide the project guid not the project name- Returns:
- ProjectProperties
ProjectProperties - Throws:
AzDException- Default Api Exception handler.
-
getAsync
public CompletableFuture<ProjectProperties> getAsync(String projectId, String... keys) throws AzDException Get a collection of team project properties.- Parameters:
projectId- provide the project guid not the project namekeys- A comma-delimited string of team project property names. Wildcard characters ("?" and "*") are supported. If no key is specified, all properties will be returned.- Returns:
- ProjectProperties
ProjectProperties - Throws:
AzDException- Default Api Exception handler.
-
setAsync
public CompletableFuture<Void> setAsync(String projectId, JsonPatchDocument projectProperty) throws AzDException Create, update, and delete team project properties.- Parameters:
projectId- provide the project guid not the project name- Throws:
AzDException- Default Api Exception handler.
-
get
Get a collection of team project properties.- Parameters:
projectId- provide the project guid not the project name- Returns:
- ProjectProperties
ProjectProperties - Throws:
AzDException- Default Api Exception handler.
-
get
Get a collection of team project properties.- Parameters:
projectId- provide the project guid not the project namekeys- A comma-delimited string of team project property names. Wildcard characters ("?" and "*") are supported. If no key is specified, all properties will be returned.- Returns:
- ProjectProperties
ProjectProperties - Throws:
AzDException- Default Api Exception handler.
-
set
Create, update, and delete team project properties.- Parameters:
projectId- provide the project guid not the project name- Throws:
AzDException- Default Api Exception handler.
-