diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/CHANGELOG.md b/sdk/deviceupdate/azure-iot-deviceupdate/CHANGELOG.md index 8589e34d793e4..16d1503a0decb 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/CHANGELOG.md +++ b/sdk/deviceupdate/azure-iot-deviceupdate/CHANGELOG.md @@ -6,6 +6,9 @@ ### Breaking Changes +- Added `DeviceManagementClientBuilder` to create `DeviceManagementClient` instance via `DeviceManagementClientBuilder.buildClient()`. +- Modified `DeviceUpdateClientBuilder` to create `DeviceUpdateClient` instance via `DeviceUpdateClientBuilder.buildClient()`. + ### Bugs Fixed ### Other Changes diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementAsyncClient.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementAsyncClient.java index a721bb14056bd..a176a20f62cdd 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementAsyncClient.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementAsyncClient.java @@ -8,7 +8,10 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.RequestOptions; import com.azure.core.http.rest.Response; @@ -18,7 +21,7 @@ import reactor.core.publisher.Mono; /** Initializes a new instance of the asynchronous DeviceUpdateClient type. */ -@ServiceClient(builder = DeviceUpdateClientBuilder.class, isAsync = true) +@ServiceClient(builder = DeviceManagementClientBuilder.class, isAsync = true) public final class DeviceManagementAsyncClient { @Generated private final DeviceManagementsImpl serviceClient; @@ -41,7 +44,7 @@ public final class DeviceManagementAsyncClient { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -67,8 +70,11 @@ public final class DeviceManagementAsyncClient { * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices - * connected to Device Update for IoT Hub. + * connected to Device Update for IoT Hub as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -84,7 +90,7 @@ public PagedFlux listDeviceClasses(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -106,6 +112,9 @@ public PagedFlux listDeviceClasses(RequestOptions requestOptions) { * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a device class along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -122,7 +131,7 @@ public Mono> getDeviceClassWithResponse(String deviceClassI * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -143,7 +152,10 @@ public Mono> getDeviceClassWithResponse(String deviceClassI * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of installable updates for a device class. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of installable updates for a device class as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -160,8 +172,8 @@ public PagedFlux listInstallableUpdatesForDeviceClass( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -207,7 +219,10 @@ public PagedFlux listInstallableUpdatesForDeviceClass( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices connected to Device Update for IoT Hub as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -223,7 +238,7 @@ public PagedFlux listDevices(RequestOptions requestOptions) { * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -236,6 +251,9 @@ public PagedFlux listDevices(RequestOptions requestOptions) { * @param importType The types of devices to import. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -252,7 +270,7 @@ public Mono> importDevicesWithResponse(BinaryData importType, Req * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -265,7 +283,10 @@ public Mono> importDevicesWithResponse(BinaryData importType, Req * @param importType The types of devices to import. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of long-running operation. */ @Generated @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) @@ -281,7 +302,7 @@ public PollerFlux beginImportDevices(BinaryData importTy * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -323,6 +344,9 @@ public PollerFlux beginImportDevices(BinaryData importTy * @param deviceId Device identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device properties and latest deployment status for a device connected to Device Update for IoT Hub * along with {@link Response} on successful completion of {@link Mono}. */ @@ -341,7 +365,7 @@ public Mono> getDeviceWithResponse(String deviceId, Request * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -384,6 +408,9 @@ public Mono> getDeviceWithResponse(String deviceId, Request * @param moduleId Device module identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device module properties and latest deployment status for a device module connected to Device Update * for IoT Hub along with {@link Response} on successful completion of {@link Mono}. */ @@ -403,7 +430,7 @@ public Mono> getDeviceModuleWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -419,6 +446,9 @@ public Mono> getDeviceModuleWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the breakdown of how many devices are on their latest update, have new updates available, or are in * progress receiving new updates along with {@link Response} on successful completion of {@link Mono}. */ @@ -436,7 +466,7 @@ public Mono> getUpdateComplianceWithResponse(RequestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -455,7 +485,11 @@ public Mono> getUpdateComplianceWithResponse(RequestOptions * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of available group device tags for all devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of available group device tags for all devices connected to Device Update for IoT Hub as paginated + * response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -471,7 +505,7 @@ public PagedFlux listDeviceTags(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -486,6 +520,9 @@ public PagedFlux listDeviceTags(RequestOptions requestOptions) { * @param tagName Tag name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a count of how many devices have a device tag along with {@link Response} on successful completion of * {@link Mono}. */ @@ -503,7 +540,7 @@ public Mono> getDeviceTagWithResponse(String tagName, Reque * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -529,7 +566,10 @@ public Mono> getDeviceTagWithResponse(String tagName, Reque * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device groups. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device groups as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -545,7 +585,7 @@ public PagedFlux listGroups(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -567,6 +607,9 @@ public PagedFlux listGroups(RequestOptions requestOptions) { * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a group along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -583,7 +626,7 @@ public Mono> getGroupWithResponse(String groupId, RequestOp * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -622,6 +665,9 @@ public Mono> getGroupWithResponse(String groupId, RequestOp * @param group The group properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group details along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -639,12 +685,15 @@ public Mono> createOrUpdateGroupWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -662,7 +711,7 @@ public Mono> deleteGroupWithResponse(String groupId, RequestOptio * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -679,6 +728,9 @@ public Mono> deleteGroupWithResponse(String groupId, RequestOptio * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group update compliance information such as how many devices are on their latest update, how many need * new updates, and how many are in progress on receiving a new update along with {@link Response} on successful * completion of {@link Mono}. @@ -698,8 +750,8 @@ public Mono> getGroupUpdateComplianceWithResponse( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -723,7 +775,11 @@ public Mono> getGroupUpdateComplianceWithResponse( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the best available updates for a group and a count of how many devices need each update. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the best available updates for a group and a count of how many devices need each update as paginated + * response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -739,8 +795,8 @@ public PagedFlux listBestUpdatesForGroup(String groupId, RequestOpti * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -768,7 +824,10 @@ public PagedFlux listBestUpdatesForGroup(String groupId, RequestOpti * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of deployments for a group. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of deployments for a group as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -784,7 +843,7 @@ public PagedFlux listDeploymentsForGroup(String groupId, RequestOpti * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -808,6 +867,9 @@ public PagedFlux listDeploymentsForGroup(String groupId, RequestOpti * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a deployment along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -825,7 +887,7 @@ public Mono> getDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -867,6 +929,9 @@ public Mono> getDeploymentWithResponse( * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -885,13 +950,16 @@ public Mono> createOrUpdateDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -910,7 +978,7 @@ public Mono> deleteDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -930,6 +998,9 @@ public Mono> deleteDeploymentWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the status of a deployment including a breakdown of how many devices in the deployment are in progress, * completed, or failed along with {@link Response} on successful completion of {@link Mono}. */ @@ -948,8 +1019,8 @@ public Mono> getDeploymentStatusWithResponse( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -973,7 +1044,10 @@ public Mono> getDeploymentStatusWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices in a deployment along with their state. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices in a deployment along with their state as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -990,7 +1064,7 @@ public PagedFlux listDeploymentDevices( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -998,7 +1072,7 @@ public PagedFlux listDeploymentDevices( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -1032,6 +1106,9 @@ public PagedFlux listDeploymentDevices( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -1048,9 +1125,9 @@ public Mono> getOperationWithResponse(String operationId, R * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1088,7 +1165,10 @@ public Mono> getOperationWithResponse(String operationId, R * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device import operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device import operations as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1104,7 +1184,7 @@ public PagedFlux listOperations(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -1147,6 +1227,9 @@ public PagedFlux listOperations(RequestOptions requestOptions) { * @param logCollectionRequest The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return diagnostics request body along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -1164,7 +1247,7 @@ public Mono> collectLogsWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1188,6 +1271,9 @@ public Mono> collectLogsWithResponse( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device diagnostics log collection operation along with {@link Response} on successful completion of * {@link Mono}. */ @@ -1206,7 +1292,7 @@ public Mono> getLogCollectionOperationWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1234,7 +1320,10 @@ public Mono> getLogCollectionOperationWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return all device diagnostics log collection operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return all device diagnostics log collection operations as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1250,7 +1339,7 @@ public PagedFlux listLogCollectionOperations(RequestOptions requestO * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1278,6 +1367,9 @@ public PagedFlux listLogCollectionOperations(RequestOptions requestO * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return device diagnostics log collection operation with detailed status along with {@link Response} on * successful completion of {@link Mono}. */ @@ -1297,7 +1389,7 @@ public Mono> getLogCollectionOperationDetailedStatusWithRes * Query Parameters * NameTypeRequiredDescription * actionStringYesCancel deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -1321,6 +1413,9 @@ public Mono> getLogCollectionOperationDetailedStatusWithRes * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -1339,7 +1434,7 @@ public Mono> stopDeploymentWithResponse( * Query Parameters * NameTypeRequiredDescription * actionStringYesRetry deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -1363,6 +1458,9 @@ public Mono> stopDeploymentWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @Generated diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClient.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClient.java index 6eb895a329232..bd30705bfc386 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClient.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClient.java @@ -8,17 +8,19 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.RequestOptions; import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import com.azure.core.util.polling.SyncPoller; import com.azure.iot.deviceupdate.implementation.DeviceManagementsImpl; -import reactor.core.publisher.Mono; /** Initializes a new instance of the synchronous DeviceUpdateClient type. */ -@ServiceClient(builder = DeviceUpdateClientBuilder.class) +@ServiceClient(builder = DeviceManagementClientBuilder.class) public final class DeviceManagementClient { @Generated private final DeviceManagementsImpl serviceClient; @@ -41,7 +43,7 @@ public final class DeviceManagementClient { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -67,8 +69,11 @@ public final class DeviceManagementClient { * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices - * connected to Device Update for IoT Hub. + * connected to Device Update for IoT Hub as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -84,7 +89,7 @@ public PagedIterable listDeviceClasses(RequestOptions requestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -106,6 +111,9 @@ public PagedIterable listDeviceClasses(RequestOptions requestOptions * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a device class along with {@link Response}. */ @Generated @@ -122,7 +130,7 @@ public Response getDeviceClassWithResponse(String deviceClassId, Req * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -143,7 +151,10 @@ public Response getDeviceClassWithResponse(String deviceClassId, Req * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of installable updates for a device class. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of installable updates for a device class as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -160,8 +171,8 @@ public PagedIterable listInstallableUpdatesForDeviceClass( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -207,7 +218,11 @@ public PagedIterable listInstallableUpdatesForDeviceClass( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices connected to Device Update for IoT Hub as paginated response with {@link + * PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -223,7 +238,7 @@ public PagedIterable listDevices(RequestOptions requestOptions) { * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -236,7 +251,10 @@ public PagedIterable listDevices(RequestOptions requestOptions) { * @param importType The types of devices to import. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of long-running operation. */ @Generated @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) @@ -252,7 +270,7 @@ public SyncPoller beginImportDevices(BinaryData importTy * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -294,6 +312,9 @@ public SyncPoller beginImportDevices(BinaryData importTy * @param deviceId Device identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device properties and latest deployment status for a device connected to Device Update for IoT Hub * along with {@link Response}. */ @@ -312,7 +333,7 @@ public Response getDeviceWithResponse(String deviceId, RequestOption * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -355,6 +376,9 @@ public Response getDeviceWithResponse(String deviceId, RequestOption * @param moduleId Device module identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device module properties and latest deployment status for a device module connected to Device Update * for IoT Hub along with {@link Response}. */ @@ -374,7 +398,7 @@ public Response getDeviceModuleWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -390,6 +414,9 @@ public Response getDeviceModuleWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the breakdown of how many devices are on their latest update, have new updates available, or are in * progress receiving new updates along with {@link Response}. */ @@ -407,7 +434,7 @@ public Response getUpdateComplianceWithResponse(RequestOptions reque * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -426,7 +453,11 @@ public Response getUpdateComplianceWithResponse(RequestOptions reque * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of available group device tags for all devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of available group device tags for all devices connected to Device Update for IoT Hub as paginated + * response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -442,7 +473,7 @@ public PagedIterable listDeviceTags(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -457,6 +488,9 @@ public PagedIterable listDeviceTags(RequestOptions requestOptions) { * @param tagName Tag name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a count of how many devices have a device tag along with {@link Response}. */ @Generated @@ -473,7 +507,7 @@ public Response getDeviceTagWithResponse(String tagName, RequestOpti * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -499,7 +533,10 @@ public Response getDeviceTagWithResponse(String tagName, RequestOpti * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device groups. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device groups as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -515,7 +552,7 @@ public PagedIterable listGroups(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -537,6 +574,9 @@ public PagedIterable listGroups(RequestOptions requestOptions) { * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a group along with {@link Response}. */ @Generated @@ -553,7 +593,7 @@ public Response getGroupWithResponse(String groupId, RequestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -592,6 +632,9 @@ public Response getGroupWithResponse(String groupId, RequestOptions * @param group The group properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group details along with {@link Response}. */ @Generated @@ -609,12 +652,15 @@ public Response createOrUpdateGroupWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response}. */ @Generated @@ -632,7 +678,7 @@ public Response deleteGroupWithResponse(String groupId, RequestOptions req * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -649,6 +695,9 @@ public Response deleteGroupWithResponse(String groupId, RequestOptions req * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group update compliance information such as how many devices are on their latest update, how many need * new updates, and how many are in progress on receiving a new update along with {@link Response}. */ @@ -666,8 +715,8 @@ public Response getGroupUpdateComplianceWithResponse(String groupId, * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -691,7 +740,11 @@ public Response getGroupUpdateComplianceWithResponse(String groupId, * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the best available updates for a group and a count of how many devices need each update. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the best available updates for a group and a count of how many devices need each update as paginated + * response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -707,8 +760,8 @@ public PagedIterable listBestUpdatesForGroup(String groupId, Request * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -736,7 +789,10 @@ public PagedIterable listBestUpdatesForGroup(String groupId, Request * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of deployments for a group. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of deployments for a group as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -752,7 +808,7 @@ public PagedIterable listDeploymentsForGroup(String groupId, Request * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -776,6 +832,9 @@ public PagedIterable listDeploymentsForGroup(String groupId, Request * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a deployment along with {@link Response}. */ @Generated @@ -793,7 +852,7 @@ public Response getDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -835,6 +894,9 @@ public Response getDeploymentWithResponse( * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response}. */ @Generated @@ -853,13 +915,16 @@ public Response createOrUpdateDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response}. */ @Generated @@ -878,7 +943,7 @@ public Response deleteDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -898,6 +963,9 @@ public Response deleteDeploymentWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the status of a deployment including a breakdown of how many devices in the deployment are in progress, * completed, or failed along with {@link Response}. */ @@ -916,8 +984,8 @@ public Response getDeploymentStatusWithResponse( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -941,7 +1009,11 @@ public Response getDeploymentStatusWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices in a deployment along with their state. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices in a deployment along with their state as paginated response with {@link + * PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -958,7 +1030,7 @@ public PagedIterable listDeploymentDevices( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -966,7 +1038,7 @@ public PagedIterable listDeploymentDevices( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -1000,6 +1072,9 @@ public PagedIterable listDeploymentDevices( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response}. */ @Generated @@ -1016,9 +1091,9 @@ public Response getOperationWithResponse(String operationId, Request * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1056,7 +1131,10 @@ public Response getOperationWithResponse(String operationId, Request * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device import operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device import operations as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1072,7 +1150,7 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -1115,6 +1193,9 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * @param logCollectionRequest The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return diagnostics request body along with {@link Response}. */ @Generated @@ -1132,7 +1213,7 @@ public Response collectLogsWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1156,6 +1237,9 @@ public Response collectLogsWithResponse( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device diagnostics log collection operation along with {@link Response}. */ @Generated @@ -1173,7 +1257,7 @@ public Response getLogCollectionOperationWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1201,7 +1285,10 @@ public Response getLogCollectionOperationWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return all device diagnostics log collection operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return all device diagnostics log collection operations as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1217,7 +1304,7 @@ public PagedIterable listLogCollectionOperations(RequestOptions requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1245,6 +1332,9 @@ public PagedIterable listLogCollectionOperations(RequestOptions requ * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return device diagnostics log collection operation with detailed status along with {@link Response}. */ @Generated @@ -1263,7 +1353,7 @@ public Response getLogCollectionOperationDetailedStatusWithResponse( * Query Parameters * NameTypeRequiredDescription * actionStringYesCancel deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -1287,6 +1377,9 @@ public Response getLogCollectionOperationDetailedStatusWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response}. */ @Generated @@ -1305,7 +1398,7 @@ public Response stopDeploymentWithResponse( * Query Parameters * NameTypeRequiredDescription * actionStringYesRetry deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -1329,6 +1422,9 @@ public Response stopDeploymentWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response}. */ @Generated diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClientBuilder.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClientBuilder.java new file mode 100644 index 0000000000000..200243a3abe34 --- /dev/null +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceManagementClientBuilder.java @@ -0,0 +1,329 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.iot.deviceupdate; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; +import com.azure.core.http.policy.AddHeadersPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.ClientOptions; +import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.serializer.JacksonAdapter; +import com.azure.iot.deviceupdate.implementation.DeviceUpdateClientImpl; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** A builder for creating a new instance of the DeviceManagementClient type. */ +@ServiceClientBuilder(serviceClients = {DeviceManagementClient.class, DeviceManagementAsyncClient.class}) +public final class DeviceManagementClientBuilder { + @Generated private static final String SDK_NAME = "name"; + + @Generated private static final String SDK_VERSION = "version"; + + @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://api.adu.microsoft.com/.default"}; + + @Generated + private final Map properties = CoreUtils.getProperties("azure-iot-deviceupdate.properties"); + + /** Create an instance of the DeviceManagementClientBuilder. */ + @Generated + public DeviceManagementClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * Account endpoint. + */ + @Generated private String endpoint; + + /** + * Sets Account endpoint. + * + * @param endpoint the endpoint value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * Account instance identifier. + */ + @Generated private String instanceId; + + /** + * Sets Account instance identifier. + * + * @param instanceId the instanceId value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /* + * Service version + */ + @Generated private DeviceUpdateServiceVersion serviceVersion; + + /** + * Sets Service version. + * + * @param serviceVersion the serviceVersion value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder serviceVersion(DeviceUpdateServiceVersion serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + + /* + * The HTTP pipeline to send requests through + */ + @Generated private HttpPipeline pipeline; + + /** + * Sets The HTTP pipeline to send requests through. + * + * @param pipeline the pipeline value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /* + * The HTTP client used to send the request. + */ + @Generated private HttpClient httpClient; + + /** + * Sets The HTTP client used to send the request. + * + * @param httpClient the httpClient value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The configuration store that is used during construction of the service + * client. + */ + @Generated private Configuration configuration; + + /** + * Sets The configuration store that is used during construction of the service client. + * + * @param configuration the configuration value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The TokenCredential used for authentication. + */ + @Generated private TokenCredential tokenCredential; + + /** + * Sets The TokenCredential used for authentication. + * + * @param tokenCredential the tokenCredential value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder credential(TokenCredential tokenCredential) { + this.tokenCredential = tokenCredential; + return this; + } + + /* + * The logging configuration for HTTP requests and responses. + */ + @Generated private HttpLogOptions httpLogOptions; + + /** + * Sets The logging configuration for HTTP requests and responses. + * + * @param httpLogOptions the httpLogOptions value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) { + this.httpLogOptions = httpLogOptions; + return this; + } + + /* + * The retry policy that will attempt to retry failed requests, if + * applicable. + */ + @Generated private RetryPolicy retryPolicy; + + /** + * Sets The retry policy that will attempt to retry failed requests, if applicable. + * + * @param retryPolicy the retryPolicy value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /* + * The list of Http pipeline policies to add. + */ + @Generated private final List pipelinePolicies; + + /* + * The client options such as application ID and custom headers to set on a + * request. + */ + @Generated private ClientOptions clientOptions; + + /** + * Sets The client options such as application ID and custom headers to set on a request. + * + * @param clientOptions the clientOptions value. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder clientOptions(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + return this; + } + + /** + * Adds a custom Http pipeline policy. + * + * @param customPolicy The custom Http pipeline policy to add. + * @return the DeviceManagementClientBuilder. + */ + @Generated + public DeviceManagementClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { + pipelinePolicies.add(customPolicy); + return this; + } + + /** + * Builds an instance of DeviceUpdateClientImpl with the provided parameters. + * + * @return an instance of DeviceUpdateClientImpl. + */ + @Generated + private DeviceUpdateClientImpl buildInnerClient() { + if (serviceVersion == null) { + this.serviceVersion = DeviceUpdateServiceVersion.getLatest(); + } + if (pipeline == null) { + this.pipeline = createHttpPipeline(); + } + DeviceUpdateClientImpl client = + new DeviceUpdateClientImpl( + pipeline, + JacksonAdapter.createDefaultSerializerAdapter(), + endpoint, + instanceId, + serviceVersion); + return client; + } + + @Generated + private HttpPipeline createHttpPipeline() { + Configuration buildConfiguration = + (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; + if (httpLogOptions == null) { + httpLogOptions = new HttpLogOptions(); + } + if (clientOptions == null) { + clientOptions = new ClientOptions(); + } + List policies = new ArrayList<>(); + String clientName = properties.getOrDefault(SDK_NAME, "UnknownName"); + String clientVersion = properties.getOrDefault(SDK_VERSION, "UnknownVersion"); + String applicationId = CoreUtils.getApplicationId(clientOptions, httpLogOptions); + policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration)); + HttpHeaders headers = new HttpHeaders(); + clientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue())); + if (headers.getSize() > 0) { + policies.add(new AddHeadersPolicy(headers)); + } + policies.addAll( + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(retryPolicy == null ? new RetryPolicy() : retryPolicy); + policies.add(new CookiePolicy()); + if (tokenCredential != null) { + policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES)); + } + policies.addAll( + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); + HttpPolicyProviders.addAfterRetryPolicies(policies); + policies.add(new HttpLoggingPolicy(httpLogOptions)); + HttpPipeline httpPipeline = + new HttpPipelineBuilder() + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .httpClient(httpClient) + .clientOptions(clientOptions) + .build(); + return httpPipeline; + } + + /** + * Builds an instance of DeviceManagementAsyncClient async client. + * + * @return an instance of DeviceManagementAsyncClient. + */ + @Generated + public DeviceManagementAsyncClient buildAsyncClient() { + return new DeviceManagementAsyncClient(buildInnerClient().getDeviceManagements()); + } + + /** + * Builds an instance of DeviceManagementClient sync client. + * + * @return an instance of DeviceManagementClient. + */ + @Generated + public DeviceManagementClient buildClient() { + return new DeviceManagementClient(buildInnerClient().getDeviceManagements()); + } +} diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateAsyncClient.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateAsyncClient.java index e21ea0d6d525f..637e1eada664d 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateAsyncClient.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateAsyncClient.java @@ -8,7 +8,10 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.RequestOptions; import com.azure.core.http.rest.Response; @@ -41,7 +44,7 @@ public final class DeviceUpdateAsyncClient { * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -114,6 +117,9 @@ public final class DeviceUpdateAsyncClient { * @param updateToImport The update to be imported. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return update metadata along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -132,7 +138,7 @@ public Mono> importUpdateWithResponse( * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -205,7 +211,10 @@ public Mono> importUpdateWithResponse( * @param updateToImport The update to be imported. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return update metadata along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of update metadata. */ @Generated @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) @@ -222,9 +231,9 @@ public PollerFlux beginImportUpdate( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -278,7 +287,11 @@ public PollerFlux beginImportUpdate( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all updates that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all updates that have been imported to Device Update for IoT Hub as paginated response with + * {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -294,7 +307,7 @@ public PagedFlux listUpdates(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -302,7 +315,7 @@ public PagedFlux listUpdates(RequestOptions requestOptions) { * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -354,6 +367,9 @@ public PagedFlux listUpdates(RequestOptions requestOptions) { * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update version along with {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -371,7 +387,7 @@ public Mono> getUpdateWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -379,6 +395,9 @@ public Mono> getUpdateWithResponse( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @Generated @@ -396,7 +415,7 @@ public Mono> deleteUpdateWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -404,7 +423,10 @@ public Mono> deleteUpdateWithResponse( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of long-running operation. */ @Generated @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) @@ -421,7 +443,7 @@ public PollerFlux beginDeleteUpdate( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -437,7 +459,11 @@ public PollerFlux beginDeleteUpdate( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update providers that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update providers that have been imported to Device Update for IoT Hub as paginated response + * with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -453,7 +479,7 @@ public PagedFlux listProviders(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -470,7 +496,11 @@ public PagedFlux listProviders(RequestOptions requestOptions) { * @param provider Update provider. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update names that match the specified provider. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update names that match the specified provider as paginated response with {@link + * PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -486,8 +516,8 @@ public PagedFlux listNames(String provider, RequestOptions requestOp * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -505,7 +535,11 @@ public PagedFlux listNames(String provider, RequestOptions requestOp * @param name Update name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update versions that match the specified provider and name. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update versions that match the specified provider and name as paginated response with + * {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -521,7 +555,7 @@ public PagedFlux listVersions(String provider, String name, RequestO * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -540,7 +574,11 @@ public PagedFlux listVersions(String provider, String name, RequestO * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update file identifiers for the specified version. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update file identifiers for the specified version as paginated response with {@link + * PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -557,7 +595,7 @@ public PagedFlux listFiles( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -565,7 +603,7 @@ public PagedFlux listFiles( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -591,6 +629,9 @@ public PagedFlux listFiles( * @param fileId File identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update file from the version along with {@link Response} on successful completion of {@link * Mono}. */ @@ -610,9 +651,9 @@ public Mono> getFileWithResponse( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -656,7 +697,10 @@ public Mono> getFileWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all import update operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all import update operations as paginated response with {@link PagedFlux}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -672,7 +716,7 @@ public PagedFlux listOperations(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -680,7 +724,7 @@ public PagedFlux listOperations(RequestOptions requestOptions) { * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -720,6 +764,9 @@ public PagedFlux listOperations(RequestOptions requestOptions) { * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response} on successful completion of {@link Mono}. */ @Generated diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClient.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClient.java index df4d34c751dea..927bcc33eb73c 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClient.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClient.java @@ -8,14 +8,16 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.RequestOptions; import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import com.azure.core.util.polling.SyncPoller; import com.azure.iot.deviceupdate.implementation.DeviceUpdatesImpl; -import reactor.core.publisher.Mono; /** Initializes a new instance of the synchronous DeviceUpdateClient type. */ @ServiceClient(builder = DeviceUpdateClientBuilder.class) @@ -41,7 +43,7 @@ public final class DeviceUpdateClient { * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -114,7 +116,10 @@ public final class DeviceUpdateClient { * @param updateToImport The update to be imported. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return update metadata along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of update metadata. */ @Generated @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) @@ -131,9 +136,9 @@ public SyncPoller beginImportUpdate( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -187,7 +192,11 @@ public SyncPoller beginImportUpdate( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all updates that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all updates that have been imported to Device Update for IoT Hub as paginated response with + * {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -203,7 +212,7 @@ public PagedIterable listUpdates(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -211,7 +220,7 @@ public PagedIterable listUpdates(RequestOptions requestOptions) { * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -263,6 +272,9 @@ public PagedIterable listUpdates(RequestOptions requestOptions) { * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update version along with {@link Response}. */ @Generated @@ -280,7 +292,7 @@ public Response getUpdateWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -288,7 +300,10 @@ public Response getUpdateWithResponse( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of long-running operation. */ @Generated @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) @@ -305,7 +320,7 @@ public SyncPoller beginDeleteUpdate( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -321,7 +336,11 @@ public SyncPoller beginDeleteUpdate( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update providers that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update providers that have been imported to Device Update for IoT Hub as paginated response + * with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -337,7 +356,7 @@ public PagedIterable listProviders(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -354,7 +373,11 @@ public PagedIterable listProviders(RequestOptions requestOptions) { * @param provider Update provider. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update names that match the specified provider. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update names that match the specified provider as paginated response with {@link + * PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -370,8 +393,8 @@ public PagedIterable listNames(String provider, RequestOptions reque * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -389,7 +412,11 @@ public PagedIterable listNames(String provider, RequestOptions reque * @param name Update name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update versions that match the specified provider and name. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update versions that match the specified provider and name as paginated response with + * {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -405,7 +432,7 @@ public PagedIterable listVersions(String provider, String name, Requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -424,7 +451,11 @@ public PagedIterable listVersions(String provider, String name, Requ * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update file identifiers for the specified version. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update file identifiers for the specified version as paginated response with {@link + * PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -441,7 +472,7 @@ public PagedIterable listFiles( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -449,7 +480,7 @@ public PagedIterable listFiles( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -475,6 +506,9 @@ public PagedIterable listFiles( * @param fileId File identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update file from the version along with {@link Response}. */ @Generated @@ -493,9 +527,9 @@ public Response getFileWithResponse( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -539,7 +573,10 @@ public Response getFileWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all import update operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all import update operations as paginated response with {@link PagedIterable}. */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) @@ -555,7 +592,7 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -563,7 +600,7 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -603,6 +640,9 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response}. */ @Generated diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClientBuilder.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClientBuilder.java index 01eee13bea6c2..25e209ff4b5e3 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClientBuilder.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/DeviceUpdateClientBuilder.java @@ -32,19 +32,13 @@ import java.util.stream.Collectors; /** A builder for creating a new instance of the DeviceUpdateClient type. */ -@ServiceClientBuilder( - serviceClients = { - DeviceUpdateClient.class, - DeviceManagementClient.class, - DeviceUpdateAsyncClient.class, - DeviceManagementAsyncClient.class - }) +@ServiceClientBuilder(serviceClients = {DeviceUpdateClient.class, DeviceUpdateAsyncClient.class}) public final class DeviceUpdateClientBuilder { @Generated private static final String SDK_NAME = "name"; @Generated private static final String SDK_VERSION = "version"; - @Generated static final String[] DEFAULT_SCOPES = new String[] {"https://api.adu.microsoft.com/.default"}; + @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://api.adu.microsoft.com/.default"}; @Generated private final Map properties = CoreUtils.getProperties("azure-iot-deviceupdate.properties"); @@ -319,37 +313,17 @@ private HttpPipeline createHttpPipeline() { * @return an instance of DeviceUpdateAsyncClient. */ @Generated - public DeviceUpdateAsyncClient buildDeviceUpdateAsyncClient() { + public DeviceUpdateAsyncClient buildAsyncClient() { return new DeviceUpdateAsyncClient(buildInnerClient().getDeviceUpdates()); } - /** - * Builds an instance of DeviceManagementAsyncClient async client. - * - * @return an instance of DeviceManagementAsyncClient. - */ - @Generated - public DeviceManagementAsyncClient buildDeviceManagementAsyncClient() { - return new DeviceManagementAsyncClient(buildInnerClient().getDeviceManagements()); - } - /** * Builds an instance of DeviceUpdateClient sync client. * * @return an instance of DeviceUpdateClient. */ @Generated - public DeviceUpdateClient buildDeviceUpdateClient() { + public DeviceUpdateClient buildClient() { return new DeviceUpdateClient(buildInnerClient().getDeviceUpdates()); } - - /** - * Builds an instance of DeviceManagementClient sync client. - * - * @return an instance of DeviceManagementClient. - */ - @Generated - public DeviceManagementClient buildDeviceManagementClient() { - return new DeviceManagementClient(buildInnerClient().getDeviceManagements()); - } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceManagementsImpl.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceManagementsImpl.java index c9ab2cebe6e70..a2ffc73a063be 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceManagementsImpl.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceManagementsImpl.java @@ -17,7 +17,11 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; @@ -67,6 +71,16 @@ public final class DeviceManagementsImpl { private interface DeviceManagementsService { @Get("/deviceupdate/{instanceId}/management/deviceclasses") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeviceClasses( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -76,6 +90,16 @@ Mono> listDeviceClasses( @Get("/deviceupdate/{instanceId}/management/deviceclasses/{deviceClassId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getDeviceClass( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -86,6 +110,16 @@ Mono> getDeviceClass( @Get("/deviceupdate/{instanceId}/management/deviceclasses/{deviceClassId}/installableupdates") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listInstallableUpdatesForDeviceClass( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -96,6 +130,16 @@ Mono> listInstallableUpdatesForDeviceClass( @Get("/deviceupdate/{instanceId}/management/devices") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDevices( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -105,6 +149,16 @@ Mono> listDevices( @Post("/deviceupdate/{instanceId}/management/devices") @ExpectedResponses({202}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> importDevices( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -115,6 +169,16 @@ Mono> importDevices( @Get("/deviceupdate/{instanceId}/management/devices/{deviceId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getDevice( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -125,6 +189,16 @@ Mono> getDevice( @Get("/deviceupdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getDeviceModule( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -136,6 +210,16 @@ Mono> getDeviceModule( @Get("/deviceupdate/{instanceId}/management/updatecompliance") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getUpdateCompliance( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -145,6 +229,16 @@ Mono> getUpdateCompliance( @Get("/deviceupdate/{instanceId}/management/devicetags") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeviceTags( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -154,6 +248,16 @@ Mono> listDeviceTags( @Get("/deviceupdate/{instanceId}/management/devicetags/{tagName}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getDeviceTag( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -164,6 +268,16 @@ Mono> getDeviceTag( @Get("/deviceupdate/{instanceId}/management/groups") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listGroups( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -173,6 +287,16 @@ Mono> listGroups( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getGroup( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -183,6 +307,16 @@ Mono> getGroup( @Put("/deviceupdate/{instanceId}/management/groups/{groupId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> createOrUpdateGroup( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -194,6 +328,16 @@ Mono> createOrUpdateGroup( @Delete("/deviceupdate/{instanceId}/management/groups/{groupId}") @ExpectedResponses({204}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> deleteGroup( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -204,6 +348,16 @@ Mono> deleteGroup( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}/updateCompliance") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getGroupUpdateCompliance( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -214,6 +368,16 @@ Mono> getGroupUpdateCompliance( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}/bestUpdates") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listBestUpdatesForGroup( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -224,6 +388,16 @@ Mono> listBestUpdatesForGroup( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeploymentsForGroup( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -234,6 +408,16 @@ Mono> listDeploymentsForGroup( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getDeployment( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -245,6 +429,16 @@ Mono> getDeployment( @Put("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> createOrUpdateDeployment( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -257,6 +451,16 @@ Mono> createOrUpdateDeployment( @Delete("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}") @ExpectedResponses({204}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> deleteDeployment( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -268,6 +472,16 @@ Mono> deleteDeployment( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getDeploymentStatus( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -279,6 +493,16 @@ Mono> getDeploymentStatus( @Get("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/devicestates") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeploymentDevices( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -290,6 +514,16 @@ Mono> listDeploymentDevices( @Get("/deviceupdate/{instanceId}/management/operations/{operationId}") @ExpectedResponses({200, 304}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getOperation( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -300,6 +534,16 @@ Mono> getOperation( @Get("/deviceupdate/{instanceId}/management/operations") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listOperations( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -309,6 +553,16 @@ Mono> listOperations( @Put("/deviceupdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}") @ExpectedResponses({201}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> collectLogs( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -320,6 +574,16 @@ Mono> collectLogs( @Get("/deviceupdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getLogCollectionOperation( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -330,6 +594,16 @@ Mono> getLogCollectionOperation( @Get("/deviceupdate/{instanceId}/management/deviceDiagnostics/logCollections") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listLogCollectionOperations( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -339,6 +613,16 @@ Mono> listLogCollectionOperations( @Get("/deviceupdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getLogCollectionOperationDetailedStatus( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -349,6 +633,16 @@ Mono> getLogCollectionOperationDetailedStatus( @Post("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> stopDeployment( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -360,6 +654,16 @@ Mono> stopDeployment( @Post("/deviceupdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> retryDeployment( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -371,6 +675,16 @@ Mono> retryDeployment( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeviceClassesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -379,6 +693,16 @@ Mono> listDeviceClassesNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listInstallableUpdatesForDeviceClassNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -387,6 +711,16 @@ Mono> listInstallableUpdatesForDeviceClassNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDevicesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -395,6 +729,16 @@ Mono> listDevicesNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeviceTagsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -403,6 +747,16 @@ Mono> listDeviceTagsNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listGroupsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -411,6 +765,16 @@ Mono> listGroupsNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listBestUpdatesForGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -419,6 +783,16 @@ Mono> listBestUpdatesForGroupNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeploymentsForGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -427,6 +801,16 @@ Mono> listDeploymentsForGroupNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listDeploymentDevicesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -435,6 +819,16 @@ Mono> listDeploymentDevicesNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listOperationsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -443,6 +837,16 @@ Mono> listOperationsNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listLogCollectionOperationsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -459,7 +863,7 @@ Mono> listLogCollectionOperationsNext( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -485,6 +889,9 @@ Mono> listLogCollectionOperationsNext( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices * connected to Device Update for IoT Hub along with {@link PagedResponse} on successful completion of {@link * Mono}. @@ -519,7 +926,7 @@ public Mono> listDeviceClassesSinglePageAsync(RequestO * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -546,6 +953,9 @@ public Mono> listDeviceClassesSinglePageAsync(RequestO * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices * connected to Device Update for IoT Hub along with {@link PagedResponse} on successful completion of {@link * Mono}. @@ -579,7 +989,7 @@ public Mono> listDeviceClassesSinglePageAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -605,8 +1015,11 @@ public Mono> listDeviceClassesSinglePageAsync( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices - * connected to Device Update for IoT Hub. + * connected to Device Update for IoT Hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeviceClassesAsync(RequestOptions requestOptions) { @@ -624,7 +1037,7 @@ public PagedFlux listDeviceClassesAsync(RequestOptions requestOption * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -651,8 +1064,11 @@ public PagedFlux listDeviceClassesAsync(RequestOptions requestOption * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices - * connected to Device Update for IoT Hub. + * connected to Device Update for IoT Hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeviceClassesAsync(RequestOptions requestOptions, Context context) { @@ -670,7 +1086,7 @@ public PagedFlux listDeviceClassesAsync(RequestOptions requestOption * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -696,8 +1112,11 @@ public PagedFlux listDeviceClassesAsync(RequestOptions requestOption * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device classes (unique combinations of device manufacturer and model) for all devices - * connected to Device Update for IoT Hub. + * connected to Device Update for IoT Hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDeviceClasses(RequestOptions requestOptions) { @@ -712,7 +1131,7 @@ public PagedIterable listDeviceClasses(RequestOptions requestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -734,6 +1153,9 @@ public PagedIterable listDeviceClasses(RequestOptions requestOptions * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a device class along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -758,7 +1180,7 @@ public Mono> getDeviceClassWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -781,6 +1203,9 @@ public Mono> getDeviceClassWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a device class along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -803,7 +1228,7 @@ public Mono> getDeviceClassWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -825,6 +1250,9 @@ public Mono> getDeviceClassWithResponseAsync( * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a device class along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -840,7 +1268,7 @@ public Response getDeviceClassWithResponse(String deviceClassId, Req * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -861,6 +1289,9 @@ public Response getDeviceClassWithResponse(String deviceClassId, Req * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of installable updates for a device class along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -895,7 +1326,7 @@ public Mono> listInstallableUpdatesForDeviceClassSingl * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -917,6 +1348,9 @@ public Mono> listInstallableUpdatesForDeviceClassSingl * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of installable updates for a device class along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -949,7 +1383,7 @@ public Mono> listInstallableUpdatesForDeviceClassSingl * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -970,7 +1404,10 @@ public Mono> listInstallableUpdatesForDeviceClassSingl * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of installable updates for a device class. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of installable updates for a device class as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listInstallableUpdatesForDeviceClassAsync( @@ -988,7 +1425,7 @@ public PagedFlux listInstallableUpdatesForDeviceClassAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1010,7 +1447,10 @@ public PagedFlux listInstallableUpdatesForDeviceClassAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of installable updates for a device class. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of installable updates for a device class as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listInstallableUpdatesForDeviceClassAsync( @@ -1028,7 +1468,7 @@ public PagedFlux listInstallableUpdatesForDeviceClassAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1049,7 +1489,10 @@ public PagedFlux listInstallableUpdatesForDeviceClassAsync( * @param deviceClassId Device class identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of installable updates for a device class. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of installable updates for a device class as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listInstallableUpdatesForDeviceClass( @@ -1065,8 +1508,8 @@ public PagedIterable listInstallableUpdatesForDeviceClass( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1112,6 +1555,9 @@ public PagedIterable listInstallableUpdatesForDeviceClass( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of devices connected to Device Update for IoT Hub along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -1144,8 +1590,8 @@ public Mono> listDevicesSinglePageAsync(RequestOptions * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1192,6 +1638,9 @@ public Mono> listDevicesSinglePageAsync(RequestOptions * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of devices connected to Device Update for IoT Hub along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -1222,8 +1671,8 @@ public Mono> listDevicesSinglePageAsync(RequestOptions * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1269,7 +1718,10 @@ public Mono> listDevicesSinglePageAsync(RequestOptions * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices connected to Device Update for IoT Hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDevicesAsync(RequestOptions requestOptions) { @@ -1286,8 +1738,8 @@ public PagedFlux listDevicesAsync(RequestOptions requestOptions) { * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1334,7 +1786,10 @@ public PagedFlux listDevicesAsync(RequestOptions requestOptions) { * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices connected to Device Update for IoT Hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDevicesAsync(RequestOptions requestOptions, Context context) { @@ -1351,8 +1806,8 @@ public PagedFlux listDevicesAsync(RequestOptions requestOptions, Con * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of devices returned. You can filter on device GroupId or DeviceClassId.
api-versionStringYesApi Version
* *

