Skip to content

[AutoPR azure-resourcemanager-containerservicefleet] AKS Fleet 2023 10 15 #6915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2023-10-19)

- Azure Resource Manager ContainerServiceFleet client library for Java. This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager ContainerServiceFleet client library for Java.

This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2023-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-containerservicefleet</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down Expand Up @@ -94,7 +94,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ContainerServiceFleet Management</name>
<description>This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager Client. Package tag package-2023-06-preview.</description>
<description>This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager Client. Package tag package-2023-10.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
import com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient;
import com.azure.resourcemanager.containerservicefleet.implementation.ContainerServiceFleetManagementClientBuilder;
import com.azure.resourcemanager.containerservicefleet.implementation.FleetMembersImpl;
import com.azure.resourcemanager.containerservicefleet.implementation.FleetUpdateStrategiesImpl;
import com.azure.resourcemanager.containerservicefleet.implementation.FleetsImpl;
import com.azure.resourcemanager.containerservicefleet.implementation.OperationsImpl;
import com.azure.resourcemanager.containerservicefleet.implementation.UpdateRunsImpl;
import com.azure.resourcemanager.containerservicefleet.models.FleetMembers;
import com.azure.resourcemanager.containerservicefleet.models.FleetUpdateStrategies;
import com.azure.resourcemanager.containerservicefleet.models.Fleets;
import com.azure.resourcemanager.containerservicefleet.models.Operations;
import com.azure.resourcemanager.containerservicefleet.models.UpdateRuns;
Expand All @@ -50,6 +52,8 @@ public final class ContainerServiceFleetManager {

private UpdateRuns updateRuns;

private FleetUpdateStrategies fleetUpdateStrategies;

private final ContainerServiceFleetManagementClient clientObject;

private ContainerServiceFleetManager(
Expand Down Expand Up @@ -216,7 +220,7 @@ public ContainerServiceFleetManager authenticate(TokenCredential credential, Azu
.append("-")
.append("com.azure.resourcemanager.containerservicefleet")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -321,6 +325,18 @@ public UpdateRuns updateRuns() {
return updateRuns;
}

/**
* Gets the resource collection API of FleetUpdateStrategies. It manages FleetUpdateStrategy.
*
* @return Resource collection API of FleetUpdateStrategies.
*/
public FleetUpdateStrategies fleetUpdateStrategies() {
if (this.fleetUpdateStrategies == null) {
this.fleetUpdateStrategies = new FleetUpdateStrategiesImpl(clientObject.getFleetUpdateStrategies(), this);
}
return fleetUpdateStrategies;
}

/**
* Gets wrapped service client ContainerServiceFleetManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ public interface ContainerServiceFleetManagementClient {
* @return the UpdateRunsClient object.
*/
UpdateRunsClient getUpdateRuns();

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

package com.azure.resourcemanager.containerservicefleet.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyInner;

/** An instance of this class provides access to all the operations defined in FleetUpdateStrategiesClient. */
public interface FleetUpdateStrategiesClient {
/**
* List FleetUpdateStrategy resources by Fleet.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet 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 the response of a FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<FleetUpdateStrategyInner> listByFleet(String resourceGroupName, String fleetName);

/**
* List FleetUpdateStrategy resources by Fleet.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet 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 the response of a FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<FleetUpdateStrategyInner> listByFleet(String resourceGroupName, String fleetName, Context context);

/**
* Get a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy 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 FleetUpdateStrategy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<FleetUpdateStrategyInner> getWithResponse(
String resourceGroupName, String fleetName, String updateStrategyName, Context context);

/**
* Get a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy 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 FleetUpdateStrategy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FleetUpdateStrategyInner get(String resourceGroupName, String fleetName, String updateStrategyName);

/**
* Create a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy resource.
* @param resource Resource create parameters.
* @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 SyncPoller} for polling of defines a multi-stage process to perform update operations across
* members of a Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<FleetUpdateStrategyInner>, FleetUpdateStrategyInner> beginCreateOrUpdate(
String resourceGroupName, String fleetName, String updateStrategyName, FleetUpdateStrategyInner resource);

/**
* Create a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy resource.
* @param resource Resource create parameters.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of defines a multi-stage process to perform update operations across
* members of a Fleet.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<FleetUpdateStrategyInner>, FleetUpdateStrategyInner> beginCreateOrUpdate(
String resourceGroupName,
String fleetName,
String updateStrategyName,
FleetUpdateStrategyInner resource,
String ifMatch,
String ifNoneMatch,
Context context);

/**
* Create a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy resource.
* @param resource Resource create parameters.
* @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 defines a multi-stage process to perform update operations across members of a Fleet.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FleetUpdateStrategyInner createOrUpdate(
String resourceGroupName, String fleetName, String updateStrategyName, FleetUpdateStrategyInner resource);

/**
* Create a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy resource.
* @param resource Resource create parameters.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return defines a multi-stage process to perform update operations across members of a Fleet.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FleetUpdateStrategyInner createOrUpdate(
String resourceGroupName,
String fleetName,
String updateStrategyName,
FleetUpdateStrategyInner resource,
String ifMatch,
String ifNoneMatch,
Context context);

/**
* Delete a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy 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 the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String fleetName, String updateStrategyName);

/**
* Delete a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy resource.
* @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.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String fleetName, String updateStrategyName, String ifMatch, Context context);

/**
* Delete a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String fleetName, String updateStrategyName);

/**
* Delete a FleetUpdateStrategy.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Fleet resource.
* @param updateStrategyName The name of the UpdateStrategy resource.
* @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 fleetName, String updateStrategyName, String ifMatch, Context context);
}
Loading