diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/assets.json b/sdk/deviceupdate/azure-iot-deviceupdate/assets.json
index ebed1e967baa..0d79c9c10a09 100644
--- a/sdk/deviceupdate/azure-iot-deviceupdate/assets.json
+++ b/sdk/deviceupdate/azure-iot-deviceupdate/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/deviceupdate/azure-iot-deviceupdate",
- "Tag": "java/deviceupdate/azure-iot-deviceupdate_6e7c02a488"
+ "Tag": "java/deviceupdate/azure-iot-deviceupdate_e6c0b7421b"
}
diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/config.yaml b/sdk/deviceupdate/azure-iot-deviceupdate/config.yaml
new file mode 100644
index 000000000000..5ae98eb4605e
--- /dev/null
+++ b/sdk/deviceupdate/azure-iot-deviceupdate/config.yaml
@@ -0,0 +1,30 @@
+use: '@autorest/java@4.1.17'
+input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/deviceupdate/data-plane/Microsoft.DeviceUpdate/stable/2022-10-01/deviceupdate.json
+java: true
+output-folder: ./
+enable-sync-stack: true
+generate-tests: true
+regenerate-pom: false
+title: DeviceUpdateClient
+generate-sync-async-clients: true
+generate-client-as-impl: true
+generate-client-interfaces: false
+service-interface-as-public: true
+add-context-parameter: true
+artifact-id: azure-iot-deviceupdate
+data-plane: true
+sync-methods: all
+generate-samples: true
+license-header: MICROSOFT_MIT_SMALL
+namespace: com.azure.iot.deviceupdate
+service-name: DeviceUpdate
+context-client-method-parameter: true
+azure-arm: false
+credential-types: tokencredential
+credential-scopes: https://api.adu.microsoft.com/.default
+service-versions:
+ - '2022-10-01'
+polling:
+ default:
+ strategy: >-
+ new OperationResourcePollingStrategyWithEndpoint<>({httpPipeline}, "https://" + this.client.getEndpoint(), null, null, {context})
\ No newline at end of file
diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml b/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml
index 22db78c9d839..e49be0660f7d 100644
--- a/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml
+++ b/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml
@@ -29,6 +29,10 @@
0.25
0.1
+
+
+ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
+
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 1be74d117a24..934db9a82182 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
@@ -17,20 +17,21 @@
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;
/** Initializes a new instance of the synchronous DeviceUpdateClient type. */
@ServiceClient(builder = DeviceManagementClientBuilder.class)
public final class DeviceManagementClient {
- @Generated private final DeviceManagementAsyncClient client;
+ @Generated private final DeviceManagementsImpl serviceClient;
/**
* Initializes an instance of DeviceManagementClient class.
*
- * @param client the async client.
+ * @param serviceClient the service client implementation.
*/
@Generated
- DeviceManagementClient(DeviceManagementAsyncClient client) {
- this.client = client;
+ DeviceManagementClient(DeviceManagementsImpl serviceClient) {
+ this.serviceClient = serviceClient;
}
/**
@@ -92,7 +93,7 @@ public final class DeviceManagementClient {
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listDeviceClasses(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listDeviceClasses(requestOptions));
+ return this.serviceClient.listDeviceClasses(requestOptions);
}
/**
@@ -136,7 +137,7 @@ public PagedIterable listDeviceClasses(RequestOptions requestOptions
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeviceClassWithResponse(String deviceClassId, RequestOptions requestOptions) {
- return this.client.getDeviceClassWithResponse(deviceClassId, requestOptions).block();
+ return this.serviceClient.getDeviceClassWithResponse(deviceClassId, requestOptions);
}
/**
@@ -190,7 +191,7 @@ public Response getDeviceClassWithResponse(String deviceClassId, Req
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateDeviceClassWithResponse(
String deviceClassId, BinaryData deviceClassPatch, RequestOptions requestOptions) {
- return this.client.updateDeviceClassWithResponse(deviceClassId, deviceClassPatch, requestOptions).block();
+ return this.serviceClient.updateDeviceClassWithResponse(deviceClassId, deviceClassPatch, requestOptions);
}
/**
@@ -211,7 +212,7 @@ public Response updateDeviceClassWithResponse(
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteDeviceClassWithResponse(String deviceClassId, RequestOptions requestOptions) {
- return this.client.deleteDeviceClassWithResponse(deviceClassId, requestOptions).block();
+ return this.serviceClient.deleteDeviceClassWithResponse(deviceClassId, requestOptions);
}
/**
@@ -248,7 +249,7 @@ public Response deleteDeviceClassWithResponse(String deviceClassId, Reques
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listInstallableUpdatesForDeviceClass(
String deviceClassId, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listInstallableUpdatesForDeviceClass(deviceClassId, requestOptions));
+ return this.serviceClient.listInstallableUpdatesForDeviceClass(deviceClassId, requestOptions);
}
/**
@@ -318,7 +319,7 @@ public PagedIterable listInstallableUpdatesForDeviceClass(
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listDevices(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listDevices(requestOptions));
+ return this.serviceClient.listDevices(requestOptions);
}
/**
@@ -342,7 +343,7 @@ public PagedIterable listDevices(RequestOptions requestOptions) {
@Generated
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller beginImportDevices(BinaryData importType, RequestOptions requestOptions) {
- return this.client.beginImportDevices(importType, requestOptions).getSyncPoller();
+ return this.serviceClient.beginImportDevices(importType, requestOptions);
}
/**
@@ -398,7 +399,7 @@ public SyncPoller beginImportDevices(BinaryData importTy
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeviceWithResponse(String deviceId, RequestOptions requestOptions) {
- return this.client.getDeviceWithResponse(deviceId, requestOptions).block();
+ return this.serviceClient.getDeviceWithResponse(deviceId, requestOptions);
}
/**
@@ -457,7 +458,7 @@ public Response getDeviceWithResponse(String deviceId, RequestOption
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeviceModuleWithResponse(
String deviceId, String moduleId, RequestOptions requestOptions) {
- return this.client.getDeviceModuleWithResponse(deviceId, moduleId, requestOptions).block();
+ return this.serviceClient.getDeviceModuleWithResponse(deviceId, moduleId, requestOptions);
}
/**
@@ -486,7 +487,7 @@ public Response getDeviceModuleWithResponse(
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getUpdateComplianceWithResponse(RequestOptions requestOptions) {
- return this.client.getUpdateComplianceWithResponse(requestOptions).block();
+ return this.serviceClient.getUpdateComplianceWithResponse(requestOptions);
}
/**
@@ -534,7 +535,7 @@ public Response getUpdateComplianceWithResponse(RequestOptions reque
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listGroups(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listGroups(requestOptions));
+ return this.serviceClient.listGroups(requestOptions);
}
/**
@@ -568,7 +569,7 @@ public PagedIterable listGroups(RequestOptions requestOptions) {
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getGroupWithResponse(String groupId, RequestOptions requestOptions) {
- return this.client.getGroupWithResponse(groupId, requestOptions).block();
+ return this.serviceClient.getGroupWithResponse(groupId, requestOptions);
}
/**
@@ -589,7 +590,7 @@ public Response getGroupWithResponse(String groupId, RequestOptions
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteGroupWithResponse(String groupId, RequestOptions requestOptions) {
- return this.client.deleteGroupWithResponse(groupId, requestOptions).block();
+ return this.serviceClient.deleteGroupWithResponse(groupId, requestOptions);
}
/**
@@ -619,7 +620,7 @@ public Response deleteGroupWithResponse(String groupId, RequestOptions req
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getUpdateComplianceForGroupWithResponse(String groupId, RequestOptions requestOptions) {
- return this.client.getUpdateComplianceForGroupWithResponse(groupId, requestOptions).block();
+ return this.serviceClient.getUpdateComplianceForGroupWithResponse(groupId, requestOptions);
}
/**
@@ -661,7 +662,7 @@ public Response getUpdateComplianceForGroupWithResponse(String group
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listBestUpdatesForGroup(String groupId, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listBestUpdatesForGroup(groupId, requestOptions));
+ return this.serviceClient.listBestUpdatesForGroup(groupId, requestOptions);
}
/**
@@ -725,7 +726,7 @@ public PagedIterable listBestUpdatesForGroup(String groupId, Request
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listDeploymentsForGroup(String groupId, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listDeploymentsForGroup(groupId, requestOptions));
+ return this.serviceClient.listDeploymentsForGroup(groupId, requestOptions);
}
/**
@@ -776,7 +777,7 @@ public PagedIterable listDeploymentsForGroup(String groupId, Request
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeploymentWithResponse(
String groupId, String deploymentId, RequestOptions requestOptions) {
- return this.client.getDeploymentWithResponse(groupId, deploymentId, requestOptions).block();
+ return this.serviceClient.getDeploymentWithResponse(groupId, deploymentId, requestOptions);
}
/**
@@ -860,9 +861,8 @@ public Response getDeploymentWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateDeploymentWithResponse(
String groupId, String deploymentId, BinaryData deployment, RequestOptions requestOptions) {
- return this.client
- .createOrUpdateDeploymentWithResponse(groupId, deploymentId, deployment, requestOptions)
- .block();
+ return this.serviceClient.createOrUpdateDeploymentWithResponse(
+ groupId, deploymentId, deployment, requestOptions);
}
/**
@@ -881,7 +881,7 @@ public Response createOrUpdateDeploymentWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteDeploymentWithResponse(
String groupId, String deploymentId, RequestOptions requestOptions) {
- return this.client.deleteDeploymentWithResponse(groupId, deploymentId, requestOptions).block();
+ return this.serviceClient.deleteDeploymentWithResponse(groupId, deploymentId, requestOptions);
}
/**
@@ -939,7 +939,7 @@ public Response deleteDeploymentWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeploymentStatusWithResponse(
String groupId, String deploymentId, RequestOptions requestOptions) {
- return this.client.getDeploymentStatusWithResponse(groupId, deploymentId, requestOptions).block();
+ return this.serviceClient.getDeploymentStatusWithResponse(groupId, deploymentId, requestOptions);
}
/**
@@ -984,7 +984,7 @@ public Response getDeploymentStatusWithResponse(
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listDeviceClassSubgroupsForGroup(String groupId, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listDeviceClassSubgroupsForGroup(groupId, requestOptions));
+ return this.serviceClient.listDeviceClassSubgroupsForGroup(groupId, requestOptions);
}
/**
@@ -1016,7 +1016,7 @@ public PagedIterable listDeviceClassSubgroupsForGroup(String groupId
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeviceClassSubgroupWithResponse(
String groupId, String deviceClassId, RequestOptions requestOptions) {
- return this.client.getDeviceClassSubgroupWithResponse(groupId, deviceClassId, requestOptions).block();
+ return this.serviceClient.getDeviceClassSubgroupWithResponse(groupId, deviceClassId, requestOptions);
}
/**
@@ -1039,7 +1039,7 @@ public Response getDeviceClassSubgroupWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteDeviceClassSubgroupWithResponse(
String groupId, String deviceClassId, RequestOptions requestOptions) {
- return this.client.deleteDeviceClassSubgroupWithResponse(groupId, deviceClassId, requestOptions).block();
+ return this.serviceClient.deleteDeviceClassSubgroupWithResponse(groupId, deviceClassId, requestOptions);
}
/**
@@ -1072,9 +1072,8 @@ public Response deleteDeviceClassSubgroupWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeviceClassSubgroupUpdateComplianceWithResponse(
String groupId, String deviceClassId, RequestOptions requestOptions) {
- return this.client
- .getDeviceClassSubgroupUpdateComplianceWithResponse(groupId, deviceClassId, requestOptions)
- .block();
+ return this.serviceClient.getDeviceClassSubgroupUpdateComplianceWithResponse(
+ groupId, deviceClassId, requestOptions);
}
/**
@@ -1113,9 +1112,8 @@ public Response getDeviceClassSubgroupUpdateComplianceWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getBestUpdatesForDeviceClassSubgroupWithResponse(
String groupId, String deviceClassId, RequestOptions requestOptions) {
- return this.client
- .getBestUpdatesForDeviceClassSubgroupWithResponse(groupId, deviceClassId, requestOptions)
- .block();
+ return this.serviceClient.getBestUpdatesForDeviceClassSubgroupWithResponse(
+ groupId, deviceClassId, requestOptions);
}
/**
@@ -1181,8 +1179,7 @@ public Response getBestUpdatesForDeviceClassSubgroupWithResponse(
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listDeploymentsForDeviceClassSubgroup(
String groupId, String deviceClassId, RequestOptions requestOptions) {
- return new PagedIterable<>(
- this.client.listDeploymentsForDeviceClassSubgroup(groupId, deviceClassId, requestOptions));
+ return this.serviceClient.listDeploymentsForDeviceClassSubgroup(groupId, deviceClassId, requestOptions);
}
/**
@@ -1234,9 +1231,8 @@ public PagedIterable listDeploymentsForDeviceClassSubgroup(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeploymentForDeviceClassSubgroupWithResponse(
String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) {
- return this.client
- .getDeploymentForDeviceClassSubgroupWithResponse(groupId, deviceClassId, deploymentId, requestOptions)
- .block();
+ return this.serviceClient.getDeploymentForDeviceClassSubgroupWithResponse(
+ groupId, deviceClassId, deploymentId, requestOptions);
}
/**
@@ -1256,10 +1252,8 @@ public Response getDeploymentForDeviceClassSubgroupWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteDeploymentForDeviceClassSubgroupWithResponse(
String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) {
- return this.client
- .deleteDeploymentForDeviceClassSubgroupWithResponse(
- groupId, deviceClassId, deploymentId, requestOptions)
- .block();
+ return this.serviceClient.deleteDeploymentForDeviceClassSubgroupWithResponse(
+ groupId, deviceClassId, deploymentId, requestOptions);
}
/**
@@ -1311,7 +1305,7 @@ public Response deleteDeploymentForDeviceClassSubgroupWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response stopDeploymentWithResponse(
String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) {
- return this.client.stopDeploymentWithResponse(groupId, deviceClassId, deploymentId, requestOptions).block();
+ return this.serviceClient.stopDeploymentWithResponse(groupId, deviceClassId, deploymentId, requestOptions);
}
/**
@@ -1363,7 +1357,7 @@ public Response stopDeploymentWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response retryDeploymentWithResponse(
String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) {
- return this.client.retryDeploymentWithResponse(groupId, deviceClassId, deploymentId, requestOptions).block();
+ return this.serviceClient.retryDeploymentWithResponse(groupId, deviceClassId, deploymentId, requestOptions);
}
/**
@@ -1415,10 +1409,8 @@ public Response retryDeploymentWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getDeviceClassSubgroupDeploymentStatusWithResponse(
String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) {
- return this.client
- .getDeviceClassSubgroupDeploymentStatusWithResponse(
- groupId, deviceClassId, deploymentId, requestOptions)
- .block();
+ return this.serviceClient.getDeviceClassSubgroupDeploymentStatusWithResponse(
+ groupId, deviceClassId, deploymentId, requestOptions);
}
/**
@@ -1466,9 +1458,8 @@ public Response getDeviceClassSubgroupDeploymentStatusWithResponse(
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listDeviceStatesForDeviceClassSubgroupDeployment(
String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) {
- return new PagedIterable<>(
- this.client.listDeviceStatesForDeviceClassSubgroupDeployment(
- groupId, deviceClassId, deploymentId, requestOptions));
+ return this.serviceClient.listDeviceStatesForDeviceClassSubgroupDeployment(
+ groupId, deviceClassId, deploymentId, requestOptions);
}
/**
@@ -1523,7 +1514,7 @@ public PagedIterable listDeviceStatesForDeviceClassSubgroupDeploymen
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getOperationStatusWithResponse(String operationId, RequestOptions requestOptions) {
- return this.client.getOperationStatusWithResponse(operationId, requestOptions).block();
+ return this.serviceClient.getOperationStatusWithResponse(operationId, requestOptions);
}
/**
@@ -1583,7 +1574,7 @@ public Response getOperationStatusWithResponse(String operationId, R
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listOperationStatuses(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listOperationStatuses(requestOptions));
+ return this.serviceClient.listOperationStatuses(requestOptions);
}
/**
@@ -1638,7 +1629,7 @@ public PagedIterable listOperationStatuses(RequestOptions requestOpt
@ServiceMethod(returns = ReturnType.SINGLE)
public Response startLogCollectionWithResponse(
String logCollectionId, BinaryData logCollection, RequestOptions requestOptions) {
- return this.client.startLogCollectionWithResponse(logCollectionId, logCollection, requestOptions).block();
+ return this.serviceClient.startLogCollectionWithResponse(logCollectionId, logCollection, requestOptions);
}
/**
@@ -1673,7 +1664,7 @@ public Response startLogCollectionWithResponse(
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getLogCollectionWithResponse(String logCollectionId, RequestOptions requestOptions) {
- return this.client.getLogCollectionWithResponse(logCollectionId, requestOptions).block();
+ return this.serviceClient.getLogCollectionWithResponse(logCollectionId, requestOptions);
}
/**
@@ -1712,7 +1703,7 @@ public Response getLogCollectionWithResponse(String logCollectionId,
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listLogCollections(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listLogCollections(requestOptions));
+ return this.serviceClient.listLogCollections(requestOptions);
}
/**
@@ -1752,7 +1743,7 @@ public PagedIterable listLogCollections(RequestOptions requestOption
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getLogCollectionDetailedStatusWithResponse(
String logCollectionId, RequestOptions requestOptions) {
- return this.client.getLogCollectionDetailedStatusWithResponse(logCollectionId, requestOptions).block();
+ return this.serviceClient.getLogCollectionDetailedStatusWithResponse(logCollectionId, requestOptions);
}
/**
@@ -1792,6 +1783,6 @@ public Response getLogCollectionDetailedStatusWithResponse(
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listHealthOfDevices(String filter, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listHealthOfDevices(filter, requestOptions));
+ return this.serviceClient.listHealthOfDevices(filter, requestOptions);
}
}
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
index c5d97845e27b..9f4c2592fa81 100644
--- 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
@@ -38,7 +38,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
-import java.util.stream.Collectors;
+import java.util.Objects;
/** A builder for creating a new instance of the DeviceManagementClient type. */
@ServiceClientBuilder(serviceClients = {DeviceManagementClient.class, DeviceManagementAsyncClient.class})
@@ -54,7 +54,7 @@ public final class DeviceManagementClientBuilder
@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");
+ private static final Map PROPERTIES = CoreUtils.getProperties("azure-iot-deviceupdate.properties");
@Generated private final List pipelinePolicies;
@@ -133,6 +133,7 @@ public DeviceManagementClientBuilder retryOptions(RetryOptions retryOptions) {
@Generated
@Override
public DeviceManagementClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
+ Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null.");
pipelinePolicies.add(customPolicy);
return this;
}
@@ -251,28 +252,23 @@ private DeviceUpdateClientImpl buildInnerClient() {
private HttpPipeline createHttpPipeline() {
Configuration buildConfiguration =
(configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
- if (httpLogOptions == null) {
- httpLogOptions = new HttpLogOptions();
- }
- if (clientOptions == null) {
- clientOptions = new ClientOptions();
- }
+ HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
+ ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.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);
+ String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+ String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions);
policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration));
policies.add(new RequestIdPolicy());
policies.add(new AddHeadersFromContextPolicy());
HttpHeaders headers = new HttpHeaders();
- clientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue()));
+ localClientOptions.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()));
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
@@ -280,17 +276,16 @@ private HttpPipeline createHttpPipeline() {
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()));
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
new HttpPipelineBuilder()
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.httpClient(httpClient)
- .clientOptions(clientOptions)
+ .clientOptions(localClientOptions)
.build();
return httpPipeline;
}
@@ -312,6 +307,6 @@ public DeviceManagementAsyncClient buildAsyncClient() {
*/
@Generated
public DeviceManagementClient buildClient() {
- return new DeviceManagementClient(new DeviceManagementAsyncClient(buildInnerClient().getDeviceManagements()));
+ return new DeviceManagementClient(buildInnerClient().getDeviceManagements());
}
}
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 b27ebe593072..46e7909935fa 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
@@ -17,20 +17,21 @@
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;
/** Initializes a new instance of the synchronous DeviceUpdateClient type. */
@ServiceClient(builder = DeviceUpdateClientBuilder.class)
public final class DeviceUpdateClient {
- @Generated private final DeviceUpdateAsyncClient client;
+ @Generated private final DeviceUpdatesImpl serviceClient;
/**
* Initializes an instance of DeviceUpdateClient class.
*
- * @param client the async client.
+ * @param serviceClient the service client implementation.
*/
@Generated
- DeviceUpdateClient(DeviceUpdateAsyncClient client) {
- this.client = client;
+ DeviceUpdateClient(DeviceUpdatesImpl serviceClient) {
+ this.serviceClient = serviceClient;
}
/**
@@ -107,7 +108,7 @@ public final class DeviceUpdateClient {
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listUpdates(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listUpdates(requestOptions));
+ return this.serviceClient.listUpdates(requestOptions);
}
/**
@@ -194,7 +195,7 @@ public PagedIterable listUpdates(RequestOptions requestOptions) {
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller beginImportUpdate(
BinaryData updateToImport, RequestOptions requestOptions) {
- return this.client.beginImportUpdate(updateToImport, requestOptions).getSyncPoller();
+ return this.serviceClient.beginImportUpdate(updateToImport, requestOptions);
}
/**
@@ -268,7 +269,7 @@ public SyncPoller beginImportUpdate(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getUpdateWithResponse(
String provider, String name, String version, RequestOptions requestOptions) {
- return this.client.getUpdateWithResponse(provider, name, version, requestOptions).block();
+ return this.serviceClient.getUpdateWithResponse(provider, name, version, requestOptions);
}
/**
@@ -289,7 +290,7 @@ public Response getUpdateWithResponse(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller beginDeleteUpdate(
String provider, String name, String version, RequestOptions requestOptions) {
- return this.client.beginDeleteUpdate(provider, name, version, requestOptions).getSyncPoller();
+ return this.serviceClient.beginDeleteUpdate(provider, name, version, requestOptions);
}
/**
@@ -317,7 +318,7 @@ public SyncPoller beginDeleteUpdate(
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listProviders(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listProviders(requestOptions));
+ return this.serviceClient.listProviders(requestOptions);
}
/**
@@ -346,7 +347,7 @@ public PagedIterable listProviders(RequestOptions requestOptions) {
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listNames(String provider, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listNames(provider, requestOptions));
+ return this.serviceClient.listNames(provider, requestOptions);
}
/**
@@ -386,7 +387,7 @@ public PagedIterable listNames(String provider, RequestOptions reque
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listVersions(String provider, String name, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listVersions(provider, name, requestOptions));
+ return this.serviceClient.listVersions(provider, name, requestOptions);
}
/**
@@ -418,7 +419,7 @@ public PagedIterable listVersions(String provider, String name, Requ
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listFiles(
String provider, String name, String version, RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listFiles(provider, name, version, requestOptions));
+ return this.serviceClient.listFiles(provider, name, version, requestOptions);
}
/**
@@ -487,7 +488,7 @@ public PagedIterable listFiles(
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getFileWithResponse(
String provider, String name, String version, String fileId, RequestOptions requestOptions) {
- return this.client.getFileWithResponse(provider, name, version, fileId, requestOptions).block();
+ return this.serviceClient.getFileWithResponse(provider, name, version, fileId, requestOptions);
}
/**
@@ -558,7 +559,7 @@ public Response getFileWithResponse(
@Generated
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listOperationStatuses(RequestOptions requestOptions) {
- return new PagedIterable<>(this.client.listOperationStatuses(requestOptions));
+ return this.serviceClient.listOperationStatuses(requestOptions);
}
/**
@@ -623,6 +624,6 @@ public PagedIterable listOperationStatuses(RequestOptions requestOpt
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getOperationStatusWithResponse(String operationId, RequestOptions requestOptions) {
- return this.client.getOperationStatusWithResponse(operationId, requestOptions).block();
+ return this.serviceClient.getOperationStatusWithResponse(operationId, requestOptions);
}
}
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 86d8e178e76f..961873b9c408 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
@@ -38,7 +38,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
-import java.util.stream.Collectors;
+import java.util.Objects;
/** A builder for creating a new instance of the DeviceUpdateClient type. */
@ServiceClientBuilder(serviceClients = {DeviceUpdateClient.class, DeviceUpdateAsyncClient.class})
@@ -54,7 +54,7 @@ public final class DeviceUpdateClientBuilder
@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");
+ private static final Map PROPERTIES = CoreUtils.getProperties("azure-iot-deviceupdate.properties");
@Generated private final List pipelinePolicies;
@@ -133,6 +133,7 @@ public DeviceUpdateClientBuilder retryOptions(RetryOptions retryOptions) {
@Generated
@Override
public DeviceUpdateClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
+ Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null.");
pipelinePolicies.add(customPolicy);
return this;
}
@@ -251,28 +252,23 @@ private DeviceUpdateClientImpl buildInnerClient() {
private HttpPipeline createHttpPipeline() {
Configuration buildConfiguration =
(configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
- if (httpLogOptions == null) {
- httpLogOptions = new HttpLogOptions();
- }
- if (clientOptions == null) {
- clientOptions = new ClientOptions();
- }
+ HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
+ ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.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);
+ String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+ String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions);
policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration));
policies.add(new RequestIdPolicy());
policies.add(new AddHeadersFromContextPolicy());
HttpHeaders headers = new HttpHeaders();
- clientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue()));
+ localClientOptions.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()));
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
@@ -280,17 +276,16 @@ private HttpPipeline createHttpPipeline() {
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()));
+ this.pipelinePolicies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
new HttpPipelineBuilder()
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.httpClient(httpClient)
- .clientOptions(clientOptions)
+ .clientOptions(localClientOptions)
.build();
return httpPipeline;
}
@@ -312,6 +307,6 @@ public DeviceUpdateAsyncClient buildAsyncClient() {
*/
@Generated
public DeviceUpdateClient buildClient() {
- return new DeviceUpdateClient(new DeviceUpdateAsyncClient(buildInnerClient().getDeviceUpdates()));
+ return new DeviceUpdateClient(buildInnerClient().getDeviceUpdates());
}
}
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 5fcea42d7cdd..f3fc86eacf0b 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
@@ -35,6 +35,8 @@
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.PollingStrategyOptions;
+import com.azure.core.util.polling.SyncDefaultPollingStrategy;
import com.azure.core.util.polling.SyncPoller;
import com.azure.core.util.serializer.TypeReference;
import java.time.Duration;
@@ -90,7 +92,7 @@ Mono> listDeviceClasses(
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
+ @Get("/deviceUpdate/{instanceId}/management/deviceClasses")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -102,16 +104,15 @@ Mono> listDeviceClasses(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeviceClass(
+ Response listDeviceClassesSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Patch("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
+ @Get("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -123,18 +124,17 @@ Mono> getDeviceClass(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> updateDeviceClass(
+ Mono> getDeviceClass(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/merge-patch+json") BinaryData deviceClassPatch,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Delete("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
- @ExpectedResponses({204})
+ @Get("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -145,7 +145,7 @@ Mono> updateDeviceClass(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteDeviceClass(
+ Response getDeviceClassSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("deviceClassId") String deviceClassId,
@@ -154,7 +154,7 @@ Mono> deleteDeviceClass(
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates")
+ @Patch("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -166,16 +166,17 @@ Mono> deleteDeviceClass(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listInstallableUpdatesForDeviceClass(
+ Mono> updateDeviceClass(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
+ @BodyParam("application/merge-patch+json") BinaryData deviceClassPatch,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/devices")
+ @Patch("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -187,16 +188,18 @@ Mono> listInstallableUpdatesForDeviceClass(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDevices(
+ Response updateDeviceClassSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
+ @BodyParam("application/merge-patch+json") BinaryData deviceClassPatch,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Post("/deviceUpdate/{instanceId}/management/devices:import")
- @ExpectedResponses({202})
+ @Delete("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
+ @ExpectedResponses({204})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -207,17 +210,17 @@ Mono> listDevices(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> importDevices(
+ Mono> deleteDeviceClass(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") BinaryData importType,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/devices/{deviceId}")
- @ExpectedResponses({200})
+ @Delete("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}")
+ @ExpectedResponses({204})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -228,16 +231,16 @@ Mono> importDevices(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDevice(
+ Response deleteDeviceClassSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("deviceId") String deviceId,
+ @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}")
+ @Get("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -249,17 +252,16 @@ Mono> getDevice(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeviceModule(
+ Mono> listInstallableUpdatesForDeviceClass(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("deviceId") String deviceId,
- @PathParam("moduleId") String moduleId,
+ @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/updateCompliance")
+ @Get("/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -271,15 +273,16 @@ Mono> getDeviceModule(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getUpdateCompliance(
+ Response listInstallableUpdatesForDeviceClassSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups")
+ @Get("/deviceUpdate/{instanceId}/management/devices")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -291,7 +294,7 @@ Mono> getUpdateCompliance(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listGroups(
+ Mono> listDevices(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@QueryParam("api-version") String apiVersion,
@@ -299,7 +302,7 @@ Mono> listGroups(
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}")
+ @Get("/deviceUpdate/{instanceId}/management/devices")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -311,17 +314,16 @@ Mono> listGroups(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getGroup(
+ Response listDevicesSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}")
- @ExpectedResponses({204})
+ @Post("/deviceUpdate/{instanceId}/management/devices:import")
+ @ExpectedResponses({202})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -332,17 +334,17 @@ Mono> getGroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteGroup(
+ Mono> importDevices(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
@QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") BinaryData importType,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance")
- @ExpectedResponses({200})
+ @Post("/deviceUpdate/{instanceId}/management/devices:import")
+ @ExpectedResponses({202})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -353,16 +355,16 @@ Mono> deleteGroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getUpdateComplianceForGroup(
+ Response importDevicesSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
@QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") BinaryData importType,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates")
+ @Get("/deviceUpdate/{instanceId}/management/devices/{deviceId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -374,16 +376,16 @@ Mono> getUpdateComplianceForGroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listBestUpdatesForGroup(
+ Mono> getDevice(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
+ @PathParam("deviceId") String deviceId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments")
+ @Get("/deviceUpdate/{instanceId}/management/devices/{deviceId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -395,16 +397,16 @@ Mono> listBestUpdatesForGroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeploymentsForGroup(
+ Response getDeviceSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
+ @PathParam("deviceId") String deviceId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
+ @Get("/deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -416,17 +418,17 @@ Mono> listDeploymentsForGroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeployment(
+ Mono> getDeviceModule(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
- @PathParam("deploymentId") String deploymentId,
+ @PathParam("deviceId") String deviceId,
+ @PathParam("moduleId") String moduleId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Put("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
+ @Get("/deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -438,19 +440,18 @@ Mono> getDeployment(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> createOrUpdateDeployment(
+ Response getDeviceModuleSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
- @PathParam("deploymentId") String deploymentId,
+ @PathParam("deviceId") String deviceId,
+ @PathParam("moduleId") String moduleId,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") BinaryData deployment,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
- @ExpectedResponses({204})
+ @Get("/deviceUpdate/{instanceId}/management/updateCompliance")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -461,17 +462,15 @@ Mono> createOrUpdateDeployment(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteDeployment(
+ Mono> getUpdateCompliance(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status")
+ @Get("/deviceUpdate/{instanceId}/management/updateCompliance")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -483,17 +482,15 @@ Mono> deleteDeployment(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeploymentStatus(
+ Response getUpdateComplianceSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups")
+ @Get("/deviceUpdate/{instanceId}/management/groups")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -505,16 +502,15 @@ Mono> getDeploymentStatus(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeviceClassSubgroupsForGroup(
+ Mono> listGroups(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}")
+ @Get("/deviceUpdate/{instanceId}/management/groups")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -526,18 +522,16 @@ Mono> listDeviceClassSubgroupsForGroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeviceClassSubgroup(
+ Response listGroupsSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}")
- @ExpectedResponses({204})
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -548,18 +542,16 @@ Mono> getDeviceClassSubgroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteDeviceClassSubgroup(
+ Mono> getGroup(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -571,18 +563,17 @@ Mono> deleteDeviceClassSubgroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeviceClassSubgroupUpdateCompliance(
+ Response getGroupSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates")
- @ExpectedResponses({200})
+ @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}")
+ @ExpectedResponses({204})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -593,18 +584,17 @@ Mono> getDeviceClassSubgroupUpdateCompliance(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getBestUpdatesForDeviceClassSubgroup(
+ Mono> deleteGroup(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments")
- @ExpectedResponses({200})
+ @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}")
+ @ExpectedResponses({204})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -615,18 +605,16 @@ Mono> getBestUpdatesForDeviceClassSubgroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeploymentsForDeviceClassSubgroup(
+ Response deleteGroupSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -638,20 +626,17 @@ Mono> listDeploymentsForDeviceClassSubgroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeploymentForDeviceClassSubgroup(
+ Mono> getUpdateComplianceForGroup(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Delete(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}")
- @ExpectedResponses({204})
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -662,19 +647,16 @@ Mono> getDeploymentForDeviceClassSubgroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> deleteDeploymentForDeviceClassSubgroup(
+ Response getUpdateComplianceForGroupSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Post(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -686,19 +668,16 @@ Mono> deleteDeploymentForDeviceClassSubgroup(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> stopDeployment(
+ Mono> listBestUpdatesForGroup(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Post(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -710,19 +689,16 @@ Mono> stopDeployment(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> retryDeployment(
+ Response listBestUpdatesForGroupSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -734,19 +710,16 @@ Mono> retryDeployment(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getDeviceClassSubgroupDeploymentStatus(
+ Mono> listDeploymentsForGroup(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get(
- "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -758,18 +731,16 @@ Mono> getDeviceClassSubgroupDeploymentStatus(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeviceStatesForDeviceClassSubgroupDeployment(
+ Response listDeploymentsForGroupSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
@PathParam("groupId") String groupId,
- @PathParam("deviceClassId") String deviceClassId,
- @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/operations/{operationId}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -781,16 +752,17 @@ Mono> listDeviceStatesForDeviceClassSubgroupDeployment(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getOperationStatus(
+ Mono> getDeployment(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("operationId") String operationId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/operations")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -802,16 +774,18 @@ Mono> getOperationStatus(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listOperationStatuses(
+ Response getDeploymentSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Put("/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}")
- @ExpectedResponses({201})
+ @Put("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -822,17 +796,18 @@ Mono> listOperationStatuses(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> startLogCollection(
+ Mono> createOrUpdateDeployment(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("operationId") String logCollectionId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") BinaryData logCollection,
+ @BodyParam("application/json") BinaryData deployment,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}")
+ @Put("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -844,17 +819,19 @@ Mono> startLogCollection(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getLogCollection(
+ Response createOrUpdateDeploymentSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("operationId") String logCollectionId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") BinaryData deployment,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections")
- @ExpectedResponses({200})
+ @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
+ @ExpectedResponses({204})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -865,16 +842,18 @@ Mono> getLogCollection(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listLogCollections(
+ Mono> deleteDeployment(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus")
- @ExpectedResponses({200})
+ @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}")
+ @ExpectedResponses({204})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
code = {401})
@@ -885,16 +864,17 @@ Mono> listLogCollections(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> getLogCollectionDetailedStatus(
+ Response deleteDeploymentSync(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
- @PathParam("operationId") String logCollectionId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("/deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -906,16 +886,17 @@ Mono> getLogCollectionDetailedStatus(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listHealthOfDevices(
+ Mono> getDeploymentStatus(
@HostParam("endpoint") String endpoint,
@PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
@QueryParam("api-version") String apiVersion,
- @QueryParam("filter") String filter,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -927,14 +908,17 @@ Mono> listHealthOfDevices(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeviceClassesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Response getDeploymentStatusSync(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deploymentId") String deploymentId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -946,14 +930,16 @@ Mono> listDeviceClassesNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listInstallableUpdatesForDeviceClassNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Mono> listDeviceClassSubgroupsForGroup(
@HostParam("endpoint") String endpoint,
- @HeaderParam("Accept") String accept,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -965,14 +951,16 @@ Mono> listInstallableUpdatesForDeviceClassNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDevicesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Response listDeviceClassSubgroupsForGroupSync(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -984,14 +972,17 @@ Mono> listDevicesNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listGroupsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Mono> getDeviceClassSubgroup(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -1003,14 +994,62 @@ Mono> listGroupsNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listBestUpdatesForGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Response getDeviceClassSubgroupSync(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}")
+ @ExpectedResponses({204})
+ @UnexpectedResponseExceptionType(
+ value = ClientAuthenticationException.class,
+ code = {401})
+ @UnexpectedResponseExceptionType(
+ value = ResourceNotFoundException.class,
+ code = {404})
+ @UnexpectedResponseExceptionType(
+ value = ResourceModifiedException.class,
+ code = {409})
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Mono> deleteDeviceClassSubgroup(
+ @HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ RequestOptions requestOptions,
+ Context context);
+
+ @Delete("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}")
+ @ExpectedResponses({204})
+ @UnexpectedResponseExceptionType(
+ value = ClientAuthenticationException.class,
+ code = {401})
+ @UnexpectedResponseExceptionType(
+ value = ResourceNotFoundException.class,
+ code = {404})
+ @UnexpectedResponseExceptionType(
+ value = ResourceModifiedException.class,
+ code = {409})
+ @UnexpectedResponseExceptionType(HttpResponseException.class)
+ Response deleteDeviceClassSubgroupSync(
+ @HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ RequestOptions requestOptions,
+ Context context);
+
+ @Get(
+ "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -1022,14 +1061,18 @@ Mono> listBestUpdatesForGroupNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeploymentsForGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Mono> getDeviceClassSubgroupUpdateCompliance(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get(
+ "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -1041,14 +1084,17 @@ Mono> listDeploymentsForGroupNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeviceClassSubgroupsForGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Response getDeviceClassSubgroupUpdateComplianceSync(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -1060,14 +1106,17 @@ Mono> listDeviceClassSubgroupsForGroupNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeploymentsForDeviceClassSubgroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Mono> getBestUpdatesForDeviceClassSubgroup(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -1079,14 +1128,17 @@ Mono> listDeploymentsForDeviceClassSubgroupNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono> listDeviceStatesForDeviceClassSubgroupDeploymentNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
+ Response getBestUpdatesForDeviceClassSubgroupSync(
@HostParam("endpoint") String endpoint,
+ @PathParam(value = "instanceId", encoded = true) String instanceId,
+ @PathParam("groupId") String groupId,
+ @PathParam("deviceClassId") String deviceClassId,
+ @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
RequestOptions requestOptions,
Context context);
- @Get("{nextLink}")
+ @Get("/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(
value = ClientAuthenticationException.class,
@@ -1098,14 +1150,17 @@ Mono> listDeviceStatesForDeviceClassSubgroupDeploymentNext(
value = ResourceModifiedException.class,
code = {409})
@UnexpectedResponseExceptionType(HttpResponseException.class)
- Mono