Skip to content
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

[AutoPR azure-resourcemanager-kubernetesconfiguration] Dev kubernetesconfiguration microsoft.kubernetes configuration 2021 05 01 preview #8501

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,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-05-19)

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

## 1.0.0-beta.1 (2021-04-12)

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

Azure Resource Manager SourceControlConfiguration client library for Java.

This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2021-03. 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 SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-preview-2021-05. 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-kubernetesconfiguration</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for SourceControlConfiguration Management</name>
<description>This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2021-03.</description>
<description>This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-preview-2021-05.</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 @@ -21,9 +21,21 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.SourceControlConfigurationClient;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.ClusterExtensionTypesImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.ClusterExtensionTypesOperationsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.ExtensionTypeVersionsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.ExtensionsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.LocationExtensionTypesImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.OperationStatusImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.OperationsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.SourceControlConfigurationClientBuilder;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.SourceControlConfigurationsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.models.ClusterExtensionTypes;
import com.azure.resourcemanager.kubernetesconfiguration.models.ClusterExtensionTypesOperations;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionTypeVersions;
import com.azure.resourcemanager.kubernetesconfiguration.models.Extensions;
import com.azure.resourcemanager.kubernetesconfiguration.models.LocationExtensionTypes;
import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatus;
import com.azure.resourcemanager.kubernetesconfiguration.models.Operations;
import com.azure.resourcemanager.kubernetesconfiguration.models.SourceControlConfigurations;
import java.time.Duration;
Expand All @@ -34,6 +46,18 @@

/** Entry point to SourceControlConfigurationManager. KubernetesConfiguration Client. */
public final class SourceControlConfigurationManager {
private Extensions extensions;

private OperationStatus operationStatus;

private ClusterExtensionTypes clusterExtensionTypes;

private ClusterExtensionTypesOperations clusterExtensionTypesOperations;

private ExtensionTypeVersions extensionTypeVersions;

private LocationExtensionTypes locationExtensionTypes;

private SourceControlConfigurations sourceControlConfigurations;

private Operations operations;
Expand Down Expand Up @@ -203,6 +227,56 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential
}
}

/** @return Resource collection API of Extensions. */
public Extensions extensions() {
if (this.extensions == null) {
this.extensions = new ExtensionsImpl(clientObject.getExtensions(), this);
}
return extensions;
}

/** @return Resource collection API of OperationStatus. */
public OperationStatus operationStatus() {
if (this.operationStatus == null) {
this.operationStatus = new OperationStatusImpl(clientObject.getOperationStatus(), this);
}
return operationStatus;
}

/** @return Resource collection API of ClusterExtensionTypes. */
public ClusterExtensionTypes clusterExtensionTypes() {
if (this.clusterExtensionTypes == null) {
this.clusterExtensionTypes = new ClusterExtensionTypesImpl(clientObject.getClusterExtensionTypes(), this);
}
return clusterExtensionTypes;
}

/** @return Resource collection API of ClusterExtensionTypesOperations. */
public ClusterExtensionTypesOperations clusterExtensionTypesOperations() {
if (this.clusterExtensionTypesOperations == null) {
this.clusterExtensionTypesOperations =
new ClusterExtensionTypesOperationsImpl(clientObject.getClusterExtensionTypesOperations(), this);
}
return clusterExtensionTypesOperations;
}

/** @return Resource collection API of ExtensionTypeVersions. */
public ExtensionTypeVersions extensionTypeVersions() {
if (this.extensionTypeVersions == null) {
this.extensionTypeVersions = new ExtensionTypeVersionsImpl(clientObject.getExtensionTypeVersions(), this);
}
return extensionTypeVersions;
}

/** @return Resource collection API of LocationExtensionTypes. */
public LocationExtensionTypes locationExtensionTypes() {
if (this.locationExtensionTypes == null) {
this.locationExtensionTypes =
new LocationExtensionTypesImpl(clientObject.getLocationExtensionTypes(), this);
}
return locationExtensionTypes;
}

/** @return Resource collection API of SourceControlConfigurations. */
public SourceControlConfigurations sourceControlConfigurations() {
if (this.sourceControlConfigurations == null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.kubernetesconfiguration.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.kubernetesconfiguration.fluent.models.ExtensionTypeInner;
import com.azure.resourcemanager.kubernetesconfiguration.models.ClusterExtensionTypeClusterType;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;

/** An instance of this class provides access to all the operations defined in ClusterExtensionTypesClient. */
public interface ClusterExtensionTypesClient {
/**
* Get Extension Type details.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
* Microsoft.Kubernetes (for OnPrem K8S clusters).
* @param clusterType The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
* connectedClusters (for OnPrem K8S clusters).
* @param clusterName The name of the kubernetes cluster.
* @param extensionTypeName Extension type 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 extension Type details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionTypeInner get(
String resourceGroupName,
ExtensionsClusterRp clusterRp,
ClusterExtensionTypeClusterType clusterType,
String clusterName,
String extensionTypeName);

/**
* Get Extension Type details.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
* Microsoft.Kubernetes (for OnPrem K8S clusters).
* @param clusterType The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
* connectedClusters (for OnPrem K8S clusters).
* @param clusterName The name of the kubernetes cluster.
* @param extensionTypeName Extension type name.
* @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 extension Type details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ExtensionTypeInner> getWithResponse(
String resourceGroupName,
ExtensionsClusterRp clusterRp,
ClusterExtensionTypeClusterType clusterType,
String clusterName,
String extensionTypeName,
Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.kubernetesconfiguration.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ExtensionTypeInner;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;

/** An instance of this class provides access to all the operations defined in ClusterExtensionTypesOperationsClient. */
public interface ClusterExtensionTypesOperationsClient {
/**
* Get Extension Types.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
* Microsoft.Kubernetes (for OnPrem K8S clusters).
* @param clusterName The name of the kubernetes 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 extension Types.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtensionTypeInner> list(String resourceGroupName, ExtensionsClusterRp clusterRp, String clusterName);

/**
* Get Extension Types.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
* Microsoft.Kubernetes (for OnPrem K8S clusters).
* @param clusterName The name of the kubernetes 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 extension Types.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtensionTypeInner> list(
String resourceGroupName, ExtensionsClusterRp clusterRp, String clusterName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.kubernetesconfiguration.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionVersionListVersionsItem;

/** An instance of this class provides access to all the operations defined in ExtensionTypeVersionsClient. */
public interface ExtensionTypeVersionsClient {
/**
* List available versions for an Extension Type.
*
* @param location extension location.
* @param extensionTypeName Extension type 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 list versions for an Extension.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtensionVersionListVersionsItem> list(String location, String extensionTypeName);

/**
* List available versions for an Extension Type.
*
* @param location extension location.
* @param extensionTypeName Extension type name.
* @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 list versions for an Extension.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtensionVersionListVersionsItem> list(String location, String extensionTypeName, Context context);
}
Loading