Skip to content

Commit

Permalink
mgmt, local generation for Container Service - 2024-09-01 (#42915)
Browse files Browse the repository at this point in the history
* mgmt, local generation for containerservice
  • Loading branch information
v-hongli1 authored Nov 20, 2024
1 parent f5abb4c commit a2c2408
Show file tree
Hide file tree
Showing 87 changed files with 1,521 additions and 409 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"dir": "azure-resourcemanager-containerservice",
"source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
"package": "com.azure.resourcemanager.containerservice",
"args": "--tag=package-2024-08 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
"args": "--tag=package-2024-09 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
},
"containerservice-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## 2.45.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes
### Other Changes

### Bugs Fixed
#### Dependency Updates

### Other Changes
- Updated `api-version` to `2024-09-01`.

## 2.44.0 (2024-10-25)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/resourcemanager/azure-resourcemanager-containerservice",
"Tag": "java/resourcemanager/azure-resourcemanager-containerservice_11db77097a"
"Tag": "java/resourcemanager/azure-resourcemanager-containerservice_ac00fa0812"
}
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,34 @@ Response<AgentPoolInner> getWithResponse(String resourceGroupName, String resour
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param parameters The agent pool to create or update.
* @param ifMatch The request should only proceed if an entity matches this string.
* @param ifNoneMatch The request should only proceed if no entity matches this string.
* @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 agent Pool along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName,
String agentPoolName, AgentPoolInner parameters);
String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch);

/**
* Creates or updates an agent pool in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param parameters The agent pool to create or update.
* @param ifMatch The request should only proceed if an entity matches this string.
* @param ifNoneMatch The request should only proceed if no entity matches this string.
* @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 {@link PollerFlux} for polling of agent Pool.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<AgentPoolInner>, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName,
String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch);

/**
* Creates or updates an agent pool in the specified managed cluster.
Expand Down Expand Up @@ -310,6 +330,8 @@ SyncPoller<PollResult<AgentPoolInner>, AgentPoolInner> beginCreateOrUpdate(Strin
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param parameters The agent pool to create or update.
* @param ifMatch The request should only proceed if an entity matches this string.
* @param ifNoneMatch The request should only proceed if no entity matches this string.
* @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 @@ -318,7 +340,26 @@ SyncPoller<PollResult<AgentPoolInner>, AgentPoolInner> beginCreateOrUpdate(Strin
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AgentPoolInner>, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName,
String resourceName, String agentPoolName, AgentPoolInner parameters, Context context);
String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch,
Context context);

/**
* Creates or updates an agent pool in the specified managed cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param parameters The agent pool to create or update.
* @param ifMatch The request should only proceed if an entity matches this string.
* @param ifNoneMatch The request should only proceed if no entity matches this string.
* @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 agent Pool on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<AgentPoolInner> createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName,
AgentPoolInner parameters, String ifMatch, String ifNoneMatch);

/**
* Creates or updates an agent pool in the specified managed cluster.
Expand Down Expand Up @@ -359,6 +400,8 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param parameters The agent pool to create or update.
* @param ifMatch The request should only proceed if an entity matches this string.
* @param ifNoneMatch The request should only proceed if no entity matches this string.
* @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 @@ -367,7 +410,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName,
AgentPoolInner parameters, Context context);
AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context);

/**
* Deletes an agent pool in the specified managed cluster.
Expand All @@ -377,14 +420,15 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str
* @param agentPoolName The name of the agent pool.
* @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without
* considering Pod Disruption Budget.
* @param ifMatch The request should only proceed if an entity matches this string.
* @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 {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String resourceName,
String agentPoolName, Boolean ignorePodDisruptionBudget);
String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch);

/**
* Deletes an agent pool in the specified managed cluster.
Expand All @@ -394,14 +438,15 @@ Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupNam
* @param agentPoolName The name of the agent pool.
* @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without
* considering Pod Disruption Budget.
* @param ifMatch The request should only proceed if an entity matches this string.
* @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 {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String resourceName,
String agentPoolName, Boolean ignorePodDisruptionBudget);
String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch);

/**
* Deletes an agent pool in the specified managed cluster.
Expand Down Expand Up @@ -440,6 +485,7 @@ PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, St
* @param agentPoolName The name of the agent pool.
* @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without
* considering Pod Disruption Budget.
* @param ifMatch The request should only proceed if an entity matches this string.
* @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 @@ -448,7 +494,7 @@ PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, St
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String resourceName, String agentPoolName,
Boolean ignorePodDisruptionBudget, Context context);
Boolean ignorePodDisruptionBudget, String ifMatch, Context context);

/**
* Deletes an agent pool in the specified managed cluster.
Expand All @@ -458,14 +504,15 @@ SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String
* @param agentPoolName The name of the agent pool.
* @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without
* considering Pod Disruption Budget.
* @param ifMatch The request should only proceed if an entity matches this string.
* @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 {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> deleteAsync(String resourceGroupName, String resourceName, String agentPoolName,
Boolean ignorePodDisruptionBudget);
Boolean ignorePodDisruptionBudget, String ifMatch);

/**
* Deletes an agent pool in the specified managed cluster.
Expand Down Expand Up @@ -502,14 +549,15 @@ Mono<Void> deleteAsync(String resourceGroupName, String resourceName, String age
* @param agentPoolName The name of the agent pool.
* @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without
* considering Pod Disruption Budget.
* @param ifMatch The request should only proceed if an entity matches this string.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String resourceName, String agentPoolName, Boolean ignorePodDisruptionBudget,
Context context);
String ifMatch, Context context);

/**
* Gets the upgrade profile for an agent pool.
Expand Down
Loading

0 comments on commit a2c2408

Please sign in to comment.