forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 14302 in Azure/azure-rest-api-specs
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
1 parent
5694acb
commit 5a8b0d5
Showing
68 changed files
with
7,932 additions
and
247 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...ernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...com/azure/resourcemanager/kubernetesconfiguration/fluent/ClusterExtensionTypesClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
47 changes: 47 additions & 0 deletions
47
...resourcemanager/kubernetesconfiguration/fluent/ClusterExtensionTypesOperationsClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
41 changes: 41 additions & 0 deletions
41
...com/azure/resourcemanager/kubernetesconfiguration/fluent/ExtensionTypeVersionsClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.