Class VariableGroupsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.distributedtask.variablegroups.VariableGroupsRequestBuilder
Grant ability to manage distributed task environments Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
ConstructorDescriptionVariableGroupsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionadd
(VariableGroupLibrary variableGroupLibrary) Add a variable group.addAsync
(VariableGroupLibrary variableGroupLibrary) Add a variable group.Delete a variable groupdeleteAsync
(int variableGroupId, String[] projectIds) Delete a variable groupget
(int variableGroupId) Get a variable group.Get variable groups by Ids.getAsync
(int variableGroupId) Get a variable group.Get variable groups by Ids.list()
Get variable groups.list
(Consumer<VariableGroupsRequestBuilder.RequestConfiguration> requestConfiguration) Get variable groups.Get variable groups.listAsync
(Consumer<VariableGroupsRequestBuilder.RequestConfiguration> requestConfiguration) Get variable groups.share
(int variableGroupId, List<VariableGroupProjectReference> variableGroupProjectReferences) Add a variable group.shareAsync
(int variableGroupId, List<VariableGroupProjectReference> variableGroupProjectReferences) Add a variable group.update
(int variableGroupId, VariableGroupLibrary variableGroupLibrary) Update a variable group.updateAsync
(int variableGroupId, VariableGroupLibrary variableGroupLibrary) Update a variable group.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
VariableGroupsRequestBuilder
public VariableGroupsRequestBuilder(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
-
addAsync
public CompletableFuture<VariableGroup> addAsync(VariableGroupLibrary variableGroupLibrary) throws AzDException Add a variable group.- Parameters:
variableGroupLibrary
- Request body of variable groupVariableGroupLibrary
- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
deleteAsync
public CompletableFuture<Void> deleteAsync(int variableGroupId, String[] projectIds) throws AzDException Delete a variable group- Parameters:
variableGroupId
- Id of the variable group.projectIds
- String array of project ids.- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Get a variable group.- Parameters:
variableGroupId
- Id of the variable group.- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Get variable groups.- Returns:
- Variable groups object
VariableGroups
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<VariableGroups> listAsync(Consumer<VariableGroupsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get variable groups.- Parameters:
requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Variable groups object
VariableGroups
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<VariableGroup> getAsync(int variableGroupId, String[] groupIds) throws AzDException Get variable groups by Ids.- Parameters:
variableGroupId
- Id of the variable group.groupIds
- String array of Ids of variable group ids.- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<VariableGroup> updateAsync(int variableGroupId, VariableGroupLibrary variableGroupLibrary) throws AzDException Update a variable group.- Parameters:
variableGroupId
- Id of the variable group.variableGroupLibrary
- Request body to update the variable group.- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
add
Add a variable group.- Parameters:
variableGroupLibrary
- Request body of variable groupVariableGroupLibrary
- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Delete a variable group- Parameters:
variableGroupId
- Id of the variable group.projectIds
- String array of project ids.- Throws:
AzDException
- Default Api Exception handler.
-
get
Get a variable group.- Parameters:
variableGroupId
- Id of the variable group.- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
list
Get variable groups.- Returns:
- Variable groups object
VariableGroups
- Throws:
AzDException
- Default Api Exception handler.
-
list
public VariableGroups list(Consumer<VariableGroupsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get variable groups.- Parameters:
requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Variable groups object
VariableGroups
- Throws:
AzDException
- Default Api Exception handler.
-
get
Get variable groups by Ids.- Parameters:
variableGroupId
- Id of the variable group.groupIds
- String array of Ids of variable group ids.- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-
update
public VariableGroup update(int variableGroupId, VariableGroupLibrary variableGroupLibrary) throws AzDException Update a variable group.- Parameters:
variableGroupId
- Id of the variable group.variableGroupLibrary
- Request body to update the variable group.- Returns:
- Variable group
VariableGroup
- Throws:
AzDException
- Default Api Exception handler.
-