Package org.azd.build.folders
Class FoldersRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.folders.FoldersRequestBuilder
Provides methods for working with folders of build definitions.
-
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
ConstructorDescriptionFoldersRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new folder.createAsync
(String path, Folder folder) Creates a new folder.Deletes a definition folder.deleteAsync
(String path) Deletes a definition folder.list()
Gets a list of build definition folders.list
(String path, FolderQueryOrder queryOrder) Gets a list of build definition folders.Gets a list of build definition folders.listAsync
(String path, FolderQueryOrder queryOrder) Gets a list of build definition folders.Updates an existing folder at given existing pathupdateAsync
(String path, Folder folder) Updates an existing folder at given existing pathMethods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
FoldersRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
createAsync
Creates a new folder.- Parameters:
path
- The full path of the folder.folder
- Folder object with mandatory details.- Returns:
- Folder Object
Folder
- Throws:
AzDException
- Default Api Exception handler.
-
deleteAsync
Deletes a definition folder. Definitions and their corresponding builds will also be deleted.- Parameters:
path
- The full path to the folder.- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Gets a list of build definition folders.- Returns:
- List of folder Object
Folders
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<Folders> listAsync(String path, FolderQueryOrder queryOrder) throws AzDException Gets a list of build definition folders.- Returns:
- List of folder Object
Folders
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
Updates an existing folder at given existing path- Parameters:
path
- The full path to the folder.- Returns:
- Folder Object
Folder
- Throws:
AzDException
- Default Api Exception handler.
-
create
Creates a new folder.- Parameters:
path
- The full path of the folder.folder
- Folder object with mandatory details.- Returns:
- Folder Object
Folder
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Deletes a definition folder. Definitions and their corresponding builds will also be deleted.- Parameters:
path
- The full path to the folder.- Throws:
AzDException
- Default Api Exception handler.
-
list
Gets a list of build definition folders.- Returns:
- List of folder Object
Folders
- Throws:
AzDException
- Default Api Exception handler.
-
list
Gets a list of build definition folders.- Returns:
- List of folder Object
Folders
- Throws:
AzDException
- Default Api Exception handler.
-
update
Updates an existing folder at given existing path- Parameters:
path
- The full path to the folder.- Returns:
- Folder Object
Folder
- Throws:
AzDException
- Default Api Exception handler.
-