Skip to content

Commit

Permalink
mgmt servicebus, update api-version to 2021-11-01 (#30270)
Browse files Browse the repository at this point in the history
* codegen

* manual code

unused imports

* session-records

* changelog

* changelog

* remove credentials to pass ci

* exports core.implementation.util in test
  • Loading branch information
XiaofeiCao authored Aug 5, 2022
1 parent 61aec4b commit 479f553
Show file tree
Hide file tree
Showing 203 changed files with 12,978 additions and 6,995 deletions.
4 changes: 2 additions & 2 deletions sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@
"dir": "azure-resourcemanager-servicebus",
"source": "specification/servicebus/resource-manager/readme.md",
"package": "com.azure.resourcemanager.servicebus",
"args": "--tag=package-2017-04",
"note": "Add '@JsonSerialize(using = DurationSerializer.class)' to properties of 'Duration' type of class 'SBTopicInner', 'SBQueueInner', 'SBSubscriptionInner'"
"args": "--tag=package-2021-11",
"note": "1. Add '@JsonSerialize(using = DurationSerializer.class)' to properties of 'Duration' type of class 'SBTopicInnerProperties', 'SBTopicInnerProperties', 'SBTopicInnerProperties'; 2. Change parent class of class 'SBTopicInner', 'SBQueueInner' and 'SBSubscriptionInner' to 'Resource', not 'ProxyResource'"
},
"sql": {
"dir": "azure-resourcemanager-sql",
Expand Down
17 changes: 14 additions & 3 deletions sdk/resourcemanager/azure-resourcemanager-servicebus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@

## 2.18.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Removed class `CaptureDescription`.
- Removed class `Destination`.
- Removed class `EncodingCaptureDescription`.
- Removed class `EventHubListResult`.
- Removed class `NameSpaceType`.
- Removed class `PremiumMessagingRegionProperties`.
- Removed class `PremiumMessagingRegionsListResult`.
- Removed class `SBNamespaceMigrate`.
- Changed class `SBNamespaceUpdateParameters` to be `final`.
- Class `SBNamespaceUpdateParameters` is no longer annotated with `JsonFlatten`.

### Other Changes

#### Dependency Updates

- Updated `api-version` to `2021-11-01`.

## 2.17.0 (2022-07-25)

### Other Changes
Expand Down
2 changes: 2 additions & 0 deletions sdk/resourcemanager/azure-resourcemanager-servicebus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
<!-- Configures the Java 9+ run to perform the required module exports, opens, and reads that are necessary for testing but shouldn't be part of the module-info. -->
<javaModulesSurefireArgLine>
--add-opens com.azure.resourcemanager.servicebus/com.azure.resourcemanager.servicebus=ALL-UNNAMED
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
</javaModulesSurefireArgLine>
<revapi.skip>true</revapi.skip>
</properties>

<developers>
Expand Down

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface MigrationConfigsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all migrationConfigurations.
* @return all migrationConfigurations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<MigrationConfigPropertiesInner> listAsync(String resourceGroupName, String namespaceName);
Expand All @@ -42,7 +42,7 @@ public interface MigrationConfigsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all migrationConfigurations.
* @return all migrationConfigurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<MigrationConfigPropertiesInner> list(String resourceGroupName, String namespaceName);
Expand All @@ -56,7 +56,7 @@ public interface MigrationConfigsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all migrationConfigurations.
* @return all migrationConfigurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<MigrationConfigPropertiesInner> list(String resourceGroupName, String namespaceName, Context context);
Expand All @@ -71,7 +71,8 @@ public interface MigrationConfigsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return single item in List or Get Migration Config operation along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> createAndStartMigrationWithResponseAsync(
Expand All @@ -90,9 +91,9 @@ Mono<Response<Flux<ByteBuffer>>> createAndStartMigrationWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return the {@link PollerFlux} for polling of single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<MigrationConfigPropertiesInner>, MigrationConfigPropertiesInner>
beginCreateAndStartMigrationAsync(
String resourceGroupName,
Expand All @@ -110,9 +111,9 @@ Mono<Response<Flux<ByteBuffer>>> createAndStartMigrationWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return the {@link SyncPoller} for polling of single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<MigrationConfigPropertiesInner>, MigrationConfigPropertiesInner> beginCreateAndStartMigration(
String resourceGroupName,
String namespaceName,
Expand All @@ -130,9 +131,9 @@ SyncPoller<PollResult<MigrationConfigPropertiesInner>, MigrationConfigProperties
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return the {@link SyncPoller} for polling of single item in List or Get Migration Config operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<MigrationConfigPropertiesInner>, MigrationConfigPropertiesInner> beginCreateAndStartMigration(
String resourceGroupName,
String namespaceName,
Expand All @@ -150,7 +151,7 @@ SyncPoller<PollResult<MigrationConfigPropertiesInner>, MigrationConfigProperties
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return single item in List or Get Migration Config operation on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<MigrationConfigPropertiesInner> createAndStartMigrationAsync(
Expand Down Expand Up @@ -208,7 +209,7 @@ MigrationConfigPropertiesInner createAndStartMigration(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> deleteWithResponseAsync(
Expand All @@ -223,7 +224,7 @@ Mono<Response<Void>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> deleteAsync(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
Expand Down Expand Up @@ -251,7 +252,7 @@ Mono<Response<Void>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
Expand All @@ -266,7 +267,8 @@ Response<Void> deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return single item in List or Get Migration Config operation along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<MigrationConfigPropertiesInner>> getWithResponseAsync(
Expand All @@ -281,7 +283,7 @@ Mono<Response<MigrationConfigPropertiesInner>> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return single item in List or Get Migration Config operation on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<MigrationConfigPropertiesInner> getAsync(
Expand Down Expand Up @@ -312,7 +314,7 @@ MigrationConfigPropertiesInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return single item in List or Get Migration Config operation.
* @return single item in List or Get Migration Config operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MigrationConfigPropertiesInner> getWithResponse(
Expand All @@ -329,7 +331,7 @@ Response<MigrationConfigPropertiesInner> getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> completeMigrationWithResponseAsync(
Expand All @@ -346,7 +348,7 @@ Mono<Response<Void>> completeMigrationWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> completeMigrationAsync(
Expand Down Expand Up @@ -379,7 +381,7 @@ Mono<Void> completeMigrationAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> completeMigrationWithResponse(
Expand All @@ -394,7 +396,7 @@ Response<Void> completeMigrationWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> revertWithResponseAsync(
Expand All @@ -409,7 +411,7 @@ Mono<Response<Void>> revertWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> revertAsync(String resourceGroupName, String namespaceName, MigrationConfigurationName configName);
Expand Down Expand Up @@ -437,7 +439,7 @@ Mono<Response<Void>> revertWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> revertWithResponse(
Expand Down
Loading

0 comments on commit 479f553

Please sign in to comment.