Skip to content

Commit

Permalink
mgmt, update AKS to 2021-03 (#20493)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored and benbp committed Apr 28, 2021
1 parent 5161687 commit 5b9ddd5
Show file tree
Hide file tree
Showing 48 changed files with 4,318 additions and 255 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"dir": "azure-resourcemanager-containerservice",
"source": "specification/containerservice/resource-manager/readme.md",
"package": "com.azure.resourcemanager.containerservice",
"args": "--payload-flattening-threshold=1 --tag=package-2020-11 --title=ContainerServiceManagementClient --description=\"Container Service Client\" --remove-model=BaseManagedCluster,ManagedClusterPropertiesIdentityProfile,ManagedClusterPropertiesIdentityProfileValue --rename-model=ManagedClusterIdentityUserAssignedIdentitiesValue:ManagedClusterIdentityUserAssignedIdentities"
"args": "--payload-flattening-threshold=1 --tag=package-2021-03 --title=ContainerServiceManagementClient --description=\"Container Service Client\" --remove-model=BaseManagedCluster --rename-model=ManagedClusterIdentityUserAssignedIdentitiesValue:ManagedClusterIdentityUserAssignedIdentities,ManagedClusterPropertiesIdentityProfile:ManagedClusterPropertiesIdentityProfileValue"
},
"cosmos": {
"dir": "azure-resourcemanager-cosmos",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 2.4.0-beta.1 (Unreleased)

- Updated `api-version` to `2021-03-01`

## 2.3.0 (2021-03-30)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@
<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
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@ public interface ContainerServiceManagementClient {
*/
Duration getDefaultPollInterval();

/**
* Gets the OpenShiftManagedClustersClient object to access its operations.
*
* @return the OpenShiftManagedClustersClient object.
*/
OpenShiftManagedClustersClient getOpenShiftManagedClusters();

/**
* Gets the ContainerServicesClient object to access its operations.
*
* @return the ContainerServicesClient object.
*/
ContainerServicesClient getContainerServices();

/**
* Gets the OperationsClient object to access its operations.
*
Expand All @@ -66,6 +52,13 @@ public interface ContainerServiceManagementClient {
*/
ManagedClustersClient getManagedClusters();

/**
* Gets the MaintenanceConfigurationsClient object to access its operations.
*
* @return the MaintenanceConfigurationsClient object.
*/
MaintenanceConfigurationsClient getMaintenanceConfigurations();

/**
* Gets the AgentPoolsClient object to access its operations.
*
Expand Down Expand Up @@ -93,4 +86,18 @@ public interface ContainerServiceManagementClient {
* @return the ResolvePrivateLinkServiceIdsClient object.
*/
ResolvePrivateLinkServiceIdsClient getResolvePrivateLinkServiceIds();

/**
* Gets the OpenShiftManagedClustersClient object to access its operations.
*
* @return the OpenShiftManagedClustersClient object.
*/
OpenShiftManagedClustersClient getOpenShiftManagedClusters();

/**
* Gets the ContainerServicesClient object to access its operations.
*
* @return the ContainerServicesClient object.
*/
ContainerServicesClient getContainerServices();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.containerservice.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationInner;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in MaintenanceConfigurationsClient. */
public interface MaintenanceConfigurationsClient {
/**
* Gets a list of maintenance configurations in the specified managed cluster. The operation returns properties of
* each maintenance configuration.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed 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 a list of maintenance configurations in the specified managed cluster.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<MaintenanceConfigurationInner> listByManagedClusterAsync(String resourceGroupName, String resourceName);

/**
* Gets a list of maintenance configurations in the specified managed cluster. The operation returns properties of
* each maintenance configuration.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed 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 a list of maintenance configurations in the specified managed cluster.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<MaintenanceConfigurationInner> listByManagedCluster(String resourceGroupName, String resourceName);

/**
* Gets a list of maintenance configurations in the specified managed cluster. The operation returns properties of
* each maintenance configuration.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed 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 a list of maintenance configurations in the specified managed cluster.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<MaintenanceConfigurationInner> listByManagedCluster(
String resourceGroupName, String resourceName, Context context);

/**
* Gets the details of maintenance configurations by managed cluster and resource group.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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 details of maintenance configurations by managed cluster and resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<MaintenanceConfigurationInner>> getWithResponseAsync(
String resourceGroupName, String resourceName, String configName);

/**
* Gets the details of maintenance configurations by managed cluster and resource group.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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 details of maintenance configurations by managed cluster and resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<MaintenanceConfigurationInner> getAsync(String resourceGroupName, String resourceName, String configName);

/**
* Gets the details of maintenance configurations by managed cluster and resource group.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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 details of maintenance configurations by managed cluster and resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MaintenanceConfigurationInner get(String resourceGroupName, String resourceName, String configName);

/**
* Gets the details of maintenance configurations by managed cluster and resource group.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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 the details of maintenance configurations by managed cluster and resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MaintenanceConfigurationInner> getWithResponse(
String resourceGroupName, String resourceName, String configName, Context context);

/**
* Creates or updates a maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @param parameters Parameters supplied to the Create or Update a default maintenance configuration.
* @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 maintenance configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<MaintenanceConfigurationInner>> createOrUpdateWithResponseAsync(
String resourceGroupName, String resourceName, String configName, MaintenanceConfigurationInner parameters);

/**
* Creates or updates a maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @param parameters Parameters supplied to the Create or Update a default maintenance configuration.
* @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 maintenance configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<MaintenanceConfigurationInner> createOrUpdateAsync(
String resourceGroupName, String resourceName, String configName, MaintenanceConfigurationInner parameters);

/**
* Creates or updates a maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @param parameters Parameters supplied to the Create or Update a default maintenance configuration.
* @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 maintenance configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MaintenanceConfigurationInner createOrUpdate(
String resourceGroupName, String resourceName, String configName, MaintenanceConfigurationInner parameters);

/**
* Creates or updates a maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @param parameters Parameters supplied to the Create or Update a default maintenance configuration.
* @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 maintenance configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MaintenanceConfigurationInner> createOrUpdateWithResponse(
String resourceGroupName,
String resourceName,
String configName,
MaintenanceConfigurationInner parameters,
Context context);

/**
* Deletes the maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String configName);

/**
* Deletes the maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> deleteAsync(String resourceGroupName, String resourceName, String configName);

/**
* Deletes the maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String resourceName, String configName);

/**
* Deletes the maintenance configuration in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param configName The name of the maintenance configuration.
* @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 the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String resourceName, String configName, Context context);
}
Loading

0 comments on commit 5b9ddd5

Please sign in to comment.