public final class UpdatesAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
deleteUpdate(String provider,
String name,
String version)
Delete a specific update version.
|
Mono<UpdatesDeleteUpdateResponse> |
deleteUpdateWithResponse(String provider,
String name,
String version)
Delete a specific update version.
|
Mono<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.PagedFlux<String> |
getFiles(String provider,
String name,
String version)
Get a list of all update file identifiers for the specified version.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getFilesNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getFilesSinglePage(String provider,
String name,
String version)
Get a list of all update file identifiers for the specified version.
|
Mono<com.azure.core.http.rest.Response<File>> |
getFileWithResponse(String provider,
String name,
String version,
String fileId,
AccessCondition accessCondition)
Get a specific update file from the version.
|
com.azure.core.http.rest.PagedFlux<String> |
getNames(String provider)
Get a list of all update names that match the specified provider.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getNamesNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getNamesSinglePage(String provider)
Get a list of all update names that match the specified provider.
|
Mono<Operation> |
getOperation(String operationId,
AccessCondition accessCondition)
Retrieve operation status.
|
com.azure.core.http.rest.PagedFlux<Operation> |
getOperations(String filter,
Integer top)
Get a list of all import update operations.
|
Mono<com.azure.core.http.rest.PagedResponse<Operation>> |
getOperationsNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<Operation>> |
getOperationsSinglePage(String filter,
Integer top)
Get a list of all import update operations.
|
Mono<UpdatesGetOperationResponse> |
getOperationWithResponse(String operationId,
AccessCondition accessCondition)
Retrieve operation status.
|
com.azure.core.http.rest.PagedFlux<String> |
getProviders()
Get a list of all update providers that have been imported to Device Update for IoT Hub.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getProvidersNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getProvidersSinglePage()
Get a list of all update providers that have been imported to Device Update for IoT Hub.
|
Mono<Update> |
getUpdate(String provider,
String name,
String version,
AccessCondition accessCondition)
Get a specific update version.
|
Mono<com.azure.core.http.rest.Response<Update>> |
getUpdateWithResponse(String provider,
String name,
String version,
AccessCondition accessCondition)
Get a specific update version.
|
com.azure.core.http.rest.PagedFlux<String> |
getVersions(String provider,
String name)
Get a list of all update versions that match the specified provider and name.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getVersionsNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<String>> |
getVersionsSinglePage(String provider,
String name)
Get a list of all update versions that match the specified provider and name.
|
Mono<Void> |
importUpdate(ImportUpdateInput updateToImport)
Import new update version.
|
Mono<UpdatesImportUpdateResponse> |
importUpdateWithResponse(ImportUpdateInput updateToImport)
Import new update version.
|
public Mono<UpdatesImportUpdateResponse> importUpdateWithResponse(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 Mono<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 Mono<com.azure.core.http.rest.Response<Update>> getUpdateWithResponse(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 Mono<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 Mono<UpdatesDeleteUpdateResponse> deleteUpdateWithResponse(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 Mono<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 Mono<com.azure.core.http.rest.PagedResponse<String>> getProvidersSinglePage()
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.PagedFlux<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 Mono<com.azure.core.http.rest.PagedResponse<String>> getNamesSinglePage(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.PagedFlux<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 Mono<com.azure.core.http.rest.PagedResponse<String>> getVersionsSinglePage(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.PagedFlux<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 Mono<com.azure.core.http.rest.PagedResponse<String>> getFilesSinglePage(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.PagedFlux<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 Mono<com.azure.core.http.rest.Response<File>> getFileWithResponse(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 Mono<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 Mono<com.azure.core.http.rest.PagedResponse<Operation>> getOperationsSinglePage(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.PagedFlux<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 Mono<UpdatesGetOperationResponse> getOperationWithResponse(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 Mono<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 Mono<com.azure.core.http.rest.PagedResponse<String>> getProvidersNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.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 Mono<com.azure.core.http.rest.PagedResponse<String>> getNamesNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.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 Mono<com.azure.core.http.rest.PagedResponse<String>> getVersionsNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.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 Mono<com.azure.core.http.rest.PagedResponse<String>> getFilesNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.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 Mono<com.azure.core.http.rest.PagedResponse<Operation>> getOperationsNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.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.