Skip to content

Commit 815e19b

Browse files
author
SDKAuto
committed
CodeGen from PR 18453 in Azure/azure-rest-api-specs
Merge 32620b81ebfed5a4a97be43f2a9d739d0cf8dced into 140d83c74936b2ca952209efce04a6847eff9c02
1 parent a2c852f commit 815e19b

File tree

181 files changed

+1368
-1737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+1368
-1737
lines changed

sdk/avs/azure-resourcemanager-avs/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.0.0-beta.4 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-29)
4+
5+
- Azure Resource Manager Avs client library for Java. This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. Package tag package-2021-12-01. 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/avs/azure-resourcemanager-avs/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-avs</artifactId>
35-
<version>1.0.0-beta.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java

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

135135
/** The Configurable allowing configurations to be set. */
136136
public static final class Configurable {
137-
private final ClientLogger logger = new ClientLogger(Configurable.class);
137+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
138138

139139
private HttpClient httpClient;
140140
private HttpLogOptions httpLogOptions;
@@ -208,9 +208,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
208208
* @return the configurable object itself.
209209
*/
210210
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
211-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
211+
this.defaultPollInterval =
212+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
212213
if (this.defaultPollInterval.isNegative()) {
213-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
214+
throw LOGGER
215+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
214216
}
215217
return this;
216218
}
@@ -232,7 +234,7 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile)
232234
.append("-")
233235
.append("com.azure.resourcemanager.avs")
234236
.append("/")
235-
.append("1.0.0-beta.3");
237+
.append("1.0.0-beta.1");
236238
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
237239
userAgentBuilder
238240
.append(" (")

sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface AddonsClient {
2323
* @throws IllegalArgumentException thrown if parameters fail the validation.
2424
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2525
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26-
* @return a paged list of addons.
26+
* @return a paged list of addons as paginated response with {@link PagedIterable}.
2727
*/
2828
@ServiceMethod(returns = ReturnType.COLLECTION)
2929
PagedIterable<AddonInner> list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface AddonsClient {
3737
* @throws IllegalArgumentException thrown if parameters fail the validation.
3838
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3939
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
40-
* @return a paged list of addons.
40+
* @return a paged list of addons as paginated response with {@link PagedIterable}.
4141
*/
4242
@ServiceMethod(returns = ReturnType.COLLECTION)
4343
PagedIterable<AddonInner> list(String resourceGroupName, String privateCloudName, Context context);
@@ -66,7 +66,7 @@ public interface AddonsClient {
6666
* @throws IllegalArgumentException thrown if parameters fail the validation.
6767
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6868
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
69-
* @return an addon by name in a private cloud.
69+
* @return an addon by name in a private cloud along with {@link Response}.
7070
*/
7171
@ServiceMethod(returns = ReturnType.SINGLE)
7272
Response<AddonInner> getWithResponse(
@@ -82,7 +82,7 @@ Response<AddonInner> getWithResponse(
8282
* @throws IllegalArgumentException thrown if parameters fail the validation.
8383
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8484
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
85-
* @return an addon resource.
85+
* @return the {@link SyncPoller} for polling of an addon resource.
8686
*/
8787
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8888
SyncPoller<PollResult<AddonInner>, AddonInner> beginCreateOrUpdate(
@@ -99,7 +99,7 @@ SyncPoller<PollResult<AddonInner>, AddonInner> beginCreateOrUpdate(
9999
* @throws IllegalArgumentException thrown if parameters fail the validation.
100100
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
101101
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
102-
* @return an addon resource.
102+
* @return the {@link SyncPoller} for polling of an addon resource.
103103
*/
104104
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
105105
SyncPoller<PollResult<AddonInner>, AddonInner> beginCreateOrUpdate(
@@ -146,7 +146,7 @@ AddonInner createOrUpdate(
146146
* @throws IllegalArgumentException thrown if parameters fail the validation.
147147
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
148148
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
149-
* @return the completion.
149+
* @return the {@link SyncPoller} for polling of long-running operation.
150150
*/
151151
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
152152
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String privateCloudName, String addonName);
@@ -161,7 +161,7 @@ AddonInner createOrUpdate(
161161
* @throws IllegalArgumentException thrown if parameters fail the validation.
162162
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
163163
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
164-
* @return the completion.
164+
* @return the {@link SyncPoller} for polling of long-running operation.
165165
*/
166166
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
167167
SyncPoller<PollResult<Void>, Void> beginDelete(

sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface AuthorizationsClient {
2323
* @throws IllegalArgumentException thrown if parameters fail the validation.
2424
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2525
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26-
* @return a paged list of ExpressRoute Circuit Authorizations.
26+
* @return a paged list of ExpressRoute Circuit Authorizations as paginated response with {@link PagedIterable}.
2727
*/
2828
@ServiceMethod(returns = ReturnType.COLLECTION)
2929
PagedIterable<ExpressRouteAuthorizationInner> list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface AuthorizationsClient {
3737
* @throws IllegalArgumentException thrown if parameters fail the validation.
3838
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3939
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
40-
* @return a paged list of ExpressRoute Circuit Authorizations.
40+
* @return a paged list of ExpressRoute Circuit Authorizations as paginated response with {@link PagedIterable}.
4141
*/
4242
@ServiceMethod(returns = ReturnType.COLLECTION)
4343
PagedIterable<ExpressRouteAuthorizationInner> list(
@@ -67,7 +67,7 @@ PagedIterable<ExpressRouteAuthorizationInner> list(
6767
* @throws IllegalArgumentException thrown if parameters fail the validation.
6868
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6969
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
70-
* @return an ExpressRoute Circuit Authorization by name in a private cloud.
70+
* @return an ExpressRoute Circuit Authorization by name in a private cloud along with {@link Response}.
7171
*/
7272
@ServiceMethod(returns = ReturnType.SINGLE)
7373
Response<ExpressRouteAuthorizationInner> getWithResponse(
@@ -83,7 +83,7 @@ Response<ExpressRouteAuthorizationInner> getWithResponse(
8383
* @throws IllegalArgumentException thrown if parameters fail the validation.
8484
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8585
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
86-
* @return expressRoute Circuit Authorization.
86+
* @return the {@link SyncPoller} for polling of expressRoute Circuit Authorization.
8787
*/
8888
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8989
SyncPoller<PollResult<ExpressRouteAuthorizationInner>, ExpressRouteAuthorizationInner> beginCreateOrUpdate(
@@ -103,7 +103,7 @@ SyncPoller<PollResult<ExpressRouteAuthorizationInner>, ExpressRouteAuthorization
103103
* @throws IllegalArgumentException thrown if parameters fail the validation.
104104
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
105105
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
106-
* @return expressRoute Circuit Authorization.
106+
* @return the {@link SyncPoller} for polling of expressRoute Circuit Authorization.
107107
*/
108108
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
109109
SyncPoller<PollResult<ExpressRouteAuthorizationInner>, ExpressRouteAuthorizationInner> beginCreateOrUpdate(
@@ -162,7 +162,7 @@ ExpressRouteAuthorizationInner createOrUpdate(
162162
* @throws IllegalArgumentException thrown if parameters fail the validation.
163163
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
164164
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
165-
* @return the completion.
165+
* @return the {@link SyncPoller} for polling of long-running operation.
166166
*/
167167
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
168168
SyncPoller<PollResult<Void>, Void> beginDelete(
@@ -178,7 +178,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
178178
* @throws IllegalArgumentException thrown if parameters fail the validation.
179179
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
180180
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
181-
* @return the completion.
181+
* @return the {@link SyncPoller} for polling of long-running operation.
182182
*/
183183
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
184184
SyncPoller<PollResult<Void>, Void> beginDelete(

sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface CloudLinksClient {
2323
* @throws IllegalArgumentException thrown if parameters fail the validation.
2424
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2525
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26-
* @return a paged list of cloud links.
26+
* @return a paged list of cloud links as paginated response with {@link PagedIterable}.
2727
*/
2828
@ServiceMethod(returns = ReturnType.COLLECTION)
2929
PagedIterable<CloudLinkInner> list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface CloudLinksClient {
3737
* @throws IllegalArgumentException thrown if parameters fail the validation.
3838
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3939
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
40-
* @return a paged list of cloud links.
40+
* @return a paged list of cloud links as paginated response with {@link PagedIterable}.
4141
*/
4242
@ServiceMethod(returns = ReturnType.COLLECTION)
4343
PagedIterable<CloudLinkInner> list(String resourceGroupName, String privateCloudName, Context context);
@@ -66,7 +66,7 @@ public interface CloudLinksClient {
6666
* @throws IllegalArgumentException thrown if parameters fail the validation.
6767
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6868
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
69-
* @return an cloud link by name in a private cloud.
69+
* @return an cloud link by name in a private cloud along with {@link Response}.
7070
*/
7171
@ServiceMethod(returns = ReturnType.SINGLE)
7272
Response<CloudLinkInner> getWithResponse(
@@ -82,7 +82,7 @@ Response<CloudLinkInner> getWithResponse(
8282
* @throws IllegalArgumentException thrown if parameters fail the validation.
8383
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8484
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
85-
* @return a cloud link resource.
85+
* @return the {@link SyncPoller} for polling of a cloud link resource.
8686
*/
8787
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8888
SyncPoller<PollResult<CloudLinkInner>, CloudLinkInner> beginCreateOrUpdate(
@@ -99,7 +99,7 @@ SyncPoller<PollResult<CloudLinkInner>, CloudLinkInner> beginCreateOrUpdate(
9999
* @throws IllegalArgumentException thrown if parameters fail the validation.
100100
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
101101
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
102-
* @return a cloud link resource.
102+
* @return the {@link SyncPoller} for polling of a cloud link resource.
103103
*/
104104
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
105105
SyncPoller<PollResult<CloudLinkInner>, CloudLinkInner> beginCreateOrUpdate(
@@ -155,7 +155,7 @@ CloudLinkInner createOrUpdate(
155155
* @throws IllegalArgumentException thrown if parameters fail the validation.
156156
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
157157
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
158-
* @return the completion.
158+
* @return the {@link SyncPoller} for polling of long-running operation.
159159
*/
160160
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
161161
SyncPoller<PollResult<Void>, Void> beginDelete(
@@ -171,7 +171,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
171171
* @throws IllegalArgumentException thrown if parameters fail the validation.
172172
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
173173
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
174-
* @return the completion.
174+
* @return the {@link SyncPoller} for polling of long-running operation.
175175
*/
176176
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
177177
SyncPoller<PollResult<Void>, Void> beginDelete(

0 commit comments

Comments
 (0)