Skip to content

Commit fa49627

Browse files
author
SDKAuto
committed
CodeGen from PR 18226 in Azure/azure-rest-api-specs
Merge fff802b21aed5e6a76413e02f67f6460e2c04980 into 2abe647120f14bb145968a5543ead8ed51394498
1 parent 48cb91c commit fa49627

26 files changed

+167
-184
lines changed

sdk/iotcentral/azure-resourcemanager-iotcentral/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-15)
4+
5+
- Azure Resource Manager IotCentral client library for Java. This package contains Microsoft Azure SDK for IotCentral Management SDK. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/iotcentral/azure-resourcemanager-iotcentral/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-iotcentral</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/IotCentralManager.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static Configurable configure() {
7878

7979
/** The Configurable allowing configurations to be set. */
8080
public static final class Configurable {
81-
private final ClientLogger logger = new ClientLogger(Configurable.class);
81+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
8282

8383
private HttpClient httpClient;
8484
private HttpLogOptions httpLogOptions;
@@ -152,9 +152,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
152152
* @return the configurable object itself.
153153
*/
154154
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
155-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
155+
this.defaultPollInterval =
156+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
156157
if (this.defaultPollInterval.isNegative()) {
157-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
158+
throw LOGGER
159+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
158160
}
159161
return this;
160162
}
@@ -176,7 +178,7 @@ public IotCentralManager authenticate(TokenCredential credential, AzureProfile p
176178
.append("-")
177179
.append("com.azure.resourcemanager.iotcentral")
178180
.append("/")
179-
.append("1.0.0");
181+
.append("1.0.0-beta.1");
180182
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
181183
userAgentBuilder
182184
.append(" (")

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/AppsClient.java

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface AppsClient {
4141
* @throws IllegalArgumentException thrown if parameters fail the validation.
4242
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4343
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
44-
* @return the metadata of an IoT Central application.
44+
* @return the metadata of an IoT Central application along with {@link Response}.
4545
*/
4646
@ServiceMethod(returns = ReturnType.SINGLE)
4747
Response<AppInner> getByResourceGroupWithResponse(String resourceGroupName, String resourceName, Context context);
@@ -57,7 +57,7 @@ public interface AppsClient {
5757
* @throws IllegalArgumentException thrown if parameters fail the validation.
5858
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5959
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
60-
* @return the IoT Central application.
60+
* @return the {@link SyncPoller} for polling of the IoT Central application.
6161
*/
6262
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
6363
SyncPoller<PollResult<AppInner>, AppInner> beginCreateOrUpdate(
@@ -75,7 +75,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginCreateOrUpdate(
7575
* @throws IllegalArgumentException thrown if parameters fail the validation.
7676
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7777
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
78-
* @return the IoT Central application.
78+
* @return the {@link SyncPoller} for polling of the IoT Central application.
7979
*/
8080
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8181
SyncPoller<PollResult<AppInner>, AppInner> beginCreateOrUpdate(
@@ -123,7 +123,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginCreateOrUpdate(
123123
* @throws IllegalArgumentException thrown if parameters fail the validation.
124124
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
125125
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
126-
* @return the IoT Central application.
126+
* @return the {@link SyncPoller} for polling of the IoT Central application.
127127
*/
128128
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
129129
SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
@@ -139,7 +139,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
139139
* @throws IllegalArgumentException thrown if parameters fail the validation.
140140
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
141141
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
142-
* @return the IoT Central application.
142+
* @return the {@link SyncPoller} for polling of the IoT Central application.
143143
*/
144144
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
145145
SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
@@ -182,7 +182,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
182182
* @throws IllegalArgumentException thrown if parameters fail the validation.
183183
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
184184
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
185-
* @return the completion.
185+
* @return the {@link SyncPoller} for polling of long-running operation.
186186
*/
187187
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
188188
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String resourceName);
@@ -196,7 +196,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
196196
* @throws IllegalArgumentException thrown if parameters fail the validation.
197197
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
198198
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
199-
* @return the completion.
199+
* @return the {@link SyncPoller} for polling of long-running operation.
200200
*/
201201
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
202202
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String resourceName, Context context);
@@ -231,7 +231,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
231231
*
232232
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
233233
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
234-
* @return all IoT Central Applications in a subscription.
234+
* @return all IoT Central Applications in a subscription as paginated response with {@link PagedIterable}.
235235
*/
236236
@ServiceMethod(returns = ReturnType.COLLECTION)
237237
PagedIterable<AppInner> list();
@@ -243,7 +243,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
243243
* @throws IllegalArgumentException thrown if parameters fail the validation.
244244
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
245245
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
246-
* @return all IoT Central Applications in a subscription.
246+
* @return all IoT Central Applications in a subscription as paginated response with {@link PagedIterable}.
247247
*/
248248
@ServiceMethod(returns = ReturnType.COLLECTION)
249249
PagedIterable<AppInner> list(Context context);
@@ -255,7 +255,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
255255
* @throws IllegalArgumentException thrown if parameters fail the validation.
256256
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
257257
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
258-
* @return all the IoT Central Applications in a resource group.
258+
* @return all the IoT Central Applications in a resource group as paginated response with {@link PagedIterable}.
259259
*/
260260
@ServiceMethod(returns = ReturnType.COLLECTION)
261261
PagedIterable<AppInner> listByResourceGroup(String resourceGroupName);
@@ -268,7 +268,7 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
268268
* @throws IllegalArgumentException thrown if parameters fail the validation.
269269
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
270270
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
271-
* @return all the IoT Central Applications in a resource group.
271+
* @return all the IoT Central Applications in a resource group as paginated response with {@link PagedIterable}.
272272
*/
273273
@ServiceMethod(returns = ReturnType.COLLECTION)
274274
PagedIterable<AppInner> listByResourceGroup(String resourceGroupName, Context context);
@@ -295,7 +295,8 @@ SyncPoller<PollResult<AppInner>, AppInner> beginUpdate(
295295
* @throws IllegalArgumentException thrown if parameters fail the validation.
296296
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
297297
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
298-
* @return the properties indicating whether a given IoT Central application name or subdomain is available.
298+
* @return the properties indicating whether a given IoT Central application name or subdomain is available along
299+
* with {@link Response}.
299300
*/
300301
@ServiceMethod(returns = ReturnType.SINGLE)
301302
Response<AppAvailabilityInfoInner> checkNameAvailabilityWithResponse(
@@ -323,7 +324,8 @@ Response<AppAvailabilityInfoInner> checkNameAvailabilityWithResponse(
323324
* @throws IllegalArgumentException thrown if parameters fail the validation.
324325
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
325326
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
326-
* @return the properties indicating whether a given IoT Central application name or subdomain is available.
327+
* @return the properties indicating whether a given IoT Central application name or subdomain is available along
328+
* with {@link Response}.
327329
*/
328330
@ServiceMethod(returns = ReturnType.SINGLE)
329331
Response<AppAvailabilityInfoInner> checkSubdomainAvailabilityWithResponse(
@@ -334,7 +336,7 @@ Response<AppAvailabilityInfoInner> checkSubdomainAvailabilityWithResponse(
334336
*
335337
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
336338
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
337-
* @return all available application templates.
339+
* @return all available application templates as paginated response with {@link PagedIterable}.
338340
*/
339341
@ServiceMethod(returns = ReturnType.COLLECTION)
340342
PagedIterable<AppTemplateInner> listTemplates();
@@ -346,7 +348,7 @@ Response<AppAvailabilityInfoInner> checkSubdomainAvailabilityWithResponse(
346348
* @throws IllegalArgumentException thrown if parameters fail the validation.
347349
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
348350
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
349-
* @return all available application templates.
351+
* @return all available application templates as paginated response with {@link PagedIterable}.
350352
*/
351353
@ServiceMethod(returns = ReturnType.COLLECTION)
352354
PagedIterable<AppTemplateInner> listTemplates(Context context);

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/OperationsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface OperationsClient {
1717
*
1818
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
1919
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
20-
* @return a list of IoT Central operations.
20+
* @return a list of IoT Central operations as paginated response with {@link PagedIterable}.
2121
*/
2222
@ServiceMethod(returns = ReturnType.COLLECTION)
2323
PagedIterable<OperationInner> list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
2929
* @throws IllegalArgumentException thrown if parameters fail the validation.
3030
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3131
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
32-
* @return a list of IoT Central operations.
32+
* @return a list of IoT Central operations as paginated response with {@link PagedIterable}.
3333
*/
3434
@ServiceMethod(returns = ReturnType.COLLECTION)
3535
PagedIterable<OperationInner> list(Context context);

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppAvailabilityInfoInner.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
package com.azure.resourcemanager.iotcentral.fluent.models;
66

77
import com.azure.core.annotation.Immutable;
8-
import com.azure.core.util.logging.ClientLogger;
9-
import com.fasterxml.jackson.annotation.JsonIgnore;
108
import com.fasterxml.jackson.annotation.JsonProperty;
119

1210
/** The properties indicating whether a given IoT Central application name or subdomain is available. */
1311
@Immutable
1412
public final class AppAvailabilityInfoInner {
15-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AppAvailabilityInfoInner.class);
16-
1713
/*
1814
* The value which indicates whether the provided name is available.
1915
*/

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppInner.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@
1010
import com.azure.resourcemanager.iotcentral.models.AppSkuInfo;
1111
import com.azure.resourcemanager.iotcentral.models.AppState;
1212
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
13-
import com.fasterxml.jackson.annotation.JsonIgnore;
1413
import com.fasterxml.jackson.annotation.JsonProperty;
1514
import java.util.Map;
1615

1716
/** The IoT Central application. */
1817
@Fluent
1918
public final class AppInner extends Resource {
20-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AppInner.class);
21-
2219
/*
2320
* The common properties of an IoT Central application.
2421
*/
@@ -201,7 +198,7 @@ public void validate() {
201198
innerProperties().validate();
202199
}
203200
if (sku() == null) {
204-
throw logger
201+
throw LOGGER
205202
.logExceptionAsError(new IllegalArgumentException("Missing required property sku in model AppInner"));
206203
} else {
207204
sku().validate();
@@ -210,4 +207,6 @@ public void validate() {
210207
identity().validate();
211208
}
212209
}
210+
211+
private static final ClientLogger LOGGER = new ClientLogger(AppInner.class);
213212
}

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppProperties.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@
55
package com.azure.resourcemanager.iotcentral.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.iotcentral.models.AppState;
10-
import com.fasterxml.jackson.annotation.JsonIgnore;
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210

1311
/** The properties of an IoT Central application. */
1412
@Fluent
1513
public final class AppProperties {
16-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AppProperties.class);
17-
1814
/*
1915
* The ID of the application.
2016
*/

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppTemplateInner.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
package com.azure.resourcemanager.iotcentral.fluent.models;
66

77
import com.azure.core.annotation.Immutable;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.iotcentral.models.AppTemplateLocations;
10-
import com.fasterxml.jackson.annotation.JsonIgnore;
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210
import java.util.List;
1311

1412
/** IoT Central Application Template. */
1513
@Immutable
1614
public final class AppTemplateInner {
17-
@JsonIgnore private final ClientLogger logger = new ClientLogger(AppTemplateInner.class);
18-
1915
/*
2016
* The ID of the template.
2117
*/

sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/OperationInner.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@
55
package com.azure.resourcemanager.iotcentral.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8-
import com.azure.core.util.logging.ClientLogger;
98
import com.azure.resourcemanager.iotcentral.models.OperationDisplay;
10-
import com.fasterxml.jackson.annotation.JsonIgnore;
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210

1311
/** IoT Central REST API operation. */
1412
@Fluent
1513
public final class OperationInner {
16-
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
17-
1814
/*
1915
* Operation name: {provider}/{resource}/{read | write | action | delete}
2016
*/

0 commit comments

Comments
 (0)