Skip to content

Commit

Permalink
mgmt, upgrade eventhubs (#25016)
Browse files Browse the repository at this point in the history
* eventhubs to package-2021-11

* regen

* manual change

* auto update record

* changelog

* add slf4j to pom
  • Loading branch information
weidongxu-microsoft authored Nov 5, 2021
1 parent c2bd346 commit ac0a1ad
Show file tree
Hide file tree
Showing 107 changed files with 14,110 additions and 4,489 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"dir": "azure-resourcemanager-eventhubs",
"source": "specification/eventhub/resource-manager/readme.md",
"package": "com.azure.resourcemanager.eventhubs",
"args": "--tag=package-2017-04"
"args": "--tag=package-2021-11"
},
"features": {
"dir": "azure-resourcemanager-resources",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>

<analysisConfiguration>
<revapi.ignore>
<item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

## 2.10.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Enum `KeyType` changed to subclass of `ExpandableStringEnum`.
- `RegionsClient` removed.

### Other Changes

#### Dependency Updates

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

## 2.9.0 (2021-10-21)

### Other Changes
Expand Down
7 changes: 7 additions & 0 deletions sdk/resourcemanager/azure-resourcemanager-eventhubs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
<version>1.11.1</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.32</version> <!-- {x-version-update;org.slf4j:slf4j-simple;external_dependency} -->
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
Expand Down Expand Up @@ -135,6 +141,7 @@
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<skip>true</skip>
<analysisConfiguration>
<revapi.ignore>
<item>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.eventhubs.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.eventhubs.fluent.models.ClusterQuotaConfigurationPropertiesInner;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
public interface ConfigurationsClient {
/**
* Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings
* not specified in the request body unmodified.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @param parameters Parameters for creating an Event Hubs Cluster resource.
* @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 contains all settings for the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<ClusterQuotaConfigurationPropertiesInner>> patchWithResponseAsync(
String resourceGroupName, String clusterName, ClusterQuotaConfigurationPropertiesInner parameters);

/**
* Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings
* not specified in the request body unmodified.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @param parameters Parameters for creating an Event Hubs Cluster resource.
* @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 contains all settings for the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<ClusterQuotaConfigurationPropertiesInner> patchAsync(
String resourceGroupName, String clusterName, ClusterQuotaConfigurationPropertiesInner parameters);

/**
* Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings
* not specified in the request body unmodified.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @param parameters Parameters for creating an Event Hubs Cluster resource.
* @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 contains all settings for the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterQuotaConfigurationPropertiesInner patch(
String resourceGroupName, String clusterName, ClusterQuotaConfigurationPropertiesInner parameters);

/**
* Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings
* not specified in the request body unmodified.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @param parameters Parameters for creating an Event Hubs Cluster resource.
* @param context The context to associate with this operation.
* @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 contains all settings for the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ClusterQuotaConfigurationPropertiesInner> patchWithResponse(
String resourceGroupName,
String clusterName,
ClusterQuotaConfigurationPropertiesInner parameters,
Context context);

/**
* Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @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 Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<ClusterQuotaConfigurationPropertiesInner>> getWithResponseAsync(
String resourceGroupName, String clusterName);

/**
* Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @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 Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<ClusterQuotaConfigurationPropertiesInner> getAsync(String resourceGroupName, String clusterName);

/**
* Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @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 Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterQuotaConfigurationPropertiesInner get(String resourceGroupName, String clusterName);

/**
* Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @param context The context to associate with this operation.
* @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 Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
* imposed on the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ClusterQuotaConfigurationPropertiesInner> getWithResponse(
String resourceGroupName, String clusterName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public interface ConsumerGroupsClient {
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param consumerGroupName The consumer group name.
* @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024.
* e.g. it can be used to store descriptive data, such as list of teams and their contact information also
* user-defined configuration settings can be stored.
* @param parameters Parameters supplied to create or update a consumer group resource.
* @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.
Expand All @@ -36,7 +34,7 @@ Mono<Response<ConsumerGroupInner>> createOrUpdateWithResponseAsync(
String namespaceName,
String eventHubName,
String consumerGroupName,
String userMetadata);
ConsumerGroupInner parameters);

/**
* Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
Expand All @@ -45,9 +43,7 @@ Mono<Response<ConsumerGroupInner>> createOrUpdateWithResponseAsync(
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param consumerGroupName The consumer group name.
* @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024.
* e.g. it can be used to store descriptive data, such as list of teams and their contact information also
* user-defined configuration settings can be stored.
* @param parameters Parameters supplied to create or update a consumer group resource.
* @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.
Expand All @@ -59,23 +55,7 @@ Mono<ConsumerGroupInner> createOrUpdateAsync(
String namespaceName,
String eventHubName,
String consumerGroupName,
String userMetadata);

/**
* Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
*
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param consumerGroupName The consumer group name.
* @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 Consumer group operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<ConsumerGroupInner> createOrUpdateAsync(
String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName);
ConsumerGroupInner parameters);

/**
* Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
Expand All @@ -84,14 +64,19 @@ Mono<ConsumerGroupInner> createOrUpdateAsync(
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param consumerGroupName The consumer group name.
* @param parameters Parameters supplied to create or update a consumer group resource.
* @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 Consumer group operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ConsumerGroupInner createOrUpdate(
String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName);
String resourceGroupName,
String namespaceName,
String eventHubName,
String consumerGroupName,
ConsumerGroupInner parameters);

/**
* Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
Expand All @@ -100,9 +85,7 @@ ConsumerGroupInner createOrUpdate(
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param consumerGroupName The consumer group name.
* @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024.
* e.g. it can be used to store descriptive data, such as list of teams and their contact information also
* user-defined configuration settings can be stored.
* @param parameters Parameters supplied to create or update a consumer group resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -115,7 +98,7 @@ Response<ConsumerGroupInner> createOrUpdateWithResponse(
String namespaceName,
String eventHubName,
String consumerGroupName,
String userMetadata,
ConsumerGroupInner parameters,
Context context);

/**
Expand Down Expand Up @@ -289,24 +272,14 @@ PagedFlux<ConsumerGroupInner> listByEventHubAsync(
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
* a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
* point to use for subsequent calls.
* @param top May be used to limit the number of results to the most recent N usageDetails.
* @param context The context to associate with this operation.
* @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 the consumer groups in a Namespace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ConsumerGroupInner> listByEventHub(
String resourceGroupName,
String namespaceName,
String eventHubName,
Integer skip,
Integer top,
Context context);
String resourceGroupName, String namespaceName, String eventHubName);

/**
* Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the
Expand All @@ -315,12 +288,22 @@ PagedIterable<ConsumerGroupInner> listByEventHub(
* @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name.
* @param eventHubName The Event Hub name.
* @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
* a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
* point to use for subsequent calls.
* @param top May be used to limit the number of results to the most recent N usageDetails.
* @param context The context to associate with this operation.
* @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 the consumer groups in a Namespace.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ConsumerGroupInner> listByEventHub(
String resourceGroupName, String namespaceName, String eventHubName);
String resourceGroupName,
String namespaceName,
String eventHubName,
Integer skip,
Integer top,
Context context);
}
Loading

0 comments on commit ac0a1ad

Please sign in to comment.