diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
index c26f5a0f9d26..8d8364c7e169 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-03-09)
+
+- Azure Resource Manager SourceControlConfiguration client library for Java. This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md
index 0a06d81ba865..1b3c2e1cec2e 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager SourceControlConfiguration client library for Java.
-This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2021-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2022-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-kubernetesconfiguration
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md
index 508d0ce485f5..e1c0104532f6 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/SAMPLE.md
@@ -9,6 +9,18 @@
- [List](#extensions_list)
- [Update](#extensions_update)
+## FluxConfigOperationStatus
+
+- [Get](#fluxconfigoperationstatus_get)
+
+## FluxConfigurations
+
+- [CreateOrUpdate](#fluxconfigurations_createorupdate)
+- [Delete](#fluxconfigurations_delete)
+- [Get](#fluxconfigurations_get)
+- [List](#fluxconfigurations_list)
+- [Update](#fluxconfigurations_update)
+
## OperationStatus
- [Get](#operationstatus_get)
@@ -17,13 +29,18 @@
## Operations
- [List](#operations_list)
+
+## SourceControlConfigurations
+
+- [CreateOrUpdate](#sourcecontrolconfigurations_createorupdate)
+- [Delete](#sourcecontrolconfigurations_delete)
+- [Get](#sourcecontrolconfigurations_get)
+- [List](#sourcecontrolconfigurations_list)
### Extensions_Create
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ExtensionInner;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
import com.azure.resourcemanager.kubernetesconfiguration.models.Scope;
import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeCluster;
import java.util.HashMap;
@@ -32,7 +49,7 @@ import java.util.Map;
/** Samples for Extensions Create. */
public final class ExtensionsCreateSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/CreateExtension.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json
*/
/**
* Sample code: Create Extension.
@@ -45,8 +62,8 @@ public final class ExtensionsCreateSamples {
.extensions()
.create(
"rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
+ "Microsoft.Kubernetes",
+ "connectedClusters",
"clusterName1",
"ClusterMonitor",
new ExtensionInner()
@@ -81,13 +98,11 @@ public final class ExtensionsCreateSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
/** Samples for Extensions Delete. */
public final class ExtensionsDeleteSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/DeleteExtension.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json
*/
/**
* Sample code: Delete Extension.
@@ -100,8 +115,8 @@ public final class ExtensionsDeleteSamples {
.extensions()
.delete(
"rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
+ "Microsoft.Kubernetes",
+ "connectedClusters",
"clusterName1",
"ClusterMonitor",
null,
@@ -114,13 +129,11 @@ public final class ExtensionsDeleteSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
/** Samples for Extensions Get. */
public final class ExtensionsGetSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/GetExtension.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json
*/
/**
* Sample code: Get Extension.
@@ -132,12 +145,7 @@ public final class ExtensionsGetSamples {
manager
.extensions()
.getWithResponse(
- "rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
- "clusterName1",
- "ClusterMonitor",
- Context.NONE);
+ "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "ClusterMonitor", Context.NONE);
}
}
```
@@ -146,13 +154,11 @@ public final class ExtensionsGetSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
/** Samples for Extensions List. */
public final class ExtensionsListSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/ListExtensions.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json
*/
/**
* Sample code: List Extensions.
@@ -161,14 +167,7 @@ public final class ExtensionsListSamples {
*/
public static void listExtensions(
com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
- manager
- .extensions()
- .list(
- "rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
- "clusterName1",
- Context.NONE);
+ manager.extensions().list("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", Context.NONE);
}
}
```
@@ -177,8 +176,6 @@ public final class ExtensionsListSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
import com.azure.resourcemanager.kubernetesconfiguration.models.PatchExtension;
import java.util.HashMap;
import java.util.Map;
@@ -186,7 +183,7 @@ import java.util.Map;
/** Samples for Extensions Update. */
public final class ExtensionsUpdateSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/PatchExtension.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json
*/
/**
* Sample code: Update Extension.
@@ -199,8 +196,8 @@ public final class ExtensionsUpdateSamples {
.extensions()
.update(
"rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
+ "Microsoft.Kubernetes",
+ "connectedClusters",
"clusterName1",
"ClusterMonitor",
new PatchExtension()
@@ -229,31 +226,331 @@ public final class ExtensionsUpdateSamples {
}
```
+### FluxConfigOperationStatus_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FluxConfigOperationStatus Get. */
+public final class FluxConfigOperationStatusGetSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json
+ */
+ /**
+ * Sample code: FluxConfigurationAsyncOperationStatus Get.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void fluxConfigurationAsyncOperationStatusGet(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigOperationStatus()
+ .getWithResponse(
+ "rg1",
+ "Microsoft.Kubernetes",
+ "connectedClusters",
+ "clusterName1",
+ "srs-fluxconfig",
+ "99999999-9999-9999-9999-999999999999",
+ Context.NONE);
+ }
+}
+```
+
+### FluxConfigurations_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.FluxConfigurationInner;
+import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.RepositoryRefDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.SourceKindType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FluxConfigurations CreateOrUpdate. */
+public final class FluxConfigurationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json
+ */
+ /**
+ * Sample code: Create Flux Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void createFluxConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigurations()
+ .createOrUpdate(
+ "rg1",
+ "Microsoft.Kubernetes",
+ "connectedClusters",
+ "clusterName1",
+ "srs-fluxconfig",
+ new FluxConfigurationInner()
+ .withScope(ScopeType.CLUSTER)
+ .withNamespace("srs-namespace")
+ .withSourceKind(SourceKindType.GIT_REPOSITORY)
+ .withSuspend(false)
+ .withGitRepository(
+ new GitRepositoryDefinition()
+ .withUrl("https://github.com/Azure/arc-k8s-demo")
+ .withTimeoutInSeconds(600L)
+ .withSyncIntervalInSeconds(600L)
+ .withRepositoryRef(new RepositoryRefDefinition().withBranch("master"))
+ .withHttpsCACert("ZXhhbXBsZWNlcnRpZmljYXRl"))
+ .withKustomizations(
+ mapOf(
+ "srs-kustomization1",
+ new KustomizationDefinition()
+ .withPath("./test/path")
+ .withDependsOn(Arrays.asList())
+ .withTimeoutInSeconds(600L)
+ .withSyncIntervalInSeconds(600L),
+ "srs-kustomization2",
+ new KustomizationDefinition()
+ .withPath("./other/test/path")
+ .withDependsOn(Arrays.asList("srs-kustomization1"))
+ .withTimeoutInSeconds(600L)
+ .withSyncIntervalInSeconds(600L)
+ .withRetryIntervalInSeconds(600L)
+ .withPrune(false))),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfigurationWithBucket.json
+ */
+ /**
+ * Sample code: Create Flux Configuration with Bucket Source Kind.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void createFluxConfigurationWithBucketSourceKind(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigurations()
+ .createOrUpdate(
+ "rg1",
+ "Microsoft.Kubernetes",
+ "connectedClusters",
+ "clusterName1",
+ "srs-fluxconfig",
+ new FluxConfigurationInner()
+ .withScope(ScopeType.CLUSTER)
+ .withNamespace("srs-namespace")
+ .withSourceKind(SourceKindType.BUCKET)
+ .withSuspend(false)
+ .withBucket(
+ new BucketDefinition()
+ .withUrl("https://fluxminiotest.az.minio.io")
+ .withBucketName("flux")
+ .withTimeoutInSeconds(1000L)
+ .withSyncIntervalInSeconds(1000L)
+ .withAccessKey("fluxminiotest"))
+ .withKustomizations(
+ mapOf(
+ "srs-kustomization1",
+ new KustomizationDefinition()
+ .withPath("./test/path")
+ .withDependsOn(Arrays.asList())
+ .withTimeoutInSeconds(600L)
+ .withSyncIntervalInSeconds(600L),
+ "srs-kustomization2",
+ new KustomizationDefinition()
+ .withPath("./other/test/path")
+ .withDependsOn(Arrays.asList("srs-kustomization1"))
+ .withTimeoutInSeconds(600L)
+ .withSyncIntervalInSeconds(600L)
+ .withRetryIntervalInSeconds(600L)
+ .withPrune(false))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### FluxConfigurations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FluxConfigurations Delete. */
+public final class FluxConfigurationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json
+ */
+ /**
+ * Sample code: Delete Flux Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void deleteFluxConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigurations()
+ .delete(
+ "rg1",
+ "Microsoft.Kubernetes",
+ "connectedClusters",
+ "clusterName1",
+ "srs-fluxconfig",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### FluxConfigurations_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FluxConfigurations Get. */
+public final class FluxConfigurationsGetSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json
+ */
+ /**
+ * Sample code: Get Flux Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void getFluxConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigurations()
+ .getWithResponse(
+ "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "srs-fluxconfig", Context.NONE);
+ }
+}
+```
+
+### FluxConfigurations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FluxConfigurations List. */
+public final class FluxConfigurationsListSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json
+ */
+ /**
+ * Sample code: List Flux Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void listFluxConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigurations()
+ .list("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", Context.NONE);
+ }
+}
+```
+
+### FluxConfigurations_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigurationPatch;
+import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryPatchDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationPatchDefinition;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for FluxConfigurations Update. */
+public final class FluxConfigurationsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json
+ */
+ /**
+ * Sample code: Patch Flux Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void patchFluxConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .fluxConfigurations()
+ .update(
+ "rg1",
+ "Microsoft.Kubernetes",
+ "connectedClusters",
+ "clusterName1",
+ "srs-fluxconfig",
+ new FluxConfigurationPatch()
+ .withSuspend(true)
+ .withGitRepository(
+ new GitRepositoryPatchDefinition()
+ .withUrl("https://github.com/jonathan-innis/flux2-kustomize-helm-example.git"))
+ .withKustomizations(
+ mapOf(
+ "srs-kustomization1",
+ null,
+ "srs-kustomization2",
+ new KustomizationPatchDefinition()
+ .withPath("./test/alt-path")
+ .withSyncIntervalInSeconds(300L),
+ "srs-kustomization3",
+ new KustomizationPatchDefinition()
+ .withPath("./test/another-path")
+ .withSyncIntervalInSeconds(300L))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
### OperationStatus_Get
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
/** Samples for OperationStatus Get. */
public final class OperationStatusGetSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/GetAsyncOperationStatus.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json
*/
/**
- * Sample code: AsyncOperationStatus Get.
+ * Sample code: ExtensionAsyncOperationStatus Get.
*
* @param manager Entry point to SourceControlConfigurationManager.
*/
- public static void asyncOperationStatusGet(
+ public static void extensionAsyncOperationStatusGet(
com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
manager
.operationStatus()
.getWithResponse(
"rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
+ "Microsoft.Kubernetes",
+ "connectedClusters",
"clusterName1",
"ClusterMonitor",
"99999999-9999-9999-9999-999999999999",
@@ -266,13 +563,11 @@ public final class OperationStatusGetSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
/** Samples for OperationStatus List. */
public final class OperationStatusListSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/ListAsyncOperationStatus.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json
*/
/**
* Sample code: AsyncOperationStatus List.
@@ -283,12 +578,7 @@ public final class OperationStatusListSamples {
com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
manager
.operationStatus()
- .list(
- "rg1",
- ExtensionsClusterRp.MICROSOFT_KUBERNETES,
- ExtensionsClusterResourceName.CONNECTED_CLUSTERS,
- "clusterName1",
- Context.NONE);
+ .list("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", Context.NONE);
}
}
```
@@ -301,7 +591,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2021-09-01/examples/OperationsList.json
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json
*/
/**
* Sample code: BatchAccountDelete.
@@ -315,3 +605,140 @@ public final class OperationsListSamples {
}
```
+### SourceControlConfigurations_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.SourceControlConfigurationInner;
+import com.azure.resourcemanager.kubernetesconfiguration.models.HelmOperatorProperties;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SourceControlConfigurations CreateOrUpdate. */
+public final class SourceControlConfigurationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json
+ */
+ /**
+ * Sample code: Create Source Control Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void createSourceControlConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .sourceControlConfigurations()
+ .createOrUpdateWithResponse(
+ "rg1",
+ "Microsoft.Kubernetes",
+ "connectedClusters",
+ "clusterName1",
+ "SRS_GitHubConfig",
+ new SourceControlConfigurationInner()
+ .withRepositoryUrl("git@github.com:k8sdeveloper425/flux-get-started")
+ .withOperatorNamespace("SRS_Namespace")
+ .withOperatorInstanceName("SRSGitHubFluxOp-01")
+ .withOperatorType(OperatorType.FLUX)
+ .withOperatorParams("--git-email=xyzgituser@users.srs.github.com")
+ .withConfigurationProtectedSettings(mapOf("protectedSetting1Key", "protectedSetting1Value"))
+ .withOperatorScope(OperatorScopeType.NAMESPACE)
+ .withSshKnownHostsContents(
+ "c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg=")
+ .withEnableHelmOperator(true)
+ .withHelmOperatorProperties(
+ new HelmOperatorProperties()
+ .withChartVersion("0.3.0")
+ .withChartValues(
+ "--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system")),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### SourceControlConfigurations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SourceControlConfigurations Delete. */
+public final class SourceControlConfigurationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json
+ */
+ /**
+ * Sample code: Delete Source Control Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void deleteSourceControlConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .sourceControlConfigurations()
+ .delete(
+ "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "SRS_GitHubConfig", Context.NONE);
+ }
+}
+```
+
+### SourceControlConfigurations_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SourceControlConfigurations Get. */
+public final class SourceControlConfigurationsGetSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json
+ */
+ /**
+ * Sample code: Get Source Control Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void getSourceControlConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .sourceControlConfigurations()
+ .getWithResponse(
+ "rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", "SRS_GitHubConfig", Context.NONE);
+ }
+}
+```
+
+### SourceControlConfigurations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SourceControlConfigurations List. */
+public final class SourceControlConfigurationsListSamples {
+ /*
+ * x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json
+ */
+ /**
+ * Sample code: List Source Control Configuration.
+ *
+ * @param manager Entry point to SourceControlConfigurationManager.
+ */
+ public static void listSourceControlConfiguration(
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager) {
+ manager
+ .sourceControlConfigurations()
+ .list("rg1", "Microsoft.Kubernetes", "connectedClusters", "clusterName1", Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml
index 8844cf4b25a5..0d03bbcab44e 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for SourceControlConfiguration Management
- This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2021-09.
+ This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2022-03.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java
index e6f9a4b6b301..d976135efcf4 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/SourceControlConfigurationManager.java
@@ -23,12 +23,18 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.SourceControlConfigurationClient;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.ExtensionsImpl;
+import com.azure.resourcemanager.kubernetesconfiguration.implementation.FluxConfigOperationStatusImpl;
+import com.azure.resourcemanager.kubernetesconfiguration.implementation.FluxConfigurationsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.OperationStatusImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.OperationsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.implementation.SourceControlConfigurationClientBuilder;
+import com.azure.resourcemanager.kubernetesconfiguration.implementation.SourceControlConfigurationsImpl;
import com.azure.resourcemanager.kubernetesconfiguration.models.Extensions;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigOperationStatus;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigurations;
import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatus;
import com.azure.resourcemanager.kubernetesconfiguration.models.Operations;
+import com.azure.resourcemanager.kubernetesconfiguration.models.SourceControlConfigurations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -42,6 +48,12 @@ public final class SourceControlConfigurationManager {
private OperationStatus operationStatus;
+ private FluxConfigurations fluxConfigurations;
+
+ private FluxConfigOperationStatus fluxConfigOperationStatus;
+
+ private SourceControlConfigurations sourceControlConfigurations;
+
private Operations operations;
private final SourceControlConfigurationClient clientObject;
@@ -84,7 +96,7 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -158,9 +170,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -182,7 +196,7 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential
.append("-")
.append("com.azure.resourcemanager.kubernetesconfiguration")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -250,6 +264,32 @@ public OperationStatus operationStatus() {
return operationStatus;
}
+ /** @return Resource collection API of FluxConfigurations. */
+ public FluxConfigurations fluxConfigurations() {
+ if (this.fluxConfigurations == null) {
+ this.fluxConfigurations = new FluxConfigurationsImpl(clientObject.getFluxConfigurations(), this);
+ }
+ return fluxConfigurations;
+ }
+
+ /** @return Resource collection API of FluxConfigOperationStatus. */
+ public FluxConfigOperationStatus fluxConfigOperationStatus() {
+ if (this.fluxConfigOperationStatus == null) {
+ this.fluxConfigOperationStatus =
+ new FluxConfigOperationStatusImpl(clientObject.getFluxConfigOperationStatus(), this);
+ }
+ return fluxConfigOperationStatus;
+ }
+
+ /** @return Resource collection API of SourceControlConfigurations. */
+ public SourceControlConfigurations sourceControlConfigurations() {
+ if (this.sourceControlConfigurations == null) {
+ this.sourceControlConfigurations =
+ new SourceControlConfigurationsImpl(clientObject.getSourceControlConfigurations(), this);
+ }
+ return sourceControlConfigurations;
+ }
+
/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/ExtensionsClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/ExtensionsClient.java
index 160afff19a48..0643ae0f6084 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/ExtensionsClient.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/ExtensionsClient.java
@@ -12,8 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ExtensionInner;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
import com.azure.resourcemanager.kubernetesconfiguration.models.PatchExtension;
/** An instance of this class provides access to all the operations defined in ExtensionsClient. */
@@ -22,23 +20,23 @@ public interface ExtensionsClient {
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ExtensionInner> beginCreate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension);
@@ -47,10 +45,10 @@ SyncPoller, ExtensionInner> beginCreate(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -58,13 +56,13 @@ SyncPoller, ExtensionInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ExtensionInner> beginCreate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -74,10 +72,10 @@ SyncPoller, ExtensionInner> beginCreate(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -89,8 +87,8 @@ SyncPoller, ExtensionInner> beginCreate(
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionInner create(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension);
@@ -99,10 +97,10 @@ ExtensionInner create(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -115,8 +113,8 @@ ExtensionInner create(
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionInner create(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -126,10 +124,10 @@ ExtensionInner create(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -140,8 +138,8 @@ ExtensionInner create(
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionInner get(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName);
@@ -149,23 +147,23 @@ ExtensionInner get(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return kubernetes Cluster Extension.
+ * @return kubernetes Cluster Extension along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Context context);
@@ -174,23 +172,23 @@ Response getWithResponse(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete);
@@ -199,10 +197,10 @@ SyncPoller, Void> beginDelete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -210,13 +208,13 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -226,10 +224,10 @@ SyncPoller, Void> beginDelete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -240,8 +238,8 @@ SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete);
@@ -250,10 +248,10 @@ void delete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -263,8 +261,8 @@ void delete(
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName);
@@ -272,10 +270,10 @@ void delete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -287,8 +285,8 @@ void delete(
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -298,23 +296,23 @@ void delete(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ExtensionInner> beginUpdate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension);
@@ -323,10 +321,10 @@ SyncPoller, ExtensionInner> beginUpdate(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -334,13 +332,13 @@ SyncPoller, ExtensionInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ExtensionInner> beginUpdate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -350,10 +348,10 @@ SyncPoller, ExtensionInner> beginUpdate(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -365,8 +363,8 @@ SyncPoller, ExtensionInner> beginUpdate(
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionInner update(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension);
@@ -375,10 +373,10 @@ ExtensionInner update(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -391,8 +389,8 @@ ExtensionInner update(
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionInner update(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -402,43 +400,36 @@ ExtensionInner update(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName);
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName);
/**
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- Context context);
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context);
}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/FluxConfigOperationStatusClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/FluxConfigOperationStatusClient.java
new file mode 100644
index 000000000000..813fe4c5623d
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/FluxConfigOperationStatusClient.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.OperationStatusResultInner;
+
+/** An instance of this class provides access to all the operations defined in FluxConfigOperationStatusClient. */
+public interface FluxConfigOperationStatusClient {
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner get(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId);
+
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId,
+ Context context);
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/FluxConfigurationsClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/FluxConfigurationsClient.java
new file mode 100644
index 000000000000..117c7f759de5
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/FluxConfigurationsClient.java
@@ -0,0 +1,440 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.FluxConfigurationInner;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigurationPatch;
+
+/** An instance of this class provides access to all the operations defined in FluxConfigurationsClient. */
+public interface FluxConfigurationsClient {
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FluxConfigurationInner get(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName);
+
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Context context);
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FluxConfigurationInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration);
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FluxConfigurationInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context);
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FluxConfigurationInner createOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration);
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FluxConfigurationInner createOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context);
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FluxConfigurationInner> beginUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch);
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FluxConfigurationInner> beginUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context);
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FluxConfigurationInner update(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch);
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FluxConfigurationInner update(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context);
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete);
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context);
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete);
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName);
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context);
+
+ /**
+ * List all Flux Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Flux Configurations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName);
+
+ /**
+ * List all Flux Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Flux Configurations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context);
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationStatusClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationStatusClient.java
index 547e3501efaa..70a8eaa3a7dd 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationStatusClient.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationStatusClient.java
@@ -10,104 +10,95 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.OperationStatusResultInner;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
/** An instance of this class provides access to all the operations defined in OperationStatusClient. */
public interface OperationStatusClient {
/**
- * List Async Operations, currently in progress, in a cluster.
+ * Get Async Operation status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
+ * @param extensionName Name of the Extension.
+ * @param operationId operation Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the async operations in progress, in the cluster.
+ * @return async Operation status.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner get(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName);
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String extensionName,
+ String operationId);
/**
- * List Async Operations, currently in progress, in a cluster.
+ * Get Async Operation status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
+ * @param extensionName Name of the Extension.
+ * @param operationId operation Id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the async operations in progress, in the cluster.
+ * @return async Operation status along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
+ String extensionName,
+ String operationId,
Context context);
/**
- * Get Async Operation status.
+ * List Async Operations, currently in progress, in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
- * @param extensionName Name of the Extension.
- * @param operationId operation Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return async Operation status.
+ * @return the async operations in progress, in the cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner get(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- String extensionName,
- String operationId);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName);
/**
- * Get Async Operation status.
+ * List Async Operations, currently in progress, in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
- * @param extensionName Name of the Extension.
- * @param operationId operation Id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return async Operation status.
+ * @return the async operations in progress, in the cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- String extensionName,
- String operationId,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context);
}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationsClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationsClient.java
index d0a139ee34fe..eac1c3bcd193 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationsClient.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/OperationsClient.java
@@ -13,23 +13,23 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
- * List all the available operations the KubernetesConfiguration resource provider supports, in this api-version.
+ * List all the available operations the KubernetesConfiguration resource provider supports.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list operations.
+ * @return result of the request to list operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
- * List all the available operations the KubernetesConfiguration resource provider supports, in this api-version.
+ * List all the available operations the KubernetesConfiguration resource provider supports.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list operations.
+ * @return result of the request to list operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationClient.java
index 1d6bb9976587..7ec7fb22446c 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationClient.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationClient.java
@@ -58,6 +58,27 @@ public interface SourceControlConfigurationClient {
*/
OperationStatusClient getOperationStatus();
+ /**
+ * Gets the FluxConfigurationsClient object to access its operations.
+ *
+ * @return the FluxConfigurationsClient object.
+ */
+ FluxConfigurationsClient getFluxConfigurations();
+
+ /**
+ * Gets the FluxConfigOperationStatusClient object to access its operations.
+ *
+ * @return the FluxConfigOperationStatusClient object.
+ */
+ FluxConfigOperationStatusClient getFluxConfigOperationStatus();
+
+ /**
+ * Gets the SourceControlConfigurationsClient object to access its operations.
+ *
+ * @return the SourceControlConfigurationsClient object.
+ */
+ SourceControlConfigurationsClient getSourceControlConfigurations();
+
/**
* Gets the OperationsClient object to access its operations.
*
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationsClient.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationsClient.java
new file mode 100644
index 000000000000..64eb81473e4f
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/SourceControlConfigurationsClient.java
@@ -0,0 +1,254 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.SourceControlConfigurationInner;
+
+/** An instance of this class provides access to all the operations defined in SourceControlConfigurationsClient. */
+public interface SourceControlConfigurationsClient {
+ /**
+ * Gets details of the Source Control Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Source Control Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceControlConfigurationInner get(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName);
+
+ /**
+ * Gets details of the Source Control Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Source Control Configuration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName,
+ Context context);
+
+ /**
+ * Create a new Kubernetes Source Control Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SourceControl Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SourceControlConfigurationInner createOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName,
+ SourceControlConfigurationInner sourceControlConfiguration);
+
+ /**
+ * Create a new Kubernetes Source Control Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SourceControl Configuration object returned in Get & Put response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName,
+ SourceControlConfigurationInner sourceControlConfiguration,
+ Context context);
+
+ /**
+ * This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from
+ * the source repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName);
+
+ /**
+ * This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from
+ * the source repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName,
+ Context context);
+
+ /**
+ * This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from
+ * the source repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName);
+
+ /**
+ * This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from
+ * the source repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param sourceControlConfigurationName Name of the Source Control Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String sourceControlConfigurationName,
+ Context context);
+
+ /**
+ * List all Source Control Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Source Control Configurations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName);
+
+ /**
+ * List all Source Control Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Source Control Configurations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context);
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionInner.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionInner.java
index d369b735364f..1cc534408584 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionInner.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionInner.java
@@ -8,13 +8,11 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionPropertiesAksAssignedIdentity;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionStatus;
import com.azure.resourcemanager.kubernetesconfiguration.models.Identity;
import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningState;
import com.azure.resourcemanager.kubernetesconfiguration.models.Scope;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -22,8 +20,6 @@
/** The Extension object. */
@Fluent
public final class ExtensionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtensionInner.class);
-
/*
* Properties of an Extension resource
*/
@@ -158,7 +154,7 @@ public ExtensionInner withReleaseTrain(String releaseTrain) {
}
/**
- * Get the version property: Version of the extension for this extension, if it is 'pinned' to a specific version.
+ * Get the version property: User-specified version of the extension for this extension to 'pin'. To use 'version',
* autoUpgradeMinorVersion must be 'false'.
*
* @return the version value.
@@ -168,7 +164,7 @@ public String version() {
}
/**
- * Set the version property: Version of the extension for this extension, if it is 'pinned' to a specific version.
+ * Set the version property: User-specified version of the extension for this extension to 'pin'. To use 'version',
* autoUpgradeMinorVersion must be 'false'.
*
* @param version the version value to set.
@@ -256,7 +252,16 @@ public ExtensionInner withConfigurationProtectedSettings(Map con
}
/**
- * Get the provisioningState property: The provisioning state of the extension resource.
+ * Get the installedVersion property: Installed version of the extension.
+ *
+ * @return the installedVersion value.
+ */
+ public String installedVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().installedVersion();
+ }
+
+ /**
+ * Get the provisioningState property: Status of installation of this extension.
*
* @return the provisioningState value.
*/
@@ -288,7 +293,7 @@ public ExtensionInner withStatuses(List statuses) {
}
/**
- * Get the errorInfo property: The error detail.
+ * Get the errorInfo property: Error information from the Agent - e.g. errors during installation.
*
* @return the errorInfo value.
*/
@@ -296,20 +301,6 @@ public ManagementError errorInfo() {
return this.innerProperties() == null ? null : this.innerProperties().errorInfo();
}
- /**
- * Set the errorInfo property: The error detail.
- *
- * @param errorInfo the errorInfo value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withErrorInfo(ManagementError errorInfo) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withErrorInfo(errorInfo);
- return this;
- }
-
/**
* Get the customLocationSettings property: Custom Location settings properties.
*
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionProperties.java
index fde287b22390..b82bd241e078 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionProperties.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ExtensionProperties.java
@@ -6,12 +6,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionPropertiesAksAssignedIdentity;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionStatus;
import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningState;
import com.azure.resourcemanager.kubernetesconfiguration.models.Scope;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -20,8 +18,6 @@
/** Properties of an Extension resource. */
@Fluent
public final class ExtensionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtensionProperties.class);
-
/*
* Type of the Extension, of which this resource is an instance of. It
* must be one of the Extension Types registered with
@@ -45,8 +41,8 @@ public final class ExtensionProperties {
private String releaseTrain;
/*
- * Version of the extension for this extension, if it is 'pinned' to a
- * specific version. autoUpgradeMinorVersion must be 'false'.
+ * User-specified version of the extension for this extension to 'pin'. To
+ * use 'version', autoUpgradeMinorVersion must be 'false'.
*/
@JsonProperty(value = "version")
private String version;
@@ -74,7 +70,13 @@ public final class ExtensionProperties {
private Map configurationProtectedSettings;
/*
- * The provisioning state of the extension resource.
+ * Installed version of the extension.
+ */
+ @JsonProperty(value = "installedVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String installedVersion;
+
+ /*
+ * Status of installation of this extension.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
@@ -86,9 +88,9 @@ public final class ExtensionProperties {
private List statuses;
/*
- * The error detail.
+ * Error information from the Agent - e.g. errors during installation.
*/
- @JsonProperty(value = "errorInfo")
+ @JsonProperty(value = "errorInfo", access = JsonProperty.Access.WRITE_ONLY)
private ManagementError errorInfo;
/*
@@ -177,7 +179,7 @@ public ExtensionProperties withReleaseTrain(String releaseTrain) {
}
/**
- * Get the version property: Version of the extension for this extension, if it is 'pinned' to a specific version.
+ * Get the version property: User-specified version of the extension for this extension to 'pin'. To use 'version',
* autoUpgradeMinorVersion must be 'false'.
*
* @return the version value.
@@ -187,7 +189,7 @@ public String version() {
}
/**
- * Set the version property: Version of the extension for this extension, if it is 'pinned' to a specific version.
+ * Set the version property: User-specified version of the extension for this extension to 'pin'. To use 'version',
* autoUpgradeMinorVersion must be 'false'.
*
* @param version the version value to set.
@@ -263,7 +265,16 @@ public ExtensionProperties withConfigurationProtectedSettings(Map statuses) {
}
/**
- * Get the errorInfo property: The error detail.
+ * Get the errorInfo property: Error information from the Agent - e.g. errors during installation.
*
* @return the errorInfo value.
*/
@@ -300,17 +311,6 @@ public ManagementError errorInfo() {
return this.errorInfo;
}
- /**
- * Set the errorInfo property: The error detail.
- *
- * @param errorInfo the errorInfo value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withErrorInfo(ManagementError errorInfo) {
- this.errorInfo = errorInfo;
- return this;
- }
-
/**
* Get the customLocationSettings property: Custom Location settings properties.
*
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java
new file mode 100644
index 000000000000..b3b652c0a87d
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationInner.java
@@ -0,0 +1,336 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState;
+import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectStatusDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningState;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.SourceKindType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** The Flux Configuration object returned in Get & Put response. */
+@Fluent
+public final class FluxConfigurationInner extends ProxyResource {
+ /*
+ * Properties to create a Flux Configuration resource
+ */
+ @JsonProperty(value = "properties")
+ private FluxConfigurationProperties innerProperties;
+
+ /*
+ * Top level metadata
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties to create a Flux Configuration resource.
+ *
+ * @return the innerProperties value.
+ */
+ private FluxConfigurationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Top level metadata
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the scope property: Scope at which the operator will be installed.
+ *
+ * @return the scope value.
+ */
+ public ScopeType scope() {
+ return this.innerProperties() == null ? null : this.innerProperties().scope();
+ }
+
+ /**
+ * Set the scope property: Scope at which the operator will be installed.
+ *
+ * @param scope the scope value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withScope(ScopeType scope) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withScope(scope);
+ return this;
+ }
+
+ /**
+ * Get the namespace property: The namespace to which this configuration is installed to. Maximum of 253 lower case
+ * alphanumeric characters, hyphen and period only.
+ *
+ * @return the namespace value.
+ */
+ public String namespace() {
+ return this.innerProperties() == null ? null : this.innerProperties().namespace();
+ }
+
+ /**
+ * Set the namespace property: The namespace to which this configuration is installed to. Maximum of 253 lower case
+ * alphanumeric characters, hyphen and period only.
+ *
+ * @param namespace the namespace value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withNamespace(String namespace) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withNamespace(namespace);
+ return this;
+ }
+
+ /**
+ * Get the sourceKind property: Source Kind to pull the configuration data from.
+ *
+ * @return the sourceKind value.
+ */
+ public SourceKindType sourceKind() {
+ return this.innerProperties() == null ? null : this.innerProperties().sourceKind();
+ }
+
+ /**
+ * Set the sourceKind property: Source Kind to pull the configuration data from.
+ *
+ * @param sourceKind the sourceKind value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withSourceKind(SourceKindType sourceKind) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withSourceKind(sourceKind);
+ return this;
+ }
+
+ /**
+ * Get the suspend property: Whether this configuration should suspend its reconciliation of its kustomizations and
+ * sources.
+ *
+ * @return the suspend value.
+ */
+ public Boolean suspend() {
+ return this.innerProperties() == null ? null : this.innerProperties().suspend();
+ }
+
+ /**
+ * Set the suspend property: Whether this configuration should suspend its reconciliation of its kustomizations and
+ * sources.
+ *
+ * @param suspend the suspend value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withSuspend(Boolean suspend) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withSuspend(suspend);
+ return this;
+ }
+
+ /**
+ * Get the gitRepository property: Parameters to reconcile to the GitRepository source kind type.
+ *
+ * @return the gitRepository value.
+ */
+ public GitRepositoryDefinition gitRepository() {
+ return this.innerProperties() == null ? null : this.innerProperties().gitRepository();
+ }
+
+ /**
+ * Set the gitRepository property: Parameters to reconcile to the GitRepository source kind type.
+ *
+ * @param gitRepository the gitRepository value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withGitRepository(GitRepositoryDefinition gitRepository) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withGitRepository(gitRepository);
+ return this;
+ }
+
+ /**
+ * Get the bucket property: Parameters to reconcile to the Bucket source kind type.
+ *
+ * @return the bucket value.
+ */
+ public BucketDefinition bucket() {
+ return this.innerProperties() == null ? null : this.innerProperties().bucket();
+ }
+
+ /**
+ * Set the bucket property: Parameters to reconcile to the Bucket source kind type.
+ *
+ * @param bucket the bucket value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withBucket(BucketDefinition bucket) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withBucket(bucket);
+ return this;
+ }
+
+ /**
+ * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type
+ * on the cluster.
+ *
+ * @return the kustomizations value.
+ */
+ public Map kustomizations() {
+ return this.innerProperties() == null ? null : this.innerProperties().kustomizations();
+ }
+
+ /**
+ * Set the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type
+ * on the cluster.
+ *
+ * @param kustomizations the kustomizations value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withKustomizations(Map kustomizations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withKustomizations(kustomizations);
+ return this;
+ }
+
+ /**
+ * Get the configurationProtectedSettings property: Key-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @return the configurationProtectedSettings value.
+ */
+ public Map configurationProtectedSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().configurationProtectedSettings();
+ }
+
+ /**
+ * Set the configurationProtectedSettings property: Key-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @param configurationProtectedSettings the configurationProtectedSettings value to set.
+ * @return the FluxConfigurationInner object itself.
+ */
+ public FluxConfigurationInner withConfigurationProtectedSettings(
+ Map configurationProtectedSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FluxConfigurationProperties();
+ }
+ this.innerProperties().withConfigurationProtectedSettings(configurationProtectedSettings);
+ return this;
+ }
+
+ /**
+ * Get the statuses property: Statuses of the Flux Kubernetes resources created by the fluxConfiguration or created
+ * by the managed objects provisioned by the fluxConfiguration.
+ *
+ * @return the statuses value.
+ */
+ public List statuses() {
+ return this.innerProperties() == null ? null : this.innerProperties().statuses();
+ }
+
+ /**
+ * Get the repositoryPublicKey property: Public Key associated with this fluxConfiguration (either generated within
+ * the cluster or provided by the user).
+ *
+ * @return the repositoryPublicKey value.
+ */
+ public String repositoryPublicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().repositoryPublicKey();
+ }
+
+ /**
+ * Get the sourceSyncedCommitId property: Branch and/or SHA of the source commit synced with the cluster.
+ *
+ * @return the sourceSyncedCommitId value.
+ */
+ public String sourceSyncedCommitId() {
+ return this.innerProperties() == null ? null : this.innerProperties().sourceSyncedCommitId();
+ }
+
+ /**
+ * Get the sourceUpdatedAt property: Datetime the fluxConfiguration synced its source on the cluster.
+ *
+ * @return the sourceUpdatedAt value.
+ */
+ public OffsetDateTime sourceUpdatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().sourceUpdatedAt();
+ }
+
+ /**
+ * Get the statusUpdatedAt property: Datetime the fluxConfiguration synced its status on the cluster with Azure.
+ *
+ * @return the statusUpdatedAt value.
+ */
+ public OffsetDateTime statusUpdatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().statusUpdatedAt();
+ }
+
+ /**
+ * Get the complianceState property: Combined status of the Flux Kubernetes resources created by the
+ * fluxConfiguration or created by the managed objects.
+ *
+ * @return the complianceState value.
+ */
+ public FluxComplianceState complianceState() {
+ return this.innerProperties() == null ? null : this.innerProperties().complianceState();
+ }
+
+ /**
+ * Get the provisioningState property: Status of the creation of the fluxConfiguration.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the errorMessage property: Error message returned to the user in the case of provisioning failure.
+ *
+ * @return the errorMessage value.
+ */
+ public String errorMessage() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorMessage();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java
new file mode 100644
index 000000000000..11753307766a
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationPatchProperties.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.kubernetesconfiguration.models.BucketPatchDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryPatchDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationPatchDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.SourceKindType;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Updatable properties of an Flux Configuration Patch Request. */
+@Fluent
+public final class FluxConfigurationPatchProperties {
+ /*
+ * Source Kind to pull the configuration data from.
+ */
+ @JsonProperty(value = "sourceKind")
+ private SourceKindType sourceKind;
+
+ /*
+ * Whether this configuration should suspend its reconciliation of its
+ * kustomizations and sources.
+ */
+ @JsonProperty(value = "suspend")
+ private Boolean suspend;
+
+ /*
+ * Parameters to reconcile to the GitRepository source kind type.
+ */
+ @JsonProperty(value = "gitRepository")
+ private GitRepositoryPatchDefinition gitRepository;
+
+ /*
+ * Parameters to reconcile to the Bucket source kind type.
+ */
+ @JsonProperty(value = "bucket")
+ private BucketPatchDefinition bucket;
+
+ /*
+ * Array of kustomizations used to reconcile the artifact pulled by the
+ * source type on the cluster.
+ */
+ @JsonProperty(value = "kustomizations")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map kustomizations;
+
+ /*
+ * Key-value pairs of protected configuration settings for the
+ * configuration
+ */
+ @JsonProperty(value = "configurationProtectedSettings")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map configurationProtectedSettings;
+
+ /**
+ * Get the sourceKind property: Source Kind to pull the configuration data from.
+ *
+ * @return the sourceKind value.
+ */
+ public SourceKindType sourceKind() {
+ return this.sourceKind;
+ }
+
+ /**
+ * Set the sourceKind property: Source Kind to pull the configuration data from.
+ *
+ * @param sourceKind the sourceKind value to set.
+ * @return the FluxConfigurationPatchProperties object itself.
+ */
+ public FluxConfigurationPatchProperties withSourceKind(SourceKindType sourceKind) {
+ this.sourceKind = sourceKind;
+ return this;
+ }
+
+ /**
+ * Get the suspend property: Whether this configuration should suspend its reconciliation of its kustomizations and
+ * sources.
+ *
+ * @return the suspend value.
+ */
+ public Boolean suspend() {
+ return this.suspend;
+ }
+
+ /**
+ * Set the suspend property: Whether this configuration should suspend its reconciliation of its kustomizations and
+ * sources.
+ *
+ * @param suspend the suspend value to set.
+ * @return the FluxConfigurationPatchProperties object itself.
+ */
+ public FluxConfigurationPatchProperties withSuspend(Boolean suspend) {
+ this.suspend = suspend;
+ return this;
+ }
+
+ /**
+ * Get the gitRepository property: Parameters to reconcile to the GitRepository source kind type.
+ *
+ * @return the gitRepository value.
+ */
+ public GitRepositoryPatchDefinition gitRepository() {
+ return this.gitRepository;
+ }
+
+ /**
+ * Set the gitRepository property: Parameters to reconcile to the GitRepository source kind type.
+ *
+ * @param gitRepository the gitRepository value to set.
+ * @return the FluxConfigurationPatchProperties object itself.
+ */
+ public FluxConfigurationPatchProperties withGitRepository(GitRepositoryPatchDefinition gitRepository) {
+ this.gitRepository = gitRepository;
+ return this;
+ }
+
+ /**
+ * Get the bucket property: Parameters to reconcile to the Bucket source kind type.
+ *
+ * @return the bucket value.
+ */
+ public BucketPatchDefinition bucket() {
+ return this.bucket;
+ }
+
+ /**
+ * Set the bucket property: Parameters to reconcile to the Bucket source kind type.
+ *
+ * @param bucket the bucket value to set.
+ * @return the FluxConfigurationPatchProperties object itself.
+ */
+ public FluxConfigurationPatchProperties withBucket(BucketPatchDefinition bucket) {
+ this.bucket = bucket;
+ return this;
+ }
+
+ /**
+ * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type
+ * on the cluster.
+ *
+ * @return the kustomizations value.
+ */
+ public Map kustomizations() {
+ return this.kustomizations;
+ }
+
+ /**
+ * Set the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type
+ * on the cluster.
+ *
+ * @param kustomizations the kustomizations value to set.
+ * @return the FluxConfigurationPatchProperties object itself.
+ */
+ public FluxConfigurationPatchProperties withKustomizations(
+ Map kustomizations) {
+ this.kustomizations = kustomizations;
+ return this;
+ }
+
+ /**
+ * Get the configurationProtectedSettings property: Key-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @return the configurationProtectedSettings value.
+ */
+ public Map configurationProtectedSettings() {
+ return this.configurationProtectedSettings;
+ }
+
+ /**
+ * Set the configurationProtectedSettings property: Key-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @param configurationProtectedSettings the configurationProtectedSettings value to set.
+ * @return the FluxConfigurationPatchProperties object itself.
+ */
+ public FluxConfigurationPatchProperties withConfigurationProtectedSettings(
+ Map configurationProtectedSettings) {
+ this.configurationProtectedSettings = configurationProtectedSettings;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (gitRepository() != null) {
+ gitRepository().validate();
+ }
+ if (bucket() != null) {
+ bucket().validate();
+ }
+ if (kustomizations() != null) {
+ kustomizations()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java
new file mode 100644
index 000000000000..4b0c1fbfaf12
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/FluxConfigurationProperties.java
@@ -0,0 +1,402 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState;
+import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectStatusDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningState;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.SourceKindType;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Properties to create a Flux Configuration resource. */
+@Fluent
+public final class FluxConfigurationProperties {
+ /*
+ * Scope at which the operator will be installed.
+ */
+ @JsonProperty(value = "scope")
+ private ScopeType scope;
+
+ /*
+ * The namespace to which this configuration is installed to. Maximum of
+ * 253 lower case alphanumeric characters, hyphen and period only.
+ */
+ @JsonProperty(value = "namespace")
+ private String namespace;
+
+ /*
+ * Source Kind to pull the configuration data from.
+ */
+ @JsonProperty(value = "sourceKind")
+ private SourceKindType sourceKind;
+
+ /*
+ * Whether this configuration should suspend its reconciliation of its
+ * kustomizations and sources.
+ */
+ @JsonProperty(value = "suspend")
+ private Boolean suspend;
+
+ /*
+ * Parameters to reconcile to the GitRepository source kind type.
+ */
+ @JsonProperty(value = "gitRepository")
+ private GitRepositoryDefinition gitRepository;
+
+ /*
+ * Parameters to reconcile to the Bucket source kind type.
+ */
+ @JsonProperty(value = "bucket")
+ private BucketDefinition bucket;
+
+ /*
+ * Array of kustomizations used to reconcile the artifact pulled by the
+ * source type on the cluster.
+ */
+ @JsonProperty(value = "kustomizations")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map kustomizations;
+
+ /*
+ * Key-value pairs of protected configuration settings for the
+ * configuration
+ */
+ @JsonProperty(value = "configurationProtectedSettings")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map configurationProtectedSettings;
+
+ /*
+ * Statuses of the Flux Kubernetes resources created by the
+ * fluxConfiguration or created by the managed objects provisioned by the
+ * fluxConfiguration.
+ */
+ @JsonProperty(value = "statuses", access = JsonProperty.Access.WRITE_ONLY)
+ private List statuses;
+
+ /*
+ * Public Key associated with this fluxConfiguration (either generated
+ * within the cluster or provided by the user).
+ */
+ @JsonProperty(value = "repositoryPublicKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String repositoryPublicKey;
+
+ /*
+ * Branch and/or SHA of the source commit synced with the cluster.
+ */
+ @JsonProperty(value = "sourceSyncedCommitId", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceSyncedCommitId;
+
+ /*
+ * Datetime the fluxConfiguration synced its source on the cluster.
+ */
+ @JsonProperty(value = "sourceUpdatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime sourceUpdatedAt;
+
+ /*
+ * Datetime the fluxConfiguration synced its status on the cluster with
+ * Azure.
+ */
+ @JsonProperty(value = "statusUpdatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime statusUpdatedAt;
+
+ /*
+ * Combined status of the Flux Kubernetes resources created by the
+ * fluxConfiguration or created by the managed objects.
+ */
+ @JsonProperty(value = "complianceState", access = JsonProperty.Access.WRITE_ONLY)
+ private FluxComplianceState complianceState;
+
+ /*
+ * Status of the creation of the fluxConfiguration.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Error message returned to the user in the case of provisioning failure.
+ */
+ @JsonProperty(value = "errorMessage", access = JsonProperty.Access.WRITE_ONLY)
+ private String errorMessage;
+
+ /**
+ * Get the scope property: Scope at which the operator will be installed.
+ *
+ * @return the scope value.
+ */
+ public ScopeType scope() {
+ return this.scope;
+ }
+
+ /**
+ * Set the scope property: Scope at which the operator will be installed.
+ *
+ * @param scope the scope value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withScope(ScopeType scope) {
+ this.scope = scope;
+ return this;
+ }
+
+ /**
+ * Get the namespace property: The namespace to which this configuration is installed to. Maximum of 253 lower case
+ * alphanumeric characters, hyphen and period only.
+ *
+ * @return the namespace value.
+ */
+ public String namespace() {
+ return this.namespace;
+ }
+
+ /**
+ * Set the namespace property: The namespace to which this configuration is installed to. Maximum of 253 lower case
+ * alphanumeric characters, hyphen and period only.
+ *
+ * @param namespace the namespace value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withNamespace(String namespace) {
+ this.namespace = namespace;
+ return this;
+ }
+
+ /**
+ * Get the sourceKind property: Source Kind to pull the configuration data from.
+ *
+ * @return the sourceKind value.
+ */
+ public SourceKindType sourceKind() {
+ return this.sourceKind;
+ }
+
+ /**
+ * Set the sourceKind property: Source Kind to pull the configuration data from.
+ *
+ * @param sourceKind the sourceKind value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withSourceKind(SourceKindType sourceKind) {
+ this.sourceKind = sourceKind;
+ return this;
+ }
+
+ /**
+ * Get the suspend property: Whether this configuration should suspend its reconciliation of its kustomizations and
+ * sources.
+ *
+ * @return the suspend value.
+ */
+ public Boolean suspend() {
+ return this.suspend;
+ }
+
+ /**
+ * Set the suspend property: Whether this configuration should suspend its reconciliation of its kustomizations and
+ * sources.
+ *
+ * @param suspend the suspend value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withSuspend(Boolean suspend) {
+ this.suspend = suspend;
+ return this;
+ }
+
+ /**
+ * Get the gitRepository property: Parameters to reconcile to the GitRepository source kind type.
+ *
+ * @return the gitRepository value.
+ */
+ public GitRepositoryDefinition gitRepository() {
+ return this.gitRepository;
+ }
+
+ /**
+ * Set the gitRepository property: Parameters to reconcile to the GitRepository source kind type.
+ *
+ * @param gitRepository the gitRepository value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withGitRepository(GitRepositoryDefinition gitRepository) {
+ this.gitRepository = gitRepository;
+ return this;
+ }
+
+ /**
+ * Get the bucket property: Parameters to reconcile to the Bucket source kind type.
+ *
+ * @return the bucket value.
+ */
+ public BucketDefinition bucket() {
+ return this.bucket;
+ }
+
+ /**
+ * Set the bucket property: Parameters to reconcile to the Bucket source kind type.
+ *
+ * @param bucket the bucket value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withBucket(BucketDefinition bucket) {
+ this.bucket = bucket;
+ return this;
+ }
+
+ /**
+ * Get the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type
+ * on the cluster.
+ *
+ * @return the kustomizations value.
+ */
+ public Map kustomizations() {
+ return this.kustomizations;
+ }
+
+ /**
+ * Set the kustomizations property: Array of kustomizations used to reconcile the artifact pulled by the source type
+ * on the cluster.
+ *
+ * @param kustomizations the kustomizations value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withKustomizations(Map kustomizations) {
+ this.kustomizations = kustomizations;
+ return this;
+ }
+
+ /**
+ * Get the configurationProtectedSettings property: Key-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @return the configurationProtectedSettings value.
+ */
+ public Map configurationProtectedSettings() {
+ return this.configurationProtectedSettings;
+ }
+
+ /**
+ * Set the configurationProtectedSettings property: Key-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @param configurationProtectedSettings the configurationProtectedSettings value to set.
+ * @return the FluxConfigurationProperties object itself.
+ */
+ public FluxConfigurationProperties withConfigurationProtectedSettings(
+ Map configurationProtectedSettings) {
+ this.configurationProtectedSettings = configurationProtectedSettings;
+ return this;
+ }
+
+ /**
+ * Get the statuses property: Statuses of the Flux Kubernetes resources created by the fluxConfiguration or created
+ * by the managed objects provisioned by the fluxConfiguration.
+ *
+ * @return the statuses value.
+ */
+ public List statuses() {
+ return this.statuses;
+ }
+
+ /**
+ * Get the repositoryPublicKey property: Public Key associated with this fluxConfiguration (either generated within
+ * the cluster or provided by the user).
+ *
+ * @return the repositoryPublicKey value.
+ */
+ public String repositoryPublicKey() {
+ return this.repositoryPublicKey;
+ }
+
+ /**
+ * Get the sourceSyncedCommitId property: Branch and/or SHA of the source commit synced with the cluster.
+ *
+ * @return the sourceSyncedCommitId value.
+ */
+ public String sourceSyncedCommitId() {
+ return this.sourceSyncedCommitId;
+ }
+
+ /**
+ * Get the sourceUpdatedAt property: Datetime the fluxConfiguration synced its source on the cluster.
+ *
+ * @return the sourceUpdatedAt value.
+ */
+ public OffsetDateTime sourceUpdatedAt() {
+ return this.sourceUpdatedAt;
+ }
+
+ /**
+ * Get the statusUpdatedAt property: Datetime the fluxConfiguration synced its status on the cluster with Azure.
+ *
+ * @return the statusUpdatedAt value.
+ */
+ public OffsetDateTime statusUpdatedAt() {
+ return this.statusUpdatedAt;
+ }
+
+ /**
+ * Get the complianceState property: Combined status of the Flux Kubernetes resources created by the
+ * fluxConfiguration or created by the managed objects.
+ *
+ * @return the complianceState value.
+ */
+ public FluxComplianceState complianceState() {
+ return this.complianceState;
+ }
+
+ /**
+ * Get the provisioningState property: Status of the creation of the fluxConfiguration.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the errorMessage property: Error message returned to the user in the case of provisioning failure.
+ *
+ * @return the errorMessage value.
+ */
+ public String errorMessage() {
+ return this.errorMessage;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (gitRepository() != null) {
+ gitRepository().validate();
+ }
+ if (bucket() != null) {
+ bucket().validate();
+ }
+ if (kustomizations() != null) {
+ kustomizations()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (statuses() != null) {
+ statuses().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/OperationStatusResultInner.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/OperationStatusResultInner.java
index 1043a72b8346..a7a34a1ffc18 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/OperationStatusResultInner.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/OperationStatusResultInner.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -15,8 +14,6 @@
/** The current status of an async operation. */
@Fluent
public final class OperationStatusResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationStatusResultInner.class);
-
/*
* Fully qualified ID for the async operation.
*/
@@ -43,9 +40,9 @@ public final class OperationStatusResultInner {
private Map properties;
/*
- * The error detail.
+ * If present, details of the operation error.
*/
- @JsonProperty(value = "error")
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
private ManagementError error;
/**
@@ -129,7 +126,7 @@ public OperationStatusResultInner withProperties(Map properties)
}
/**
- * Get the error property: The error detail.
+ * Get the error property: If present, details of the operation error.
*
* @return the error value.
*/
@@ -137,17 +134,6 @@ public ManagementError error() {
return this.error;
}
- /**
- * Set the error property: The error detail.
- *
- * @param error the error value to set.
- * @return the OperationStatusResultInner object itself.
- */
- public OperationStatusResultInner withError(ManagementError error) {
- this.error = error;
- return this;
- }
-
/**
* Validates the instance.
*
@@ -155,10 +141,12 @@ public OperationStatusResultInner withError(ManagementError error) {
*/
public void validate() {
if (status() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property status in model OperationStatusResultInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(OperationStatusResultInner.class);
}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/PatchExtensionProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/PatchExtensionProperties.java
index b2fee0978b48..681a2550def6 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/PatchExtensionProperties.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/PatchExtensionProperties.java
@@ -5,8 +5,6 @@
package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -14,8 +12,6 @@
/** Updatable properties of an Extension Patch Request. */
@Fluent
public final class PatchExtensionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PatchExtensionProperties.class);
-
/*
* Flag to note if this extension participates in auto upgrade of minor
* version, or not.
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ResourceProviderOperationInner.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ResourceProviderOperationInner.java
index 53b9ac6ead5d..de7b5ec6590f 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ResourceProviderOperationInner.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/ResourceProviderOperationInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.kubernetesconfiguration.models.ResourceProviderOperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Supported operation of this resource provider. */
@Fluent
public final class ResourceProviderOperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceProviderOperationInner.class);
-
/*
* Operation name, in format of {provider}/{resource}/{operation}
*/
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/SourceControlConfigurationInner.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/SourceControlConfigurationInner.java
new file mode 100644
index 000000000000..241ab0e5494d
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/SourceControlConfigurationInner.java
@@ -0,0 +1,328 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ComplianceStatus;
+import com.azure.resourcemanager.kubernetesconfiguration.models.HelmOperatorProperties;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningStateType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The SourceControl Configuration object returned in Get & Put response. */
+@Fluent
+public final class SourceControlConfigurationInner extends ProxyResource {
+ /*
+ * Properties to create a Source Control Configuration resource
+ */
+ @JsonProperty(value = "properties")
+ private SourceControlConfigurationProperties innerProperties;
+
+ /*
+ * Top level metadata
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties to create a Source Control Configuration resource.
+ *
+ * @return the innerProperties value.
+ */
+ private SourceControlConfigurationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Top level metadata
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the repositoryUrl property: Url of the SourceControl Repository.
+ *
+ * @return the repositoryUrl value.
+ */
+ public String repositoryUrl() {
+ return this.innerProperties() == null ? null : this.innerProperties().repositoryUrl();
+ }
+
+ /**
+ * Set the repositoryUrl property: Url of the SourceControl Repository.
+ *
+ * @param repositoryUrl the repositoryUrl value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withRepositoryUrl(String repositoryUrl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withRepositoryUrl(repositoryUrl);
+ return this;
+ }
+
+ /**
+ * Get the operatorNamespace property: The namespace to which this operator is installed to. Maximum of 253 lower
+ * case alphanumeric characters, hyphen and period only.
+ *
+ * @return the operatorNamespace value.
+ */
+ public String operatorNamespace() {
+ return this.innerProperties() == null ? null : this.innerProperties().operatorNamespace();
+ }
+
+ /**
+ * Set the operatorNamespace property: The namespace to which this operator is installed to. Maximum of 253 lower
+ * case alphanumeric characters, hyphen and period only.
+ *
+ * @param operatorNamespace the operatorNamespace value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withOperatorNamespace(String operatorNamespace) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withOperatorNamespace(operatorNamespace);
+ return this;
+ }
+
+ /**
+ * Get the operatorInstanceName property: Instance name of the operator - identifying the specific configuration.
+ *
+ * @return the operatorInstanceName value.
+ */
+ public String operatorInstanceName() {
+ return this.innerProperties() == null ? null : this.innerProperties().operatorInstanceName();
+ }
+
+ /**
+ * Set the operatorInstanceName property: Instance name of the operator - identifying the specific configuration.
+ *
+ * @param operatorInstanceName the operatorInstanceName value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withOperatorInstanceName(String operatorInstanceName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withOperatorInstanceName(operatorInstanceName);
+ return this;
+ }
+
+ /**
+ * Get the operatorType property: Type of the operator.
+ *
+ * @return the operatorType value.
+ */
+ public OperatorType operatorType() {
+ return this.innerProperties() == null ? null : this.innerProperties().operatorType();
+ }
+
+ /**
+ * Set the operatorType property: Type of the operator.
+ *
+ * @param operatorType the operatorType value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withOperatorType(OperatorType operatorType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withOperatorType(operatorType);
+ return this;
+ }
+
+ /**
+ * Get the operatorParams property: Any Parameters for the Operator instance in string format.
+ *
+ * @return the operatorParams value.
+ */
+ public String operatorParams() {
+ return this.innerProperties() == null ? null : this.innerProperties().operatorParams();
+ }
+
+ /**
+ * Set the operatorParams property: Any Parameters for the Operator instance in string format.
+ *
+ * @param operatorParams the operatorParams value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withOperatorParams(String operatorParams) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withOperatorParams(operatorParams);
+ return this;
+ }
+
+ /**
+ * Get the configurationProtectedSettings property: Name-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @return the configurationProtectedSettings value.
+ */
+ public Map configurationProtectedSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().configurationProtectedSettings();
+ }
+
+ /**
+ * Set the configurationProtectedSettings property: Name-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @param configurationProtectedSettings the configurationProtectedSettings value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withConfigurationProtectedSettings(
+ Map configurationProtectedSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withConfigurationProtectedSettings(configurationProtectedSettings);
+ return this;
+ }
+
+ /**
+ * Get the operatorScope property: Scope at which the operator will be installed.
+ *
+ * @return the operatorScope value.
+ */
+ public OperatorScopeType operatorScope() {
+ return this.innerProperties() == null ? null : this.innerProperties().operatorScope();
+ }
+
+ /**
+ * Set the operatorScope property: Scope at which the operator will be installed.
+ *
+ * @param operatorScope the operatorScope value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withOperatorScope(OperatorScopeType operatorScope) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withOperatorScope(operatorScope);
+ return this;
+ }
+
+ /**
+ * Get the repositoryPublicKey property: Public Key associated with this SourceControl configuration (either
+ * generated within the cluster or provided by the user).
+ *
+ * @return the repositoryPublicKey value.
+ */
+ public String repositoryPublicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().repositoryPublicKey();
+ }
+
+ /**
+ * Get the sshKnownHostsContents property: Base64-encoded known_hosts contents containing public SSH keys required
+ * to access private Git instances.
+ *
+ * @return the sshKnownHostsContents value.
+ */
+ public String sshKnownHostsContents() {
+ return this.innerProperties() == null ? null : this.innerProperties().sshKnownHostsContents();
+ }
+
+ /**
+ * Set the sshKnownHostsContents property: Base64-encoded known_hosts contents containing public SSH keys required
+ * to access private Git instances.
+ *
+ * @param sshKnownHostsContents the sshKnownHostsContents value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withSshKnownHostsContents(String sshKnownHostsContents) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withSshKnownHostsContents(sshKnownHostsContents);
+ return this;
+ }
+
+ /**
+ * Get the enableHelmOperator property: Option to enable Helm Operator for this git configuration.
+ *
+ * @return the enableHelmOperator value.
+ */
+ public Boolean enableHelmOperator() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableHelmOperator();
+ }
+
+ /**
+ * Set the enableHelmOperator property: Option to enable Helm Operator for this git configuration.
+ *
+ * @param enableHelmOperator the enableHelmOperator value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withEnableHelmOperator(Boolean enableHelmOperator) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withEnableHelmOperator(enableHelmOperator);
+ return this;
+ }
+
+ /**
+ * Get the helmOperatorProperties property: Properties for Helm operator.
+ *
+ * @return the helmOperatorProperties value.
+ */
+ public HelmOperatorProperties helmOperatorProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().helmOperatorProperties();
+ }
+
+ /**
+ * Set the helmOperatorProperties property: Properties for Helm operator.
+ *
+ * @param helmOperatorProperties the helmOperatorProperties value to set.
+ * @return the SourceControlConfigurationInner object itself.
+ */
+ public SourceControlConfigurationInner withHelmOperatorProperties(HelmOperatorProperties helmOperatorProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SourceControlConfigurationProperties();
+ }
+ this.innerProperties().withHelmOperatorProperties(helmOperatorProperties);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the resource provider.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateType provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the complianceStatus property: Compliance Status of the Configuration.
+ *
+ * @return the complianceStatus value.
+ */
+ public ComplianceStatus complianceStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().complianceStatus();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/SourceControlConfigurationProperties.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/SourceControlConfigurationProperties.java
new file mode 100644
index 000000000000..0415bff3cf90
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/fluent/models/SourceControlConfigurationProperties.java
@@ -0,0 +1,352 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ComplianceStatus;
+import com.azure.resourcemanager.kubernetesconfiguration.models.HelmOperatorProperties;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperatorType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningStateType;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Properties to create a Source Control Configuration resource. */
+@Fluent
+public final class SourceControlConfigurationProperties {
+ /*
+ * Url of the SourceControl Repository.
+ */
+ @JsonProperty(value = "repositoryUrl")
+ private String repositoryUrl;
+
+ /*
+ * The namespace to which this operator is installed to. Maximum of 253
+ * lower case alphanumeric characters, hyphen and period only.
+ */
+ @JsonProperty(value = "operatorNamespace")
+ private String operatorNamespace;
+
+ /*
+ * Instance name of the operator - identifying the specific configuration.
+ */
+ @JsonProperty(value = "operatorInstanceName")
+ private String operatorInstanceName;
+
+ /*
+ * Type of the operator
+ */
+ @JsonProperty(value = "operatorType")
+ private OperatorType operatorType;
+
+ /*
+ * Any Parameters for the Operator instance in string format.
+ */
+ @JsonProperty(value = "operatorParams")
+ private String operatorParams;
+
+ /*
+ * Name-value pairs of protected configuration settings for the
+ * configuration
+ */
+ @JsonProperty(value = "configurationProtectedSettings")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map configurationProtectedSettings;
+
+ /*
+ * Scope at which the operator will be installed.
+ */
+ @JsonProperty(value = "operatorScope")
+ private OperatorScopeType operatorScope;
+
+ /*
+ * Public Key associated with this SourceControl configuration (either
+ * generated within the cluster or provided by the user).
+ */
+ @JsonProperty(value = "repositoryPublicKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String repositoryPublicKey;
+
+ /*
+ * Base64-encoded known_hosts contents containing public SSH keys required
+ * to access private Git instances
+ */
+ @JsonProperty(value = "sshKnownHostsContents")
+ private String sshKnownHostsContents;
+
+ /*
+ * Option to enable Helm Operator for this git configuration.
+ */
+ @JsonProperty(value = "enableHelmOperator")
+ private Boolean enableHelmOperator;
+
+ /*
+ * Properties for Helm operator.
+ */
+ @JsonProperty(value = "helmOperatorProperties")
+ private HelmOperatorProperties helmOperatorProperties;
+
+ /*
+ * The provisioning state of the resource provider.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateType provisioningState;
+
+ /*
+ * Compliance Status of the Configuration
+ */
+ @JsonProperty(value = "complianceStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ComplianceStatus complianceStatus;
+
+ /**
+ * Get the repositoryUrl property: Url of the SourceControl Repository.
+ *
+ * @return the repositoryUrl value.
+ */
+ public String repositoryUrl() {
+ return this.repositoryUrl;
+ }
+
+ /**
+ * Set the repositoryUrl property: Url of the SourceControl Repository.
+ *
+ * @param repositoryUrl the repositoryUrl value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withRepositoryUrl(String repositoryUrl) {
+ this.repositoryUrl = repositoryUrl;
+ return this;
+ }
+
+ /**
+ * Get the operatorNamespace property: The namespace to which this operator is installed to. Maximum of 253 lower
+ * case alphanumeric characters, hyphen and period only.
+ *
+ * @return the operatorNamespace value.
+ */
+ public String operatorNamespace() {
+ return this.operatorNamespace;
+ }
+
+ /**
+ * Set the operatorNamespace property: The namespace to which this operator is installed to. Maximum of 253 lower
+ * case alphanumeric characters, hyphen and period only.
+ *
+ * @param operatorNamespace the operatorNamespace value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withOperatorNamespace(String operatorNamespace) {
+ this.operatorNamespace = operatorNamespace;
+ return this;
+ }
+
+ /**
+ * Get the operatorInstanceName property: Instance name of the operator - identifying the specific configuration.
+ *
+ * @return the operatorInstanceName value.
+ */
+ public String operatorInstanceName() {
+ return this.operatorInstanceName;
+ }
+
+ /**
+ * Set the operatorInstanceName property: Instance name of the operator - identifying the specific configuration.
+ *
+ * @param operatorInstanceName the operatorInstanceName value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withOperatorInstanceName(String operatorInstanceName) {
+ this.operatorInstanceName = operatorInstanceName;
+ return this;
+ }
+
+ /**
+ * Get the operatorType property: Type of the operator.
+ *
+ * @return the operatorType value.
+ */
+ public OperatorType operatorType() {
+ return this.operatorType;
+ }
+
+ /**
+ * Set the operatorType property: Type of the operator.
+ *
+ * @param operatorType the operatorType value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withOperatorType(OperatorType operatorType) {
+ this.operatorType = operatorType;
+ return this;
+ }
+
+ /**
+ * Get the operatorParams property: Any Parameters for the Operator instance in string format.
+ *
+ * @return the operatorParams value.
+ */
+ public String operatorParams() {
+ return this.operatorParams;
+ }
+
+ /**
+ * Set the operatorParams property: Any Parameters for the Operator instance in string format.
+ *
+ * @param operatorParams the operatorParams value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withOperatorParams(String operatorParams) {
+ this.operatorParams = operatorParams;
+ return this;
+ }
+
+ /**
+ * Get the configurationProtectedSettings property: Name-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @return the configurationProtectedSettings value.
+ */
+ public Map configurationProtectedSettings() {
+ return this.configurationProtectedSettings;
+ }
+
+ /**
+ * Set the configurationProtectedSettings property: Name-value pairs of protected configuration settings for the
+ * configuration.
+ *
+ * @param configurationProtectedSettings the configurationProtectedSettings value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withConfigurationProtectedSettings(
+ Map configurationProtectedSettings) {
+ this.configurationProtectedSettings = configurationProtectedSettings;
+ return this;
+ }
+
+ /**
+ * Get the operatorScope property: Scope at which the operator will be installed.
+ *
+ * @return the operatorScope value.
+ */
+ public OperatorScopeType operatorScope() {
+ return this.operatorScope;
+ }
+
+ /**
+ * Set the operatorScope property: Scope at which the operator will be installed.
+ *
+ * @param operatorScope the operatorScope value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withOperatorScope(OperatorScopeType operatorScope) {
+ this.operatorScope = operatorScope;
+ return this;
+ }
+
+ /**
+ * Get the repositoryPublicKey property: Public Key associated with this SourceControl configuration (either
+ * generated within the cluster or provided by the user).
+ *
+ * @return the repositoryPublicKey value.
+ */
+ public String repositoryPublicKey() {
+ return this.repositoryPublicKey;
+ }
+
+ /**
+ * Get the sshKnownHostsContents property: Base64-encoded known_hosts contents containing public SSH keys required
+ * to access private Git instances.
+ *
+ * @return the sshKnownHostsContents value.
+ */
+ public String sshKnownHostsContents() {
+ return this.sshKnownHostsContents;
+ }
+
+ /**
+ * Set the sshKnownHostsContents property: Base64-encoded known_hosts contents containing public SSH keys required
+ * to access private Git instances.
+ *
+ * @param sshKnownHostsContents the sshKnownHostsContents value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withSshKnownHostsContents(String sshKnownHostsContents) {
+ this.sshKnownHostsContents = sshKnownHostsContents;
+ return this;
+ }
+
+ /**
+ * Get the enableHelmOperator property: Option to enable Helm Operator for this git configuration.
+ *
+ * @return the enableHelmOperator value.
+ */
+ public Boolean enableHelmOperator() {
+ return this.enableHelmOperator;
+ }
+
+ /**
+ * Set the enableHelmOperator property: Option to enable Helm Operator for this git configuration.
+ *
+ * @param enableHelmOperator the enableHelmOperator value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withEnableHelmOperator(Boolean enableHelmOperator) {
+ this.enableHelmOperator = enableHelmOperator;
+ return this;
+ }
+
+ /**
+ * Get the helmOperatorProperties property: Properties for Helm operator.
+ *
+ * @return the helmOperatorProperties value.
+ */
+ public HelmOperatorProperties helmOperatorProperties() {
+ return this.helmOperatorProperties;
+ }
+
+ /**
+ * Set the helmOperatorProperties property: Properties for Helm operator.
+ *
+ * @param helmOperatorProperties the helmOperatorProperties value to set.
+ * @return the SourceControlConfigurationProperties object itself.
+ */
+ public SourceControlConfigurationProperties withHelmOperatorProperties(
+ HelmOperatorProperties helmOperatorProperties) {
+ this.helmOperatorProperties = helmOperatorProperties;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the resource provider.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateType provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the complianceStatus property: Compliance Status of the Configuration.
+ *
+ * @return the complianceStatus value.
+ */
+ public ComplianceStatus complianceStatus() {
+ return this.complianceStatus;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (helmOperatorProperties() != null) {
+ helmOperatorProperties().validate();
+ }
+ if (complianceStatus() != null) {
+ complianceStatus().validate();
+ }
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionImpl.java
index c5cfa7f5e107..cf7fe1877486 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionImpl.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionImpl.java
@@ -87,6 +87,10 @@ public Map configurationProtectedSettings() {
}
}
+ public String installedVersion() {
+ return this.innerModel().installedVersion();
+ }
+
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java
index d4a662b782d5..f60b928014c0 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsClientImpl.java
@@ -30,13 +30,10 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.ExtensionsClient;
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ExtensionInner;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsList;
import com.azure.resourcemanager.kubernetesconfiguration.models.PatchExtension;
import java.nio.ByteBuffer;
@@ -45,8 +42,6 @@
/** An instance of this class provides access to all the operations defined in ExtensionsClient. */
public final class ExtensionsClientImpl implements ExtensionsClient {
- private final ClientLogger logger = new ClientLogger(ExtensionsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ExtensionsService service;
@@ -82,8 +77,8 @@ Mono>> create(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterRp") ExtensionsClusterRp clusterRp,
- @PathParam("clusterResourceName") ExtensionsClusterResourceName clusterResourceName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
@PathParam("clusterName") String clusterName,
@PathParam("extensionName") String extensionName,
@QueryParam("api-version") String apiVersion,
@@ -102,8 +97,8 @@ Mono> get(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterRp") ExtensionsClusterRp clusterRp,
- @PathParam("clusterResourceName") ExtensionsClusterResourceName clusterResourceName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
@PathParam("clusterName") String clusterName,
@PathParam("extensionName") String extensionName,
@QueryParam("api-version") String apiVersion,
@@ -121,8 +116,8 @@ Mono>> delete(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterRp") ExtensionsClusterRp clusterRp,
- @PathParam("clusterResourceName") ExtensionsClusterResourceName clusterResourceName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
@PathParam("clusterName") String clusterName,
@PathParam("extensionName") String extensionName,
@QueryParam("api-version") String apiVersion,
@@ -141,8 +136,8 @@ Mono>> update(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterRp") ExtensionsClusterRp clusterRp,
- @PathParam("clusterResourceName") ExtensionsClusterResourceName clusterResourceName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
@PathParam("clusterName") String clusterName,
@PathParam("extensionName") String extensionName,
@QueryParam("api-version") String apiVersion,
@@ -160,8 +155,8 @@ Mono> list(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterRp") ExtensionsClusterRp clusterRp,
- @PathParam("clusterResourceName") ExtensionsClusterResourceName clusterResourceName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
@PathParam("clusterName") String clusterName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
@@ -182,23 +177,23 @@ Mono> listNext(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension) {
@@ -260,10 +255,10 @@ private Mono>> createWithResponseAsync(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -271,13 +266,13 @@ private Mono>> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -337,23 +332,23 @@ private Mono>> createWithResponseAsync(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link PollerFlux} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ExtensionInner> beginCreateAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension) {
@@ -374,10 +369,10 @@ private PollerFlux, ExtensionInner> beginCreateAsync(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -385,13 +380,13 @@ private PollerFlux, ExtensionInner> beginCreateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link PollerFlux} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ExtensionInner> beginCreateAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -410,23 +405,23 @@ private PollerFlux, ExtensionInner> beginCreateAsync(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ExtensionInner> beginCreate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension) {
@@ -439,10 +434,10 @@ public SyncPoller, ExtensionInner> beginCreate(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -450,13 +445,13 @@ public SyncPoller, ExtensionInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ExtensionInner> beginCreate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -470,23 +465,23 @@ public SyncPoller, ExtensionInner> beginCreate(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension) {
@@ -500,10 +495,10 @@ private Mono createAsync(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -511,13 +506,13 @@ private Mono createAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -532,10 +527,10 @@ private Mono createAsync(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -547,8 +542,8 @@ private Mono createAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public ExtensionInner create(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension) {
@@ -560,10 +555,10 @@ public ExtensionInner create(
* Create a new Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param extension Properties necessary to Create an Extension.
@@ -576,8 +571,8 @@ public ExtensionInner create(
@ServiceMethod(returns = ReturnType.SINGLE)
public ExtensionInner create(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -591,22 +586,22 @@ public ExtensionInner create(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return kubernetes Cluster Extension.
+ * @return kubernetes Cluster Extension along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
if (this.client.getEndpoint() == null) {
@@ -661,23 +656,23 @@ private Mono> getWithResponseAsync(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return kubernetes Cluster Extension.
+ * @return kubernetes Cluster Extension along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Context context) {
@@ -730,22 +725,22 @@ private Mono> getWithResponseAsync(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return kubernetes Cluster Extension.
+ * @return kubernetes Cluster Extension on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
return getWithResponseAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName)
@@ -763,10 +758,10 @@ private Mono getAsync(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -777,8 +772,8 @@ private Mono getAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public ExtensionInner get(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
return getAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName).block();
@@ -788,23 +783,23 @@ public ExtensionInner get(
* Gets Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return kubernetes Cluster Extension.
+ * @return kubernetes Cluster Extension along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Context context) {
@@ -817,23 +812,23 @@ public Response getWithResponse(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete) {
@@ -890,10 +885,10 @@ private Mono>> deleteWithResponseAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -901,13 +896,13 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -962,23 +957,23 @@ private Mono>> deleteWithResponseAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete) {
@@ -995,10 +990,10 @@ private PollerFlux, Void> beginDeleteAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -1006,13 +1001,13 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -1030,23 +1025,23 @@ private PollerFlux, Void> beginDeleteAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete) {
@@ -1059,10 +1054,10 @@ public SyncPoller, Void> beginDelete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -1070,13 +1065,13 @@ public SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -1090,23 +1085,23 @@ public SyncPoller, Void> beginDelete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete) {
@@ -1120,22 +1115,22 @@ private Mono deleteAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
final Boolean forceDelete = null;
@@ -1149,10 +1144,10 @@ private Mono deleteAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -1160,13 +1155,13 @@ private Mono deleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -1181,10 +1176,10 @@ private Mono deleteAsync(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -1195,8 +1190,8 @@ private Mono deleteAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete) {
@@ -1207,10 +1202,10 @@ public void delete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1220,8 +1215,8 @@ public void delete(
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
final Boolean forceDelete = null;
@@ -1232,10 +1227,10 @@ public void delete(
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
@@ -1247,8 +1242,8 @@ public void delete(
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -1261,23 +1256,23 @@ public void delete(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension) {
@@ -1339,10 +1334,10 @@ private Mono>> updateWithResponseAsync(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -1350,13 +1345,13 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -1416,23 +1411,23 @@ private Mono>> updateWithResponseAsync(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link PollerFlux} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ExtensionInner> beginUpdateAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension) {
@@ -1453,10 +1448,10 @@ private PollerFlux, ExtensionInner> beginUpdateAsync(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -1464,13 +1459,13 @@ private PollerFlux, ExtensionInner> beginUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link PollerFlux} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ExtensionInner> beginUpdateAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -1489,23 +1484,23 @@ private PollerFlux, ExtensionInner> beginUpdateAsync(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ExtensionInner> beginUpdate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension) {
@@ -1518,10 +1513,10 @@ public SyncPoller, ExtensionInner> beginUpdate(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -1529,13 +1524,13 @@ public SyncPoller, ExtensionInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the {@link SyncPoller} for polling of the Extension object.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ExtensionInner> beginUpdate(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -1549,23 +1544,23 @@ public SyncPoller, ExtensionInner> beginUpdate(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension) {
@@ -1579,10 +1574,10 @@ private Mono updateAsync(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -1590,13 +1585,13 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Extension object.
+ * @return the Extension object on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -1611,10 +1606,10 @@ private Mono updateAsync(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -1626,8 +1621,8 @@ private Mono updateAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public ExtensionInner update(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension) {
@@ -1640,10 +1635,10 @@ public ExtensionInner update(
* Patch an existing Kubernetes Cluster Extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param extensionName Name of the Extension.
* @param patchExtension Properties to Patch in an existing Extension.
@@ -1656,8 +1651,8 @@ public ExtensionInner update(
@ServiceMethod(returns = ReturnType.SINGLE)
public ExtensionInner update(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -1671,22 +1666,20 @@ public ExtensionInner update(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -1744,24 +1737,21 @@ private Mono> listSinglePageAsync(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- Context context) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -1816,22 +1806,19 @@ private Mono> listSinglePageAsync(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName) {
return new PagedFlux<>(
() -> listSinglePageAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName),
nextLink -> listNextSinglePageAsync(nextLink));
@@ -1841,24 +1828,20 @@ private PagedFlux listAsync(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- Context context) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context) {
return new PagedFlux<>(
() -> listSinglePageAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
@@ -1868,22 +1851,19 @@ private PagedFlux listAsync(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName) {
return new PagedIterable<>(listAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName));
}
@@ -1891,24 +1871,20 @@ public PagedIterable list(
* List all Extensions in the cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
- * Microsoft.Kubernetes (for OnPrem K8S clusters).
- * @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or
- * connectedClusters (for OnPrem K8S clusters).
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
* @param clusterName The name of the kubernetes cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- Context context) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context) {
return new PagedIterable<>(listAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, context));
}
@@ -1919,7 +1895,8 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1955,7 +1932,8 @@ private Mono> listNextSinglePageAsync(String nextL
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list Extensions.
+ * @return result of the request to list Extensions along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsImpl.java
index 6fbe62e70f16..26b763114022 100644
--- a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsImpl.java
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/ExtensionsImpl.java
@@ -13,13 +13,10 @@
import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.ExtensionInner;
import com.azure.resourcemanager.kubernetesconfiguration.models.Extension;
import com.azure.resourcemanager.kubernetesconfiguration.models.Extensions;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterResourceName;
-import com.azure.resourcemanager.kubernetesconfiguration.models.ExtensionsClusterRp;
import com.azure.resourcemanager.kubernetesconfiguration.models.PatchExtension;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ExtensionsImpl implements Extensions {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtensionsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ExtensionsImpl.class);
private final ExtensionsClient innerClient;
@@ -34,8 +31,8 @@ public ExtensionsImpl(
public Extension create(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension) {
@@ -52,8 +49,8 @@ public Extension create(
public Extension create(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
ExtensionInner extension,
@@ -72,8 +69,8 @@ public Extension create(
public Extension get(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
ExtensionInner inner =
@@ -87,8 +84,8 @@ public Extension get(
public Response getWithResponse(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Context context) {
@@ -110,8 +107,8 @@ public Response getWithResponse(
public void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete) {
@@ -122,8 +119,8 @@ public void delete(
public void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName) {
this.serviceClient().delete(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName);
@@ -131,8 +128,8 @@ public void delete(
public void delete(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
Boolean forceDelete,
@@ -145,8 +142,8 @@ public void delete(
public Extension update(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension) {
@@ -163,8 +160,8 @@ public Extension update(
public Extension update(
String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
+ String clusterRp,
+ String clusterResourceName,
String clusterName,
String extensionName,
PatchExtension patchExtension,
@@ -188,21 +185,14 @@ public Extension update(
}
public PagedIterable list(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName) {
PagedIterable inner =
this.serviceClient().list(resourceGroupName, clusterRp, clusterResourceName, clusterName);
return Utils.mapPage(inner, inner1 -> new ExtensionImpl(inner1, this.manager()));
}
public PagedIterable list(
- String resourceGroupName,
- ExtensionsClusterRp clusterRp,
- ExtensionsClusterResourceName clusterResourceName,
- String clusterName,
- Context context) {
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context) {
PagedIterable inner =
this.serviceClient().list(resourceGroupName, clusterRp, clusterResourceName, clusterName, context);
return Utils.mapPage(inner, inner1 -> new ExtensionImpl(inner1, this.manager()));
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java
new file mode 100644
index 000000000000..7dee5d2f41c6
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusClientImpl.java
@@ -0,0 +1,331 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.FluxConfigOperationStatusClient;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.OperationStatusResultInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in FluxConfigOperationStatusClient. */
+public final class FluxConfigOperationStatusClientImpl implements FluxConfigOperationStatusClient {
+ /** The proxy service used to perform REST calls. */
+ private final FluxConfigOperationStatusService service;
+
+ /** The service client containing this operation class. */
+ private final SourceControlConfigurationClientImpl client;
+
+ /**
+ * Initializes an instance of FluxConfigOperationStatusClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ FluxConfigOperationStatusClientImpl(SourceControlConfigurationClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ FluxConfigOperationStatusService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SourceControlConfigurationClientFluxConfigOperationStatus to be used
+ * by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SourceControlConfigu")
+ private interface FluxConfigOperationStatusService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}"
+ + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations"
+ + "/{fluxConfigurationName}/operations/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("fluxConfigurationName") String fluxConfigurationName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("operationId") String operationId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ operationId,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ operationId,
+ accept,
+ context);
+ }
+
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId) {
+ return getWithResponseAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusResultInner get(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId) {
+ return getAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, operationId)
+ .block();
+ }
+
+ /**
+ * Get Async Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param operationId operation Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return async Operation status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId,
+ Context context) {
+ return getWithResponseAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ operationId,
+ context)
+ .block();
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusImpl.java
new file mode 100644
index 000000000000..5372e3afdb0e
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigOperationStatusImpl.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.FluxConfigOperationStatusClient;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigOperationStatus;
+import com.azure.resourcemanager.kubernetesconfiguration.models.OperationStatusResult;
+
+public final class FluxConfigOperationStatusImpl implements FluxConfigOperationStatus {
+ private static final ClientLogger LOGGER = new ClientLogger(FluxConfigOperationStatusImpl.class);
+
+ private final FluxConfigOperationStatusClient innerClient;
+
+ private final com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager serviceManager;
+
+ public FluxConfigOperationStatusImpl(
+ FluxConfigOperationStatusClient innerClient,
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public OperationStatusResult get(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId) {
+ OperationStatusResultInner inner =
+ this
+ .serviceClient()
+ .get(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, operationId);
+ if (inner != null) {
+ return new OperationStatusResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ String operationId,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getWithResponse(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ operationId,
+ context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new OperationStatusResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private FluxConfigOperationStatusClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java
new file mode 100644
index 000000000000..3a489ff31668
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationImpl.java
@@ -0,0 +1,137 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.FluxConfigurationInner;
+import com.azure.resourcemanager.kubernetesconfiguration.models.BucketDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxComplianceState;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfiguration;
+import com.azure.resourcemanager.kubernetesconfiguration.models.GitRepositoryDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.KustomizationDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ObjectStatusDefinition;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ProvisioningState;
+import com.azure.resourcemanager.kubernetesconfiguration.models.ScopeType;
+import com.azure.resourcemanager.kubernetesconfiguration.models.SourceKindType;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class FluxConfigurationImpl implements FluxConfiguration {
+ private FluxConfigurationInner innerObject;
+
+ private final com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager serviceManager;
+
+ FluxConfigurationImpl(
+ FluxConfigurationInner innerObject,
+ com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public ScopeType scope() {
+ return this.innerModel().scope();
+ }
+
+ public String namespace() {
+ return this.innerModel().namespace();
+ }
+
+ public SourceKindType sourceKind() {
+ return this.innerModel().sourceKind();
+ }
+
+ public Boolean suspend() {
+ return this.innerModel().suspend();
+ }
+
+ public GitRepositoryDefinition gitRepository() {
+ return this.innerModel().gitRepository();
+ }
+
+ public BucketDefinition bucket() {
+ return this.innerModel().bucket();
+ }
+
+ public Map kustomizations() {
+ Map inner = this.innerModel().kustomizations();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public Map configurationProtectedSettings() {
+ Map inner = this.innerModel().configurationProtectedSettings();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public List statuses() {
+ List inner = this.innerModel().statuses();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String repositoryPublicKey() {
+ return this.innerModel().repositoryPublicKey();
+ }
+
+ public String sourceSyncedCommitId() {
+ return this.innerModel().sourceSyncedCommitId();
+ }
+
+ public OffsetDateTime sourceUpdatedAt() {
+ return this.innerModel().sourceUpdatedAt();
+ }
+
+ public OffsetDateTime statusUpdatedAt() {
+ return this.innerModel().statusUpdatedAt();
+ }
+
+ public FluxComplianceState complianceState() {
+ return this.innerModel().complianceState();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String errorMessage() {
+ return this.innerModel().errorMessage();
+ }
+
+ public FluxConfigurationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.kubernetesconfiguration.SourceControlConfigurationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java
new file mode 100644
index 000000000000..231fdeabd1bc
--- /dev/null
+++ b/sdk/kubernetesconfiguration/azure-resourcemanager-kubernetesconfiguration/src/main/java/com/azure/resourcemanager/kubernetesconfiguration/implementation/FluxConfigurationsClientImpl.java
@@ -0,0 +1,2122 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesconfiguration.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.FluxConfigurationsClient;
+import com.azure.resourcemanager.kubernetesconfiguration.fluent.models.FluxConfigurationInner;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigurationPatch;
+import com.azure.resourcemanager.kubernetesconfiguration.models.FluxConfigurationsList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in FluxConfigurationsClient. */
+public final class FluxConfigurationsClientImpl implements FluxConfigurationsClient {
+ /** The proxy service used to perform REST calls. */
+ private final FluxConfigurationsService service;
+
+ /** The service client containing this operation class. */
+ private final SourceControlConfigurationClientImpl client;
+
+ /**
+ * Initializes an instance of FluxConfigurationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ FluxConfigurationsClientImpl(SourceControlConfigurationClientImpl client) {
+ this.service =
+ RestProxy.create(FluxConfigurationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SourceControlConfigurationClientFluxConfigurations to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SourceControlConfigu")
+ private interface FluxConfigurationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}"
+ + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations"
+ + "/{fluxConfigurationName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("fluxConfigurationName") String fluxConfigurationName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}"
+ + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations"
+ + "/{fluxConfigurationName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("fluxConfigurationName") String fluxConfigurationName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") FluxConfigurationInner fluxConfiguration,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}"
+ + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations"
+ + "/{fluxConfigurationName}")
+ @ExpectedResponses({202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("fluxConfigurationName") String fluxConfigurationName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") FluxConfigurationPatch fluxConfigurationPatch,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}"
+ + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations"
+ + "/{fluxConfigurationName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("fluxConfigurationName") String fluxConfigurationName,
+ @QueryParam("api-version") String apiVersion,
+ @QueryParam("forceDelete") Boolean forceDelete,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}"
+ + "/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterRp") String clusterRp,
+ @PathParam("clusterResourceName") String clusterResourceName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName) {
+ return getWithResponseAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FluxConfigurationInner get(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName) {
+ return getAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName).block();
+ }
+
+ /**
+ * Gets details of the Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the Flux Configuration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Context context) {
+ return getWithResponseAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, context)
+ .block();
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ if (fluxConfiguration == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfiguration is required and cannot be null."));
+ } else {
+ fluxConfiguration.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ fluxConfiguration,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ if (fluxConfiguration == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfiguration is required and cannot be null."));
+ } else {
+ fluxConfiguration.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ fluxConfiguration,
+ accept,
+ context);
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FluxConfigurationInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ FluxConfigurationInner.class,
+ FluxConfigurationInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FluxConfigurationInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration,
+ context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ FluxConfigurationInner.class,
+ FluxConfigurationInner.class,
+ context);
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, FluxConfigurationInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, FluxConfigurationInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration,
+ context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context) {
+ return beginCreateOrUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration,
+ context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FluxConfigurationInner createOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration) {
+ return createOrUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration)
+ .block();
+ }
+
+ /**
+ * Create a new Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FluxConfigurationInner createOrUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationInner fluxConfiguration,
+ Context context) {
+ return createOrUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfiguration,
+ context)
+ .block();
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ if (fluxConfigurationPatch == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter fluxConfigurationPatch is required and cannot be null."));
+ } else {
+ fluxConfigurationPatch.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ fluxConfigurationPatch,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ if (fluxConfigurationPatch == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter fluxConfigurationPatch is required and cannot be null."));
+ } else {
+ fluxConfigurationPatch.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ fluxConfigurationPatch,
+ accept,
+ context);
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FluxConfigurationInner> beginUpdateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch) {
+ Mono>> mono =
+ updateWithResponseAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ FluxConfigurationInner.class,
+ FluxConfigurationInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FluxConfigurationInner> beginUpdateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch,
+ context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ FluxConfigurationInner.class,
+ FluxConfigurationInner.class,
+ context);
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, FluxConfigurationInner> beginUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch) {
+ return beginUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, FluxConfigurationInner> beginUpdate(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context) {
+ return beginUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch,
+ context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch) {
+ return beginUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context) {
+ return beginUpdateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch,
+ context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FluxConfigurationInner update(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch) {
+ return updateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch)
+ .block();
+ }
+
+ /**
+ * Update an existing Kubernetes Flux Configuration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Flux Configuration object returned in Get & Put response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FluxConfigurationInner update(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ FluxConfigurationPatch fluxConfigurationPatch,
+ Context context) {
+ return updateAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ fluxConfigurationPatch,
+ context)
+ .block();
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ forceDelete,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (fluxConfigurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter fluxConfigurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ this.client.getApiVersion(),
+ forceDelete,
+ accept,
+ context);
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete) {
+ Mono>> mono =
+ deleteWithResponseAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, forceDelete);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ forceDelete,
+ context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete) {
+ return beginDeleteAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, forceDelete)
+ .getSyncPoller();
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context) {
+ return beginDeleteAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ forceDelete,
+ context)
+ .getSyncPoller();
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete) {
+ return beginDeleteAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, forceDelete)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName) {
+ final Boolean forceDelete = null;
+ return beginDeleteAsync(
+ resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, forceDelete)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context) {
+ return beginDeleteAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ forceDelete,
+ context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete) {
+ deleteAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, forceDelete)
+ .block();
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName) {
+ final Boolean forceDelete = null;
+ deleteAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, forceDelete)
+ .block();
+ }
+
+ /**
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source
+ * repo.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param fluxConfigurationName Name of the Flux Configuration.
+ * @param forceDelete Delete the extension resource in Azure - not the normal asynchronous delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName,
+ String clusterRp,
+ String clusterResourceName,
+ String clusterName,
+ String fluxConfigurationName,
+ Boolean forceDelete,
+ Context context) {
+ deleteAsync(
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ fluxConfigurationName,
+ forceDelete,
+ context)
+ .block();
+ }
+
+ /**
+ * List all Flux Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Flux Configurations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List all Flux Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Flux Configurations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String clusterRp, String clusterResourceName, String clusterName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterRp == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterRp is required and cannot be null."));
+ }
+ if (clusterResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter clusterResourceName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterRp,
+ clusterResourceName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List all Flux Configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
+ * Microsoft.HybridContainerService.
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters,
+ * provisionedClusters.
+ * @param clusterName The name of the kubernetes cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Flux Configurations as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux