public final class UpdatesClient extends Object
Modifier and Type | Method and Description |
---|---|
void |
deleteUpdate(String provider,
String name,
String version)
Delete a specific update version.
|
com.azure.core.http.rest.Response<Void> |
deleteUpdateWithResponse(String provider,
String name,
String version,
com.azure.core.util.Context context)
Delete a specific update version.
|
File |
getFile(String provider,
String name,
String version,
String fileId,
AccessCondition accessCondition)
Get a specific update file from the version.
|
com.azure.core.http.rest.PagedIterable<String> |
getFiles(String provider,
String name,
String version)
Get a list of all update file identifiers for the specified version.
|
com.azure.core.http.rest.PagedIterable<String> |
getFiles(String provider,
String name,
String version,
com.azure.core.util.Context context)
Get a list of all update file identifiers for the specified version.
|
com.azure.core.http.rest.Response<File> |
getFileWithResponse(String provider,
String name,
String version,
String fileId,
AccessCondition accessCondition,
com.azure.core.util.Context context)
Get a specific update file from the version.
|
com.azure.core.http.rest.PagedIterable<String> |
getNames(String provider)
Get a list of all update names that match the specified provider.
|
com.azure.core.http.rest.PagedIterable<String> |
getNames(String provider,
com.azure.core.util.Context context)
Get a list of all update names that match the specified provider.
|
Operation |
getOperation(String operationId,
AccessCondition accessCondition)
Retrieve operation status.
|
com.azure.core.http.rest.PagedIterable<Operation> |
getOperations(String filter,
Integer top)
Get a list of all import update operations.
|
com.azure.core.http.rest.PagedIterable<Operation> |
getOperations(String filter,
Integer top,
com.azure.core.util.Context context)
Get a list of all import update operations.
|
com.azure.core.http.rest.Response<Operation> |
getOperationWithResponse(String operationId,
AccessCondition accessCondition,
com.azure.core.util.Context context)
Retrieve operation status.
|
com.azure.core.http.rest.PagedIterable<String> |
getProviders()
Get a list of all update providers that have been imported to Device Update for IoT Hub.
|
com.azure.core.http.rest.PagedIterable<String> |
getProviders(com.azure.core.util.Context context)
Get a list of all update providers that have been imported to Device Update for IoT Hub.
|
Update |
getUpdate(String provider,
String name,
String version,
AccessCondition accessCondition)
Get a specific update version.
|
com.azure.core.http.rest.Response<Update> |
getUpdateWithResponse(String provider,
String name,
String version,
AccessCondition accessCondition,
com.azure.core.util.Context context)
Get a specific update version.
|
com.azure.core.http.rest.PagedIterable<String> |
getVersions(String provider,
String name)
Get a list of all update versions that match the specified provider and name.
|
com.azure.core.http.rest.PagedIterable<String> |
getVersions(String provider,
String name,
com.azure.core.util.Context context)
Get a list of all update versions that match the specified provider and name.
|
void |
importUpdate(ImportUpdateInput updateToImport)
Import new update version.
|
com.azure.core.http.rest.Response<Void> |
importUpdateWithResponse(ImportUpdateInput updateToImport,
com.azure.core.util.Context context)
Import new update version.
|
public void importUpdate(ImportUpdateInput updateToImport)
updateToImport
- The update to be imported.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> importUpdateWithResponse(ImportUpdateInput updateToImport, com.azure.core.util.Context context)
updateToImport
- The update to be imported.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 Update getUpdate(String provider, String name, String version, AccessCondition accessCondition)
provider
- Update provider.name
- Update name.version
- Update version.accessCondition
- Parameter group.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<Update> getUpdateWithResponse(String provider, String name, String version, AccessCondition accessCondition, com.azure.core.util.Context context)
provider
- Update provider.name
- Update name.version
- Update version.accessCondition
- Parameter group.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 deleteUpdate(String provider, String name, String version)
provider
- Update provider.name
- Update name.version
- Update version.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> deleteUpdateWithResponse(String provider, String name, String version, com.azure.core.util.Context context)
provider
- Update provider.name
- Update name.version
- Update version.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<String> getProviders()
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<String> getProviders(com.azure.core.util.Context context)
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<String> getNames(String provider)
provider
- Update provider.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<String> getNames(String provider, com.azure.core.util.Context context)
provider
- Update provider.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<String> getVersions(String provider, String name)
provider
- Update provider.name
- Update name.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<String> getVersions(String provider, String name, com.azure.core.util.Context context)
provider
- Update provider.name
- Update name.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<String> getFiles(String provider, String name, String version)
provider
- Update provider.name
- Update name.version
- Update version.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<String> getFiles(String provider, String name, String version, com.azure.core.util.Context context)
provider
- Update provider.name
- Update name.version
- Update version.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 File getFile(String provider, String name, String version, String fileId, AccessCondition accessCondition)
provider
- Update provider.name
- Update name.version
- Update version.fileId
- File identifier.accessCondition
- Parameter group.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<File> getFileWithResponse(String provider, String name, String version, String fileId, AccessCondition accessCondition, com.azure.core.util.Context context)
provider
- Update provider.name
- Update name.version
- Update version.fileId
- File identifier.accessCondition
- Parameter group.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<Operation> getOperations(String filter, Integer top)
filter
- Restricts the set of operations returned. Only one specific filter is supported: "status eq
'NotStarted' or status eq 'Running'".top
- Specifies a non-negative integer n that limits the number of items returned from a collection. The
service returns the number of available items up to but not greater than the specified value n.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<Operation> getOperations(String filter, Integer top, com.azure.core.util.Context context)
filter
- Restricts the set of operations returned. Only one specific filter is supported: "status eq
'NotStarted' or status eq 'Running'".top
- Specifies a non-negative integer n that limits the number of items returned from a collection. The
service returns the number of available items up to but not greater than the specified value n.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 Operation getOperation(String operationId, AccessCondition accessCondition)
operationId
- Operation identifier.accessCondition
- Parameter group.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<Operation> getOperationWithResponse(String operationId, AccessCondition accessCondition, com.azure.core.util.Context context)
operationId
- Operation identifier.accessCondition
- Parameter group.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.