public final class DeploymentsClient extends Object
Modifier and Type | Method and Description |
---|---|
Deployment |
cancelDeployment(String deploymentId)
Cancels a deployment.
|
com.azure.core.http.rest.Response<Deployment> |
cancelDeploymentWithResponse(String deploymentId,
com.azure.core.util.Context context)
Cancels a deployment.
|
Deployment |
createOrUpdateDeployment(String deploymentId,
Deployment deployment)
Creates or updates a deployment.
|
com.azure.core.http.rest.Response<Deployment> |
createOrUpdateDeploymentWithResponse(String deploymentId,
Deployment deployment,
com.azure.core.util.Context context)
Creates or updates a deployment.
|
void |
deleteDeployment(String deploymentId)
Deletes a deployment.
|
com.azure.core.http.rest.Response<Void> |
deleteDeploymentWithResponse(String deploymentId,
com.azure.core.util.Context context)
Deletes a deployment.
|
com.azure.core.http.rest.PagedIterable<Deployment> |
getAllDeployments(String filter)
Gets a list of deployments.
|
com.azure.core.http.rest.PagedIterable<Deployment> |
getAllDeployments(String filter,
com.azure.core.util.Context context)
Gets a list of deployments.
|
Deployment |
getDeployment(String deploymentId)
Gets the properties of a deployment.
|
com.azure.core.http.rest.PagedIterable<DeploymentDeviceState> |
getDeploymentDevices(String deploymentId,
String filter)
Gets a list of devices in a deployment along with their state.
|
com.azure.core.http.rest.PagedIterable<DeploymentDeviceState> |
getDeploymentDevices(String deploymentId,
String filter,
com.azure.core.util.Context context)
Gets a list of devices in a deployment along with their state.
|
DeploymentStatus |
getDeploymentStatus(String deploymentId)
Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress,
completed, or failed.
|
com.azure.core.http.rest.Response<DeploymentStatus> |
getDeploymentStatusWithResponse(String deploymentId,
com.azure.core.util.Context context)
Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress,
completed, or failed.
|
com.azure.core.http.rest.Response<Deployment> |
getDeploymentWithResponse(String deploymentId,
com.azure.core.util.Context context)
Gets the properties of a deployment.
|
Deployment |
retryDeployment(String deploymentId)
Retries a deployment with failed devices.
|
com.azure.core.http.rest.Response<Deployment> |
retryDeploymentWithResponse(String deploymentId,
com.azure.core.util.Context context)
Retries a deployment with failed devices.
|
public com.azure.core.http.rest.PagedIterable<Deployment> getAllDeployments(String filter)
filter
- Restricts the set of deployments returned. You can filter on update Provider, Name and Version
property.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<Deployment> getAllDeployments(String filter, com.azure.core.util.Context context)
filter
- Restricts the set of deployments returned. You can filter on update Provider, Name and Version
property.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Deployment getDeployment(String deploymentId)
deploymentId
- Deployment identifier.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Deployment> getDeploymentWithResponse(String deploymentId, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Deployment createOrUpdateDeployment(String deploymentId, Deployment deployment)
deploymentId
- Deployment identifier.deployment
- The deployment properties.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Deployment> createOrUpdateDeploymentWithResponse(String deploymentId, Deployment deployment, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.deployment
- The deployment properties.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void deleteDeployment(String deploymentId)
deploymentId
- Deployment identifier.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Void> deleteDeploymentWithResponse(String deploymentId, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public DeploymentStatus getDeploymentStatus(String deploymentId)
deploymentId
- Deployment identifier.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<DeploymentStatus> getDeploymentStatusWithResponse(String deploymentId, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<DeploymentDeviceState> getDeploymentDevices(String deploymentId, String filter)
deploymentId
- Deployment identifier.filter
- Restricts the set of deployment device states returned. You can filter on deviceId and/or
deviceState.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<DeploymentDeviceState> getDeploymentDevices(String deploymentId, String filter, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.filter
- Restricts the set of deployment device states returned. You can filter on deviceId and/or
deviceState.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Deployment cancelDeployment(String deploymentId)
deploymentId
- Deployment identifier.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Deployment> cancelDeploymentWithResponse(String deploymentId, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Deployment retryDeployment(String deploymentId)
deploymentId
- Deployment identifier.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Deployment> retryDeploymentWithResponse(String deploymentId, com.azure.core.util.Context context)
deploymentId
- Deployment identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.