Response Body Schema @@ -1398,7 +1853,11 @@ public PagedFlux listDevicesAsync(RequestOptions requestOptions, Con * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices connected to Device Update for IoT Hub as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDevices(RequestOptions requestOptions) { @@ -1413,7 +1872,7 @@ public PagedIterable listDevices(RequestOptions requestOptions) { * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -1426,6 +1885,9 @@ public PagedIterable listDevices(RequestOptions requestOptions) { * @param importType The types of devices to import. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1449,7 +1911,7 @@ public Mono> importDevicesWithResponseAsync(BinaryData importType * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -1463,6 +1925,9 @@ public Mono> importDevicesWithResponseAsync(BinaryData importType * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1485,7 +1950,7 @@ public Mono> importDevicesWithResponseAsync( * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -1498,7 +1963,10 @@ public Mono> importDevicesWithResponseAsync( * @param importType The types of devices to import. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginImportDevicesAsync( @@ -1519,7 +1987,7 @@ public PollerFlux beginImportDevicesAsync( * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -1533,7 +2001,10 @@ public PollerFlux beginImportDevicesAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginImportDevicesAsync( @@ -1554,7 +2025,7 @@ public PollerFlux beginImportDevicesAsync( * * * - * + * * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
actionStringYesDevices action.
* @@ -1567,7 +2038,10 @@ public PollerFlux beginImportDevicesAsync( * @param importType The types of devices to import. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginImportDevices(BinaryData importType, RequestOptions requestOptions) { @@ -1582,7 +2056,7 @@ public SyncPoller beginImportDevices(BinaryData importTy * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1624,6 +2098,9 @@ public SyncPoller beginImportDevices(BinaryData importTy * @param deviceId Device identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device properties and latest deployment status for a device connected to Device Update for IoT Hub * along with {@link Response} on successful completion of {@link Mono}. */ @@ -1648,7 +2125,7 @@ public Mono> getDeviceWithResponseAsync(String deviceId, Re * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1691,6 +2168,9 @@ public Mono> getDeviceWithResponseAsync(String deviceId, Re * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device properties and latest deployment status for a device connected to Device Update for IoT Hub * along with {@link Response} on successful completion of {@link Mono}. */ @@ -1714,7 +2194,7 @@ public Mono> getDeviceWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1756,6 +2236,9 @@ public Mono> getDeviceWithResponseAsync( * @param deviceId Device identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device properties and latest deployment status for a device connected to Device Update for IoT Hub * along with {@link Response}. */ @@ -1773,7 +2256,7 @@ public Response getDeviceWithResponse(String deviceId, RequestOption * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1816,6 +2299,9 @@ public Response getDeviceWithResponse(String deviceId, RequestOption * @param moduleId Device module identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device module properties and latest deployment status for a device module connected to Device Update * for IoT Hub along with {@link Response} on successful completion of {@link Mono}. */ @@ -1843,7 +2329,7 @@ public Mono> getDeviceModuleWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1887,6 +2373,9 @@ public Mono> getDeviceModuleWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device module properties and latest deployment status for a device module connected to Device Update * for IoT Hub along with {@link Response} on successful completion of {@link Mono}. */ @@ -1912,7 +2401,7 @@ public Mono> getDeviceModuleWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1955,6 +2444,9 @@ public Mono> getDeviceModuleWithResponseAsync( * @param moduleId Device module identifier in Azure IoT Hub. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device module properties and latest deployment status for a device module connected to Device Update * for IoT Hub along with {@link Response}. */ @@ -1973,7 +2465,7 @@ public Response getDeviceModuleWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1989,6 +2481,9 @@ public Response getDeviceModuleWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the breakdown of how many devices are on their latest update, have new updates available, or are in * progress receiving new updates along with {@link Response} on successful completion of {@link Mono}. */ @@ -2013,7 +2508,7 @@ public Mono> getUpdateComplianceWithResponseAsync(RequestOp * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2030,6 +2525,9 @@ public Mono> getUpdateComplianceWithResponseAsync(RequestOp * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the breakdown of how many devices are on their latest update, have new updates available, or are in * progress receiving new updates along with {@link Response} on successful completion of {@link Mono}. */ @@ -2053,7 +2551,7 @@ public Mono> getUpdateComplianceWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2069,6 +2567,9 @@ public Mono> getUpdateComplianceWithResponseAsync( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the breakdown of how many devices are on their latest update, have new updates available, or are in * progress receiving new updates along with {@link Response}. */ @@ -2085,7 +2586,7 @@ public Response getUpdateComplianceWithResponse(RequestOptions reque * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2104,6 +2605,9 @@ public Response getUpdateComplianceWithResponse(RequestOptions reque * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of available group device tags for all devices connected to Device Update for IoT Hub along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -2136,7 +2640,7 @@ public Mono> listDeviceTagsSinglePageAsync(RequestOpti * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2156,6 +2660,9 @@ public Mono> listDeviceTagsSinglePageAsync(RequestOpti * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of available group device tags for all devices connected to Device Update for IoT Hub along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -2187,7 +2694,7 @@ public Mono> listDeviceTagsSinglePageAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2206,7 +2713,11 @@ public Mono> listDeviceTagsSinglePageAsync( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of available group device tags for all devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of available group device tags for all devices connected to Device Update for IoT Hub as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeviceTagsAsync(RequestOptions requestOptions) { @@ -2223,7 +2734,7 @@ public PagedFlux listDeviceTagsAsync(RequestOptions requestOptions) * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2243,7 +2754,11 @@ public PagedFlux listDeviceTagsAsync(RequestOptions requestOptions) * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of available group device tags for all devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of available group device tags for all devices connected to Device Update for IoT Hub as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeviceTagsAsync(RequestOptions requestOptions, Context context) { @@ -2260,7 +2775,7 @@ public PagedFlux listDeviceTagsAsync(RequestOptions requestOptions, * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2279,7 +2794,11 @@ public PagedFlux listDeviceTagsAsync(RequestOptions requestOptions, * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of available group device tags for all devices connected to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of available group device tags for all devices connected to Device Update for IoT Hub as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDeviceTags(RequestOptions requestOptions) { @@ -2294,7 +2813,7 @@ public PagedIterable listDeviceTags(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2309,6 +2828,9 @@ public PagedIterable listDeviceTags(RequestOptions requestOptions) { * @param tagName Tag name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a count of how many devices have a device tag along with {@link Response} on successful completion of * {@link Mono}. */ @@ -2333,7 +2855,7 @@ public Mono> getDeviceTagWithResponseAsync(String tagName, * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2349,6 +2871,9 @@ public Mono> getDeviceTagWithResponseAsync(String tagName, * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a count of how many devices have a device tag along with {@link Response} on successful completion of * {@link Mono}. */ @@ -2372,7 +2897,7 @@ public Mono> getDeviceTagWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2387,6 +2912,9 @@ public Mono> getDeviceTagWithResponseAsync( * @param tagName Tag name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a count of how many devices have a device tag along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2402,7 +2930,7 @@ public Response getDeviceTagWithResponse(String tagName, RequestOpti * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2428,6 +2956,9 @@ public Response getDeviceTagWithResponse(String tagName, RequestOpti * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device groups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2459,7 +2990,7 @@ public Mono> listGroupsSinglePageAsync(RequestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2486,6 +3017,9 @@ public Mono> listGroupsSinglePageAsync(RequestOptions * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device groups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2515,7 +3049,7 @@ public Mono> listGroupsSinglePageAsync(RequestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2541,7 +3075,10 @@ public Mono> listGroupsSinglePageAsync(RequestOptions * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device groups. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listGroupsAsync(RequestOptions requestOptions) { @@ -2558,7 +3095,7 @@ public PagedFlux listGroupsAsync(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2585,7 +3122,10 @@ public PagedFlux listGroupsAsync(RequestOptions requestOptions) { * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device groups. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listGroupsAsync(RequestOptions requestOptions, Context context) { @@ -2602,7 +3142,7 @@ public PagedFlux listGroupsAsync(RequestOptions requestOptions, Cont * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2628,7 +3168,10 @@ public PagedFlux listGroupsAsync(RequestOptions requestOptions, Cont * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device groups. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listGroups(RequestOptions requestOptions) { @@ -2643,7 +3186,7 @@ public PagedIterable listGroups(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2665,6 +3208,9 @@ public PagedIterable listGroups(RequestOptions requestOptions) { * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2688,7 +3234,7 @@ public Mono> getGroupWithResponseAsync(String groupId, Requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2711,6 +3257,9 @@ public Mono> getGroupWithResponseAsync(String groupId, Requ * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2733,7 +3282,7 @@ public Mono> getGroupWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2755,6 +3304,9 @@ public Mono> getGroupWithResponseAsync( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2770,7 +3322,7 @@ public Response getGroupWithResponse(String groupId, RequestOptions * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -2809,6 +3361,9 @@ public Response getGroupWithResponse(String groupId, RequestOptions * @param group The group properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2834,7 +3389,7 @@ public Mono> createOrUpdateGroupWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -2874,6 +3429,9 @@ public Mono> createOrUpdateGroupWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group details along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2897,7 +3455,7 @@ public Mono> createOrUpdateGroupWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -2936,6 +3494,9 @@ public Mono> createOrUpdateGroupWithResponseAsync( * @param group The group properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group details along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2952,12 +3513,15 @@ public Response createOrUpdateGroupWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2981,13 +3545,16 @@ public Mono> deleteGroupWithResponseAsync(String groupId, Request * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3010,12 +3577,15 @@ public Mono> deleteGroupWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3032,7 +3602,7 @@ public Response deleteGroupWithResponse(String groupId, RequestOptions req * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -3049,6 +3619,9 @@ public Response deleteGroupWithResponse(String groupId, RequestOptions req * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group update compliance information such as how many devices are on their latest update, how many need * new updates, and how many are in progress on receiving a new update along with {@link Response} on successful * completion of {@link Mono}. @@ -3076,7 +3649,7 @@ public Mono> getGroupUpdateComplianceWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -3094,6 +3667,9 @@ public Mono> getGroupUpdateComplianceWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group update compliance information such as how many devices are on their latest update, how many need * new updates, and how many are in progress on receiving a new update along with {@link Response} on successful * completion of {@link Mono}. @@ -3119,7 +3695,7 @@ public Mono> getGroupUpdateComplianceWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -3136,6 +3712,9 @@ public Mono> getGroupUpdateComplianceWithResponseAsync( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return group update compliance information such as how many devices are on their latest update, how many need * new updates, and how many are in progress on receiving a new update along with {@link Response}. */ @@ -3152,8 +3731,8 @@ public Response getGroupUpdateComplianceWithResponse(String groupId, * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3177,6 +3756,9 @@ public Response getGroupUpdateComplianceWithResponse(String groupId, * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the best available updates for a group and a count of how many devices need each update along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @@ -3211,8 +3793,8 @@ public Mono> listBestUpdatesForGroupSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3237,6 +3819,9 @@ public Mono> listBestUpdatesForGroupSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the best available updates for a group and a count of how many devices need each update along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @@ -3269,8 +3854,8 @@ public Mono> listBestUpdatesForGroupSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3294,7 +3879,11 @@ public Mono> listBestUpdatesForGroupSinglePageAsync( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the best available updates for a group and a count of how many devices need each update. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the best available updates for a group and a count of how many devices need each update as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listBestUpdatesForGroupAsync(String groupId, RequestOptions requestOptions) { @@ -3311,8 +3900,8 @@ public PagedFlux listBestUpdatesForGroupAsync(String groupId, Reques * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3337,7 +3926,11 @@ public PagedFlux listBestUpdatesForGroupAsync(String groupId, Reques * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the best available updates for a group and a count of how many devices need each update. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the best available updates for a group and a count of how many devices need each update as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listBestUpdatesForGroupAsync( @@ -3355,8 +3948,8 @@ public PagedFlux listBestUpdatesForGroupAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3380,7 +3973,11 @@ public PagedFlux listBestUpdatesForGroupAsync( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the best available updates for a group and a count of how many devices need each update. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the best available updates for a group and a count of how many devices need each update as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBestUpdatesForGroup(String groupId, RequestOptions requestOptions) { @@ -3395,8 +3992,8 @@ public PagedIterable listBestUpdatesForGroup(String groupId, Request * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3424,6 +4021,9 @@ public PagedIterable listBestUpdatesForGroup(String groupId, Request * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of deployments for a group along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @@ -3458,8 +4058,8 @@ public Mono> listDeploymentsForGroupSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3488,6 +4088,9 @@ public Mono> listDeploymentsForGroupSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of deployments for a group along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @@ -3520,8 +4123,8 @@ public Mono> listDeploymentsForGroupSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3549,7 +4152,10 @@ public Mono> listDeploymentsForGroupSinglePageAsync( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of deployments for a group. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of deployments for a group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeploymentsForGroupAsync(String groupId, RequestOptions requestOptions) { @@ -3566,8 +4172,8 @@ public PagedFlux listDeploymentsForGroupAsync(String groupId, Reques * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3596,7 +4202,10 @@ public PagedFlux listDeploymentsForGroupAsync(String groupId, Reques * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of deployments for a group. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of deployments for a group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeploymentsForGroupAsync( @@ -3614,8 +4223,8 @@ public PagedFlux listDeploymentsForGroupAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployments returned. You can filter on update Provider, Name and Version property.
api-versionStringYesApi Version
* *

Response Body Schema @@ -3643,7 +4252,10 @@ public PagedFlux listDeploymentsForGroupAsync( * @param groupId Group identity. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of deployments for a group. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of deployments for a group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDeploymentsForGroup(String groupId, RequestOptions requestOptions) { @@ -3658,7 +4270,7 @@ public PagedIterable listDeploymentsForGroup(String groupId, Request * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -3682,6 +4294,9 @@ public PagedIterable listDeploymentsForGroup(String groupId, Request * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a deployment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3707,7 +4322,7 @@ public Mono> getDeploymentWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -3732,6 +4347,9 @@ public Mono> getDeploymentWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a deployment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3755,7 +4373,7 @@ public Mono> getDeploymentWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -3779,6 +4397,9 @@ public Mono> getDeploymentWithResponseAsync( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the properties of a deployment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3795,7 +4416,7 @@ public Response getDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -3837,6 +4458,9 @@ public Response getDeploymentWithResponse( * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3863,7 +4487,7 @@ public Mono> createOrUpdateDeploymentWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -3906,6 +4530,9 @@ public Mono> createOrUpdateDeploymentWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3934,7 +4561,7 @@ public Mono> createOrUpdateDeploymentWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -3976,6 +4603,9 @@ public Mono> createOrUpdateDeploymentWithResponseAsync( * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3992,13 +4622,16 @@ public Response createOrUpdateDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4024,7 +4657,7 @@ public Mono> deleteDeploymentWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. @@ -4032,6 +4665,9 @@ public Mono> deleteDeploymentWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4055,13 +4691,16 @@ public Mono> deleteDeploymentWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param groupId Group identity. * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4079,7 +4718,7 @@ public Response deleteDeploymentWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -4099,6 +4738,9 @@ public Response deleteDeploymentWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the status of a deployment including a breakdown of how many devices in the deployment are in progress, * completed, or failed along with {@link Response} on successful completion of {@link Mono}. */ @@ -4126,7 +4768,7 @@ public Mono> getDeploymentStatusWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -4147,6 +4789,9 @@ public Mono> getDeploymentStatusWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the status of a deployment including a breakdown of how many devices in the deployment are in progress, * completed, or failed along with {@link Response} on successful completion of {@link Mono}. */ @@ -4172,7 +4817,7 @@ public Mono> getDeploymentStatusWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -4192,6 +4837,9 @@ public Mono> getDeploymentStatusWithResponseAsync( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the status of a deployment including a breakdown of how many devices in the deployment are in progress, * completed, or failed along with {@link Response}. */ @@ -4209,8 +4857,8 @@ public Response getDeploymentStatusWithResponse( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4234,6 +4882,9 @@ public Response getDeploymentStatusWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of devices in a deployment along with their state along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -4269,8 +4920,8 @@ public Mono> listDeploymentDevicesSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4295,6 +4946,9 @@ public Mono> listDeploymentDevicesSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of devices in a deployment along with their state along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -4328,8 +4982,8 @@ public Mono> listDeploymentDevicesSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4353,7 +5007,10 @@ public Mono> listDeploymentDevicesSinglePageAsync( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices in a deployment along with their state. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices in a deployment along with their state as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeploymentDevicesAsync( @@ -4371,8 +5028,8 @@ public PagedFlux listDeploymentDevicesAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4397,7 +5054,10 @@ public PagedFlux listDeploymentDevicesAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices in a deployment along with their state. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices in a deployment along with their state as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listDeploymentDevicesAsync( @@ -4415,8 +5075,8 @@ public PagedFlux listDeploymentDevicesAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4440,7 +5100,11 @@ public PagedFlux listDeploymentDevicesAsync( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of devices in a deployment along with their state. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of devices in a deployment along with their state as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDeploymentDevices( @@ -4456,7 +5120,7 @@ public PagedIterable listDeploymentDevices( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -4464,7 +5128,7 @@ public PagedIterable listDeploymentDevices( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -4498,6 +5162,9 @@ public PagedIterable listDeploymentDevices( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4521,7 +5188,7 @@ public Mono> getOperationWithResponseAsync(String operation * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -4529,7 +5196,7 @@ public Mono> getOperationWithResponseAsync(String operation * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -4564,6 +5231,9 @@ public Mono> getOperationWithResponseAsync(String operation * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4586,7 +5256,7 @@ public Mono> getOperationWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -4594,7 +5264,7 @@ public Mono> getOperationWithResponseAsync( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -4628,6 +5298,9 @@ public Mono> getOperationWithResponseAsync( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4643,9 +5316,9 @@ public Response getOperationWithResponse(String operationId, Request * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4683,6 +5356,9 @@ public Response getOperationWithResponse(String operationId, Request * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device import operations along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @@ -4715,9 +5391,9 @@ public Mono> listOperationsSinglePageAsync(RequestOpti * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4756,6 +5432,9 @@ public Mono> listOperationsSinglePageAsync(RequestOpti * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all device import operations along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @@ -4787,9 +5466,9 @@ public Mono> listOperationsSinglePageAsync( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4827,7 +5506,10 @@ public Mono> listOperationsSinglePageAsync( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device import operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device import operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listOperationsAsync(RequestOptions requestOptions) { @@ -4844,9 +5526,9 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions) * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4885,7 +5567,10 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions) * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device import operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device import operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listOperationsAsync(RequestOptions requestOptions, Context context) { @@ -4902,9 +5587,9 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions, * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -4942,7 +5627,10 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions, * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all device import operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all device import operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listOperations(RequestOptions requestOptions) { @@ -4957,7 +5645,7 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -5000,6 +5688,9 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * @param logCollectionRequest The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return diagnostics request body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5025,7 +5716,7 @@ public Mono> collectLogsWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -5069,6 +5760,9 @@ public Mono> collectLogsWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return diagnostics request body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5092,7 +5786,7 @@ public Mono> collectLogsWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Request Body Schema @@ -5135,6 +5829,9 @@ public Mono> collectLogsWithResponseAsync( * @param logCollectionRequest The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return diagnostics request body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5151,7 +5848,7 @@ public Response collectLogsWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5175,6 +5872,9 @@ public Response collectLogsWithResponse( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device diagnostics log collection operation along with {@link Response} on successful completion of * {@link Mono}. */ @@ -5200,7 +5900,7 @@ public Mono> getLogCollectionOperationWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5225,6 +5925,9 @@ public Mono> getLogCollectionOperationWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device diagnostics log collection operation along with {@link Response} on successful completion of * {@link Mono}. */ @@ -5248,7 +5951,7 @@ public Mono> getLogCollectionOperationWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5272,6 +5975,9 @@ public Mono> getLogCollectionOperationWithResponseAsync( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the device diagnostics log collection operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5288,7 +5994,7 @@ public Response getLogCollectionOperationWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5316,6 +6022,9 @@ public Response getLogCollectionOperationWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return all device diagnostics log collection operations along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -5348,7 +6057,7 @@ public Mono> listLogCollectionOperationsSinglePageAsyn * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5377,6 +6086,9 @@ public Mono> listLogCollectionOperationsSinglePageAsyn * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return all device diagnostics log collection operations along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -5408,7 +6120,7 @@ public Mono> listLogCollectionOperationsSinglePageAsyn * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5436,7 +6148,10 @@ public Mono> listLogCollectionOperationsSinglePageAsyn * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return all device diagnostics log collection operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return all device diagnostics log collection operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listLogCollectionOperationsAsync(RequestOptions requestOptions) { @@ -5453,7 +6168,7 @@ public PagedFlux listLogCollectionOperationsAsync(RequestOptions req * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5482,7 +6197,10 @@ public PagedFlux listLogCollectionOperationsAsync(RequestOptions req * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return all device diagnostics log collection operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return all device diagnostics log collection operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listLogCollectionOperationsAsync(RequestOptions requestOptions, Context context) { @@ -5499,7 +6217,7 @@ public PagedFlux listLogCollectionOperationsAsync(RequestOptions req * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5527,7 +6245,10 @@ public PagedFlux listLogCollectionOperationsAsync(RequestOptions req * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return all device diagnostics log collection operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return all device diagnostics log collection operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listLogCollectionOperations(RequestOptions requestOptions) { @@ -5542,7 +6263,7 @@ public PagedIterable listLogCollectionOperations(RequestOptions requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5570,6 +6291,9 @@ public PagedIterable listLogCollectionOperations(RequestOptions requ * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return device diagnostics log collection operation with detailed status along with {@link Response} on * successful completion of {@link Mono}. */ @@ -5595,7 +6319,7 @@ public Mono> getLogCollectionOperationDetailedStatusWithRes * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5624,6 +6348,9 @@ public Mono> getLogCollectionOperationDetailedStatusWithRes * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return device diagnostics log collection operation with detailed status along with {@link Response} on * successful completion of {@link Mono}. */ @@ -5647,7 +6374,7 @@ public Mono> getLogCollectionOperationDetailedStatusWithRes * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -5675,6 +6402,9 @@ public Mono> getLogCollectionOperationDetailedStatusWithRes * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return device diagnostics log collection operation with detailed status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5692,7 +6422,7 @@ public Response getLogCollectionOperationDetailedStatusWithResponse( * Query Parameters * NameTypeRequiredDescription * actionStringYesCancel deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -5716,6 +6446,9 @@ public Response getLogCollectionOperationDetailedStatusWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5742,7 +6475,7 @@ public Mono> stopDeploymentWithResponseAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesCancel deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -5767,6 +6500,9 @@ public Mono> stopDeploymentWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5791,7 +6527,7 @@ public Mono> stopDeploymentWithResponseAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesCancel deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -5815,6 +6551,9 @@ public Mono> stopDeploymentWithResponseAsync( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5832,7 +6571,7 @@ public Response stopDeploymentWithResponse( * Query Parameters * NameTypeRequiredDescription * actionStringYesRetry deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -5856,6 +6595,9 @@ public Response stopDeploymentWithResponse( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5882,7 +6624,7 @@ public Mono> retryDeploymentWithResponseAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesRetry deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -5907,6 +6649,9 @@ public Mono> retryDeploymentWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5931,7 +6676,7 @@ public Mono> retryDeploymentWithResponseAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesRetry deployment action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Response Body Schema @@ -5955,6 +6700,9 @@ public Mono> retryDeploymentWithResponseAsync( * @param deploymentId Deployment identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return deployment metadata along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5990,6 +6738,9 @@ public Response retryDeploymentWithResponse( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of device classes along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6038,6 +6789,9 @@ public Mono> listDeviceClassesNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of device classes along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6076,6 +6830,9 @@ public Mono> listDeviceClassesNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of update identities along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6118,6 +6875,9 @@ public Mono> listInstallableUpdatesForDeviceClassNextS * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of update identities along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6183,6 +6943,9 @@ public Mono> listInstallableUpdatesForDeviceClassNextS * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of devices along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6250,6 +7013,9 @@ public Mono> listDevicesNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of devices along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6287,6 +7053,9 @@ public Mono> listDevicesNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of device tags along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6328,6 +7097,9 @@ public Mono> listDeviceTagsNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of device tags along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6372,6 +7144,9 @@ public Mono> listDeviceTagsNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of groups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6418,6 +7193,9 @@ public Mono> listGroupsNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of groups along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6459,6 +7237,9 @@ public Mono> listGroupsNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of updatable devices along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6504,6 +7285,9 @@ public Mono> listBestUpdatesForGroupNextSinglePageAsyn * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of updatable devices along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6549,6 +7333,9 @@ public Mono> listBestUpdatesForGroupNextSinglePageAsyn * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of deployments along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6598,6 +7385,9 @@ public Mono> listDeploymentsForGroupNextSinglePageAsyn * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of deployments along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6638,6 +7428,9 @@ public Mono> listDeploymentsForGroupNextSinglePageAsyn * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of deployment device states along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @@ -6683,6 +7476,9 @@ public Mono> listDeploymentDevicesNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of deployment device states along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @@ -6740,6 +7536,9 @@ public Mono> listDeploymentDevicesNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of device operations with server paging support along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -6801,6 +7600,9 @@ public Mono> listOperationsNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of device operations with server paging support along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -6848,6 +7650,9 @@ public Mono> listOperationsNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of diagnostics operations with server paging support along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @@ -6899,6 +7704,9 @@ public Mono> listLogCollectionOperationsNextSinglePage * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of diagnostics operations with server paging support along with {@link PagedResponse} on * successful completion of {@link Mono}. */ diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceUpdatesImpl.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceUpdatesImpl.java index bfaac6a2b9e71..8a6e8feeb052f 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceUpdatesImpl.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/DeviceUpdatesImpl.java @@ -16,7 +16,11 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; @@ -65,6 +69,16 @@ public final class DeviceUpdatesImpl { private interface DeviceUpdatesService { @Post("/deviceupdate/{instanceId}/updates") @ExpectedResponses({202}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> importUpdate( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -75,6 +89,16 @@ Mono> importUpdate( @Get("/deviceupdate/{instanceId}/updates") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listUpdates( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -84,6 +108,16 @@ Mono> listUpdates( @Get("/deviceupdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}") @ExpectedResponses({200, 304}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getUpdate( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -96,6 +130,16 @@ Mono> getUpdate( @Delete("/deviceupdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}") @ExpectedResponses({202}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> deleteUpdate( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -108,6 +152,16 @@ Mono> deleteUpdate( @Get("/deviceupdate/{instanceId}/updates/providers") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listProviders( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -117,6 +171,16 @@ Mono> listProviders( @Get("/deviceupdate/{instanceId}/updates/providers/{provider}/names") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listNames( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -127,6 +191,16 @@ Mono> listNames( @Get("/deviceupdate/{instanceId}/updates/providers/{provider}/names/{name}/versions") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listVersions( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -138,6 +212,16 @@ Mono> listVersions( @Get("/deviceupdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listFiles( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -150,6 +234,16 @@ Mono> listFiles( @Get("/deviceupdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}") @ExpectedResponses({200, 304}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getFile( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -163,6 +257,16 @@ Mono> getFile( @Get("/deviceupdate/{instanceId}/updates/operations") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listOperations( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -172,6 +276,16 @@ Mono> listOperations( @Get("/deviceupdate/{instanceId}/updates/operations/{operationId}") @ExpectedResponses({200, 304}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getOperation( @HostParam("endpoint") String endpoint, @PathParam(value = "instanceId", encoded = true) String instanceId, @@ -182,6 +296,16 @@ Mono> getOperation( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listUpdatesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -190,6 +314,16 @@ Mono> listUpdatesNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listProvidersNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -198,6 +332,16 @@ Mono> listProvidersNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listNamesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -206,6 +350,16 @@ Mono> listNamesNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listVersionsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -214,6 +368,16 @@ Mono> listVersionsNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listFilesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -222,6 +386,16 @@ Mono> listFilesNext( @Get("{nextLink}") @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listOperationsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -238,7 +412,7 @@ Mono> listOperationsNext( * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -311,6 +485,9 @@ Mono> listOperationsNext( * @param updateToImport The update to be imported. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return update metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -336,7 +513,7 @@ public Mono> importUpdateWithResponseAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -410,6 +587,9 @@ public Mono> importUpdateWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return update metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -433,7 +613,7 @@ public Mono> importUpdateWithResponseAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -506,7 +686,10 @@ public Mono> importUpdateWithResponseAsync( * @param updateToImport The update to be imported. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return update metadata along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of update metadata. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginImportUpdateAsync( @@ -528,7 +711,7 @@ public PollerFlux beginImportUpdateAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -602,7 +785,10 @@ public PollerFlux beginImportUpdateAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return update metadata along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of update metadata. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginImportUpdateAsync( @@ -624,7 +810,7 @@ public PollerFlux beginImportUpdateAsync( * Query Parameters * NameTypeRequiredDescription * actionStringYesImport update action. - * apiVersionStringYesApi Version + * api-versionStringYesApi Version * * *

Request Body Schema @@ -697,7 +883,10 @@ public PollerFlux beginImportUpdateAsync( * @param updateToImport The update to be imported. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return update metadata along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of update metadata. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginImportUpdate( @@ -713,9 +902,9 @@ public SyncPoller beginImportUpdate( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -769,6 +958,9 @@ public SyncPoller beginImportUpdate( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all updates that have been imported to Device Update for IoT Hub along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @@ -801,9 +993,9 @@ public Mono> listUpdatesSinglePageAsync(RequestOptions * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -858,6 +1050,9 @@ public Mono> listUpdatesSinglePageAsync(RequestOptions * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all updates that have been imported to Device Update for IoT Hub along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @@ -888,9 +1083,9 @@ public Mono> listUpdatesSinglePageAsync(RequestOptions * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -944,7 +1139,11 @@ public Mono> listUpdatesSinglePageAsync(RequestOptions * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all updates that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all updates that have been imported to Device Update for IoT Hub as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listUpdatesAsync(RequestOptions requestOptions) { @@ -961,9 +1160,9 @@ public PagedFlux listUpdatesAsync(RequestOptions requestOptions) { * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -1018,7 +1217,11 @@ public PagedFlux listUpdatesAsync(RequestOptions requestOptions) { * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all updates that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all updates that have been imported to Device Update for IoT Hub as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listUpdatesAsync(RequestOptions requestOptions, Context context) { @@ -1035,9 +1238,9 @@ public PagedFlux listUpdatesAsync(RequestOptions requestOptions, Con * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
searchStringNoRequest updates matching a free-text search expression.
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$searchStringNoRequest updates matching a free-text search expression.
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -1091,7 +1294,11 @@ public PagedFlux listUpdatesAsync(RequestOptions requestOptions, Con * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all updates that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all updates that have been imported to Device Update for IoT Hub as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listUpdates(RequestOptions requestOptions) { @@ -1106,7 +1313,7 @@ public PagedIterable listUpdates(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -1114,7 +1321,7 @@ public PagedIterable listUpdates(RequestOptions requestOptions) { * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -1166,6 +1373,9 @@ public PagedIterable listUpdates(RequestOptions requestOptions) { * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update version along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1192,7 +1402,7 @@ public Mono> getUpdateWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -1200,7 +1410,7 @@ public Mono> getUpdateWithResponseAsync( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -1253,6 +1463,9 @@ public Mono> getUpdateWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update version along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1277,7 +1490,7 @@ public Mono> getUpdateWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -1285,7 +1498,7 @@ public Mono> getUpdateWithResponseAsync( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -1337,6 +1550,9 @@ public Mono> getUpdateWithResponseAsync( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1353,7 +1569,7 @@ public Response getUpdateWithResponse( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -1361,6 +1577,9 @@ public Response getUpdateWithResponse( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1387,7 +1606,7 @@ public Mono> deleteUpdateWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -1396,6 +1615,9 @@ public Mono> deleteUpdateWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1420,7 +1642,7 @@ public Mono> deleteUpdateWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -1428,7 +1650,10 @@ public Mono> deleteUpdateWithResponseAsync( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginDeleteUpdateAsync( @@ -1449,7 +1674,7 @@ public PollerFlux beginDeleteUpdateAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -1458,7 +1683,10 @@ public PollerFlux beginDeleteUpdateAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginDeleteUpdateAsync( @@ -1479,7 +1707,7 @@ public PollerFlux beginDeleteUpdateAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* * @param provider Update provider. @@ -1487,7 +1715,10 @@ public PollerFlux beginDeleteUpdateAsync( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginDeleteUpdate( @@ -1503,7 +1734,7 @@ public SyncPoller beginDeleteUpdate( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1519,6 +1750,9 @@ public SyncPoller beginDeleteUpdate( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update providers that have been imported to Device Update for IoT Hub along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @@ -1551,7 +1785,7 @@ public Mono> listProvidersSinglePageAsync(RequestOptio * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1568,6 +1802,9 @@ public Mono> listProvidersSinglePageAsync(RequestOptio * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update providers that have been imported to Device Update for IoT Hub along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @@ -1599,7 +1836,7 @@ public Mono> listProvidersSinglePageAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1615,7 +1852,11 @@ public Mono> listProvidersSinglePageAsync( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update providers that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update providers that have been imported to Device Update for IoT Hub as paginated response + * with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listProvidersAsync(RequestOptions requestOptions) { @@ -1632,7 +1873,7 @@ public PagedFlux listProvidersAsync(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1649,7 +1890,11 @@ public PagedFlux listProvidersAsync(RequestOptions requestOptions) { * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update providers that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update providers that have been imported to Device Update for IoT Hub as paginated response + * with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listProvidersAsync(RequestOptions requestOptions, Context context) { @@ -1666,7 +1911,7 @@ public PagedFlux listProvidersAsync(RequestOptions requestOptions, C * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1682,7 +1927,11 @@ public PagedFlux listProvidersAsync(RequestOptions requestOptions, C * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update providers that have been imported to Device Update for IoT Hub. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update providers that have been imported to Device Update for IoT Hub as paginated response + * with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listProviders(RequestOptions requestOptions) { @@ -1697,7 +1946,7 @@ public PagedIterable listProviders(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1714,6 +1963,9 @@ public PagedIterable listProviders(RequestOptions requestOptions) { * @param provider Update provider. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update names that match the specified provider along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @@ -1747,7 +1999,7 @@ public Mono> listNamesSinglePageAsync(String provider, * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1765,6 +2017,9 @@ public Mono> listNamesSinglePageAsync(String provider, * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update names that match the specified provider along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @@ -1797,7 +2052,7 @@ public Mono> listNamesSinglePageAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1814,7 +2069,11 @@ public Mono> listNamesSinglePageAsync( * @param provider Update provider. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update names that match the specified provider. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update names that match the specified provider as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listNamesAsync(String provider, RequestOptions requestOptions) { @@ -1831,7 +2090,7 @@ public PagedFlux listNamesAsync(String provider, RequestOptions requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1849,7 +2108,11 @@ public PagedFlux listNamesAsync(String provider, RequestOptions requ * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update names that match the specified provider. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update names that match the specified provider as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listNamesAsync(String provider, RequestOptions requestOptions, Context context) { @@ -1866,7 +2129,7 @@ public PagedFlux listNamesAsync(String provider, RequestOptions requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -1883,7 +2146,11 @@ public PagedFlux listNamesAsync(String provider, RequestOptions requ * @param provider Update provider. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update names that match the specified provider. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update names that match the specified provider as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listNames(String provider, RequestOptions requestOptions) { @@ -1898,8 +2165,8 @@ public PagedIterable listNames(String provider, RequestOptions reque * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -1917,6 +2184,9 @@ public PagedIterable listNames(String provider, RequestOptions reque * @param name Update name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update versions that match the specified provider and name along with {@link PagedResponse} * on successful completion of {@link Mono}. */ @@ -1952,8 +2222,8 @@ public Mono> listVersionsSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -1972,6 +2242,9 @@ public Mono> listVersionsSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update versions that match the specified provider and name along with {@link PagedResponse} * on successful completion of {@link Mono}. */ @@ -2005,8 +2278,8 @@ public Mono> listVersionsSinglePageAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -2024,7 +2297,11 @@ public Mono> listVersionsSinglePageAsync( * @param name Update name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update versions that match the specified provider and name. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update versions that match the specified provider and name as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listVersionsAsync(String provider, String name, RequestOptions requestOptions) { @@ -2041,8 +2318,8 @@ public PagedFlux listVersionsAsync(String provider, String name, Req * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -2061,7 +2338,11 @@ public PagedFlux listVersionsAsync(String provider, String name, Req * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update versions that match the specified provider and name. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update versions that match the specified provider and name as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listVersionsAsync( @@ -2079,8 +2360,8 @@ public PagedFlux listVersionsAsync( * * * - * - * + * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
filterStringNoFilter updates by its properties.
api-versionStringYesApi Version
$filterStringNoFilter updates by its properties.
* *

Response Body Schema @@ -2098,7 +2379,11 @@ public PagedFlux listVersionsAsync( * @param name Update name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update versions that match the specified provider and name. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update versions that match the specified provider and name as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listVersions(String provider, String name, RequestOptions requestOptions) { @@ -2113,7 +2398,7 @@ public PagedIterable listVersions(String provider, String name, Requ * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2132,6 +2417,9 @@ public PagedIterable listVersions(String provider, String name, Requ * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update file identifiers for the specified version along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @@ -2168,7 +2456,7 @@ public Mono> listFilesSinglePageAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2188,6 +2476,9 @@ public Mono> listFilesSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all update file identifiers for the specified version along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @@ -2222,7 +2513,7 @@ public Mono> listFilesSinglePageAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2241,7 +2532,11 @@ public Mono> listFilesSinglePageAsync( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update file identifiers for the specified version. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update file identifiers for the specified version as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listFilesAsync( @@ -2259,7 +2554,7 @@ public PagedFlux listFilesAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2279,7 +2574,11 @@ public PagedFlux listFilesAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update file identifiers for the specified version. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update file identifiers for the specified version as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listFilesAsync( @@ -2297,7 +2596,7 @@ public PagedFlux listFilesAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Response Body Schema @@ -2316,7 +2615,11 @@ public PagedFlux listFilesAsync( * @param version Update version. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all update file identifiers for the specified version. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all update file identifiers for the specified version as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listFiles( @@ -2332,7 +2635,7 @@ public PagedIterable listFiles( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -2340,7 +2643,7 @@ public PagedIterable listFiles( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -2366,6 +2669,9 @@ public PagedIterable listFiles( * @param fileId File identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update file from the version along with {@link Response} on successful completion of {@link * Mono}. */ @@ -2394,7 +2700,7 @@ public Mono> getFileWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -2402,7 +2708,7 @@ public Mono> getFileWithResponseAsync( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -2429,6 +2735,9 @@ public Mono> getFileWithResponseAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update file from the version along with {@link Response} on successful completion of {@link * Mono}. */ @@ -2460,7 +2769,7 @@ public Mono> getFileWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -2468,7 +2777,7 @@ public Mono> getFileWithResponseAsync( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -2494,6 +2803,9 @@ public Mono> getFileWithResponseAsync( * @param fileId File identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a specific update file from the version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2511,9 +2823,9 @@ public Response getFileWithResponse( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -2557,6 +2869,9 @@ public Response getFileWithResponse( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all import update operations along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @@ -2590,9 +2905,9 @@ public Mono> listOperationsSinglePageAsync(RequestOpti * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -2637,6 +2952,9 @@ public Mono> listOperationsSinglePageAsync(RequestOpti * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a list of all import update operations along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @@ -2669,9 +2987,9 @@ public Mono> listOperationsSinglePageAsync( * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -2715,7 +3033,10 @@ public Mono> listOperationsSinglePageAsync( * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all import update operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all import update operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listOperationsAsync(RequestOptions requestOptions) { @@ -2733,9 +3054,9 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions) * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -2780,7 +3101,10 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions) * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all import update operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all import update operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listOperationsAsync(RequestOptions requestOptions, Context context) { @@ -2798,9 +3122,9 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions, * * * - * - * - * + * + * + * *
Query Parameters
NameTypeRequiredDescription
filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
topStringNoSpecifies 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.
apiVersionStringYesApi Version
$filterStringNoRestricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'"
$topStringNoSpecifies 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.
api-versionStringYesApi Version
* *

Response Body Schema @@ -2844,7 +3168,10 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions, * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. - * @return a list of all import update operations. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a list of all import update operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listOperations(RequestOptions requestOptions) { @@ -2859,7 +3186,7 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -2867,7 +3194,7 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -2907,6 +3234,9 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2930,7 +3260,7 @@ public Mono> getOperationWithResponseAsync(String operation * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -2938,7 +3268,7 @@ public Mono> getOperationWithResponseAsync(String operation * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -2979,6 +3309,9 @@ public Mono> getOperationWithResponseAsync(String operation * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3001,7 +3334,7 @@ public Mono> getOperationWithResponseAsync( * * * - * + * *
Query Parameters
NameTypeRequiredDescription
apiVersionStringYesApi Version
api-versionStringYesApi Version
* *

Header Parameters @@ -3009,7 +3342,7 @@ public Mono> getOperationWithResponseAsync( * * * - * + * *
Header Parameters
NameTypeRequiredDescription
ifNoneMatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
If-None-MatchStringNoDefines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
* *

Response Body Schema @@ -3049,6 +3382,9 @@ public Mono> getOperationWithResponseAsync( * @param operationId Operation identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return operation metadata along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3111,6 +3447,9 @@ public Response getOperationWithResponse(String operationId, Request * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of updates along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3186,6 +3525,9 @@ public Mono> listUpdatesNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of updates along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3220,6 +3562,9 @@ public Mono> listUpdatesNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3258,6 +3603,9 @@ public Mono> listProvidersNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3293,6 +3641,9 @@ public Mono> listProvidersNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3330,6 +3681,9 @@ public Mono> listNamesNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3365,6 +3719,9 @@ public Mono> listNamesNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3403,6 +3760,9 @@ public Mono> listVersionsNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3438,6 +3798,9 @@ public Mono> listVersionsNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3475,6 +3838,9 @@ public Mono> listFilesNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of strings with server paging support along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @@ -3538,6 +3904,9 @@ public Mono> listFilesNextSinglePageAsync( * @param nextLink The nextLink parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of operations with server paging support along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @@ -3605,6 +3974,9 @@ public Mono> listOperationsNextSinglePageAsync( * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param context The context to associate with this operation. * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the list of operations with server paging support along with {@link PagedResponse} on successful * completion of {@link Mono}. */ diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/package-info.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/package-info.java new file mode 100644 index 0000000000000..56e79c9813d47 --- /dev/null +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/main/java/com/azure/iot/deviceupdate/implementation/package-info.java @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** + * Package containing the implementations for DeviceUpdateClient. Device Update for IoT Hub is an Azure service that + * enables customers to publish update for their IoT devices to the cloud, and then deploy that update to their devices + * (approve updates to groups of devices managed and provisioned in IoT Hub). It leverages the proven security and + * reliability of the Windows Update platform, optimized for IoT devices. It works globally and knows when and how to + * update devices, enabling customers to focus on their business goals and let Device Update for IoT Hub handle the + * updates. + */ +package com.azure.iot.deviceupdate.implementation; diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/GetUpdateNotFoundSample.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/GetUpdateNotFoundSample.java index b09db6897f48f..af3bc5263d5be 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/GetUpdateNotFoundSample.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/GetUpdateNotFoundSample.java @@ -15,7 +15,7 @@ public static void main(String[] args) { .instanceId(Configuration.getGlobalConfiguration().get("AZURE_INSTANCE_ID")) .credential(new DefaultAzureCredentialBuilder().build()) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) - .buildDeviceUpdateAsyncClient(); + .buildAsyncClient(); // BEGIN: com.azure.iot.deviceupdate.DeviceUpdateAsyncClient.notfound try { diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/ListDevicesSample.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/ListDevicesSample.java index 265ac1c9065aa..7cdcc74b2600c 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/ListDevicesSample.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/ListDevicesSample.java @@ -12,12 +12,12 @@ public class ListDevicesSample { public static void main(String[] args) { // BEGIN: com.azure.iot.deviceupdate.DeviceManagementAsyncClient.instantiate - DeviceManagementAsyncClient client = new DeviceUpdateClientBuilder() + DeviceManagementAsyncClient client = new DeviceManagementClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("AZURE_ACCOUNT_ENDPOINT")) .instanceId(Configuration.getGlobalConfiguration().get("AZURE_INSTANCE_ID")) .credential(new DefaultAzureCredentialBuilder().build()) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) - .buildDeviceManagementAsyncClient(); + .buildAsyncClient(); // END: com.azure.iot.deviceupdate.DeviceManagementAsyncClient.instantiate PagedFlux response = client.listDevices(null); diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCancelOrRetryDeployment.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCancelOrRetryDeployment.java index 35ad1879150ae..71271c78478e6 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCancelOrRetryDeployment.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCancelOrRetryDeployment.java @@ -9,18 +9,23 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementCancelOrRetryDeployment { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementstopdeployment.devicemanagementcancelorretrydeployment + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); requestOptions.addQueryParam("action", "cancel"); - Response response = client.stopDeploymentWithResponse("TestGroup", "deploymentId", requestOptions); + Response response = + deviceManagementClient.stopDeploymentWithResponse("TestGroup", "deploymentId", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementstopdeployment.devicemanagementcancelorretrydeployment } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCollectLogs.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCollectLogs.java index a7aacbfe000f9..b1b70a8c0bb3a 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCollectLogs.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCollectLogs.java @@ -9,21 +9,24 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementCollectLogs { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementcollectlogs.devicemanagementcollectlogs + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); BinaryData logCollectionRequest = BinaryData.fromString( "{\"description\":\"Example diagnostics operation\",\"deviceList\":[{\"deviceId\":\"DeviceA\"},{\"deviceId\":\"DeviceB\",\"moduleId\":\"ModuleB\"}]}"); RequestOptions requestOptions = new RequestOptions(); Response response = - client.collectLogsWithResponse("SampleOperationId", logCollectionRequest, requestOptions); + deviceManagementClient.collectLogsWithResponse( + "SampleOperationId", logCollectionRequest, requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementcollectlogs.devicemanagementcollectlogs } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateDeployment.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateDeployment.java index 3ed498e9844ad..93bb341abe328 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateDeployment.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateDeployment.java @@ -9,21 +9,26 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementCreateOrUpdateDeployment { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementcreateorupdatedeployment.devicemanagementcreateorupdatedeployment + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); BinaryData deployment = BinaryData.fromString( "{\"deploymentId\":\"deploymentId\",\"groupId\":\"TestGroup\",\"startDateTime\":\"2020-04-22T12:12:12.0000000+00:00\",\"updateId\":{\"name\":\"name\",\"provider\":\"provider\",\"version\":\"1.2.3.4\"}}"); RequestOptions requestOptions = new RequestOptions(); Response response = - client.createOrUpdateDeploymentWithResponse("deploymentId", "TestGroup", deployment, requestOptions); + deviceManagementClient.createOrUpdateDeploymentWithResponse( + "deploymentId", "TestGroup", deployment, requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementcreateorupdatedeployment.devicemanagementcreateorupdatedeployment } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateGroup.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateGroup.java index 60ddc66163c55..183b8c05b0080 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateGroup.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementCreateOrUpdateGroup.java @@ -9,20 +9,25 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementCreateOrUpdateGroup { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementcreateorupdategroup.devicemanagementcreateorupdategroup + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); BinaryData group = BinaryData.fromString( "{\"createdDateTime\":\"2020-07-01T12:13:14.0000000Z\",\"deviceClassId\":\"9fd33c505d62e4c585b529ae0d643478d8da42c9\",\"groupId\":\"MyGroup\",\"groupType\":\"DeviceClassIdAndIoTHubTag\",\"tags\":[\"MyGroup\"]}"); RequestOptions requestOptions = new RequestOptions(); - Response response = client.createOrUpdateGroupWithResponse("MyGroup", group, requestOptions); + Response response = + deviceManagementClient.createOrUpdateGroupWithResponse("MyGroup", group, requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementcreateorupdategroup.devicemanagementcreateorupdategroup } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteDeployment.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteDeployment.java index b6a51aa849d08..ec70ccb1e42ef 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteDeployment.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteDeployment.java @@ -8,17 +8,20 @@ import com.azure.core.http.rest.Response; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementDeleteDeployment { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementdeletedeployment.devicemanagementdeletedeployment + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.deleteDeploymentWithResponse("TestGroup", "deploymentId", requestOptions); + Response response = + deviceManagementClient.deleteDeploymentWithResponse("TestGroup", "deploymentId", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementdeletedeployment.devicemanagementdeletedeployment } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteGroup.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteGroup.java index 88d0fbf82a830..d17fe279c80eb 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteGroup.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementDeleteGroup.java @@ -8,17 +8,19 @@ import com.azure.core.http.rest.Response; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementDeleteGroup { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementdeletegroup.devicemanagementdeletegroup + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.deleteGroupWithResponse("group1", requestOptions); + Response response = deviceManagementClient.deleteGroupWithResponse("group1", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementdeletegroup.devicemanagementdeletegroup } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeployment.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeployment.java index ca35a27aea57b..f09132f00e07b 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeployment.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeployment.java @@ -9,17 +9,20 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetDeployment { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementgetdeployment.devicemanagementgetdeployment + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getDeploymentWithResponse("TestGroup", "deploymentId", requestOptions); + Response response = + deviceManagementClient.getDeploymentWithResponse("TestGroup", "deploymentId", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementgetdeployment.devicemanagementgetdeployment } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeploymentStatus.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeploymentStatus.java index 000994908ddc7..ab1bf0d676d6c 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeploymentStatus.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeploymentStatus.java @@ -9,18 +9,22 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetDeploymentStatus { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementgetdeploymentstatus.devicemanagementgetdeploymentstatus + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); Response response = - client.getDeploymentStatusWithResponse("TestGroup", "deploymentId", requestOptions); + deviceManagementClient.getDeploymentStatusWithResponse("TestGroup", "deploymentId", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementgetdeploymentstatus.devicemanagementgetdeploymentstatus } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDevice.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDevice.java index 3696f9b7c4fc0..7220a55ed8143 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDevice.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDevice.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetDevice { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementgetdevice.devicemanagementgetdevice + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getDeviceWithResponse("deviceId", requestOptions); + Response response = deviceManagementClient.getDeviceWithResponse("deviceId", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementgetdevice.devicemanagementgetdevice } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceClass.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceClass.java index 03275e9e86233..0ef4aa890ce53 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceClass.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceClass.java @@ -9,17 +9,20 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetDeviceClass { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementgetdeviceclass.devicemanagementgetdeviceclass + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getDeviceClassWithResponse("deviceClassId", requestOptions); + Response response = + deviceManagementClient.getDeviceClassWithResponse("deviceClassId", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementgetdeviceclass.devicemanagementgetdeviceclass } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceTag.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceTag.java index 0b1a1fc03e390..cc59c4bbe4e98 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceTag.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetDeviceTag.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetDeviceTag { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementgetdevicetag.devicemanagementgetdevicetag + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getDeviceTagWithResponse("group1", requestOptions); + Response response = deviceManagementClient.getDeviceTagWithResponse("group1", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementgetdevicetag.devicemanagementgetdevicetag } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroup.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroup.java index 051af9431c998..d7eb196bedd72 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroup.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroup.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetGroup { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementgetgroup.devicemanagementgetgroup + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getGroupWithResponse("group1", requestOptions); + Response response = deviceManagementClient.getGroupWithResponse("group1", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementgetgroup.devicemanagementgetgroup } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroupUpdateCompliance.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroupUpdateCompliance.java index 981441eb2a532..eac9e8bbe2b30 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroupUpdateCompliance.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetGroupUpdateCompliance.java @@ -9,17 +9,22 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetGroupUpdateCompliance { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementgetgroupupdatecompliance.devicemanagementgetgroupupdatecompliance + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getGroupUpdateComplianceWithResponse("group1", requestOptions); + Response response = + deviceManagementClient.getGroupUpdateComplianceWithResponse("group1", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementgetgroupupdatecompliance.devicemanagementgetgroupupdatecompliance } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperation.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperation.java index 3c582e482391c..17ada7fdd3ccc 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperation.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperation.java @@ -9,18 +9,22 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetLogCollectionOperation { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementgetlogcollectionoperation.devicemanagementgetlogcollectionoperation + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); Response response = - client.getLogCollectionOperationWithResponse("SampleOperationId", requestOptions); + deviceManagementClient.getLogCollectionOperationWithResponse("SampleOperationId", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementgetlogcollectionoperation.devicemanagementgetlogcollectionoperation } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperationDetailedStatus.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperationDetailedStatus.java index e1171799e13c4..8bd528e59d302 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperationDetailedStatus.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetLogCollectionOperationDetailedStatus.java @@ -9,18 +9,23 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetLogCollectionOperationDetailedStatus { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementgetlogcollectionoperationdetailedstatus.devicemanagementgetlogcollectionoperationdetailedstatus + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); Response response = - client.getLogCollectionOperationDetailedStatusWithResponse("SampleOperationId", requestOptions); + deviceManagementClient.getLogCollectionOperationDetailedStatusWithResponse( + "SampleOperationId", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementgetlogcollectionoperationdetailedstatus.devicemanagementgetlogcollectionoperationdetailedstatus } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetOperation.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetOperation.java index 01d96d9d2ac17..29705d7479c3d 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetOperation.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetOperation.java @@ -9,18 +9,20 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetOperation { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementgetoperation.devicemanagementgetoperation + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); Response response = - client.getOperationWithResponse("e4491c54-916f-443d-9094-bcca546ace2f", requestOptions); + deviceManagementClient.getOperationWithResponse("e4491c54-916f-443d-9094-bcca546ace2f", requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementgetoperation.devicemanagementgetoperation } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetUpdateCompliance.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetUpdateCompliance.java index 366b60b9a219b..9aac0f69a3ce0 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetUpdateCompliance.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementGetUpdateCompliance.java @@ -9,17 +9,21 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementGetUpdateCompliance { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementgetupdatecompliance.devicemanagementgetupdatecompliance + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getUpdateComplianceWithResponse(requestOptions); + Response response = deviceManagementClient.getUpdateComplianceWithResponse(requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementgetupdatecompliance.devicemanagementgetupdatecompliance } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementImportDevices.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementImportDevices.java new file mode 100644 index 0000000000000..1cd37840de08e --- /dev/null +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementImportDevices.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.iot.deviceupdate.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClient; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; + +public class DeviceManagementImportDevices { + public static void main(String[] args) { + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementimportdevices.devicemanagementimportdevices + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("contoso.api.adu.microsoft.com") + .instanceId("blue") + .buildClient(); + BinaryData importType = BinaryData.fromString("\"All\""); + RequestOptions requestOptions = new RequestOptions(); + requestOptions.addQueryParam("action", "import"); + SyncPoller response = + deviceManagementClient.beginImportDevices(importType, requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementimportdevices.devicemanagementimportdevices + } +} diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListBestUpdatesForGroup.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListBestUpdatesForGroup.java index ed6ec81bc6430..2b059ea26c622 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListBestUpdatesForGroup.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListBestUpdatesForGroup.java @@ -9,17 +9,21 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListBestUpdatesForGroup { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementlistbestupdatesforgroup.devicemanagementlistbestupdatesforgroup + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listBestUpdatesForGroup("group1", requestOptions); + PagedIterable response = deviceManagementClient.listBestUpdatesForGroup("group1", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementlistbestupdatesforgroup.devicemanagementlistbestupdatesforgroup } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentDevices.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentDevices.java index 161bf3ff0b5d0..eacb7470bf202 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentDevices.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentDevices.java @@ -9,17 +9,22 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListDeploymentDevices { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementlistdeploymentdevices.devicemanagementlistdeploymentdevices + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listDeploymentDevices("TestGroup", "deploymentId", requestOptions); + PagedIterable response = + deviceManagementClient.listDeploymentDevices("TestGroup", "deploymentId", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementlistdeploymentdevices.devicemanagementlistdeploymentdevices } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentsForGroup.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentsForGroup.java index 1ead42e9f5ea8..605c544000bda 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentsForGroup.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeploymentsForGroup.java @@ -9,17 +9,22 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListDeploymentsForGroup { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementlistdeploymentsforgroup.devicemanagementlistdeploymentsforgroup + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listDeploymentsForGroup("TestGroup", requestOptions); + PagedIterable response = + deviceManagementClient.listDeploymentsForGroup("TestGroup", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementlistdeploymentsforgroup.devicemanagementlistdeploymentsforgroup } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceClasses.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceClasses.java index 39d9126dd16d0..9be69b4b6e106 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceClasses.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceClasses.java @@ -9,17 +9,20 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListDeviceClasses { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementlistdeviceclasses.devicemanagementlistdeviceclasses + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listDeviceClasses(requestOptions); + PagedIterable response = deviceManagementClient.listDeviceClasses(requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementlistdeviceclasses.devicemanagementlistdeviceclasses } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceTags.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceTags.java index 6997c1249e1a7..66eb42ab5b72a 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceTags.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDeviceTags.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListDeviceTags { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementlistdevicetags.devicemanagementlistdevicetags + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listDeviceTags(requestOptions); + PagedIterable response = deviceManagementClient.listDeviceTags(requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementlistdevicetags.devicemanagementlistdevicetags } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDevices.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDevices.java index 0807831a9f8e8..b65e58f61d0e0 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDevices.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListDevices.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListDevices { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementlistdevices.devicemanagementlistdevices + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listDevices(requestOptions); + PagedIterable response = deviceManagementClient.listDevices(requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementlistdevices.devicemanagementlistdevices } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListGroups.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListGroups.java index eb13102ca6d3a..236e02858f011 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListGroups.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListGroups.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListGroups { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementlistgroups.devicemanagementlistgroups + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listGroups(requestOptions); + PagedIterable response = deviceManagementClient.listGroups(requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementlistgroups.devicemanagementlistgroups } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListInstallableUpdatesForDeviceClass.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListInstallableUpdatesForDeviceClass.java index 251ebf1be921f..60fb976e0bab7 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListInstallableUpdatesForDeviceClass.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListInstallableUpdatesForDeviceClass.java @@ -9,18 +9,22 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListInstallableUpdatesForDeviceClass { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementlistinstallableupdatesfordeviceclass.devicemanagementlistinstallableupdatesfordeviceclass + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); PagedIterable response = - client.listInstallableUpdatesForDeviceClass("deviceClassId", requestOptions); + deviceManagementClient.listInstallableUpdatesForDeviceClass("deviceClassId", requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementlistinstallableupdatesfordeviceclass.devicemanagementlistinstallableupdatesfordeviceclass } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListLogCollectionOperations.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListLogCollectionOperations.java index 7237795a4c5bf..70369b0a538c6 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListLogCollectionOperations.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListLogCollectionOperations.java @@ -9,17 +9,21 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListLogCollectionOperations { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: + // com.azure.iot.deviceupdate.generated.devicemanagementlistlogcollectionoperations.devicemanagementlistlogcollectionoperations + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listLogCollectionOperations(requestOptions); + PagedIterable response = deviceManagementClient.listLogCollectionOperations(requestOptions); + // END: + // com.azure.iot.deviceupdate.generated.devicemanagementlistlogcollectionoperations.devicemanagementlistlogcollectionoperations } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListOperations.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListOperations.java index 0d5458b6cfe89..f93fa4b02dff3 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListOperations.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceManagementListOperations.java @@ -9,17 +9,19 @@ import com.azure.core.util.BinaryData; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.iot.deviceupdate.DeviceManagementClient; -import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; +import com.azure.iot.deviceupdate.DeviceManagementClientBuilder; public class DeviceManagementListOperations { public static void main(String[] args) { - DeviceManagementClient client = - new DeviceUpdateClientBuilder() + // BEGIN: com.azure.iot.deviceupdate.generated.devicemanagementlistoperations.devicemanagementlistoperations + DeviceManagementClient deviceManagementClient = + new DeviceManagementClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceManagementClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listOperations(requestOptions); + PagedIterable response = deviceManagementClient.listOperations(requestOptions); + // END: com.azure.iot.deviceupdate.generated.devicemanagementlistoperations.devicemanagementlistoperations } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateDeleteUpdate.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateDeleteUpdate.java new file mode 100644 index 0000000000000..7543c213e6853 --- /dev/null +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateDeleteUpdate.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.iot.deviceupdate.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.azure.iot.deviceupdate.DeviceUpdateClient; +import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; + +public class DeviceUpdateDeleteUpdate { + public static void main(String[] args) { + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatedeleteupdate.deviceupdatedeleteupdate + DeviceUpdateClient deviceUpdateClient = + new DeviceUpdateClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("contoso.api.adu.microsoft.com") + .instanceId("blue") + .buildClient(); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + deviceUpdateClient.beginDeleteUpdate("microsoft", "adu", "1.0.0.0", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatedeleteupdate.deviceupdatedeleteupdate + } +} diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetFile.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetFile.java index 53e1769bc8074..b03699dc37cba 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetFile.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetFile.java @@ -13,14 +13,16 @@ public class DeviceUpdateGetFile { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdategetfile.deviceupdategetfile + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); Response response = - client.getFileWithResponse("microsoft", "adu", "1.0.0.0", "abc123", requestOptions); + deviceUpdateClient.getFileWithResponse("microsoft", "adu", "1.0.0.0", "abc123", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdategetfile.deviceupdategetfile } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetOperation.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetOperation.java index 3be2c4a6740ed..ec40a8245176c 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetOperation.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetOperation.java @@ -13,14 +13,16 @@ public class DeviceUpdateGetOperation { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdategetoperation.deviceupdategetoperation + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); Response response = - client.getOperationWithResponse("e4491c54-916f-443d-9094-bcca546ace2f", requestOptions); + deviceUpdateClient.getOperationWithResponse("e4491c54-916f-443d-9094-bcca546ace2f", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdategetoperation.deviceupdategetoperation } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetUpdate.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetUpdate.java index b4853a1679027..bf4f62fbf87fe 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetUpdate.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateGetUpdate.java @@ -13,13 +13,16 @@ public class DeviceUpdateGetUpdate { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdategetupdate.deviceupdategetupdate + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - Response response = client.getUpdateWithResponse("microsoft", "adu", "1.0.0.0", requestOptions); + Response response = + deviceUpdateClient.getUpdateWithResponse("microsoft", "adu", "1.0.0.0", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdategetupdate.deviceupdategetupdate } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateImportUpdate.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateImportUpdate.java new file mode 100644 index 0000000000000..b1b9b20ea405e --- /dev/null +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateImportUpdate.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.iot.deviceupdate.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.azure.iot.deviceupdate.DeviceUpdateClient; +import com.azure.iot.deviceupdate.DeviceUpdateClientBuilder; + +public class DeviceUpdateImportUpdate { + public static void main(String[] args) { + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdateimportupdate.deviceupdateimportupdate + DeviceUpdateClient deviceUpdateClient = + new DeviceUpdateClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("contoso.api.adu.microsoft.com") + .instanceId("blue") + .buildClient(); + BinaryData updateToImport = + BinaryData.fromString( + "[{\"files\":[{\"filename\":\"file1.bin\",\"url\":\"http://test.blob.core.windows.net/test/upload1v5uww1q\"},{\"filename\":\"file2.bin\",\"url\":\"http://test.blob.core.windows.net/test/uploadkrmn5yw0\"},{\"filename\":\"file3.bin\",\"url\":\"http://test.blob.core.windows.net/test/uploaddq52ky5m\"}],\"importManifest\":{\"hashes\":{\"sha256\":\"O19LyyncPe1AGstOdkcmozLV8pSbBdqrE18HdYVohRc=\"},\"sizeInBytes\":816,\"url\":\"http://test.blob.core.windows.net/test/uploadimportMan.json\"}}]"); + RequestOptions requestOptions = new RequestOptions(); + requestOptions.addQueryParam("action", "import"); + SyncPoller response = + deviceUpdateClient.beginImportUpdate(updateToImport, requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdateimportupdate.deviceupdateimportupdate + } +} diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListFiles.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListFiles.java index 07bcb6b44b40d..e9857a921cab1 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListFiles.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListFiles.java @@ -13,13 +13,16 @@ public class DeviceUpdateListFiles { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatelistfiles.deviceupdatelistfiles + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listFiles("microsoft", "adu", "1.0.0.0", requestOptions); + PagedIterable response = + deviceUpdateClient.listFiles("microsoft", "adu", "1.0.0.0", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatelistfiles.deviceupdatelistfiles } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListNames.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListNames.java index 0dedb2ebe191a..9fbece12adfc5 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListNames.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListNames.java @@ -13,13 +13,15 @@ public class DeviceUpdateListNames { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatelistnames.deviceupdatelistnames + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listNames("microsoft", requestOptions); + PagedIterable response = deviceUpdateClient.listNames("microsoft", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatelistnames.deviceupdatelistnames } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListOperations.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListOperations.java index 615dca5c9d9cf..8cec24d2beebe 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListOperations.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListOperations.java @@ -13,13 +13,15 @@ public class DeviceUpdateListOperations { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatelistoperations.deviceupdatelistoperations + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listOperations(requestOptions); + PagedIterable response = deviceUpdateClient.listOperations(requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatelistoperations.deviceupdatelistoperations } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListProviders.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListProviders.java index 4c401b536a5a7..077611d5fbe74 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListProviders.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListProviders.java @@ -13,13 +13,15 @@ public class DeviceUpdateListProviders { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatelistproviders.deviceupdatelistproviders + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listProviders(requestOptions); + PagedIterable response = deviceUpdateClient.listProviders(requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatelistproviders.deviceupdatelistproviders } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListUpdates.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListUpdates.java index 937eb1c9a40b9..115429ac1ffca 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListUpdates.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListUpdates.java @@ -13,13 +13,15 @@ public class DeviceUpdateListUpdates { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatelistupdates.deviceupdatelistupdates + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listUpdates(requestOptions); + PagedIterable response = deviceUpdateClient.listUpdates(requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatelistupdates.deviceupdatelistupdates } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListVersions.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListVersions.java index abb9b5fc4ffe9..3a3684fb3a101 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListVersions.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/samples/java/com/azure/iot/deviceupdate/generated/DeviceUpdateListVersions.java @@ -13,13 +13,15 @@ public class DeviceUpdateListVersions { public static void main(String[] args) { - DeviceUpdateClient client = + // BEGIN: com.azure.iot.deviceupdate.generated.deviceupdatelistversions.deviceupdatelistversions + DeviceUpdateClient deviceUpdateClient = new DeviceUpdateClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("contoso.api.adu.microsoft.com") .instanceId("blue") - .buildDeviceUpdateClient(); + .buildClient(); RequestOptions requestOptions = new RequestOptions(); - PagedIterable response = client.listVersions("microsoft", "adu", requestOptions); + PagedIterable response = deviceUpdateClient.listVersions("microsoft", "adu", requestOptions); + // END: com.azure.iot.deviceupdate.generated.deviceupdatelistversions.deviceupdatelistversions } } diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceManagementClientTests.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceManagementClientTests.java index 6c6d6aa5b9883..8c79d78c27538 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceManagementClientTests.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceManagementClientTests.java @@ -22,8 +22,8 @@ public class DeviceManagementClientTests extends TestBase { private DeviceManagementAsyncClient createClient() { - DeviceUpdateClientBuilder builder = - new DeviceUpdateClientBuilder() + DeviceManagementClientBuilder builder = + new DeviceManagementClientBuilder() .endpoint(TestData.ACCOUNT_ENDPOINT) .instanceId(TestData.INSTANCE_ID) .httpClient(HttpClient.createDefault()) @@ -37,7 +37,7 @@ private DeviceManagementAsyncClient createClient() { } else if (getTestMode() == TestMode.LIVE) { builder.credential(new DefaultAzureCredentialBuilder().build()); } - return builder.buildDeviceManagementAsyncClient(); + return builder.buildAsyncClient(); } @Test diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceUpdateClientTests.java b/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceUpdateClientTests.java index 280180ea85a45..69a2590689300 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceUpdateClientTests.java +++ b/sdk/deviceupdate/azure-iot-deviceupdate/src/test/java/com/azure/iot/deviceupdate/DeviceUpdateClientTests.java @@ -39,7 +39,7 @@ private DeviceUpdateAsyncClient createClient() { } else if (getTestMode() == TestMode.LIVE) { builder.credential(new DefaultAzureCredentialBuilder().build()); } - return builder.buildDeviceUpdateAsyncClient(); + return builder.buildAsyncClient(); } @Test