Package org.azd.test.session
Class SessionRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.test.session.SessionRequestBuilder
Provides functionality to work with Test session Api.
-
Nested Class Summary
Nested ClassesModifier 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
ConstructorsConstructorDescriptionSessionRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String projectTeam, TestSession testSession) Create a test session.createAsync
(String projectTeam, TestSession testSession) Create a test session.Get a list of test sessions.list
(String projectTeam, Consumer<SessionRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of test sessions.Get a list of test sessions.listAsync
(String projectTeam, Consumer<SessionRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of test sessions.update
(String projectTeam, TestSession testSession) Update a test sessionupdateAsync
(String projectTeam, TestSession testSession) Update a test sessionMethods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
SessionRequestBuilder
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
public CompletableFuture<TestSession> createAsync(String projectTeam, TestSession testSession) throws AzDException Create a test session.- Parameters:
projectTeam
- Team ID or team name.testSession
- Session create model object to create a test session.- Returns:
- Test session Object
TestSession
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Get a list of test sessions.- Parameters:
projectTeam
- Team ID or team name.- Returns:
- Array of Test session Object
TestSessions
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<TestSessions> listAsync(String projectTeam, Consumer<SessionRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of test sessions.- Parameters:
projectTeam
- Team ID or team name.requestConfiguration
- Represents the query parameters.- Returns:
- Array of Test session Object
TestSessions
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<TestSession> updateAsync(String projectTeam, TestSession testSession) throws AzDException Update a test session- Parameters:
projectTeam
- Team ID or team name.testSession
- Session create model object to create a test session.- Returns:
- Test session Object
TestSession
- Throws:
AzDException
- Default Api Exception handler.
-
create
Create a test session.- Parameters:
projectTeam
- Team ID or team name.testSession
- Session create model object to create a test session.- Returns:
- Test session Object
TestSession
- Throws:
AzDException
- Default Api Exception handler.
-
list
Get a list of test sessions.- Parameters:
projectTeam
- Team ID or team name.- Returns:
- Array of Test session Object
TestSessions
- Throws:
AzDException
- Default Api Exception handler.
-
list
public TestSessions list(String projectTeam, Consumer<SessionRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of test sessions.- Parameters:
projectTeam
- Team ID or team name.requestConfiguration
- Represents the query parameters.- Returns:
- Array of Test session Object
TestSessions
- Throws:
AzDException
- Default Api Exception handler.
-
update
Update a test session- Parameters:
projectTeam
- Team ID or team name.testSession
- Session create model object to create a test session.- Returns:
- Test session Object
TestSession
- Throws:
AzDException
- Default Api Exception handler.
-