From 893882e2cae52f3d4210798e752608471988ae9a Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 20 May 2022 19:17:52 +0800 Subject: [PATCH] mgmt, upgrade AKS to 2022-04-01 (#28985) --- sdk/resourcemanager/api-specs.json | 2 +- .../CHANGELOG.md | 2 +- .../fluent/models/AgentPoolInner.java | 38 +++- ...agedClusterAgentPoolProfileProperties.java | 67 ++++-- .../fluent/models/ManagedClusterInner.java | 62 +++++- .../models/ManagedClusterProperties.java | 87 ++++++-- .../implementation/AgentPoolsClientImpl.java | 55 ++--- .../ContainerServicesClientImpl.java | 18 +- .../MaintenanceConfigurationsClientImpl.java | 37 +--- .../ManagedClustersClientImpl.java | 190 +++++------------- .../OpenShiftManagedClustersClientImpl.java | 9 +- .../implementation/OperationsClientImpl.java | 4 +- .../PrivateEndpointConnectionsClientImpl.java | 44 +--- .../PrivateLinkResourcesClientImpl.java | 14 +- ...esolvePrivateLinkServiceIdsClientImpl.java | 13 +- .../implementation/SnapshotsClientImpl.java | 53 ++--- .../models/AgentPoolMode.java | 6 +- .../models/AgentPoolType.java | 6 +- .../containerservice/models/Code.java | 6 +- .../models/ConnectionStatus.java | 6 +- .../models/ContainerServiceVMSizeTypes.java | 6 +- .../containerservice/models/Expander.java | 6 +- .../models/ExtendedLocationTypes.java | 6 +- .../containerservice/models/Format.java | 6 +- .../models/GpuInstanceProfile.java | 6 +- .../containerservice/models/IpFamily.java | 6 +- .../models/KubeletDiskType.java | 6 +- .../containerservice/models/LicenseType.java | 6 +- .../models/LoadBalancerSku.java | 6 +- ...edClusterPodIdentityProvisioningState.java | 6 +- .../models/ManagedClusterSkuName.java | 6 +- .../models/ManagedClusterSkuTier.java | 6 +- .../models/ManagedClusterStorageProfile.java | 108 ++++++++++ ...gedClusterStorageProfileDiskCsiDriver.java | 46 +++++ ...gedClusterStorageProfileFileCsiDriver.java | 46 +++++ ...usterStorageProfileSnapshotController.java | 46 +++++ .../containerservice/models/NetworkMode.java | 6 +- .../models/NetworkPlugin.java | 6 +- .../models/NetworkPolicy.java | 6 +- .../containerservice/models/OSDiskType.java | 6 +- .../containerservice/models/OSSku.java | 6 +- .../containerservice/models/OSType.java | 6 +- .../models/OpenShiftAgentPoolProfileRole.java | 6 +- .../OpenShiftContainerServiceVMSize.java | 6 +- .../containerservice/models/OutboundType.java | 6 +- ...teEndpointConnectionProvisioningState.java | 6 +- .../models/PublicNetworkAccess.java | 6 +- .../models/ScaleDownMode.java | 6 +- .../models/ScaleSetEvictionPolicy.java | 6 +- .../models/ScaleSetPriority.java | 6 +- .../containerservice/models/SnapshotType.java | 6 +- .../models/UpgradeChannel.java | 6 +- .../containerservice/models/WeekDay.java | 6 +- .../models/WorkloadRuntime.java | 6 +- ...dateTests.testKubernetesClusterUpdate.json | 14 +- ...rsTests.canAutoScaleKubernetesCluster.json | 18 +- ...lustersTests.canCRUDKubernetesCluster.json | 20 +- ...stersTests.canCreateClusterWithSpotVM.json | 10 +- ...tersTests.canListKubeConfigWithFormat.json | 10 +- ...sTests.testKubernetesClusterAzureRbac.json | 4 +- .../azure-resourcemanager-redis/pom.xml | 3 - .../azure-resourcemanager-samples/pom.xml | 52 ++--- .../resourcemanager/samples/DockerUtils.java | 3 +- .../resourcemanager/samples/SSHShell.java | 3 +- .../azure/resourcemanager/samples/Utils.java | 7 +- ...sterTests.testManageKubernetesCluster.json | 8 +- ...bernetesClusterWithAdvancedNetworking.json | 8 +- .../AgentPoolsCreateOrUpdateSamples.java | 30 +-- .../generated/AgentPoolsDeleteSamples.java | 2 +- ...sGetAvailableAgentPoolVersionsSamples.java | 2 +- .../generated/AgentPoolsGetSamples.java | 2 +- .../AgentPoolsGetUpgradeProfileSamples.java | 2 +- .../generated/AgentPoolsListSamples.java | 2 +- ...ntPoolsUpgradeNodeImageVersionSamples.java | 2 +- ...ceConfigurationsCreateOrUpdateSamples.java | 2 +- ...aintenanceConfigurationsDeleteSamples.java | 2 +- .../MaintenanceConfigurationsGetSamples.java | 2 +- ...igurationsListByManagedClusterSamples.java | 2 +- .../ManagedClustersCreateOrUpdateSamples.java | 42 ++-- .../ManagedClustersDeleteSamples.java | 2 +- ...anagedClustersGetAccessProfileSamples.java | 2 +- ...agedClustersGetByResourceGroupSamples.java | 2 +- ...anagedClustersGetCommandResultSamples.java | 4 +- .../ManagedClustersGetOSOptionsSamples.java | 2 +- ...nagedClustersGetUpgradeProfileSamples.java | 2 +- ...gedClustersListByResourceGroupSamples.java | 2 +- ...ersListClusterAdminCredentialsSamples.java | 2 +- ...usterMonitoringUserCredentialsSamples.java | 2 +- ...tersListClusterUserCredentialsSamples.java | 2 +- ...ndNetworkDependenciesEndpointsSamples.java | 2 +- .../generated/ManagedClustersListSamples.java | 2 +- ...ManagedClustersResetAadProfileSamples.java | 2 +- ...rsResetServicePrincipalProfileSamples.java | 2 +- ...stersRotateClusterCertificatesSamples.java | 2 +- .../ManagedClustersRunCommandSamples.java | 2 +- .../ManagedClustersStartSamples.java | 2 +- .../generated/ManagedClustersStopSamples.java | 2 +- .../ManagedClustersUpdateTagsSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- ...ivateEndpointConnectionsUpdateSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- ...esolvePrivateLinkServiceIdPostSamples.java | 2 +- .../SnapshotsCreateOrUpdateSamples.java | 2 +- .../generated/SnapshotsDeleteSamples.java | 2 +- .../SnapshotsGetByResourceGroupSamples.java | 2 +- .../SnapshotsListByResourceGroupSamples.java | 2 +- .../generated/SnapshotsListSamples.java | 2 +- .../generated/SnapshotsUpdateTagsSamples.java | 2 +- ...rceManagerTests.testKubernetesCluster.json | 36 ++-- ...s.testKubernetesClusterAadIntegration.json | 28 +-- ...etesCniTests.testKubernetesClusterCni.json | 8 +- ...ts.canCreateClusterWithDiskEncryption.json | 4 +- ...ivateLinkTests.testPrivateEndpointAKS.json | 12 +- 116 files changed, 932 insertions(+), 619 deletions(-) create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfile.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileFileCsiDriver.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileSnapshotController.java diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 4e93eb2414c78..342d8043248c6 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -71,7 +71,7 @@ "dir": "azure-resourcemanager-containerservice", "source": "specification/containerservice/resource-manager/readme.md", "package": "com.azure.resourcemanager.containerservice", - "args": "--tag=package-2022-03 --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" + "args": "--tag=package-2022-04 --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" }, "containerservice-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice", diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md index ad541874b1c09..1e428730963b1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md @@ -10,7 +10,7 @@ #### Dependency Updates -- Updated `api-version` to `2022-03-01`. +- Updated `api-version` to `2022-04-01`. ## 2.14.0 (2022-04-11) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java index bd17baafa9c78..5befc914dad6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java @@ -509,11 +509,14 @@ public AgentPoolInner withMode(AgentPoolMode mode) { } /** - * Get the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice, - * you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must - * have the same major version as the control plane. The node pool minor version must be within two minor versions - * of the control plane version. The node pool version cannot be greater than the control plane version. For more - * information see [upgrading a node + * Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @return the orchestratorVersion value. @@ -523,11 +526,14 @@ public String orchestratorVersion() { } /** - * Set the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice, - * you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must - * have the same major version as the control plane. The node pool minor version must be within two minor versions - * of the control plane version. The node pool version cannot be greater than the control plane version. For more - * information see [upgrading a node + * Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @param orchestratorVersion the orchestratorVersion value to set. @@ -541,6 +547,18 @@ public AgentPoolInner withOrchestratorVersion(String orchestratorVersion) { return this; } + /** + * Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> + * version being used. + * + * @return the currentOrchestratorVersion value. + */ + public String currentOrchestratorVersion() { + return this.innerProperties() == null ? null : this.innerProperties().currentOrchestratorVersion(); + } + /** * Get the nodeImageVersion property: The version of node image. * diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java index acd4fd6c0feff..3fc34061fbb07 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java @@ -157,18 +157,33 @@ public class ManagedClusterAgentPoolProfileProperties { private AgentPoolMode mode; /* - * The version of Kubernetes running on the Agent Pool. As a best practice, - * you should upgrade all node pools in an AKS cluster to the same - * Kubernetes version. The node pool version must have the same major - * version as the control plane. The node pool minor version must be within - * two minor versions of the control plane version. The node pool version - * cannot be greater than the control plane version. For more information - * see [upgrading a node + * The version of Kubernetes specified by the user. Both patch version + * (e.g. 1.20.13) and (e.g. 1.20) are + * supported. When is specified, the latest supported GA + * patch version is chosen automatically. Updating the cluster with the + * same once it has been created (e.g. 1.14.x -> 1.14) will + * not trigger an upgrade, even if a newer patch version is available. As a + * best practice, you should upgrade all node pools in an AKS cluster to + * the same Kubernetes version. The node pool version must have the same + * major version as the control plane. The node pool minor version must be + * within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more + * information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). */ @JsonProperty(value = "orchestratorVersion") private String orchestratorVersion; + /* + * The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version , + * this field will be exactly equal to it. If orchestratorVersion is + * , this field will contain the full + * version being used. + */ + @JsonProperty(value = "currentOrchestratorVersion", access = JsonProperty.Access.WRITE_ONLY) + private String currentOrchestratorVersion; + /* * The version of node image */ @@ -703,11 +718,14 @@ public ManagedClusterAgentPoolProfileProperties withMode(AgentPoolMode mode) { } /** - * Get the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice, - * you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must - * have the same major version as the control plane. The node pool minor version must be within two minor versions - * of the control plane version. The node pool version cannot be greater than the control plane version. For more - * information see [upgrading a node + * Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @return the orchestratorVersion value. @@ -717,11 +735,14 @@ public String orchestratorVersion() { } /** - * Set the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice, - * you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must - * have the same major version as the control plane. The node pool minor version must be within two minor versions - * of the control plane version. The node pool version cannot be greater than the control plane version. For more - * information see [upgrading a node + * Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an + * AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control + * plane. The node pool minor version must be within two minor versions of the control plane version. The node pool + * version cannot be greater than the control plane version. For more information see [upgrading a node * pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). * * @param orchestratorVersion the orchestratorVersion value to set. @@ -732,6 +753,18 @@ public ManagedClusterAgentPoolProfileProperties withOrchestratorVersion(String o return this; } + /** + * Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If + * orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> + * version being used. + * + * @return the currentOrchestratorVersion value. + */ + public String currentOrchestratorVersion() { + return this.currentOrchestratorVersion; + } + /** * Get the nodeImageVersion property: The version of node image. * diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java index 8917b7b60e679..4c86327cff8ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java @@ -21,6 +21,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSku; +import com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile; import com.azure.resourcemanager.containerservice.models.PowerState; import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess; @@ -167,11 +168,14 @@ public Integer maxAgentPools() { } /** - * Get the kubernetesVersion property: The version of Kubernetes the Managed Cluster is running. When you upgrade a - * supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially - * by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, - * however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * Get the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor + * versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, + * upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not + * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. * * @return the kubernetesVersion value. */ @@ -180,11 +184,14 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The version of Kubernetes the Managed Cluster is running. When you upgrade a - * supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially - * by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, - * however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * Set the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor + * versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, + * upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not + * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. * * @param kubernetesVersion the kubernetesVersion value to set. * @return the ManagedClusterInner object itself. @@ -197,6 +204,18 @@ public ManagedClusterInner withKubernetesVersion(String kubernetesVersion) { return this; } + /** + * Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running. If + * kubernetesVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If kubernetesVersion was <major.minor>, this field will contain the full <major.minor.patch> + * version being used. + * + * @return the currentKubernetesVersion value. + */ + public String currentKubernetesVersion() { + return this.innerProperties() == null ? null : this.innerProperties().currentKubernetesVersion(); + } + /** * Get the dnsPrefix property: The DNS prefix of the Managed Cluster. This cannot be updated once the Managed * Cluster has been created. @@ -758,6 +777,29 @@ public ManagedClusterInner withSecurityProfile(ManagedClusterSecurityProfile sec return this; } + /** + * Get the storageProfile property: Storage profile for the managed cluster. + * + * @return the storageProfile value. + */ + public ManagedClusterStorageProfile storageProfile() { + return this.innerProperties() == null ? null : this.innerProperties().storageProfile(); + } + + /** + * Set the storageProfile property: Storage profile for the managed cluster. + * + * @param storageProfile the storageProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withStorageProfile(ManagedClusterStorageProfile storageProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withStorageProfile(storageProfile); + return this; + } + /** * Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network * access for AKS. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java index 340c174f022f2..110803b790455 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java @@ -17,6 +17,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile; import com.azure.resourcemanager.containerservice.models.PowerState; import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess; @@ -48,8 +49,13 @@ public final class ManagedClusterProperties { private Integer maxAgentPools; /* - * The version of Kubernetes the Managed Cluster is running. When you - * upgrade a supported AKS cluster, Kubernetes minor versions cannot be + * The version of Kubernetes specified by the user. Both patch version + * (e.g. 1.20.13) and (e.g. 1.20) are + * supported. When is specified, the latest supported GA + * patch version is chosen automatically. Updating the cluster with the + * same once it has been created (e.g. 1.14.x -> 1.14) will + * not trigger an upgrade, even if a newer patch version is available. When + * you upgrade a supported AKS cluster, Kubernetes minor versions cannot be * skipped. All upgrades must be performed sequentially by major version * number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> * 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See @@ -60,6 +66,16 @@ public final class ManagedClusterProperties { @JsonProperty(value = "kubernetesVersion") private String kubernetesVersion; + /* + * The version of Kubernetes the Managed Cluster is running. If + * kubernetesVersion was a fully specified version , + * this field will be exactly equal to it. If kubernetesVersion was + * , this field will contain the full + * version being used. + */ + @JsonProperty(value = "currentKubernetesVersion", access = JsonProperty.Access.WRITE_ONLY) + private String currentKubernetesVersion; + /* * The DNS prefix of the Managed Cluster. This cannot be updated once the * Managed Cluster has been created. @@ -231,6 +247,12 @@ public final class ManagedClusterProperties { @JsonProperty(value = "securityProfile") private ManagedClusterSecurityProfile securityProfile; + /* + * Storage profile for the managed cluster. + */ + @JsonProperty(value = "storageProfile") + private ManagedClusterStorageProfile storageProfile; + /* * PublicNetworkAccess of the managedCluster Allow or deny public network * access for AKS @@ -266,11 +288,14 @@ public Integer maxAgentPools() { } /** - * Get the kubernetesVersion property: The version of Kubernetes the Managed Cluster is running. When you upgrade a - * supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially - * by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, - * however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * Get the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor + * versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, + * upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not + * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. * * @return the kubernetesVersion value. */ @@ -279,11 +304,14 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The version of Kubernetes the Managed Cluster is running. When you upgrade a - * supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially - * by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, - * however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * Set the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When + * <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the + * cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an + * upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor + * versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, + * upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not + * allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. * * @param kubernetesVersion the kubernetesVersion value to set. * @return the ManagedClusterProperties object itself. @@ -293,6 +321,18 @@ public ManagedClusterProperties withKubernetesVersion(String kubernetesVersion) return this; } + /** + * Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running. If + * kubernetesVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If kubernetesVersion was <major.minor>, this field will contain the full <major.minor.patch> + * version being used. + * + * @return the currentKubernetesVersion value. + */ + public String currentKubernetesVersion() { + return this.currentKubernetesVersion; + } + /** * Get the dnsPrefix property: The DNS prefix of the Managed Cluster. This cannot be updated once the Managed * Cluster has been created. @@ -789,6 +829,26 @@ public ManagedClusterProperties withSecurityProfile(ManagedClusterSecurityProfil return this; } + /** + * Get the storageProfile property: Storage profile for the managed cluster. + * + * @return the storageProfile value. + */ + public ManagedClusterStorageProfile storageProfile() { + return this.storageProfile; + } + + /** + * Set the storageProfile property: Storage profile for the managed cluster. + * + * @param storageProfile the storageProfile value to set. + * @return the ManagedClusterProperties object itself. + */ + public ManagedClusterProperties withStorageProfile(ManagedClusterStorageProfile storageProfile) { + this.storageProfile = storageProfile; + return this; + } + /** * Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network * access for AKS. @@ -879,5 +939,8 @@ public void validate() { if (securityProfile() != null) { securityProfile().validate(); } + if (storageProfile() != null) { + storageProfile().validate(); + } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java index 29c8b81f8397e..4750765c1d223 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java @@ -221,7 +221,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -281,7 +281,7 @@ private Mono> listSinglePageAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -406,7 +406,7 @@ public Mono> getWithResponseAsync( if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -462,7 +462,7 @@ private Mono> getWithResponseAsync( if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -491,14 +491,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono getAsync(String resourceGroupName, String resourceName, String agentPoolName) { return getWithResponseAsync(resourceGroupName, resourceName, agentPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -577,7 +570,7 @@ public Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -643,7 +636,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -879,7 +872,7 @@ public Mono>> deleteWithResponseAsync( if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -934,7 +927,7 @@ private Mono>> deleteWithResponseAsync( if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1134,7 +1127,7 @@ public Mono> getUpgradeProfileWithRespons if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1190,7 +1183,7 @@ private Mono> getUpgradeProfileWithRespon if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1220,14 +1213,7 @@ private Mono> getUpgradeProfileWithRespon public Mono getUpgradeProfileAsync( String resourceGroupName, String resourceName, String agentPoolName) { return getUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, agentPoolName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1299,7 +1285,7 @@ public Mono> getAvailableAgentPoolVers if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1351,7 +1337,7 @@ private Mono> getAvailableAgentPoolVer if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1380,14 +1366,7 @@ private Mono> getAvailableAgentPoolVer public Mono getAvailableAgentPoolVersionsAsync( String resourceGroupName, String resourceName) { return getAvailableAgentPoolVersionsWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1463,7 +1442,7 @@ public Mono>> upgradeNodeImageVersionWithResponseAsync if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1520,7 +1499,7 @@ private Mono>> upgradeNodeImageVersionWithResponseAsyn if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServicesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServicesClientImpl.java index 3c70e1e4f46d6..23135e58ef4f0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServicesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServicesClientImpl.java @@ -172,14 +172,7 @@ private Mono> listOrchestrat public Mono listOrchestratorsAsync( String location, String resourceType) { return listOrchestratorsWithResponseAsync(location, resourceType) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -196,14 +189,7 @@ public Mono listOrchestratorsAsync( public Mono listOrchestratorsAsync(String location) { final String resourceType = null; return listOrchestratorsWithResponseAsync(location, resourceType) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java index 91f74195244fc..ac7e3cf585130 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java @@ -169,7 +169,7 @@ private Mono> listByManagedClusterS if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -229,7 +229,7 @@ private Mono> listByManagedClusterS if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -363,7 +363,7 @@ public Mono> getWithResponseAsync( if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -419,7 +419,7 @@ private Mono> getWithResponseAsync( if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -449,14 +449,7 @@ private Mono> getWithResponseAsync( public Mono getAsync( String resourceGroupName, String resourceName, String configName) { return getWithResponseAsync(resourceGroupName, resourceName, configName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -536,7 +529,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -603,7 +596,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -636,14 +629,7 @@ private Mono> createOrUpdateWithResponse public Mono createOrUpdateAsync( String resourceGroupName, String resourceName, String configName, MaintenanceConfigurationInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, configName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -725,7 +711,7 @@ public Mono> deleteWithResponseAsync( if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -780,7 +766,7 @@ private Mono> deleteWithResponseAsync( if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -808,8 +794,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName, String configName) { - return deleteWithResponseAsync(resourceGroupName, resourceName, configName) - .flatMap((Response res) -> Mono.empty()); + return deleteWithResponseAsync(resourceGroupName, resourceName, configName).flatMap(ignored -> Mono.empty()); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java index 2d61a71a7eaf5..c5f309f37f48b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java @@ -450,7 +450,7 @@ public Mono> getOSOptionsWithResponseAsync(String if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -497,7 +497,7 @@ private Mono> getOSOptionsWithResponseAsync( if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -523,15 +523,7 @@ private Mono> getOSOptionsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getOSOptionsAsync(String location, String resourceType) { - return getOSOptionsWithResponseAsync(location, resourceType) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getOSOptionsWithResponseAsync(location, resourceType).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -546,15 +538,7 @@ public Mono getOSOptionsAsync(String location, String reso @ServiceMethod(returns = ReturnType.SINGLE) public Mono getOSOptionsAsync(String location) { final String resourceType = null; - return getOSOptionsWithResponseAsync(location, resourceType) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getOSOptionsWithResponseAsync(location, resourceType).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -611,7 +595,7 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -654,7 +638,7 @@ private Mono> listSinglePageAsync(Context con new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -753,7 +737,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -808,7 +792,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -925,7 +909,7 @@ public Mono> getUpgradeProfileWithRe if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -976,7 +960,7 @@ private Mono> getUpgradeProfileWithR if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1004,14 +988,7 @@ private Mono> getUpgradeProfileWithR public Mono getUpgradeProfileAsync( String resourceGroupName, String resourceName) { return getUpgradeProfileWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1086,7 +1063,7 @@ public Mono> getAccessProfileWithResp if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1145,7 +1122,7 @@ private Mono> getAccessProfileWithRes if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1179,14 +1156,7 @@ private Mono> getAccessProfileWithRes public Mono getAccessProfileAsync( String resourceGroupName, String resourceName, String roleName) { return getAccessProfileWithResponseAsync(resourceGroupName, resourceName, roleName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1265,7 +1235,7 @@ public Mono> listClusterAdminCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1317,7 +1287,7 @@ private Mono> listClusterAdminCredentialsWithRe if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1347,14 +1317,7 @@ private Mono> listClusterAdminCredentialsWithRe public Mono listClusterAdminCredentialsAsync( String resourceGroupName, String resourceName, String serverFqdn) { return listClusterAdminCredentialsWithResponseAsync(resourceGroupName, resourceName, serverFqdn) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1372,14 +1335,7 @@ public Mono listClusterAdminCredentialsAsync( String resourceGroupName, String resourceName) { final String serverFqdn = null; return listClusterAdminCredentialsWithResponseAsync(resourceGroupName, resourceName, serverFqdn) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1453,7 +1409,7 @@ public Mono> listClusterUserCredentialsWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1509,7 +1465,7 @@ private Mono> listClusterUserCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1543,14 +1499,7 @@ private Mono> listClusterUserCredentialsWithRes public Mono listClusterUserCredentialsAsync( String resourceGroupName, String resourceName, String serverFqdn, Format format) { return listClusterUserCredentialsWithResponseAsync(resourceGroupName, resourceName, serverFqdn, format) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1568,14 +1517,7 @@ public Mono listClusterUserCredentialsAsync(String resou final String serverFqdn = null; final Format format = null; return listClusterUserCredentialsWithResponseAsync(resourceGroupName, resourceName, serverFqdn, format) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1650,7 +1592,7 @@ public Mono> listClusterMonitoringUserCredentia if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1702,7 +1644,7 @@ private Mono> listClusterMonitoringUserCredenti if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1732,14 +1674,7 @@ private Mono> listClusterMonitoringUserCredenti public Mono listClusterMonitoringUserCredentialsAsync( String resourceGroupName, String resourceName, String serverFqdn) { return listClusterMonitoringUserCredentialsWithResponseAsync(resourceGroupName, resourceName, serverFqdn) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1757,14 +1692,7 @@ public Mono listClusterMonitoringUserCredentialsAsync( String resourceGroupName, String resourceName) { final String serverFqdn = null; return listClusterMonitoringUserCredentialsWithResponseAsync(resourceGroupName, resourceName, serverFqdn) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1835,7 +1763,7 @@ public Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1885,7 +1813,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1912,14 +1840,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1992,7 +1913,7 @@ public Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2049,7 +1970,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2261,7 +2182,7 @@ public Mono>> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2318,7 +2239,7 @@ private Mono>> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2522,7 +2443,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2572,7 +2493,7 @@ private Mono>> deleteWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2758,7 +2679,7 @@ public Mono>> resetServicePrincipalProfileWithResponse } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2818,7 +2739,7 @@ private Mono>> resetServicePrincipalProfileWithRespons } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -3036,7 +2957,7 @@ public Mono>> resetAadProfileWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -3093,7 +3014,7 @@ private Mono>> resetAadProfileWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -3292,7 +3213,7 @@ public Mono>> rotateClusterCertificatesWithResponseAsy if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -3343,7 +3264,7 @@ private Mono>> rotateClusterCertificatesWithResponseAs if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -3539,7 +3460,7 @@ public Mono>> stopWithResponseAsync(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -3592,7 +3513,7 @@ private Mono>> stopWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -3796,7 +3717,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -3847,7 +3768,7 @@ private Mono>> startWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4042,7 +3963,7 @@ public Mono>> runCommandWithResponseAsync( } else { requestPayload.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -4100,7 +4021,7 @@ private Mono>> runCommandWithResponseAsync( } else { requestPayload.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4319,7 +4240,7 @@ public Mono> getCommandResultWithResponseAsync( if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -4375,7 +4296,7 @@ private Mono> getCommandResultWithResponseAsync( if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4406,14 +4327,7 @@ private Mono> getCommandResultWithResponseAsync( public Mono getCommandResultAsync( String resourceGroupName, String resourceName, String commandId) { return getCommandResultWithResponseAsync(resourceGroupName, resourceName, commandId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -4484,7 +4398,7 @@ public Response getCommandResultWithResponse( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -4546,7 +4460,7 @@ public Response getCommandResultWithResponse( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java index 7d3a0c413321a..c119e0f4d9a2c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OpenShiftManagedClustersClientImpl.java @@ -617,14 +617,7 @@ private Mono> getByResourceGroupWithRespo @ServiceMethod(returns = ReturnType.SINGLE) public Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java index c611230477ffe..175873a975ddf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java @@ -81,7 +81,7 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) @@ -109,7 +109,7 @@ private Mono> listSinglePageAsync(Context con new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java index 5125055fafea5..b309983663a58 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java @@ -160,7 +160,7 @@ public Mono> listWithResponse if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -211,7 +211,7 @@ private Mono> listWithRespons if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -237,15 +237,7 @@ private Mono> listWithRespons */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync(String resourceGroupName, String resourceName) { - return listWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -319,7 +311,7 @@ public Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -377,7 +369,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -407,14 +399,7 @@ private Mono> getWithResponseAsync( public Mono getAsync( String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -500,7 +485,7 @@ public Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -569,7 +554,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -604,14 +589,7 @@ public Mono updateAsync( String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters) { return updateWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -699,7 +677,7 @@ public Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -757,7 +735,7 @@ private Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java index e4682e1b7e2a9..1b23fa43022cb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java @@ -100,7 +100,7 @@ public Mono> listWithResponseAsync if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -150,7 +150,7 @@ private Mono> listWithResponseAsyn if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -176,15 +176,7 @@ private Mono> listWithResponseAsyn */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync(String resourceGroupName, String resourceName) { - return listWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java index 88e554b192127..f79c82d780ffa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java @@ -110,7 +110,7 @@ public Mono> postWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -168,7 +168,7 @@ private Mono> postWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -198,14 +198,7 @@ private Mono> postWithResponseAsync( public Mono postAsync( String resourceGroupName, String resourceName, PrivateLinkResourceInner parameters) { return postWithResponseAsync(resourceGroupName, resourceName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java index 9413e5836d891..133dcbb77ddcf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java @@ -198,7 +198,7 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -241,7 +241,7 @@ private Mono> listSinglePageAsync(Context context) new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -338,7 +338,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -393,7 +393,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -509,7 +509,7 @@ public Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -559,7 +559,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -586,14 +586,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -666,7 +659,7 @@ public Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -723,7 +716,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -753,14 +746,7 @@ private Mono> createOrUpdateWithResponseAsync( public Mono createOrUpdateAsync( String resourceGroupName, String resourceName, SnapshotInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -835,7 +821,7 @@ public Mono> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -892,7 +878,7 @@ private Mono> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -921,14 +907,7 @@ private Mono> updateTagsWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) { return updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -996,7 +975,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1046,7 +1025,7 @@ private Mono> deleteWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2022-03-01"; + final String apiVersion = "2022-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1072,7 +1051,7 @@ private Mono> deleteWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName) { - return deleteWithResponseAsync(resourceGroupName, resourceName).flatMap((Response res) -> Mono.empty()); + return deleteWithResponseAsync(resourceGroupName, resourceName).flatMap(ignored -> Mono.empty()); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java index d8b7de58766fd..8e09f132ea893 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java @@ -27,7 +27,11 @@ public static AgentPoolMode fromString(String name) { return fromString(name, AgentPoolMode.class); } - /** @return known AgentPoolMode values. */ + /** + * Gets known AgentPoolMode values. + * + * @return known AgentPoolMode values. + */ public static Collection values() { return values(AgentPoolMode.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java index 2e49481c39f63..411d619a48209 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java @@ -27,7 +27,11 @@ public static AgentPoolType fromString(String name) { return fromString(name, AgentPoolType.class); } - /** @return known AgentPoolType values. */ + /** + * Gets known AgentPoolType values. + * + * @return known AgentPoolType values. + */ public static Collection values() { return values(AgentPoolType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Code.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Code.java index 021b83d76fc19..36854136e6051 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Code.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Code.java @@ -27,7 +27,11 @@ public static Code fromString(String name) { return fromString(name, Code.class); } - /** @return known Code values. */ + /** + * Gets known Code values. + * + * @return known Code values. + */ public static Collection values() { return values(Code.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ConnectionStatus.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ConnectionStatus.java index e3ed9d24f7cbb..1cecbd5a6ed20 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ConnectionStatus.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ConnectionStatus.java @@ -33,7 +33,11 @@ public static ConnectionStatus fromString(String name) { return fromString(name, ConnectionStatus.class); } - /** @return known ConnectionStatus values. */ + /** + * Gets known ConnectionStatus values. + * + * @return known ConnectionStatus values. + */ public static Collection values() { return values(ConnectionStatus.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceVMSizeTypes.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceVMSizeTypes.java index 4f80a13ed41ca..ebab51ad840f3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceVMSizeTypes.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceVMSizeTypes.java @@ -543,7 +543,11 @@ public static ContainerServiceVMSizeTypes fromString(String name) { return fromString(name, ContainerServiceVMSizeTypes.class); } - /** @return known ContainerServiceVMSizeTypes values. */ + /** + * Gets known ContainerServiceVMSizeTypes values. + * + * @return known ContainerServiceVMSizeTypes values. + */ public static Collection values() { return values(ContainerServiceVMSizeTypes.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Expander.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Expander.java index 64c27f98a4997..3f22006ecd7ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Expander.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Expander.java @@ -33,7 +33,11 @@ public static Expander fromString(String name) { return fromString(name, Expander.class); } - /** @return known Expander values. */ + /** + * Gets known Expander values. + * + * @return known Expander values. + */ public static Collection values() { return values(Expander.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocationTypes.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocationTypes.java index 8a045f3091c81..effb75d9ef8bf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocationTypes.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocationTypes.java @@ -24,7 +24,11 @@ public static ExtendedLocationTypes fromString(String name) { return fromString(name, ExtendedLocationTypes.class); } - /** @return known ExtendedLocationTypes values. */ + /** + * Gets known ExtendedLocationTypes values. + * + * @return known ExtendedLocationTypes values. + */ public static Collection values() { return values(ExtendedLocationTypes.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Format.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Format.java index 5fe724f92a921..cc037eeb1ece3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Format.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Format.java @@ -27,7 +27,11 @@ public static Format fromString(String name) { return fromString(name, Format.class); } - /** @return known Format values. */ + /** + * Gets known Format values. + * + * @return known Format values. + */ public static Collection values() { return values(Format.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuInstanceProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuInstanceProfile.java index 52eecbbc01f65..f1e4ef6ceeb4a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuInstanceProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuInstanceProfile.java @@ -36,7 +36,11 @@ public static GpuInstanceProfile fromString(String name) { return fromString(name, GpuInstanceProfile.class); } - /** @return known GpuInstanceProfile values. */ + /** + * Gets known GpuInstanceProfile values. + * + * @return known GpuInstanceProfile values. + */ public static Collection values() { return values(GpuInstanceProfile.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java index e6297e22b2fae..99641022d802d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java @@ -27,7 +27,11 @@ public static IpFamily fromString(String name) { return fromString(name, IpFamily.class); } - /** @return known IpFamily values. */ + /** + * Gets known IpFamily values. + * + * @return known IpFamily values. + */ public static Collection values() { return values(IpFamily.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletDiskType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletDiskType.java index b99932d84a1bf..e2e76dd8f74b3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletDiskType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletDiskType.java @@ -27,7 +27,11 @@ public static KubeletDiskType fromString(String name) { return fromString(name, KubeletDiskType.class); } - /** @return known KubeletDiskType values. */ + /** + * Gets known KubeletDiskType values. + * + * @return known KubeletDiskType values. + */ public static Collection values() { return values(KubeletDiskType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LicenseType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LicenseType.java index b25c6ef59e0db..be6987a930cab 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LicenseType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LicenseType.java @@ -27,7 +27,11 @@ public static LicenseType fromString(String name) { return fromString(name, LicenseType.class); } - /** @return known LicenseType values. */ + /** + * Gets known LicenseType values. + * + * @return known LicenseType values. + */ public static Collection values() { return values(LicenseType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java index 4a19c46f843b9..064d210044f11 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java @@ -27,7 +27,11 @@ public static LoadBalancerSku fromString(String name) { return fromString(name, LoadBalancerSku.class); } - /** @return known LoadBalancerSku values. */ + /** + * Gets known LoadBalancerSku values. + * + * @return known LoadBalancerSku values. + */ public static Collection values() { return values(LoadBalancerSku.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningState.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningState.java index 2a3a3836fbb30..3f1c8c66af2e9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningState.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningState.java @@ -34,7 +34,11 @@ public static ManagedClusterPodIdentityProvisioningState fromString(String name) return fromString(name, ManagedClusterPodIdentityProvisioningState.class); } - /** @return known ManagedClusterPodIdentityProvisioningState values. */ + /** + * Gets known ManagedClusterPodIdentityProvisioningState values. + * + * @return known ManagedClusterPodIdentityProvisioningState values. + */ public static Collection values() { return values(ManagedClusterPodIdentityProvisioningState.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuName.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuName.java index 5cf140d520f75..5ff1f076eed0b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuName.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuName.java @@ -24,7 +24,11 @@ public static ManagedClusterSkuName fromString(String name) { return fromString(name, ManagedClusterSkuName.class); } - /** @return known ManagedClusterSkuName values. */ + /** + * Gets known ManagedClusterSkuName values. + * + * @return known ManagedClusterSkuName values. + */ public static Collection values() { return values(ManagedClusterSkuName.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuTier.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuTier.java index c26b89b754155..e364d1ba61b3e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuTier.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuTier.java @@ -27,7 +27,11 @@ public static ManagedClusterSkuTier fromString(String name) { return fromString(name, ManagedClusterSkuTier.class); } - /** @return known ManagedClusterSkuTier values. */ + /** + * Gets known ManagedClusterSkuTier values. + * + * @return known ManagedClusterSkuTier values. + */ public static Collection values() { return values(ManagedClusterSkuTier.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfile.java new file mode 100644 index 0000000000000..065970d181932 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfile.java @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Storage profile for the container service cluster. */ +@Fluent +public final class ManagedClusterStorageProfile { + /* + * AzureDisk CSI Driver settings for the storage profile. + */ + @JsonProperty(value = "diskCSIDriver") + private ManagedClusterStorageProfileDiskCsiDriver diskCsiDriver; + + /* + * AzureFile CSI Driver settings for the storage profile. + */ + @JsonProperty(value = "fileCSIDriver") + private ManagedClusterStorageProfileFileCsiDriver fileCsiDriver; + + /* + * Snapshot Controller settings for the storage profile. + */ + @JsonProperty(value = "snapshotController") + private ManagedClusterStorageProfileSnapshotController snapshotController; + + /** + * Get the diskCsiDriver property: AzureDisk CSI Driver settings for the storage profile. + * + * @return the diskCsiDriver value. + */ + public ManagedClusterStorageProfileDiskCsiDriver diskCsiDriver() { + return this.diskCsiDriver; + } + + /** + * Set the diskCsiDriver property: AzureDisk CSI Driver settings for the storage profile. + * + * @param diskCsiDriver the diskCsiDriver value to set. + * @return the ManagedClusterStorageProfile object itself. + */ + public ManagedClusterStorageProfile withDiskCsiDriver(ManagedClusterStorageProfileDiskCsiDriver diskCsiDriver) { + this.diskCsiDriver = diskCsiDriver; + return this; + } + + /** + * Get the fileCsiDriver property: AzureFile CSI Driver settings for the storage profile. + * + * @return the fileCsiDriver value. + */ + public ManagedClusterStorageProfileFileCsiDriver fileCsiDriver() { + return this.fileCsiDriver; + } + + /** + * Set the fileCsiDriver property: AzureFile CSI Driver settings for the storage profile. + * + * @param fileCsiDriver the fileCsiDriver value to set. + * @return the ManagedClusterStorageProfile object itself. + */ + public ManagedClusterStorageProfile withFileCsiDriver(ManagedClusterStorageProfileFileCsiDriver fileCsiDriver) { + this.fileCsiDriver = fileCsiDriver; + return this; + } + + /** + * Get the snapshotController property: Snapshot Controller settings for the storage profile. + * + * @return the snapshotController value. + */ + public ManagedClusterStorageProfileSnapshotController snapshotController() { + return this.snapshotController; + } + + /** + * Set the snapshotController property: Snapshot Controller settings for the storage profile. + * + * @param snapshotController the snapshotController value to set. + * @return the ManagedClusterStorageProfile object itself. + */ + public ManagedClusterStorageProfile withSnapshotController( + ManagedClusterStorageProfileSnapshotController snapshotController) { + this.snapshotController = snapshotController; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (diskCsiDriver() != null) { + diskCsiDriver().validate(); + } + if (fileCsiDriver() != null) { + fileCsiDriver().validate(); + } + if (snapshotController() != null) { + snapshotController().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java new file mode 100644 index 0000000000000..7d02db6ebfa13 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** AzureDisk CSI Driver settings for the storage profile. */ +@Fluent +public final class ManagedClusterStorageProfileDiskCsiDriver { + /* + * Whether to enable AzureDisk CSI Driver. The default value is true. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Get the enabled property: Whether to enable AzureDisk CSI Driver. The default value is true. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable AzureDisk CSI Driver. The default value is true. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterStorageProfileDiskCsiDriver object itself. + */ + public ManagedClusterStorageProfileDiskCsiDriver withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileFileCsiDriver.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileFileCsiDriver.java new file mode 100644 index 0000000000000..eb8fd9064e4df --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileFileCsiDriver.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** AzureFile CSI Driver settings for the storage profile. */ +@Fluent +public final class ManagedClusterStorageProfileFileCsiDriver { + /* + * Whether to enable AzureFile CSI Driver. The default value is true. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Get the enabled property: Whether to enable AzureFile CSI Driver. The default value is true. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable AzureFile CSI Driver. The default value is true. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterStorageProfileFileCsiDriver object itself. + */ + public ManagedClusterStorageProfileFileCsiDriver withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileSnapshotController.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileSnapshotController.java new file mode 100644 index 0000000000000..1bdc19d6a99c9 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileSnapshotController.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Snapshot Controller settings for the storage profile. */ +@Fluent +public final class ManagedClusterStorageProfileSnapshotController { + /* + * Whether to enable Snapshot Controller. The default value is true. + */ + @JsonProperty(value = "enabled") + private Boolean enabled; + + /** + * Get the enabled property: Whether to enable Snapshot Controller. The default value is true. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable Snapshot Controller. The default value is true. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterStorageProfileSnapshotController object itself. + */ + public ManagedClusterStorageProfileSnapshotController withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkMode.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkMode.java index 413f7f7847c80..bc1b7e81999ef 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkMode.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkMode.java @@ -27,7 +27,11 @@ public static NetworkMode fromString(String name) { return fromString(name, NetworkMode.class); } - /** @return known NetworkMode values. */ + /** + * Gets known NetworkMode values. + * + * @return known NetworkMode values. + */ public static Collection values() { return values(NetworkMode.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPlugin.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPlugin.java index ac1c710536e9a..f75f58a933829 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPlugin.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPlugin.java @@ -27,7 +27,11 @@ public static NetworkPlugin fromString(String name) { return fromString(name, NetworkPlugin.class); } - /** @return known NetworkPlugin values. */ + /** + * Gets known NetworkPlugin values. + * + * @return known NetworkPlugin values. + */ public static Collection values() { return values(NetworkPlugin.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java index 589aa7b6efce6..dad50f5dea5e0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java @@ -27,7 +27,11 @@ public static NetworkPolicy fromString(String name) { return fromString(name, NetworkPolicy.class); } - /** @return known NetworkPolicy values. */ + /** + * Gets known NetworkPolicy values. + * + * @return known NetworkPolicy values. + */ public static Collection values() { return values(NetworkPolicy.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSDiskType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSDiskType.java index ed8f2d97a17fe..d9fe1210efc88 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSDiskType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSDiskType.java @@ -27,7 +27,11 @@ public static OSDiskType fromString(String name) { return fromString(name, OSDiskType.class); } - /** @return known OSDiskType values. */ + /** + * Gets known OSDiskType values. + * + * @return known OSDiskType values. + */ public static Collection values() { return values(OSDiskType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java index cc7a119ca85ec..626095b601a2f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java @@ -27,7 +27,11 @@ public static OSSku fromString(String name) { return fromString(name, OSSku.class); } - /** @return known OSSku values. */ + /** + * Gets known OSSku values. + * + * @return known OSSku values. + */ public static Collection values() { return values(OSSku.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSType.java index 32f43df296f48..38ae58d1b57bd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSType.java @@ -27,7 +27,11 @@ public static OSType fromString(String name) { return fromString(name, OSType.class); } - /** @return known OSType values. */ + /** + * Gets known OSType values. + * + * @return known OSType values. + */ public static Collection values() { return values(OSType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftAgentPoolProfileRole.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftAgentPoolProfileRole.java index 30cf8ce70ab46..5bd0e9175a499 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftAgentPoolProfileRole.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftAgentPoolProfileRole.java @@ -27,7 +27,11 @@ public static OpenShiftAgentPoolProfileRole fromString(String name) { return fromString(name, OpenShiftAgentPoolProfileRole.class); } - /** @return known OpenShiftAgentPoolProfileRole values. */ + /** + * Gets known OpenShiftAgentPoolProfileRole values. + * + * @return known OpenShiftAgentPoolProfileRole values. + */ public static Collection values() { return values(OpenShiftAgentPoolProfileRole.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftContainerServiceVMSize.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftContainerServiceVMSize.java index db86bf626a683..0a5c5f08b06e5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftContainerServiceVMSize.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OpenShiftContainerServiceVMSize.java @@ -120,7 +120,11 @@ public static OpenShiftContainerServiceVMSize fromString(String name) { return fromString(name, OpenShiftContainerServiceVMSize.class); } - /** @return known OpenShiftContainerServiceVMSize values. */ + /** + * Gets known OpenShiftContainerServiceVMSize values. + * + * @return known OpenShiftContainerServiceVMSize values. + */ public static Collection values() { return values(OpenShiftContainerServiceVMSize.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundType.java index 59dbe46bbbe44..574981ff7620b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OutboundType.java @@ -33,7 +33,11 @@ public static OutboundType fromString(String name) { return fromString(name, OutboundType.class); } - /** @return known OutboundType values. */ + /** + * Gets known OutboundType values. + * + * @return known OutboundType values. + */ public static Collection values() { return values(OutboundType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpointConnectionProvisioningState.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpointConnectionProvisioningState.java index 7591f449c86c7..59dd0cbaa0aaa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpointConnectionProvisioningState.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpointConnectionProvisioningState.java @@ -34,7 +34,11 @@ public static PrivateEndpointConnectionProvisioningState fromString(String name) return fromString(name, PrivateEndpointConnectionProvisioningState.class); } - /** @return known PrivateEndpointConnectionProvisioningState values. */ + /** + * Gets known PrivateEndpointConnectionProvisioningState values. + * + * @return known PrivateEndpointConnectionProvisioningState values. + */ public static Collection values() { return values(PrivateEndpointConnectionProvisioningState.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java index 0a30d8a6466fb..176320b326fa8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java @@ -27,7 +27,11 @@ public static PublicNetworkAccess fromString(String name) { return fromString(name, PublicNetworkAccess.class); } - /** @return known PublicNetworkAccess values. */ + /** + * Gets known PublicNetworkAccess values. + * + * @return known PublicNetworkAccess values. + */ public static Collection values() { return values(PublicNetworkAccess.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleDownMode.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleDownMode.java index 77f132461bad0..e764458333167 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleDownMode.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleDownMode.java @@ -27,7 +27,11 @@ public static ScaleDownMode fromString(String name) { return fromString(name, ScaleDownMode.class); } - /** @return known ScaleDownMode values. */ + /** + * Gets known ScaleDownMode values. + * + * @return known ScaleDownMode values. + */ public static Collection values() { return values(ScaleDownMode.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetEvictionPolicy.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetEvictionPolicy.java index 4af126ef9d616..6f322977f85e9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetEvictionPolicy.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetEvictionPolicy.java @@ -27,7 +27,11 @@ public static ScaleSetEvictionPolicy fromString(String name) { return fromString(name, ScaleSetEvictionPolicy.class); } - /** @return known ScaleSetEvictionPolicy values. */ + /** + * Gets known ScaleSetEvictionPolicy values. + * + * @return known ScaleSetEvictionPolicy values. + */ public static Collection values() { return values(ScaleSetEvictionPolicy.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetPriority.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetPriority.java index 4f1b8b4fba2f4..7a9b446149336 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetPriority.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetPriority.java @@ -27,7 +27,11 @@ public static ScaleSetPriority fromString(String name) { return fromString(name, ScaleSetPriority.class); } - /** @return known ScaleSetPriority values. */ + /** + * Gets known ScaleSetPriority values. + * + * @return known ScaleSetPriority values. + */ public static Collection values() { return values(ScaleSetPriority.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java index eea4d38b8c79a..2fb3f59c82135 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java @@ -24,7 +24,11 @@ public static SnapshotType fromString(String name) { return fromString(name, SnapshotType.class); } - /** @return known SnapshotType values. */ + /** + * Gets known SnapshotType values. + * + * @return known SnapshotType values. + */ public static Collection values() { return values(SnapshotType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeChannel.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeChannel.java index a48cc5ae5f456..e7d834822cef8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeChannel.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeChannel.java @@ -36,7 +36,11 @@ public static UpgradeChannel fromString(String name) { return fromString(name, UpgradeChannel.class); } - /** @return known UpgradeChannel values. */ + /** + * Gets known UpgradeChannel values. + * + * @return known UpgradeChannel values. + */ public static Collection values() { return values(UpgradeChannel.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeekDay.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeekDay.java index 2f35323021245..c733e0f3ce51b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeekDay.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WeekDay.java @@ -42,7 +42,11 @@ public static WeekDay fromString(String name) { return fromString(name, WeekDay.class); } - /** @return known WeekDay values. */ + /** + * Gets known WeekDay values. + * + * @return known WeekDay values. + */ public static Collection values() { return values(WeekDay.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java index 62202186f6355..912eb33d823a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java @@ -27,7 +27,11 @@ public static WorkloadRuntime fromString(String name) { return fromString(name, WorkloadRuntime.class); } - /** @return known WorkloadRuntime values. */ + /** + * Gets known WorkloadRuntime values. + * + * @return known WorkloadRuntime values. + */ public static Collection values() { return values(WorkloadRuntime.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClusterUpdateTests.testKubernetesClusterUpdate.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClusterUpdateTests.testKubernetesClusterUpdate.json index 3f0d047b9b08f..3e3bc2961fd04 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClusterUpdateTests.testKubernetesClusterUpdate.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClusterUpdateTests.testKubernetesClusterUpdate.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "c400e5e3-0eb4-4c4c-85da-c7313abf312d", @@ -289,7 +289,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "75c91510-3c09-42ff-9f38-25aa8afba625" @@ -315,7 +315,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58/agentPools/ap1149380?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58/agentPools/ap1149380?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "fd8395dc-43d3-4afe-9ce9-2fcdbd8a280d", @@ -525,7 +525,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58/agentPools/ap1149380?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58/agentPools/ap1149380?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "421c4d9f-543d-406b-9aba-2704479813e2" @@ -551,7 +551,7 @@ "Exception" : null }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58/agentPools/ap1149380?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58/agentPools/ap1149380?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "24ffe81d-0aa0-45f0-a410-a4bbe9d14f4e", @@ -734,7 +734,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "518e416c-b48d-4416-9732-36950b6c2e09", @@ -840,7 +840,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg37780/providers/Microsoft.ContainerService/managedClusters/aks70663f58?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "5bb4a22d-d4fd-432c-8cf3-f0dfc37f3b1c" diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canAutoScaleKubernetesCluster.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canAutoScaleKubernetesCluster.json index f507cd0824d7a..74aee3e5604d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canAutoScaleKubernetesCluster.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canAutoScaleKubernetesCluster.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "e5305e55-f173-4d56-bddf-1824ae0e91cd", @@ -315,7 +315,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "48551b53-13dd-463a-89e7-8f082c15dd71" @@ -341,7 +341,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "e56d3430-b3e5-4109-91a9-3c9ef6cb150c", @@ -368,7 +368,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "b132694d-e2fc-4a1a-8dce-a4a2fcc1f299", @@ -474,7 +474,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "b576f927-2327-41fd-9314-02503c32bba2" @@ -500,7 +500,7 @@ "Exception" : null }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap1936710?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap1936710?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "9d16e6bb-b015-4d82-82ca-efcaa38b391d", @@ -527,7 +527,7 @@ "Exception" : null }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap227971a?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap227971a?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "fa0827e5-d4a5-47fa-b685-5073fa1eed4b", @@ -554,7 +554,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap2804779?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap2804779?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "29e86a9c-a169-4174-a51d-cbf171f3abd6", @@ -686,7 +686,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap2804779?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg45020/providers/Microsoft.ContainerService/managedClusters/aks444194f1/agentPools/ap2804779?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "889208bd-8a9d-46f1-8508-1878c6d2bec0" diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCRUDKubernetesCluster.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCRUDKubernetesCluster.json index e80f8d49e6141..d521b98613be7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCRUDKubernetesCluster.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCRUDKubernetesCluster.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "52fece93-ca69-45b7-a4e0-31a40857d3e7", @@ -341,7 +341,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "fb7e92a7-b980-4149-9ff8-8fd4bb2d4cb3" @@ -367,7 +367,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/stop?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/stop?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "88b5a6a7-5b4b-4ad7-9589-7f6222be0a88", @@ -810,7 +810,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "d627721a-316d-42dd-9c01-a27bfc05964b", @@ -837,7 +837,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/start?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/start?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "fcc4cc81-97b3-4455-bf46-c66265b467e0", @@ -1150,7 +1150,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "72e8067a-a8d5-43fb-98e7-4833090a4dc5", @@ -1177,7 +1177,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/agentPools/ap2067261?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/agentPools/ap2067261?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "0324c0af-8c64-4cc6-8617-a49b15aed78f", @@ -1413,7 +1413,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/agentPools/ap2067261?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c/agentPools/ap2067261?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "ce75c062-c5ee-4336-91be-af4c723a2bf7" @@ -1439,7 +1439,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "6e8ce47d-54e5-46a9-bf15-4e9eefb30cad", @@ -1753,7 +1753,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg51617/providers/Microsoft.ContainerService/managedClusters/aks2809084c?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "10ad7991-1259-4698-b1ea-becf050e572a" diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCreateClusterWithSpotVM.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCreateClusterWithSpotVM.json index 949a28897e594..cb6a2632425f5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCreateClusterWithSpotVM.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canCreateClusterWithSpotVM.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "7bc476e3-6185-420b-bc14-ffbe629c3419", @@ -263,7 +263,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "df69db21-b11e-4484-8e9f-91724b949476" @@ -289,7 +289,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "f7de98c4-73ff-4b93-8577-65e93e5a4513", @@ -316,7 +316,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca/agentPools/ap295206e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca/agentPools/ap295206e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "f9e316b0-d1ca-4fcf-8459-7694c45ff7c0", @@ -526,7 +526,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca/agentPools/ap295206e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg04412/providers/Microsoft.ContainerService/managedClusters/aks936326ca/agentPools/ap295206e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "d77e5d9c-4dd1-4008-9ba0-ab0a602e775a" diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canListKubeConfigWithFormat.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canListKubeConfigWithFormat.json index 0d8ff816d0e88..7a0a43721ea7c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canListKubeConfigWithFormat.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.canListKubeConfigWithFormat.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "5bf49445-e1d8-4bcf-817a-4d224d54289b", @@ -315,7 +315,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "7415f0f0-6134-4001-a63d-71192fc29cef" @@ -341,7 +341,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f/listClusterUserCredential?api-version=2022-03-01&format=azure", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f/listClusterUserCredential?api-version=2022-04-01&format=azure", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "17cfd308-8e34-4a50-a19e-4633651f50b2", @@ -368,7 +368,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "50fc176c-da18-48af-b1b3-503cb1ea3dfe", @@ -395,7 +395,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f/listClusterUserCredential?api-version=2022-03-01&format=exec", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg31034/providers/Microsoft.ContainerService/managedClusters/aks0179674f/listClusterUserCredential?api-version=2022-04-01&format=exec", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "24555279-cf37-45fb-ac26-1123b7a8afce", diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.testKubernetesClusterAzureRbac.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.testKubernetesClusterAzureRbac.json index 6c31a193d9391..5c64e121054e4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.testKubernetesClusterAzureRbac.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/test/resources/session-records/KubernetesClustersTests.testKubernetesClusterAzureRbac.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg89001/providers/Microsoft.ContainerService/managedClusters/aks23661e4d?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg89001/providers/Microsoft.ContainerService/managedClusters/aks23661e4d?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "b6dea5d3-4aa0-43dc-9259-b55992858f84", @@ -289,7 +289,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg89001/providers/Microsoft.ContainerService/managedClusters/aks23661e4d?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javaacsrg89001/providers/Microsoft.ContainerService/managedClusters/aks23661e4d?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "f8d02dd0-6368-46d2-90f7-383d6a249d89" diff --git a/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml b/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml index bf48547499bb8..2b67c1b3cfd29 100644 --- a/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-redis/pom.xml @@ -46,9 +46,6 @@ --add-opens com.azure.resourcemanager.redis/com.azure.resourcemanager.redis=ALL-UNNAMED - false - - diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml b/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml index e4446ffff0bad..d178f9e28dedd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml @@ -1,4 +1,3 @@ - 4.0.0 - com.azure azure-client-sdk-parent @@ -17,6 +15,7 @@ com.azure.resourcemanager azure-resourcemanager-samples 2.0.0-beta.1 + jar Microsoft Azure SDK for Management samples This package contains Microsoft Azure SDK for Management samples. @@ -36,6 +35,10 @@ HEAD + + true + + microsoft @@ -144,32 +147,6 @@ - - java8 - - [1.8,9) - - - - - src/main/resources - - - - - - java9plus - - [9,) - - - - - src/main/resources - - - - azure-mgmt-sdk-test-jar @@ -189,6 +166,17 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.1 + + + com.azure.resourcemanager.*.samples: + + + + org.apache.maven.plugins maven-enforcer-plugin @@ -212,14 +200,6 @@ - - org.jacoco - jacoco-maven-plugin - 0.8.8 - - true - - diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/DockerUtils.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/DockerUtils.java index 475f6af2f4051..a5967d1a83634 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/DockerUtils.java +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/DockerUtils.java @@ -90,7 +90,7 @@ public SSLContext getSSLContext() { * @param username - user name to connect with to the private container registry * @param password - password to connect with to the private container registry * @return an instance of DockerClient - * @throws Exception exception thrown + * @throws IOException exception thrown */ public static DockerClient createDockerClient(AzureResourceManager azureResourceManager, String rgName, Region region, String registryServerUrl, String username, String password) throws IOException { @@ -186,7 +186,6 @@ public static DockerClientConfig createDockerClientConfig(String host, String re * @param username - user name to connect with to the private container registry * @param password - password to connect with to the private container registry * @return an instance of DockerClient - * @throws Exception exception thrown */ public static DockerClient fromNewDockerVM(AzureResourceManager azureResourceManager, String rgName, Region region, String registryServerUrl, String username, String password) { diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/SSHShell.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/SSHShell.java index 2c784bb124977..039c74918a0e4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/SSHShell.java +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/SSHShell.java @@ -195,7 +195,8 @@ public void close() { * @param passPhrase the byte array content to be uploaded * @param comment the name of the file for which the content will be saved into * @return SSH public and private key - * @throws Exception exception thrown + * @throws UnsupportedEncodingException exception thrown + * @throws JSchException exception thrown */ public static SshPublicPrivateKey generateSSHKeys(String passPhrase, String comment) throws UnsupportedEncodingException, JSchException { JSch jsch = new JSch(); diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java index 934053b3dd979..03fc993f6e2e2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/samples/Utils.java @@ -1625,7 +1625,7 @@ public static void print(SearchService searchService) { * * @param envSecondaryServicePrincipal an Azure Container Registry * @return a service principal client ID - * @throws Exception exception + * @throws IOException exception */ public static String getSecondaryServicePrincipalClientID(String envSecondaryServicePrincipal) throws IOException { String content = new String(Files.readAllBytes(new File(envSecondaryServicePrincipal).toPath()), StandardCharsets.UTF_8).trim(); @@ -1648,7 +1648,7 @@ public static String getSecondaryServicePrincipalClientID(String envSecondarySer * * @param envSecondaryServicePrincipal an Azure Container Registry * @return a service principal secret - * @throws Exception exception + * @throws IOException exception */ public static String getSecondaryServicePrincipalSecret(String envSecondaryServicePrincipal) throws IOException { String content = new String(Files.readAllBytes(new File(envSecondaryServicePrincipal).toPath()), StandardCharsets.UTF_8).trim(); @@ -1685,7 +1685,6 @@ public static String getSecondaryServicePrincipalSecret(String envSecondaryServi * @param password alias password * @param cnName domain name * @param dnsName dns name in subject alternate name - * @throws Exception exceptions from the creation * @throws IOException IO Exception */ public static void createCertificate(String certPath, String pfxPath, String alias, @@ -1753,7 +1752,7 @@ public static void createCertificate(String certPath, String pfxPath, String ali * @param ignoreErrorStream : Boolean which controls whether to throw exception or not * based on error stream. * @return result :- depending on the method invocation. - * @throws Exception exceptions thrown from the execution + * @throws IOException exceptions thrown from the execution */ public static String cmdInvocation(String[] command, boolean ignoreErrorStream) throws IOException { diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesCluster.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesCluster.json index 253af1f361a72..64608bd20bdec 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesCluster.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesCluster.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "e4111161-3890-4661-8062-75c3ff6c6d1b", @@ -315,7 +315,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "66270b29-375f-422d-a7b4-ff5b0775569b" @@ -341,7 +341,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "4049bae2-ae06-4a6a-86a7-0ce54b885655", @@ -759,7 +759,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks0760306/providers/Microsoft.ContainerService/managedClusters/akssample57451e0305333?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "8a8f6772-1233-4340-9677-9dbc40f2b17c" diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesClusterWithAdvancedNetworking.json b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesClusterWithAdvancedNetworking.json index b0a7fd2ca2f26..8181ecbfa8f71 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesClusterWithAdvancedNetworking.json +++ b/sdk/resourcemanager/azure-resourcemanager-samples/src/test/resources/session-records/KubernetesClusterTests.testManageKubernetesClusterWithAdvancedNetworking.json @@ -144,7 +144,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "a0922c0a-8b58-452b-b310-1605f6c7b0ac", @@ -432,7 +432,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "621d372e-3791-4638-be85-b40e08089a07" @@ -458,7 +458,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "40c41dcb-7674-49a7-927d-053843a4482c", @@ -798,7 +798,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks83242b2/providers/Microsoft.ContainerService/managedClusters/akssample442464fa9146f?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "8be1a23c-77b3-49c7-9bab-76b65d878b34" diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java index 2a1166fab7731..ad7a6aa28f81a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java @@ -27,7 +27,7 @@ /** Samples for AgentPools CreateOrUpdate. */ public final class AgentPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_EnableFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_EnableFIPS.json */ /** * Sample code: Create Agent Pool with FIPS enabled OS. @@ -54,7 +54,7 @@ public static void createAgentPoolWithFIPSEnabledOS(com.azure.resourcemanager.Az } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPools_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPools_Update.json */ /** * Sample code: Update Agent Pool. @@ -86,7 +86,7 @@ public static void updateAgentPool(com.azure.resourcemanager.AzureResourceManage } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_GPUMIG.json */ /** * Sample code: Create Agent Pool with GPUMIG. @@ -134,7 +134,7 @@ public static void createAgentPoolWithGPUMIG(com.azure.resourcemanager.AzureReso } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_Update.json */ /** * Sample code: Create/Update Agent Pool. @@ -166,7 +166,7 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPools_Start.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPools_Start.json */ /** * Sample code: Start Agent Pool. @@ -188,7 +188,7 @@ public static void startAgentPool(com.azure.resourcemanager.AzureResourceManager } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_Spot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_Spot.json */ /** * Sample code: Create Spot Agent Pool. @@ -219,7 +219,7 @@ public static void createSpotAgentPool(com.azure.resourcemanager.AzureResourceMa } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_Ephemeral.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_Ephemeral.json */ /** * Sample code: Create Agent Pool with Ephemeral OS Disk. @@ -247,7 +247,7 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json */ /** * Sample code: Create Agent Pool with EncryptionAtHost enabled. @@ -275,7 +275,7 @@ public static void createAgentPoolWithEncryptionAtHostEnabled( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_EnableUltraSSD.json */ /** * Sample code: Create Agent Pool with UltraSSD enabled. @@ -302,7 +302,7 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_WasmWasi.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_WasmWasi.json */ /** * Sample code: Create Agent Pool with Krustlet and the WASI runtime. @@ -332,7 +332,7 @@ public static void createAgentPoolWithKrustletAndTheWASIRuntime( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_Snapshot.json */ /** * Sample code: Create Agent Pool using an agent pool snapshot. @@ -363,7 +363,7 @@ public static void createAgentPoolUsingAnAgentPoolSnapshot(com.azure.resourceman } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_PPG.json */ /** * Sample code: Create Agent Pool with PPG. @@ -391,7 +391,7 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_CustomNodeConfig.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_CustomNodeConfig.json */ /** * Sample code: Create Agent Pool with KubeletConfig and LinuxOSConfig. @@ -439,7 +439,7 @@ public static void createAgentPoolWithKubeletConfigAndLinuxOSConfig( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPools_Stop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPools_Stop.json */ /** * Sample code: Stop Agent Pool. @@ -461,7 +461,7 @@ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsCreate_OSSKU.json */ /** * Sample code: Create Agent Pool with OSSKU. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java index c860d39e3a8a6..a6bd2d6e7e5f5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for AgentPools Delete. */ public final class AgentPoolsDeleteSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsDelete.json */ /** * Sample code: Delete Agent Pool. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java index 8254ba91a9bad..32a193e0b85ed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java @@ -9,7 +9,7 @@ /** Samples for AgentPools GetAvailableAgentPoolVersions. */ public final class AgentPoolsGetAvailableAgentPoolVersionsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json */ /** * Sample code: Get available versions for agent pool. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java index ed9fa262c33aa..4f780ab8553bd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for AgentPools Get. */ public final class AgentPoolsGetSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsGet.json */ /** * Sample code: Get Agent Pool. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java index c8d8c25a08135..e052221a5fb6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java @@ -9,7 +9,7 @@ /** Samples for AgentPools GetUpgradeProfile. */ public final class AgentPoolsGetUpgradeProfileSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsGetUpgradeProfile.json */ /** * Sample code: Get Upgrade Profile for Agent Pool. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java index 330f8408981f0..d3269db049639 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java @@ -9,7 +9,7 @@ /** Samples for AgentPools List. */ public final class AgentPoolsListSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsList.json */ /** * Sample code: List Agent Pools by Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java index a66460a2a6e92..083e00f39effa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java @@ -9,7 +9,7 @@ /** Samples for AgentPools UpgradeNodeImageVersion. */ public final class AgentPoolsUpgradeNodeImageVersionSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/AgentPoolsUpgradeNodeImageVersion.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/AgentPoolsUpgradeNodeImageVersion.json */ /** * Sample code: Upgrade Agent Pool Node Image Version. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java index b916f635e206b..c2f270d7d90ba 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for MaintenanceConfigurations CreateOrUpdate. */ public final class MaintenanceConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/MaintenanceConfigurationsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/MaintenanceConfigurationsCreate_Update.json */ /** * Sample code: Create/Update Maintenance Configuration. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java index fac4e4b692fbd..2917903778c22 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for MaintenanceConfigurations Delete. */ public final class MaintenanceConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/MaintenanceConfigurationsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/MaintenanceConfigurationsDelete.json */ /** * Sample code: Delete Maintenance Configuration. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java index b8ca54e9d7907..7b9862ce1cb06 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for MaintenanceConfigurations Get. */ public final class MaintenanceConfigurationsGetSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/MaintenanceConfigurationsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/MaintenanceConfigurationsGet.json */ /** * Sample code: Get Maintenance Configuration. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java index 25e83e9b4aaa2..cae0cb40777e2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java @@ -9,7 +9,7 @@ /** Samples for MaintenanceConfigurations ListByManagedCluster. */ public final class MaintenanceConfigurationsListByManagedClusterSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/MaintenanceConfigurationsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/MaintenanceConfigurationsList.json */ /** * Sample code: List maintenance configurations by Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java index 51c612fcf5402..01be76e972dc2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java @@ -50,7 +50,7 @@ /** Samples for ManagedClusters CreateOrUpdate. */ public final class ManagedClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_HTTPProxy.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_HTTPProxy.json */ /** * Sample code: Create Managed Cluster with HTTP proxy configured. @@ -127,7 +127,7 @@ public static void createManagedClusterWithHTTPProxyConfigured( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_EnabledFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_EnabledFIPS.json */ /** * Sample code: Create Managed Cluster with FIPS enabled OS. @@ -198,7 +198,7 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_SecurityProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_SecurityProfile.json */ /** * Sample code: Create Managed Cluster with Security Profile configured. @@ -261,7 +261,7 @@ public static void createManagedClusterWithSecurityProfileConfigured( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_DualStackNetworking.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_DualStackNetworking.json */ /** * Sample code: Create/Update Managed Cluster with dual-stack networking. @@ -347,7 +347,7 @@ public static void createUpdateManagedClusterWithDualStackNetworking( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_PPG.json */ /** * Sample code: Create Managed Cluster with PPG. @@ -419,7 +419,7 @@ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureRe } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_UpdateWithAHUB.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_UpdateWithAHUB.json */ /** * Sample code: Create/Update Managed Cluster with EnableAHUB. @@ -498,7 +498,7 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_PodIdentity.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_PodIdentity.json */ /** * Sample code: Create Managed Cluster with PodIdentity enabled. @@ -571,7 +571,7 @@ public static void createManagedClusterWithPodIdentityEnabled( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_DisableRunCommand.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_DisableRunCommand.json */ /** * Sample code: Create Managed Cluster with RunCommand disabled. @@ -642,7 +642,7 @@ public static void createManagedClusterWithRunCommandDisabled( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json */ /** * Sample code: Create Managed Cluster with user-assigned NAT gateway as outbound type. @@ -709,7 +709,7 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_Snapshot.json */ /** * Sample code: Create Managed Cluster using an agent pool snapshot. @@ -785,7 +785,7 @@ public static void createManagedClusterUsingAnAgentPoolSnapshot( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_OSSKU.json */ /** * Sample code: Create Managed Cluster with OSSKU. @@ -862,7 +862,7 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_Update.json */ /** * Sample code: Create/Update Managed Cluster. @@ -946,7 +946,7 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ /** * Sample code: Create Managed Private Cluster with fqdn subdomain specified. @@ -1021,7 +1021,7 @@ public static void createManagedPrivateClusterWithFqdnSubdomainSpecified( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_ManagedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_ManagedNATGateway.json */ /** * Sample code: Create Managed Cluster with AKS-managed NAT gateway as outbound type. @@ -1092,7 +1092,7 @@ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ /** * Sample code: Create/Update AAD Managed Cluster with EnableAzureRBAC. @@ -1165,7 +1165,7 @@ public static void createUpdateAADManagedClusterWithEnableAzureRBAC( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_EnableUltraSSD.json */ /** * Sample code: Create Managed Cluster with UltraSSD enabled. @@ -1236,7 +1236,7 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json */ /** * Sample code: Create/Update Managed Cluster with Windows gMSA enabled. @@ -1316,7 +1316,7 @@ public static void createUpdateManagedClusterWithWindowsGMSAEnabled( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_GPUMIG.json */ /** * Sample code: Create Managed Cluster with GPUMIG. @@ -1393,7 +1393,7 @@ public static void createManagedClusterWithGPUMIG(com.azure.resourcemanager.Azur } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json */ /** * Sample code: Create Managed Cluster with Node Public IP Prefix. @@ -1466,7 +1466,7 @@ public static void createManagedClusterWithNodePublicIPPrefix( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json */ /** * Sample code: Create Managed Cluster with EncryptionAtHost enabled. @@ -1538,7 +1538,7 @@ public static void createManagedClusterWithEncryptionAtHostEnabled( } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json */ /** * Sample code: Create Managed Private Cluster with Public FQDN specified. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java index 9dd644399b191..a003647338550 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters Delete. */ public final class ManagedClustersDeleteSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersDelete.json */ /** * Sample code: Delete Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java index 612b5c33b5b69..f2bd52aa5dbe7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters GetAccessProfile. */ public final class ManagedClustersGetAccessProfileSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersGetAccessProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersGetAccessProfile.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java index 4ca510af6121b..f44d7a15dc796 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters GetByResourceGroup. */ public final class ManagedClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersGet.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java index b6e150c52db06..b10d0d5ab7636 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters GetCommandResult. */ public final class ManagedClustersGetCommandResultSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/RunCommandResultFailed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/RunCommandResultFailed.json */ /** * Sample code: commandFailedResult. @@ -26,7 +26,7 @@ public static void commandFailedResult(com.azure.resourcemanager.AzureResourceMa } /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/RunCommandResultSucceed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/RunCommandResultSucceed.json */ /** * Sample code: commandSucceedResult. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java index c2c3901e8690b..0160c9967a11b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetOSOptionsSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters GetOSOptions. */ public final class ManagedClustersGetOSOptionsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ContainerServiceGetOSOptions.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ContainerServiceGetOSOptions.json */ /** * Sample code: Get Container Service OS Options. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java index 59225c8626b9b..0bf4d75879eeb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters GetUpgradeProfile. */ public final class ManagedClustersGetUpgradeProfileSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersGetUpgradeProfile.json */ /** * Sample code: Get Upgrade Profile for Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java index 11497c40be988..a8f481cdfd5fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters ListByResourceGroup. */ public final class ManagedClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersListByResourceGroup.json */ /** * Sample code: Get Managed Clusters by Resource Group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java index 8c77921d35b22..762b583dac827 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters ListClusterAdminCredentials. */ public final class ManagedClustersListClusterAdminCredentialsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersListClusterCredentialResult.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersListClusterCredentialResult.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java index 0be92f5e8b32d..1a5319ac3a260 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters ListClusterMonitoringUserCredentials. */ public final class ManagedClustersListClusterMonitoringUserCredentialsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersListClusterCredentialResult.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersListClusterCredentialResult.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java index db30e46b78044..d647c658a5f9a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters ListClusterUserCredentials. */ public final class ManagedClustersListClusterUserCredentialsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersListClusterCredentialResult.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersListClusterCredentialResult.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java index 4e8c0004bebdb..bf10201a4ad2a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters ListOutboundNetworkDependenciesEndpoints. */ public final class ManagedClustersListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/OutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/OutboundNetworkDependenciesEndpointsList.json */ /** * Sample code: List OutboundNetworkDependenciesEndpoints by Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java index c28d5edfa4a06..4617643d1e380 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters List. */ public final class ManagedClustersListSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersList.json */ /** * Sample code: List Managed Clusters. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java index 879e166e819e7..e5176780a22d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java @@ -10,7 +10,7 @@ /** Samples for ManagedClusters ResetAadProfile. */ public final class ManagedClustersResetAadProfileSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersResetAADProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersResetAADProfile.json */ /** * Sample code: Reset AAD Profile. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java index c91c20495c968..adf60cc6960e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java @@ -10,7 +10,7 @@ /** Samples for ManagedClusters ResetServicePrincipalProfile. */ public final class ManagedClustersResetServicePrincipalProfileSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersResetServicePrincipalProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersResetServicePrincipalProfile.json */ /** * Sample code: Reset Service Principal Profile. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java index 77ae517e55321..ca06a504814ec 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters RotateClusterCertificates. */ public final class ManagedClustersRotateClusterCertificatesSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersRotateClusterCertificates.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersRotateClusterCertificates.json */ /** * Sample code: Rotate Cluster Certificates. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java index c22290a24a83d..0bf64d46603c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java @@ -10,7 +10,7 @@ /** Samples for ManagedClusters RunCommand. */ public final class ManagedClustersRunCommandSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/RunCommandRequest.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/RunCommandRequest.json */ /** * Sample code: submitNewCommand. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java index 8999ec4d82f58..93e3052d0a7f7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters Start. */ public final class ManagedClustersStartSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersStart.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersStart.json */ /** * Sample code: Start Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java index dfc381005825b..d1f7df9a7e6b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java @@ -9,7 +9,7 @@ /** Samples for ManagedClusters Stop. */ public final class ManagedClustersStopSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersStop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersStop.json */ /** * Sample code: Stop Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java index 99fba6aa4ea52..3c8c511732a3d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for ManagedClusters UpdateTags. */ public final class ManagedClustersUpdateTagsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ManagedClustersUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ManagedClustersUpdateTags.json */ /** * Sample code: Update Managed Cluster Tags. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java index 55ac04244c6e0..306d663681900 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/Operation_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/Operation_List.json */ /** * Sample code: List available operations for the container service resource provider. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java index 951cf67792a02..a3323507fa1b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/PrivateEndpointConnectionsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/PrivateEndpointConnectionsDelete.json */ /** * Sample code: Delete Private Endpoint Connection. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java index c21d8ac12b744..fbce1e5dfb15c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/PrivateEndpointConnectionsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/PrivateEndpointConnectionsGet.json */ /** * Sample code: Get Private Endpoint Connection. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java index 8a31605cff658..60e9382d69872 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/PrivateEndpointConnectionsList.json */ /** * Sample code: List Private Endpoint Connections by Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java index 6d23a81eb5af1..17f1fe50fbe40 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for PrivateEndpointConnections Update. */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/PrivateEndpointConnectionsUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/PrivateEndpointConnectionsUpdate.json */ /** * Sample code: Update Private Endpoint Connection. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java index d3d6cfde40b92..7a7f3a11b3487 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/PrivateLinkResourcesList.json */ /** * Sample code: List Private Link Resources by Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java index 9f472b6dfb753..bec1dfd0866fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java @@ -10,7 +10,7 @@ /** Samples for ResolvePrivateLinkServiceId Post. */ public final class ResolvePrivateLinkServiceIdPostSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/ResolvePrivateLinkServiceId.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/ResolvePrivateLinkServiceId.json */ /** * Sample code: Resolve the Private Link Service ID for Managed Cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java index 8eff48f59a262..d758d1048e145 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ /** Samples for Snapshots CreateOrUpdate. */ public final class SnapshotsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/SnapshotsCreate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/SnapshotsCreate.json */ /** * Sample code: Create/Update Snapshot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java index 67572d9287bbb..faa638dc425eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots Delete. */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/SnapshotsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/SnapshotsDelete.json */ /** * Sample code: Delete Snapshot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java index 8c6b81ece5e4e..9fe02704c27fa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots GetByResourceGroup. */ public final class SnapshotsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/SnapshotsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/SnapshotsGet.json */ /** * Sample code: Get Snapshot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java index dd1519d541727..f99b8b99fd813 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots ListByResourceGroup. */ public final class SnapshotsListByResourceGroupSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/SnapshotsListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/SnapshotsListByResourceGroup.json */ /** * Sample code: List Snapshots by Resource Group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java index 8aa8e2f3738b5..4229d125bb036 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Snapshots List. */ public final class SnapshotsListSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/SnapshotsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/SnapshotsList.json */ /** * Sample code: List Snapshots. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java index 5a4773a42d075..0649e27ba77b1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for Snapshots UpdateTags. */ public final class SnapshotsUpdateTagsSamples { /* - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-03-01/examples/SnapshotsUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-04-01/examples/SnapshotsUpdateTags.json */ /** * Sample code: Update Snapshot Tags. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/AzureResourceManagerTests.testKubernetesCluster.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/AzureResourceManagerTests.testKubernetesCluster.json index c7f9a215d7704..7568a4cbfdf24 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/AzureResourceManagerTests.testKubernetesCluster.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/AzureResourceManagerTests.testKubernetesCluster.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "6f7db7d0-47a3-435f-aa47-05d0f5ff6765", @@ -28,7 +28,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "083b3afb-1ef8-4c84-82ad-99e9fd032839", @@ -81,7 +81,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "2627d20e-94de-4ab4-b189-f19a4c6c07a9", @@ -265,7 +265,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "806047fa-103e-4659-810c-33e616865966" @@ -291,7 +291,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "55d67267-4bbb-4f19-8aa2-56f2322183ae", @@ -318,7 +318,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "7d105e78-fa98-4a7a-aaef-728fe1238385", @@ -345,7 +345,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "65545be4-435f-4157-b617-8066e0c8d1aa", @@ -372,7 +372,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "d04b382a-78f7-45c1-b021-5c6387976b47", @@ -399,7 +399,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "ac18bd03-4165-4459-bc8b-57fd1d57a04e", @@ -426,7 +426,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "c0b49b0a-b733-46c5-8e93-fb8f5986ae52", @@ -453,7 +453,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "02bcabca-f341-4fb9-b3fe-39c684247294", @@ -480,7 +480,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "0d1e2780-e211-4186-b41a-c1ec239148ff", @@ -507,7 +507,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "80872f84-5263-4d63-8ebc-83de4243034f", @@ -534,7 +534,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "22cf7d74-9100-4553-9a3a-65445190602c", @@ -718,7 +718,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "1c1b238b-3325-4593-a2f9-1ece14e29276" @@ -744,7 +744,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "65d4bdf0-de29-4227-a5ad-8707b936b141", @@ -771,7 +771,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "6e39d12d-631a-43f5-b99e-061e355d321f", @@ -798,7 +798,7 @@ "Exception" : null }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aks57554egroup/providers/Microsoft.ContainerService/managedClusters/aks57554e?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.2.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "eece328c-17a1-4283-a363-508cee33947f", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesAadTests.testKubernetesClusterAadIntegration.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesAadTests.testKubernetesClusterAadIntegration.json index 3145cb8a9f5b1..e7f240df3764c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesAadTests.testKubernetesClusterAadIntegration.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesAadTests.testKubernetesClusterAadIntegration.json @@ -120,7 +120,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "92d7d6e4-4f97-4ae2-a047-272f70f726ed", @@ -356,7 +356,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "d42d42d9-8dee-4a48-b03d-7caa783d755e" @@ -382,7 +382,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "ce6e3cc9-3b63-405e-94fe-f4b7f0a982d1", @@ -409,7 +409,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "73c8c63f-46b9-4aa3-9ef2-92f090588c3f", @@ -515,7 +515,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "ed05cc92-8815-4483-9d21-0ff821d211cd" @@ -541,7 +541,7 @@ "Exception" : null }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "dd6b7b2e-3a48-428b-90bc-debd09c17b3d", @@ -1088,7 +1088,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "ca9c91bd-113b-4546-b79e-538413de3c10", @@ -1558,7 +1558,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "18033c56-e8b8-4904-bc54-0279f18125f8" @@ -1584,7 +1584,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "063be782-6fb3-45e8-a33a-d066a6938a7b", @@ -1716,7 +1716,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "5d8ef4fe-45eb-48cd-8768-a085cc33846c" @@ -1742,7 +1742,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "02a499c4-591e-4886-8e0e-e9623bbf687c", @@ -1769,7 +1769,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "f33ff730-8adc-4567-b54d-8da1f58717f2", @@ -1901,7 +1901,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "ba93cd07-a69d-435d-854d-8dc803124cd9" @@ -1927,7 +1927,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg59907/providers/Microsoft.ContainerService/managedClusters/aks773856c9/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "670dcdce-3e3c-4556-a37b-1f6e11ff5a66", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesCniTests.testKubernetesClusterCni.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesCniTests.testKubernetesClusterCni.json index 83360cc1c9051..84ab51ce87fea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesCniTests.testKubernetesClusterCni.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesCniTests.testKubernetesClusterCni.json @@ -115,7 +115,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.5.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "f09a27c2-0c26-43d9-9380-b4e7093b19cb", @@ -299,7 +299,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "9bbab3c8-d3c6-4541-a0b5-12b74ebe26d3" @@ -325,7 +325,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.5.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "62b6678c-3fd1-4917-9b6c-f4c13a188c93", @@ -352,7 +352,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg30673/providers/Microsoft.ContainerService/managedClusters/aks564242dd/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.5.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "fc0a088e-7f55-41ff-ad73-694a55242dd1", diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesEncryptionTests.canCreateClusterWithDiskEncryption.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesEncryptionTests.canCreateClusterWithDiskEncryption.json index 334855c32d662..06c9a10420798 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesEncryptionTests.canCreateClusterWithDiskEncryption.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/KubernetesEncryptionTests.canCreateClusterWithDiskEncryption.json @@ -388,7 +388,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg52580/providers/Microsoft.ContainerService/managedClusters/aks82992887?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg52580/providers/Microsoft.ContainerService/managedClusters/aks82992887?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "1636af44-3b9e-4d2c-963c-82ce43bda454", @@ -884,7 +884,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg52580/providers/Microsoft.ContainerService/managedClusters/aks82992887?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg52580/providers/Microsoft.ContainerService/managedClusters/aks82992887?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.14.0-beta.1 (17.0.1; Windows 11; 10.0)", "x-ms-client-request-id" : "7874e591-d9d6-4c11-b77d-8a56d2f1a002" diff --git a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/PrivateLinkTests.testPrivateEndpointAKS.json b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/PrivateLinkTests.testPrivateEndpointAKS.json index a51e48a9889ea..088eda6c6a26d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/PrivateLinkTests.testPrivateEndpointAKS.json +++ b/sdk/resourcemanager/azure-resourcemanager/src/test/resources/session-records/PrivateLinkTests.testPrivateEndpointAKS.json @@ -27,7 +27,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.4.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "beb79570-84c2-4d48-8358-616599b539a1", @@ -419,7 +419,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "5fb8abd2-186e-4874-a296-68f9d5b028c8" @@ -445,7 +445,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/listClusterUserCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/listClusterUserCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.4.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "519175ed-5b6f-4c0d-9003-55c24b7af1d2", @@ -472,7 +472,7 @@ "Exception" : null }, { "Method" : "POST", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/listClusterAdminCredential?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/listClusterAdminCredential?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.4.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "240f4883-1e3d-439d-a4b2-7472379442f6", @@ -499,7 +499,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/privateLinkResources?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/privateLinkResources?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.4.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "7bbe5f55-c43e-4f04-8461-654c7f136551", @@ -526,7 +526,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/privateEndpointConnections?api-version=2022-03-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg26720/providers/Microsoft.ContainerService/managedClusters/aks08596/privateEndpointConnections?api-version=2022-04-01", "Headers" : { "User-Agent" : "azsdk-java-com.azure.resourcemanager.containerservice/2.4.0-beta.1 (15.0.1; Windows 10; 10.0)", "x-ms-client-request-id" : "0cda42de-5a93-4379-9c45-5266619cb74e",