Package com.azure.developer.devcenter
Class DevCenterAsyncClient
java.lang.Object
com.azure.developer.devcenter.DevCenterAsyncClient
Initializes a new instance of the asynchronous DevCenterClient type.
-
Method Summary
Modifier and TypeMethodDescriptionInitializes a new instance of DeploymentEnvironmentsAsyncClient from DevCenterAsyncClient.Initializes a new instance of DevBoxesAsyncClient from DevCenterAsyncClient.getProject(String projectName) Gets a project.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getProjectWithResponse(String projectName, com.azure.core.http.rest.RequestOptions requestOptions) Gets a project.com.azure.core.http.rest.PagedFlux<DevCenterProject> Lists all projects.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listProjects(com.azure.core.http.rest.RequestOptions requestOptions) Lists all projects.
-
Method Details
-
getDevBoxesAsyncClient
Initializes a new instance of DevBoxesAsyncClient from DevCenterAsyncClient.- Returns:
- Dev Boxes Async Client
-
getDeploymentEnvironmentsAsyncClient
Initializes a new instance of DeploymentEnvironmentsAsyncClient from DevCenterAsyncClient.- Returns:
- Deployment Environments Async Client
-
listProjects
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listProjects(com.azure.core.http.rest.RequestOptions requestOptions) Lists all projects.Response Body Schema
{ name: String (Required) description: String (Optional) maxDevBoxesPerUser: Integer (Optional) }- Parameters:
requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged collection of Project items as paginated response with
PagedFlux. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
getProjectWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getProjectWithResponse(String projectName, com.azure.core.http.rest.RequestOptions requestOptions) Gets a project.Response Body Schema
{ name: String (Required) description: String (Optional) maxDevBoxesPerUser: Integer (Optional) }- Parameters:
projectName- Name of the project.requestOptions- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a project along with
Responseon successful completion ofMono. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.
-
listProjects
Lists all projects.- Returns:
- paged collection of Project items as paginated response with
PagedFlux. - Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getProject
Gets a project.- Parameters:
projectName- Name of the project.- Returns:
- a project on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException- thrown if the request is rejected by server on status code 409.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-