Skip to content

Commit

Permalink
CodeGen from PR 14302 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev kubernetesconfiguration microsoft.kubernetes configuration 2021 05 01 preview (Azure#14302)

* Adds base for updating Microsoft.KubernetesConfiguration from version preview/2020-07-01-preview to version 2021-05-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add Extensions Async API and other fixes (#13709)

* Add Extensions Async API and other fixes

* Re-add missed out changes

* Fix validation errors, remove UpdateExtension.json

* Update Readme.md

* Add back files removed accidentally

* Revert accidental changes & fix readme.md

* Remove SourceControlConfig from this api version

* Fix Readme.md error for go package

* Fix Go readme issues

* Fix Go readme issues - revert accidental change

* Fix Go readme issues

* Add kubernetesconfiguration GA version to this version Tag for SDK

* Fix Operations api descriptions

* Fix spelling mistakes

* Update ApiVersionParameter reference in kubernetesconfiguration

* Fix review suggestions

* Add SourceControlConfiguration resourceType to this api-version

* Updated readme files for the added SourceControlConfiguration resource type

* Fix readme files to revert to previous + additions for new api-version

* Consolidated common definitions to avoid duplication errors

* Rename definitions folder - fix Avocado error

* Consolidated common definitions reference

* Fix definitions.json

* Fix go readme

* Revert "Add Extensions Async API and other fixes (#13709)" (Azure#13972)

This reverts commit b78af6ebfe1391f2c73bc39da3c20c159806b1a0.

* Dev kubernetesconfiguration microsoft.kubernetes configuration 2021 05 01 preview (Azure#13992)

* Add Extensions Async API and other fixes

* Re-add missed out changes

* Fix validation errors, remove UpdateExtension.json

* Update Readme.md

* Add back files removed accidentally

* Revert accidental changes & fix readme.md

* Remove SourceControlConfig from this api version

* Fix Readme.md error for go package

* Fix Go readme issues

* Fix Go readme issues - revert accidental change

* Fix Go readme issues

* Add kubernetesconfiguration GA version to this version Tag for SDK

* Fix Operations api descriptions

* Fix spelling mistakes

* Update ApiVersionParameter reference in kubernetesconfiguration

* Fix review suggestions

* Add SourceControlConfiguration resourceType to this api-version

* Updated readme files for the added SourceControlConfiguration resource type

* Fix readme files to revert to previous + additions for new api-version

* Consolidated common definitions to avoid duplication errors

* Rename definitions folder - fix Avocado error

* Consolidated common definitions reference

* Fix definitions.json

* Fix go readme

* Remove extensions resource in the route of ListAsyncOperations at Cluster scope

* Remove extension parameter in the spec

* Remove extension parameter from route of ListAsycOperations

* Add Origin property to Available Operations response body

* Make Identity property nullable

* Add Get, List Extension Types (#13562)

* Add Get, List Extension Types

* style check fixes

* - update spec
- rename and update example files
- fix validation errors

* fix examples

* - update readme.md
- generate example files with oav
- try to fix some new validation errors

* more validation fixes

* add ExtensionTypeVersion_List

* - update readme for SDKs
- update examples

* fix typo and linting

* rename ExtensionTypeVersions_List

* - address comments
- update list extension versions based on location

* fix list versions route

* fix tag and unused parameters in spec file

* fix autorest validatoin errors

* udpate readme

* update readme

* try to fix sdk validation warnings

* - prettier fix
- revert changes to types.json

* fix pageable missing itemName

Co-authored-by: Carlo Cardella <carloc@microsoft.com>
Co-authored-by: chunyu3 <chunyu@microsoft.com>
  • Loading branch information
3 people committed May 19, 2021
1 parent 5694acb commit 5a8b0d5
Show file tree
Hide file tree
Showing 68 changed files with 7,932 additions and 247 deletions.
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

0 comments on commit 5a8b0d5

Please sign in to comment.