scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of kubernetesruntime service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the kubernetesruntime service API instance.
+ */
+ public KubernetesruntimeManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.kubernetesruntime")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new KubernetesruntimeManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of BgpPeers. It manages BgpPeer.
+ *
+ * @return Resource collection API of BgpPeers.
+ */
+ public BgpPeers bgpPeers() {
+ if (this.bgpPeers == null) {
+ this.bgpPeers = new BgpPeersImpl(clientObject.getBgpPeers(), this);
+ }
+ return bgpPeers;
+ }
+
+ /**
+ * Gets the resource collection API of LoadBalancers. It manages LoadBalancer.
+ *
+ * @return Resource collection API of LoadBalancers.
+ */
+ public LoadBalancers loadBalancers() {
+ if (this.loadBalancers == null) {
+ this.loadBalancers = new LoadBalancersImpl(clientObject.getLoadBalancers(), this);
+ }
+ return loadBalancers;
+ }
+
+ /**
+ * Gets the resource collection API of Services. It manages ServiceResource.
+ *
+ * @return Resource collection API of Services.
+ */
+ public Services services() {
+ if (this.services == null) {
+ this.services = new ServicesImpl(clientObject.getServices(), this);
+ }
+ return services;
+ }
+
+ /**
+ * Gets the resource collection API of StorageClass. It manages StorageClassResource.
+ *
+ * @return Resource collection API of StorageClass.
+ */
+ public StorageClass storageClass() {
+ if (this.storageClass == null) {
+ this.storageClass = new StorageClassImpl(clientObject.getStorageClass(), this);
+ }
+ return storageClass;
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets wrapped service client MicrosoftKubernetesRuntime providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client MicrosoftKubernetesRuntime.
+ */
+ public MicrosoftKubernetesRuntime serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/BgpPeersClient.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/BgpPeersClient.java
new file mode 100644
index 000000000000..84f7e645a051
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/BgpPeersClient.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.kubernetesruntime.fluent.models.BgpPeerInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in BgpPeersClient.
+ */
+public interface BgpPeersClient {
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 a BgpPeer along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String bgpPeerName, Context context);
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 a BgpPeer.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BgpPeerInner get(String resourceUri, String bgpPeerName);
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, BgpPeerInner> beginCreateOrUpdate(String resourceUri, String bgpPeerName,
+ BgpPeerInner resource);
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, BgpPeerInner> beginCreateOrUpdate(String resourceUri, String bgpPeerName,
+ BgpPeerInner resource, Context context);
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BgpPeerInner createOrUpdate(String resourceUri, String bgpPeerName, BgpPeerInner resource);
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BgpPeerInner createOrUpdate(String resourceUri, String bgpPeerName, BgpPeerInner resource, Context context);
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceUri, String bgpPeerName, Context context);
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 resourceUri, String bgpPeerName);
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/LoadBalancersClient.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/LoadBalancersClient.java
new file mode 100644
index 000000000000..1bf3c560e402
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/LoadBalancersClient.java
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.kubernetesruntime.fluent.models.LoadBalancerInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in LoadBalancersClient.
+ */
+public interface LoadBalancersClient {
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 a LoadBalancer along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String loadBalancerName, Context context);
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 a LoadBalancer.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LoadBalancerInner get(String resourceUri, String loadBalancerName);
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LoadBalancerInner> beginCreateOrUpdate(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource);
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LoadBalancerInner> beginCreateOrUpdate(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource, Context context);
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LoadBalancerInner createOrUpdate(String resourceUri, String loadBalancerName, LoadBalancerInner resource);
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LoadBalancerInner createOrUpdate(String resourceUri, String loadBalancerName, LoadBalancerInner resource,
+ Context context);
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceUri, String loadBalancerName, Context context);
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 resourceUri, String loadBalancerName);
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/MicrosoftKubernetesRuntime.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/MicrosoftKubernetesRuntime.java
new file mode 100644
index 000000000000..806626e977df
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/MicrosoftKubernetesRuntime.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for MicrosoftKubernetesRuntime class.
+ */
+public interface MicrosoftKubernetesRuntime {
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the BgpPeersClient object to access its operations.
+ *
+ * @return the BgpPeersClient object.
+ */
+ BgpPeersClient getBgpPeers();
+
+ /**
+ * Gets the LoadBalancersClient object to access its operations.
+ *
+ * @return the LoadBalancersClient object.
+ */
+ LoadBalancersClient getLoadBalancers();
+
+ /**
+ * Gets the ServicesClient object to access its operations.
+ *
+ * @return the ServicesClient object.
+ */
+ ServicesClient getServices();
+
+ /**
+ * Gets the StorageClassClient object to access its operations.
+ *
+ * @return the StorageClassClient object.
+ */
+ StorageClassClient getStorageClass();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/OperationsClient.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/OperationsClient.java
new file mode 100644
index 000000000000..7610dc4b8e65
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for the provider.
+ *
+ * @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 a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/ServicesClient.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/ServicesClient.java
new file mode 100644
index 000000000000..d57264f58a8d
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/ServicesClient.java
@@ -0,0 +1,126 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.util.Context;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.ServiceResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ServicesClient.
+ */
+public interface ServicesClient {
+ /**
+ * List ServiceResource resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a ServiceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * List ServiceResource resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a ServiceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+
+ /**
+ * Get a ServiceResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param serviceName The name of the the service.
+ * @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 a ServiceResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String serviceName, Context context);
+
+ /**
+ * Get a ServiceResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param serviceName The name of the the service.
+ * @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 a ServiceResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceResourceInner get(String resourceUri, String serviceName);
+
+ /**
+ * Create a ServiceResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param serviceName The name of the the service.
+ * @param resource Resource create parameters.
+ * @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 a Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceUri, String serviceName,
+ ServiceResourceInner resource, Context context);
+
+ /**
+ * Create a ServiceResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param serviceName The name of the the service.
+ * @param resource Resource create parameters.
+ * @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 a Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceResourceInner createOrUpdate(String resourceUri, String serviceName, ServiceResourceInner resource);
+
+ /**
+ * Delete a ServiceResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param serviceName The name of the the service.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceUri, String serviceName, Context context);
+
+ /**
+ * Delete a ServiceResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param serviceName The name of the the service.
+ * @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 resourceUri, String serviceName);
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/StorageClassClient.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/StorageClassClient.java
new file mode 100644
index 000000000000..89fbce07c83e
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/StorageClassClient.java
@@ -0,0 +1,252 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.kubernetesruntime.fluent.models.StorageClassResourceInner;
+import com.azure.resourcemanager.kubernetesruntime.models.StorageClassResourceUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in StorageClassClient.
+ */
+public interface StorageClassClient {
+ /**
+ * List StorageClassResource resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a StorageClassResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * List StorageClassResource resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a StorageClassResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+
+ /**
+ * Get a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @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 a StorageClassResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String storageClassName, Context context);
+
+ /**
+ * Get a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @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 a StorageClassResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageClassResourceInner get(String resourceUri, String storageClassName);
+
+ /**
+ * Create a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param resource Resource create parameters.
+ * @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 a StorageClass resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageClassResourceInner> beginCreateOrUpdate(String resourceUri,
+ String storageClassName, StorageClassResourceInner resource);
+
+ /**
+ * Create a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param resource Resource create parameters.
+ * @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 a StorageClass resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageClassResourceInner> beginCreateOrUpdate(String resourceUri,
+ String storageClassName, StorageClassResourceInner resource, Context context);
+
+ /**
+ * Create a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param resource Resource create parameters.
+ * @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 a StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageClassResourceInner createOrUpdate(String resourceUri, String storageClassName,
+ StorageClassResourceInner resource);
+
+ /**
+ * Create a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param resource Resource create parameters.
+ * @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 a StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageClassResourceInner createOrUpdate(String resourceUri, String storageClassName,
+ StorageClassResourceInner resource, Context context);
+
+ /**
+ * Update a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param properties The resource properties to be updated.
+ * @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 a StorageClass resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageClassResourceInner> beginUpdate(String resourceUri,
+ String storageClassName, StorageClassResourceUpdate properties);
+
+ /**
+ * Update a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param properties The resource properties to be updated.
+ * @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 a StorageClass resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageClassResourceInner> beginUpdate(String resourceUri,
+ String storageClassName, StorageClassResourceUpdate properties, Context context);
+
+ /**
+ * Update a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param properties The resource properties to be updated.
+ * @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 a StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageClassResourceInner update(String resourceUri, String storageClassName,
+ StorageClassResourceUpdate properties);
+
+ /**
+ * Update a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @param properties The resource properties to be updated.
+ * @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 a StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageClassResourceInner update(String resourceUri, String storageClassName, StorageClassResourceUpdate properties,
+ Context context);
+
+ /**
+ * Delete a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @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 resourceUri, String storageClassName);
+
+ /**
+ * Delete a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @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 resourceUri, String storageClassName, Context context);
+
+ /**
+ * Delete a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @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 resourceUri, String storageClassName);
+
+ /**
+ * Delete a StorageClassResource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param storageClassName The name of the the storage class.
+ * @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 resourceUri, String storageClassName, Context context);
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/BgpPeerInner.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/BgpPeerInner.java
new file mode 100644
index 000000000000..d0462d44b88b
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/BgpPeerInner.java
@@ -0,0 +1,233 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.io.IOException;
+
+/**
+ * A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+@Fluent
+public final class BgpPeerInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private BgpPeerProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of BgpPeerInner class.
+ */
+ public BgpPeerInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private BgpPeerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the myAsn property: My ASN.
+ *
+ * @return the myAsn value.
+ */
+ public Integer myAsn() {
+ return this.innerProperties() == null ? null : this.innerProperties().myAsn();
+ }
+
+ /**
+ * Set the myAsn property: My ASN.
+ *
+ * @param myAsn the myAsn value to set.
+ * @return the BgpPeerInner object itself.
+ */
+ public BgpPeerInner withMyAsn(Integer myAsn) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BgpPeerProperties();
+ }
+ this.innerProperties().withMyAsn(myAsn);
+ return this;
+ }
+
+ /**
+ * Get the peerAsn property: Peer ASN.
+ *
+ * @return the peerAsn value.
+ */
+ public Integer peerAsn() {
+ return this.innerProperties() == null ? null : this.innerProperties().peerAsn();
+ }
+
+ /**
+ * Set the peerAsn property: Peer ASN.
+ *
+ * @param peerAsn the peerAsn value to set.
+ * @return the BgpPeerInner object itself.
+ */
+ public BgpPeerInner withPeerAsn(Integer peerAsn) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BgpPeerProperties();
+ }
+ this.innerProperties().withPeerAsn(peerAsn);
+ return this;
+ }
+
+ /**
+ * Get the peerAddress property: Peer Address.
+ *
+ * @return the peerAddress value.
+ */
+ public String peerAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().peerAddress();
+ }
+
+ /**
+ * Set the peerAddress property: Peer Address.
+ *
+ * @param peerAddress the peerAddress value to set.
+ * @return the BgpPeerInner object itself.
+ */
+ public BgpPeerInner withPeerAddress(String peerAddress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BgpPeerProperties();
+ }
+ this.innerProperties().withPeerAddress(peerAddress);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BgpPeerInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BgpPeerInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the BgpPeerInner.
+ */
+ public static BgpPeerInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BgpPeerInner deserializedBgpPeerInner = new BgpPeerInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedBgpPeerInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedBgpPeerInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedBgpPeerInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedBgpPeerInner.innerProperties = BgpPeerProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedBgpPeerInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBgpPeerInner;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/BgpPeerProperties.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/BgpPeerProperties.java
new file mode 100644
index 000000000000..030b39971957
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/BgpPeerProperties.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.io.IOException;
+
+/**
+ * Details of the BgpPeer.
+ */
+@Fluent
+public final class BgpPeerProperties implements JsonSerializable {
+ /*
+ * My ASN
+ */
+ private int myAsn;
+
+ /*
+ * Peer ASN
+ */
+ private int peerAsn;
+
+ /*
+ * Peer Address
+ */
+ private String peerAddress;
+
+ /*
+ * Resource provision state
+ */
+ private ProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of BgpPeerProperties class.
+ */
+ public BgpPeerProperties() {
+ }
+
+ /**
+ * Get the myAsn property: My ASN.
+ *
+ * @return the myAsn value.
+ */
+ public int myAsn() {
+ return this.myAsn;
+ }
+
+ /**
+ * Set the myAsn property: My ASN.
+ *
+ * @param myAsn the myAsn value to set.
+ * @return the BgpPeerProperties object itself.
+ */
+ public BgpPeerProperties withMyAsn(int myAsn) {
+ this.myAsn = myAsn;
+ return this;
+ }
+
+ /**
+ * Get the peerAsn property: Peer ASN.
+ *
+ * @return the peerAsn value.
+ */
+ public int peerAsn() {
+ return this.peerAsn;
+ }
+
+ /**
+ * Set the peerAsn property: Peer ASN.
+ *
+ * @param peerAsn the peerAsn value to set.
+ * @return the BgpPeerProperties object itself.
+ */
+ public BgpPeerProperties withPeerAsn(int peerAsn) {
+ this.peerAsn = peerAsn;
+ return this;
+ }
+
+ /**
+ * Get the peerAddress property: Peer Address.
+ *
+ * @return the peerAddress value.
+ */
+ public String peerAddress() {
+ return this.peerAddress;
+ }
+
+ /**
+ * Set the peerAddress property: Peer Address.
+ *
+ * @param peerAddress the peerAddress value to set.
+ * @return the BgpPeerProperties object itself.
+ */
+ public BgpPeerProperties withPeerAddress(String peerAddress) {
+ this.peerAddress = peerAddress;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (peerAddress() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property peerAddress in model BgpPeerProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(BgpPeerProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeIntField("myAsn", this.myAsn);
+ jsonWriter.writeIntField("peerAsn", this.peerAsn);
+ jsonWriter.writeStringField("peerAddress", this.peerAddress);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BgpPeerProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BgpPeerProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the BgpPeerProperties.
+ */
+ public static BgpPeerProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BgpPeerProperties deserializedBgpPeerProperties = new BgpPeerProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("myAsn".equals(fieldName)) {
+ deserializedBgpPeerProperties.myAsn = reader.getInt();
+ } else if ("peerAsn".equals(fieldName)) {
+ deserializedBgpPeerProperties.peerAsn = reader.getInt();
+ } else if ("peerAddress".equals(fieldName)) {
+ deserializedBgpPeerProperties.peerAddress = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedBgpPeerProperties.provisioningState = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBgpPeerProperties;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/LoadBalancerInner.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/LoadBalancerInner.java
new file mode 100644
index 000000000000..8a224e6ce1f7
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/LoadBalancerInner.java
@@ -0,0 +1,263 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.AdvertiseMode;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+@Fluent
+public final class LoadBalancerInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private LoadBalancerProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of LoadBalancerInner class.
+ */
+ public LoadBalancerInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private LoadBalancerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the addresses property: IP Range.
+ *
+ * @return the addresses value.
+ */
+ public List addresses() {
+ return this.innerProperties() == null ? null : this.innerProperties().addresses();
+ }
+
+ /**
+ * Set the addresses property: IP Range.
+ *
+ * @param addresses the addresses value to set.
+ * @return the LoadBalancerInner object itself.
+ */
+ public LoadBalancerInner withAddresses(List addresses) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LoadBalancerProperties();
+ }
+ this.innerProperties().withAddresses(addresses);
+ return this;
+ }
+
+ /**
+ * Get the serviceSelector property: A dynamic label mapping to select related services. For instance, if you want
+ * to create a load balancer only for services with label "a=b", then please specify {"a": "b"} in the field.
+ *
+ * @return the serviceSelector value.
+ */
+ public Map serviceSelector() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceSelector();
+ }
+
+ /**
+ * Set the serviceSelector property: A dynamic label mapping to select related services. For instance, if you want
+ * to create a load balancer only for services with label "a=b", then please specify {"a": "b"} in the field.
+ *
+ * @param serviceSelector the serviceSelector value to set.
+ * @return the LoadBalancerInner object itself.
+ */
+ public LoadBalancerInner withServiceSelector(Map serviceSelector) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LoadBalancerProperties();
+ }
+ this.innerProperties().withServiceSelector(serviceSelector);
+ return this;
+ }
+
+ /**
+ * Get the advertiseMode property: Advertise Mode.
+ *
+ * @return the advertiseMode value.
+ */
+ public AdvertiseMode advertiseMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().advertiseMode();
+ }
+
+ /**
+ * Set the advertiseMode property: Advertise Mode.
+ *
+ * @param advertiseMode the advertiseMode value to set.
+ * @return the LoadBalancerInner object itself.
+ */
+ public LoadBalancerInner withAdvertiseMode(AdvertiseMode advertiseMode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LoadBalancerProperties();
+ }
+ this.innerProperties().withAdvertiseMode(advertiseMode);
+ return this;
+ }
+
+ /**
+ * Get the bgpPeers property: The list of BGP peers it should advertise to. Null or empty means to advertise to all
+ * peers.
+ *
+ * @return the bgpPeers value.
+ */
+ public List bgpPeers() {
+ return this.innerProperties() == null ? null : this.innerProperties().bgpPeers();
+ }
+
+ /**
+ * Set the bgpPeers property: The list of BGP peers it should advertise to. Null or empty means to advertise to all
+ * peers.
+ *
+ * @param bgpPeers the bgpPeers value to set.
+ * @return the LoadBalancerInner object itself.
+ */
+ public LoadBalancerInner withBgpPeers(List bgpPeers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LoadBalancerProperties();
+ }
+ this.innerProperties().withBgpPeers(bgpPeers);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LoadBalancerInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LoadBalancerInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the LoadBalancerInner.
+ */
+ public static LoadBalancerInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LoadBalancerInner deserializedLoadBalancerInner = new LoadBalancerInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLoadBalancerInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLoadBalancerInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLoadBalancerInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedLoadBalancerInner.innerProperties = LoadBalancerProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLoadBalancerInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLoadBalancerInner;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/LoadBalancerProperties.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/LoadBalancerProperties.java
new file mode 100644
index 000000000000..03146f85c03c
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/LoadBalancerProperties.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.AdvertiseMode;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Details of the LoadBalancer.
+ */
+@Fluent
+public final class LoadBalancerProperties implements JsonSerializable {
+ /*
+ * IP Range
+ */
+ private List addresses;
+
+ /*
+ * A dynamic label mapping to select related services. For instance, if you want to create a load balancer only for
+ * services with label "a=b", then please specify {"a": "b"} in the field.
+ */
+ private Map serviceSelector;
+
+ /*
+ * Advertise Mode
+ */
+ private AdvertiseMode advertiseMode;
+
+ /*
+ * The list of BGP peers it should advertise to. Null or empty means to advertise to all peers.
+ */
+ private List bgpPeers;
+
+ /*
+ * Resource provision state
+ */
+ private ProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of LoadBalancerProperties class.
+ */
+ public LoadBalancerProperties() {
+ }
+
+ /**
+ * Get the addresses property: IP Range.
+ *
+ * @return the addresses value.
+ */
+ public List addresses() {
+ return this.addresses;
+ }
+
+ /**
+ * Set the addresses property: IP Range.
+ *
+ * @param addresses the addresses value to set.
+ * @return the LoadBalancerProperties object itself.
+ */
+ public LoadBalancerProperties withAddresses(List addresses) {
+ this.addresses = addresses;
+ return this;
+ }
+
+ /**
+ * Get the serviceSelector property: A dynamic label mapping to select related services. For instance, if you want
+ * to create a load balancer only for services with label "a=b", then please specify {"a": "b"} in the field.
+ *
+ * @return the serviceSelector value.
+ */
+ public Map serviceSelector() {
+ return this.serviceSelector;
+ }
+
+ /**
+ * Set the serviceSelector property: A dynamic label mapping to select related services. For instance, if you want
+ * to create a load balancer only for services with label "a=b", then please specify {"a": "b"} in the field.
+ *
+ * @param serviceSelector the serviceSelector value to set.
+ * @return the LoadBalancerProperties object itself.
+ */
+ public LoadBalancerProperties withServiceSelector(Map serviceSelector) {
+ this.serviceSelector = serviceSelector;
+ return this;
+ }
+
+ /**
+ * Get the advertiseMode property: Advertise Mode.
+ *
+ * @return the advertiseMode value.
+ */
+ public AdvertiseMode advertiseMode() {
+ return this.advertiseMode;
+ }
+
+ /**
+ * Set the advertiseMode property: Advertise Mode.
+ *
+ * @param advertiseMode the advertiseMode value to set.
+ * @return the LoadBalancerProperties object itself.
+ */
+ public LoadBalancerProperties withAdvertiseMode(AdvertiseMode advertiseMode) {
+ this.advertiseMode = advertiseMode;
+ return this;
+ }
+
+ /**
+ * Get the bgpPeers property: The list of BGP peers it should advertise to. Null or empty means to advertise to all
+ * peers.
+ *
+ * @return the bgpPeers value.
+ */
+ public List bgpPeers() {
+ return this.bgpPeers;
+ }
+
+ /**
+ * Set the bgpPeers property: The list of BGP peers it should advertise to. Null or empty means to advertise to all
+ * peers.
+ *
+ * @param bgpPeers the bgpPeers value to set.
+ * @return the LoadBalancerProperties object itself.
+ */
+ public LoadBalancerProperties withBgpPeers(List bgpPeers) {
+ this.bgpPeers = bgpPeers;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (addresses() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property addresses in model LoadBalancerProperties"));
+ }
+ if (advertiseMode() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property advertiseMode in model LoadBalancerProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("addresses", this.addresses, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("advertiseMode", this.advertiseMode == null ? null : this.advertiseMode.toString());
+ jsonWriter.writeMapField("serviceSelector", this.serviceSelector,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("bgpPeers", this.bgpPeers, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LoadBalancerProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LoadBalancerProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the LoadBalancerProperties.
+ */
+ public static LoadBalancerProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LoadBalancerProperties deserializedLoadBalancerProperties = new LoadBalancerProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("addresses".equals(fieldName)) {
+ List addresses = reader.readArray(reader1 -> reader1.getString());
+ deserializedLoadBalancerProperties.addresses = addresses;
+ } else if ("advertiseMode".equals(fieldName)) {
+ deserializedLoadBalancerProperties.advertiseMode = AdvertiseMode.fromString(reader.getString());
+ } else if ("serviceSelector".equals(fieldName)) {
+ Map serviceSelector = reader.readMap(reader1 -> reader1.getString());
+ deserializedLoadBalancerProperties.serviceSelector = serviceSelector;
+ } else if ("bgpPeers".equals(fieldName)) {
+ List bgpPeers = reader.readArray(reader1 -> reader1.getString());
+ deserializedLoadBalancerProperties.bgpPeers = bgpPeers;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedLoadBalancerProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLoadBalancerProperties;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/OperationInner.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..fbaee80d72a3
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/OperationInner.java
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.ActionType;
+import com.azure.resourcemanager.kubernetesruntime.models.OperationDisplay;
+import com.azure.resourcemanager.kubernetesruntime.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Fluent
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ public OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Localized display information for this particular operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/ServiceProperties.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/ServiceProperties.java
new file mode 100644
index 000000000000..93366b17c075
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/ServiceProperties.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.io.IOException;
+
+/**
+ * Properties for the service resource.
+ */
+@Immutable
+public final class ServiceProperties implements JsonSerializable {
+ /*
+ * The object id of the service principal of the RP provisioned in the tenant
+ */
+ private String rpObjectId;
+
+ /*
+ * Resource provision state
+ */
+ private ProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of ServiceProperties class.
+ */
+ public ServiceProperties() {
+ }
+
+ /**
+ * Get the rpObjectId property: The object id of the service principal of the RP provisioned in the tenant.
+ *
+ * @return the rpObjectId value.
+ */
+ public String rpObjectId() {
+ return this.rpObjectId;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ServiceProperties.
+ */
+ public static ServiceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceProperties deserializedServiceProperties = new ServiceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("rpObjectId".equals(fieldName)) {
+ deserializedServiceProperties.rpObjectId = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedServiceProperties.provisioningState = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceProperties;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/ServiceResourceInner.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/ServiceResourceInner.java
new file mode 100644
index 000000000000..67dd660d2e82
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/ServiceResourceInner.java
@@ -0,0 +1,173 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.io.IOException;
+
+/**
+ * A Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+@Immutable
+public final class ServiceResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ServiceProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ServiceResourceInner class.
+ */
+ public ServiceResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ServiceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the rpObjectId property: The object id of the service principal of the RP provisioned in the tenant.
+ *
+ * @return the rpObjectId value.
+ */
+ public String rpObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().rpObjectId();
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceResourceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ServiceResourceInner.
+ */
+ public static ServiceResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceResourceInner deserializedServiceResourceInner = new ServiceResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedServiceResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedServiceResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedServiceResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedServiceResourceInner.innerProperties = ServiceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedServiceResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceResourceInner;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/StorageClassProperties.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/StorageClassProperties.java
new file mode 100644
index 000000000000..ce6593abc505
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/StorageClassProperties.java
@@ -0,0 +1,423 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.AccessMode;
+import com.azure.resourcemanager.kubernetesruntime.models.DataResilienceTier;
+import com.azure.resourcemanager.kubernetesruntime.models.FailoverTier;
+import com.azure.resourcemanager.kubernetesruntime.models.PerformanceTier;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import com.azure.resourcemanager.kubernetesruntime.models.StorageClassTypeProperties;
+import com.azure.resourcemanager.kubernetesruntime.models.VolumeBindingMode;
+import com.azure.resourcemanager.kubernetesruntime.models.VolumeExpansion;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Details of the StorageClass StorageClass.
+ */
+@Fluent
+public final class StorageClassProperties implements JsonSerializable {
+ /*
+ * Volume can be expanded or not
+ */
+ private VolumeExpansion allowVolumeExpansion;
+
+ /*
+ * Additional mount options
+ */
+ private List mountOptions;
+
+ /*
+ * Provisioner name
+ */
+ private String provisioner;
+
+ /*
+ * Binding mode of volumes: Immediate, WaitForFirstConsumer
+ */
+ private VolumeBindingMode volumeBindingMode;
+
+ /*
+ * The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]
+ */
+ private List accessModes;
+
+ /*
+ * Allow single data node failure
+ */
+ private DataResilienceTier dataResilience;
+
+ /*
+ * Failover speed: NA, Slow, Fast
+ */
+ private FailoverTier failoverSpeed;
+
+ /*
+ * Limitations of the storage class
+ */
+ private List limitations;
+
+ /*
+ * Performance tier
+ */
+ private PerformanceTier performance;
+
+ /*
+ * Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use
+ */
+ private Long priority;
+
+ /*
+ * Properties of the StorageClass
+ */
+ private StorageClassTypeProperties typeProperties;
+
+ /*
+ * Resource provision state
+ */
+ private ProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of StorageClassProperties class.
+ */
+ public StorageClassProperties() {
+ }
+
+ /**
+ * Get the allowVolumeExpansion property: Volume can be expanded or not.
+ *
+ * @return the allowVolumeExpansion value.
+ */
+ public VolumeExpansion allowVolumeExpansion() {
+ return this.allowVolumeExpansion;
+ }
+
+ /**
+ * Set the allowVolumeExpansion property: Volume can be expanded or not.
+ *
+ * @param allowVolumeExpansion the allowVolumeExpansion value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withAllowVolumeExpansion(VolumeExpansion allowVolumeExpansion) {
+ this.allowVolumeExpansion = allowVolumeExpansion;
+ return this;
+ }
+
+ /**
+ * Get the mountOptions property: Additional mount options.
+ *
+ * @return the mountOptions value.
+ */
+ public List mountOptions() {
+ return this.mountOptions;
+ }
+
+ /**
+ * Set the mountOptions property: Additional mount options.
+ *
+ * @param mountOptions the mountOptions value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withMountOptions(List mountOptions) {
+ this.mountOptions = mountOptions;
+ return this;
+ }
+
+ /**
+ * Get the provisioner property: Provisioner name.
+ *
+ * @return the provisioner value.
+ */
+ public String provisioner() {
+ return this.provisioner;
+ }
+
+ /**
+ * Set the provisioner property: Provisioner name.
+ *
+ * @param provisioner the provisioner value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withProvisioner(String provisioner) {
+ this.provisioner = provisioner;
+ return this;
+ }
+
+ /**
+ * Get the volumeBindingMode property: Binding mode of volumes: Immediate, WaitForFirstConsumer.
+ *
+ * @return the volumeBindingMode value.
+ */
+ public VolumeBindingMode volumeBindingMode() {
+ return this.volumeBindingMode;
+ }
+
+ /**
+ * Set the volumeBindingMode property: Binding mode of volumes: Immediate, WaitForFirstConsumer.
+ *
+ * @param volumeBindingMode the volumeBindingMode value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withVolumeBindingMode(VolumeBindingMode volumeBindingMode) {
+ this.volumeBindingMode = volumeBindingMode;
+ return this;
+ }
+
+ /**
+ * Get the accessModes property: The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce].
+ *
+ * @return the accessModes value.
+ */
+ public List accessModes() {
+ return this.accessModes;
+ }
+
+ /**
+ * Set the accessModes property: The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce].
+ *
+ * @param accessModes the accessModes value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withAccessModes(List accessModes) {
+ this.accessModes = accessModes;
+ return this;
+ }
+
+ /**
+ * Get the dataResilience property: Allow single data node failure.
+ *
+ * @return the dataResilience value.
+ */
+ public DataResilienceTier dataResilience() {
+ return this.dataResilience;
+ }
+
+ /**
+ * Set the dataResilience property: Allow single data node failure.
+ *
+ * @param dataResilience the dataResilience value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withDataResilience(DataResilienceTier dataResilience) {
+ this.dataResilience = dataResilience;
+ return this;
+ }
+
+ /**
+ * Get the failoverSpeed property: Failover speed: NA, Slow, Fast.
+ *
+ * @return the failoverSpeed value.
+ */
+ public FailoverTier failoverSpeed() {
+ return this.failoverSpeed;
+ }
+
+ /**
+ * Set the failoverSpeed property: Failover speed: NA, Slow, Fast.
+ *
+ * @param failoverSpeed the failoverSpeed value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withFailoverSpeed(FailoverTier failoverSpeed) {
+ this.failoverSpeed = failoverSpeed;
+ return this;
+ }
+
+ /**
+ * Get the limitations property: Limitations of the storage class.
+ *
+ * @return the limitations value.
+ */
+ public List limitations() {
+ return this.limitations;
+ }
+
+ /**
+ * Set the limitations property: Limitations of the storage class.
+ *
+ * @param limitations the limitations value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withLimitations(List limitations) {
+ this.limitations = limitations;
+ return this;
+ }
+
+ /**
+ * Get the performance property: Performance tier.
+ *
+ * @return the performance value.
+ */
+ public PerformanceTier performance() {
+ return this.performance;
+ }
+
+ /**
+ * Set the performance property: Performance tier.
+ *
+ * @param performance the performance value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withPerformance(PerformanceTier performance) {
+ this.performance = performance;
+ return this;
+ }
+
+ /**
+ * Get the priority property: Selection priority when multiple storage classes meet the criteria. 0: Highest, -1:
+ * Never use.
+ *
+ * @return the priority value.
+ */
+ public Long priority() {
+ return this.priority;
+ }
+
+ /**
+ * Set the priority property: Selection priority when multiple storage classes meet the criteria. 0: Highest, -1:
+ * Never use.
+ *
+ * @param priority the priority value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withPriority(Long priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * Get the typeProperties property: Properties of the StorageClass.
+ *
+ * @return the typeProperties value.
+ */
+ public StorageClassTypeProperties typeProperties() {
+ return this.typeProperties;
+ }
+
+ /**
+ * Set the typeProperties property: Properties of the StorageClass.
+ *
+ * @param typeProperties the typeProperties value to set.
+ * @return the StorageClassProperties object itself.
+ */
+ public StorageClassProperties withTypeProperties(StorageClassTypeProperties typeProperties) {
+ this.typeProperties = typeProperties;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (typeProperties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property typeProperties in model StorageClassProperties"));
+ } else {
+ typeProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(StorageClassProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("typeProperties", this.typeProperties);
+ jsonWriter.writeStringField("allowVolumeExpansion",
+ this.allowVolumeExpansion == null ? null : this.allowVolumeExpansion.toString());
+ jsonWriter.writeArrayField("mountOptions", this.mountOptions, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("provisioner", this.provisioner);
+ jsonWriter.writeStringField("volumeBindingMode",
+ this.volumeBindingMode == null ? null : this.volumeBindingMode.toString());
+ jsonWriter.writeArrayField("accessModes", this.accessModes,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ jsonWriter.writeStringField("dataResilience",
+ this.dataResilience == null ? null : this.dataResilience.toString());
+ jsonWriter.writeStringField("failoverSpeed", this.failoverSpeed == null ? null : this.failoverSpeed.toString());
+ jsonWriter.writeArrayField("limitations", this.limitations, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("performance", this.performance == null ? null : this.performance.toString());
+ jsonWriter.writeNumberField("priority", this.priority);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StorageClassProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StorageClassProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StorageClassProperties.
+ */
+ public static StorageClassProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StorageClassProperties deserializedStorageClassProperties = new StorageClassProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("typeProperties".equals(fieldName)) {
+ deserializedStorageClassProperties.typeProperties = StorageClassTypeProperties.fromJson(reader);
+ } else if ("allowVolumeExpansion".equals(fieldName)) {
+ deserializedStorageClassProperties.allowVolumeExpansion
+ = VolumeExpansion.fromString(reader.getString());
+ } else if ("mountOptions".equals(fieldName)) {
+ List mountOptions = reader.readArray(reader1 -> reader1.getString());
+ deserializedStorageClassProperties.mountOptions = mountOptions;
+ } else if ("provisioner".equals(fieldName)) {
+ deserializedStorageClassProperties.provisioner = reader.getString();
+ } else if ("volumeBindingMode".equals(fieldName)) {
+ deserializedStorageClassProperties.volumeBindingMode
+ = VolumeBindingMode.fromString(reader.getString());
+ } else if ("accessModes".equals(fieldName)) {
+ List accessModes
+ = reader.readArray(reader1 -> AccessMode.fromString(reader1.getString()));
+ deserializedStorageClassProperties.accessModes = accessModes;
+ } else if ("dataResilience".equals(fieldName)) {
+ deserializedStorageClassProperties.dataResilience
+ = DataResilienceTier.fromString(reader.getString());
+ } else if ("failoverSpeed".equals(fieldName)) {
+ deserializedStorageClassProperties.failoverSpeed = FailoverTier.fromString(reader.getString());
+ } else if ("limitations".equals(fieldName)) {
+ List limitations = reader.readArray(reader1 -> reader1.getString());
+ deserializedStorageClassProperties.limitations = limitations;
+ } else if ("performance".equals(fieldName)) {
+ deserializedStorageClassProperties.performance = PerformanceTier.fromString(reader.getString());
+ } else if ("priority".equals(fieldName)) {
+ deserializedStorageClassProperties.priority = reader.getNullable(JsonReader::getLong);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedStorageClassProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStorageClassProperties;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/StorageClassResourceInner.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/StorageClassResourceInner.java
new file mode 100644
index 000000000000..8d0157c1a77f
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/StorageClassResourceInner.java
@@ -0,0 +1,427 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.kubernetesruntime.models.AccessMode;
+import com.azure.resourcemanager.kubernetesruntime.models.DataResilienceTier;
+import com.azure.resourcemanager.kubernetesruntime.models.FailoverTier;
+import com.azure.resourcemanager.kubernetesruntime.models.PerformanceTier;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import com.azure.resourcemanager.kubernetesruntime.models.StorageClassTypeProperties;
+import com.azure.resourcemanager.kubernetesruntime.models.VolumeBindingMode;
+import com.azure.resourcemanager.kubernetesruntime.models.VolumeExpansion;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+@Fluent
+public final class StorageClassResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private StorageClassProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of StorageClassResourceInner class.
+ */
+ public StorageClassResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The resource-specific properties for this resource.
+ *
+ * @return the innerProperties value.
+ */
+ private StorageClassProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the allowVolumeExpansion property: Volume can be expanded or not.
+ *
+ * @return the allowVolumeExpansion value.
+ */
+ public VolumeExpansion allowVolumeExpansion() {
+ return this.innerProperties() == null ? null : this.innerProperties().allowVolumeExpansion();
+ }
+
+ /**
+ * Set the allowVolumeExpansion property: Volume can be expanded or not.
+ *
+ * @param allowVolumeExpansion the allowVolumeExpansion value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withAllowVolumeExpansion(VolumeExpansion allowVolumeExpansion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withAllowVolumeExpansion(allowVolumeExpansion);
+ return this;
+ }
+
+ /**
+ * Get the mountOptions property: Additional mount options.
+ *
+ * @return the mountOptions value.
+ */
+ public List mountOptions() {
+ return this.innerProperties() == null ? null : this.innerProperties().mountOptions();
+ }
+
+ /**
+ * Set the mountOptions property: Additional mount options.
+ *
+ * @param mountOptions the mountOptions value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withMountOptions(List mountOptions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withMountOptions(mountOptions);
+ return this;
+ }
+
+ /**
+ * Get the provisioner property: Provisioner name.
+ *
+ * @return the provisioner value.
+ */
+ public String provisioner() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioner();
+ }
+
+ /**
+ * Set the provisioner property: Provisioner name.
+ *
+ * @param provisioner the provisioner value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withProvisioner(String provisioner) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withProvisioner(provisioner);
+ return this;
+ }
+
+ /**
+ * Get the volumeBindingMode property: Binding mode of volumes: Immediate, WaitForFirstConsumer.
+ *
+ * @return the volumeBindingMode value.
+ */
+ public VolumeBindingMode volumeBindingMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().volumeBindingMode();
+ }
+
+ /**
+ * Set the volumeBindingMode property: Binding mode of volumes: Immediate, WaitForFirstConsumer.
+ *
+ * @param volumeBindingMode the volumeBindingMode value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withVolumeBindingMode(VolumeBindingMode volumeBindingMode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withVolumeBindingMode(volumeBindingMode);
+ return this;
+ }
+
+ /**
+ * Get the accessModes property: The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce].
+ *
+ * @return the accessModes value.
+ */
+ public List accessModes() {
+ return this.innerProperties() == null ? null : this.innerProperties().accessModes();
+ }
+
+ /**
+ * Set the accessModes property: The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce].
+ *
+ * @param accessModes the accessModes value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withAccessModes(List accessModes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withAccessModes(accessModes);
+ return this;
+ }
+
+ /**
+ * Get the dataResilience property: Allow single data node failure.
+ *
+ * @return the dataResilience value.
+ */
+ public DataResilienceTier dataResilience() {
+ return this.innerProperties() == null ? null : this.innerProperties().dataResilience();
+ }
+
+ /**
+ * Set the dataResilience property: Allow single data node failure.
+ *
+ * @param dataResilience the dataResilience value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withDataResilience(DataResilienceTier dataResilience) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withDataResilience(dataResilience);
+ return this;
+ }
+
+ /**
+ * Get the failoverSpeed property: Failover speed: NA, Slow, Fast.
+ *
+ * @return the failoverSpeed value.
+ */
+ public FailoverTier failoverSpeed() {
+ return this.innerProperties() == null ? null : this.innerProperties().failoverSpeed();
+ }
+
+ /**
+ * Set the failoverSpeed property: Failover speed: NA, Slow, Fast.
+ *
+ * @param failoverSpeed the failoverSpeed value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withFailoverSpeed(FailoverTier failoverSpeed) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withFailoverSpeed(failoverSpeed);
+ return this;
+ }
+
+ /**
+ * Get the limitations property: Limitations of the storage class.
+ *
+ * @return the limitations value.
+ */
+ public List limitations() {
+ return this.innerProperties() == null ? null : this.innerProperties().limitations();
+ }
+
+ /**
+ * Set the limitations property: Limitations of the storage class.
+ *
+ * @param limitations the limitations value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withLimitations(List limitations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withLimitations(limitations);
+ return this;
+ }
+
+ /**
+ * Get the performance property: Performance tier.
+ *
+ * @return the performance value.
+ */
+ public PerformanceTier performance() {
+ return this.innerProperties() == null ? null : this.innerProperties().performance();
+ }
+
+ /**
+ * Set the performance property: Performance tier.
+ *
+ * @param performance the performance value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withPerformance(PerformanceTier performance) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withPerformance(performance);
+ return this;
+ }
+
+ /**
+ * Get the priority property: Selection priority when multiple storage classes meet the criteria. 0: Highest, -1:
+ * Never use.
+ *
+ * @return the priority value.
+ */
+ public Long priority() {
+ return this.innerProperties() == null ? null : this.innerProperties().priority();
+ }
+
+ /**
+ * Set the priority property: Selection priority when multiple storage classes meet the criteria. 0: Highest, -1:
+ * Never use.
+ *
+ * @param priority the priority value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withPriority(Long priority) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withPriority(priority);
+ return this;
+ }
+
+ /**
+ * Get the typeProperties property: Properties of the StorageClass.
+ *
+ * @return the typeProperties value.
+ */
+ public StorageClassTypeProperties typeProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().typeProperties();
+ }
+
+ /**
+ * Set the typeProperties property: Properties of the StorageClass.
+ *
+ * @param typeProperties the typeProperties value to set.
+ * @return the StorageClassResourceInner object itself.
+ */
+ public StorageClassResourceInner withTypeProperties(StorageClassTypeProperties typeProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageClassProperties();
+ }
+ this.innerProperties().withTypeProperties(typeProperties);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Resource provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StorageClassResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StorageClassResourceInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StorageClassResourceInner.
+ */
+ public static StorageClassResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StorageClassResourceInner deserializedStorageClassResourceInner = new StorageClassResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedStorageClassResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedStorageClassResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedStorageClassResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedStorageClassResourceInner.innerProperties = StorageClassProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedStorageClassResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStorageClassResourceInner;
+ });
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/package-info.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/package-info.java
new file mode 100644
index 000000000000..b84030b470fd
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the inner data models for MicrosoftKubernetesRuntime.
+ * null.
+ */
+package com.azure.resourcemanager.kubernetesruntime.fluent.models;
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/package-info.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/package-info.java
new file mode 100644
index 000000000000..c90cdda49e32
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the service clients for MicrosoftKubernetesRuntime.
+ * null.
+ */
+package com.azure.resourcemanager.kubernetesruntime.fluent;
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeerImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeerImpl.java
new file mode 100644
index 000000000000..94ee9ffed5fa
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeerImpl.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.BgpPeerInner;
+import com.azure.resourcemanager.kubernetesruntime.models.BgpPeer;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+
+public final class BgpPeerImpl implements BgpPeer, BgpPeer.Definition, BgpPeer.Update {
+ private BgpPeerInner innerObject;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager 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 int myAsn() {
+ return this.innerModel().myAsn();
+ }
+
+ public int peerAsn() {
+ return this.innerModel().peerAsn();
+ }
+
+ public String peerAddress() {
+ return this.innerModel().peerAddress();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public BgpPeerInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceUri;
+
+ private String bgpPeerName;
+
+ public BgpPeerImpl withExistingResourceUri(String resourceUri) {
+ this.resourceUri = resourceUri;
+ return this;
+ }
+
+ public BgpPeer create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getBgpPeers()
+ .createOrUpdate(resourceUri, bgpPeerName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public BgpPeer create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getBgpPeers()
+ .createOrUpdate(resourceUri, bgpPeerName, this.innerModel(), context);
+ return this;
+ }
+
+ BgpPeerImpl(String name, com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = new BgpPeerInner();
+ this.serviceManager = serviceManager;
+ this.bgpPeerName = name;
+ }
+
+ public BgpPeerImpl update() {
+ return this;
+ }
+
+ public BgpPeer apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getBgpPeers()
+ .createOrUpdate(resourceUri, bgpPeerName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public BgpPeer apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getBgpPeers()
+ .createOrUpdate(resourceUri, bgpPeerName, this.innerModel(), context);
+ return this;
+ }
+
+ BgpPeerImpl(BgpPeerInner innerObject,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "resourceUri");
+ this.bgpPeerName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "bgpPeerName");
+ }
+
+ public BgpPeer refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getBgpPeers()
+ .getWithResponse(resourceUri, bgpPeerName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public BgpPeer refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getBgpPeers()
+ .getWithResponse(resourceUri, bgpPeerName, context)
+ .getValue();
+ return this;
+ }
+
+ public BgpPeerImpl withMyAsn(int myAsn) {
+ this.innerModel().withMyAsn(myAsn);
+ return this;
+ }
+
+ public BgpPeerImpl withPeerAsn(int peerAsn) {
+ this.innerModel().withPeerAsn(peerAsn);
+ return this;
+ }
+
+ public BgpPeerImpl withPeerAddress(String peerAddress) {
+ this.innerModel().withPeerAddress(peerAddress);
+ return this;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeersClientImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeersClientImpl.java
new file mode 100644
index 000000000000..3b0ef92f57b3
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeersClientImpl.java
@@ -0,0 +1,714 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.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.kubernetesruntime.fluent.BgpPeersClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.BgpPeerInner;
+import com.azure.resourcemanager.kubernetesruntime.models.BgpPeerListResult;
+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 BgpPeersClient.
+ */
+public final class BgpPeersClientImpl implements BgpPeersClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final BgpPeersService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftKubernetesRuntimeImpl client;
+
+ /**
+ * Initializes an instance of BgpPeersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BgpPeersClientImpl(MicrosoftKubernetesRuntimeImpl client) {
+ this.service = RestProxy.create(BgpPeersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftKubernetesRuntimeBgpPeers to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftKubernetesR")
+ public interface BgpPeersService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("bgpPeerName") String bgpPeerName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("bgpPeerName") String bgpPeerName, @BodyParam("application/json") BgpPeerInner resource,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("bgpPeerName") String bgpPeerName, @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);
+ }
+
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceUri) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ 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 BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceUri, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceUri) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceUri), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceUri, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceUri, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceUri) {
+ return new PagedIterable<>(listAsync(resourceUri));
+ }
+
+ /**
+ * List BgpPeer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a BgpPeer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceUri, Context context) {
+ return new PagedIterable<>(listAsync(resourceUri, context));
+ }
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 BgpPeer along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceUri, String bgpPeerName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (bgpPeerName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bgpPeerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ bgpPeerName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 BgpPeer along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceUri, String bgpPeerName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (bgpPeerName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bgpPeerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, bgpPeerName, accept,
+ context);
+ }
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 BgpPeer on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceUri, String bgpPeerName) {
+ return getWithResponseAsync(resourceUri, bgpPeerName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 BgpPeer along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceUri, String bgpPeerName, Context context) {
+ return getWithResponseAsync(resourceUri, bgpPeerName, context).block();
+ }
+
+ /**
+ * Get a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 BgpPeer.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BgpPeerInner get(String resourceUri, String bgpPeerName) {
+ return getWithResponse(resourceUri, bgpPeerName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceUri, String bgpPeerName,
+ BgpPeerInner resource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (bgpPeerName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bgpPeerName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ resourceUri, bgpPeerName, resource, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceUri, String bgpPeerName,
+ BgpPeerInner resource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (bgpPeerName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bgpPeerName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, bgpPeerName,
+ resource, accept, context);
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BgpPeerInner> beginCreateOrUpdateAsync(String resourceUri,
+ String bgpPeerName, BgpPeerInner resource) {
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceUri, bgpPeerName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ BgpPeerInner.class, BgpPeerInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, BgpPeerInner> beginCreateOrUpdateAsync(String resourceUri,
+ String bgpPeerName, BgpPeerInner resource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceUri, bgpPeerName, resource, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ BgpPeerInner.class, BgpPeerInner.class, context);
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BgpPeerInner> beginCreateOrUpdate(String resourceUri,
+ String bgpPeerName, BgpPeerInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceUri, bgpPeerName, resource).getSyncPoller();
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 a BgpPeer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, BgpPeerInner> beginCreateOrUpdate(String resourceUri,
+ String bgpPeerName, BgpPeerInner resource, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceUri, bgpPeerName, resource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceUri, String bgpPeerName, BgpPeerInner resource) {
+ return beginCreateOrUpdateAsync(resourceUri, bgpPeerName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceUri, String bgpPeerName, BgpPeerInner resource,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceUri, bgpPeerName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BgpPeerInner createOrUpdate(String resourceUri, String bgpPeerName, BgpPeerInner resource) {
+ return createOrUpdateAsync(resourceUri, bgpPeerName, resource).block();
+ }
+
+ /**
+ * Create a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @param resource Resource create parameters.
+ * @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 BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BgpPeerInner createOrUpdate(String resourceUri, String bgpPeerName, BgpPeerInner resource, Context context) {
+ return createOrUpdateAsync(resourceUri, bgpPeerName, resource, context).block();
+ }
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 resourceUri, String bgpPeerName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (bgpPeerName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bgpPeerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ bgpPeerName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 resourceUri, String bgpPeerName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (bgpPeerName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter bgpPeerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, bgpPeerName, accept,
+ context);
+ }
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 resourceUri, String bgpPeerName) {
+ return deleteWithResponseAsync(resourceUri, bgpPeerName).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceUri, String bgpPeerName, Context context) {
+ return deleteWithResponseAsync(resourceUri, bgpPeerName, context).block();
+ }
+
+ /**
+ * Delete a BgpPeer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param bgpPeerName The name of the BgpPeer.
+ * @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 resourceUri, String bgpPeerName) {
+ deleteWithResponse(resourceUri, bgpPeerName, Context.NONE);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a BgpPeer list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), 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()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a BgpPeer list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeersImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeersImpl.java
new file mode 100644
index 000000000000..89d0a6cdf77a
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/BgpPeersImpl.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+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.kubernetesruntime.fluent.BgpPeersClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.BgpPeerInner;
+import com.azure.resourcemanager.kubernetesruntime.models.BgpPeer;
+import com.azure.resourcemanager.kubernetesruntime.models.BgpPeers;
+
+public final class BgpPeersImpl implements BgpPeers {
+ private static final ClientLogger LOGGER = new ClientLogger(BgpPeersImpl.class);
+
+ private final BgpPeersClient innerClient;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager;
+
+ public BgpPeersImpl(BgpPeersClient innerClient,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceUri) {
+ PagedIterable inner = this.serviceClient().list(resourceUri);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new BgpPeerImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceUri, Context context) {
+ PagedIterable inner = this.serviceClient().list(resourceUri, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new BgpPeerImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(String resourceUri, String bgpPeerName, Context context) {
+ Response inner = this.serviceClient().getWithResponse(resourceUri, bgpPeerName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new BgpPeerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BgpPeer get(String resourceUri, String bgpPeerName) {
+ BgpPeerInner inner = this.serviceClient().get(resourceUri, bgpPeerName);
+ if (inner != null) {
+ return new BgpPeerImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteByResourceGroupWithResponse(String resourceUri, String bgpPeerName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceUri, bgpPeerName, context);
+ }
+
+ public void deleteByResourceGroup(String resourceUri, String bgpPeerName) {
+ this.serviceClient().delete(resourceUri, bgpPeerName);
+ }
+
+ public BgpPeer getById(String id) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String bgpPeerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "bgpPeerName");
+ if (bgpPeerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'bgpPeers'.", id)));
+ }
+ return this.getWithResponse(resourceUri, bgpPeerName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String bgpPeerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "bgpPeerName");
+ if (bgpPeerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'bgpPeers'.", id)));
+ }
+ return this.getWithResponse(resourceUri, bgpPeerName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String bgpPeerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "bgpPeerName");
+ if (bgpPeerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'bgpPeers'.", id)));
+ }
+ this.deleteByResourceGroupWithResponse(resourceUri, bgpPeerName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String bgpPeerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}", "bgpPeerName");
+ if (bgpPeerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'bgpPeers'.", id)));
+ }
+ return this.deleteByResourceGroupWithResponse(resourceUri, bgpPeerName, context);
+ }
+
+ private BgpPeersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+
+ public BgpPeerImpl define(String name) {
+ return new BgpPeerImpl(name, this.manager());
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancerImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancerImpl.java
new file mode 100644
index 000000000000..a508eb1e3b4d
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancerImpl.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.LoadBalancerInner;
+import com.azure.resourcemanager.kubernetesruntime.models.AdvertiseMode;
+import com.azure.resourcemanager.kubernetesruntime.models.LoadBalancer;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class LoadBalancerImpl implements LoadBalancer, LoadBalancer.Definition, LoadBalancer.Update {
+ private LoadBalancerInner innerObject;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager 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 List addresses() {
+ List inner = this.innerModel().addresses();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Map serviceSelector() {
+ Map inner = this.innerModel().serviceSelector();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public AdvertiseMode advertiseMode() {
+ return this.innerModel().advertiseMode();
+ }
+
+ public List bgpPeers() {
+ List inner = this.innerModel().bgpPeers();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public LoadBalancerInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceUri;
+
+ private String loadBalancerName;
+
+ public LoadBalancerImpl withExistingResourceUri(String resourceUri) {
+ this.resourceUri = resourceUri;
+ return this;
+ }
+
+ public LoadBalancer create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getLoadBalancers()
+ .createOrUpdate(resourceUri, loadBalancerName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public LoadBalancer create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getLoadBalancers()
+ .createOrUpdate(resourceUri, loadBalancerName, this.innerModel(), context);
+ return this;
+ }
+
+ LoadBalancerImpl(String name, com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = new LoadBalancerInner();
+ this.serviceManager = serviceManager;
+ this.loadBalancerName = name;
+ }
+
+ public LoadBalancerImpl update() {
+ return this;
+ }
+
+ public LoadBalancer apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getLoadBalancers()
+ .createOrUpdate(resourceUri, loadBalancerName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public LoadBalancer apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getLoadBalancers()
+ .createOrUpdate(resourceUri, loadBalancerName, this.innerModel(), context);
+ return this;
+ }
+
+ LoadBalancerImpl(LoadBalancerInner innerObject,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", "resourceUri");
+ this.loadBalancerName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}",
+ "loadBalancerName");
+ }
+
+ public LoadBalancer refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getLoadBalancers()
+ .getWithResponse(resourceUri, loadBalancerName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public LoadBalancer refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getLoadBalancers()
+ .getWithResponse(resourceUri, loadBalancerName, context)
+ .getValue();
+ return this;
+ }
+
+ public LoadBalancerImpl withAddresses(List addresses) {
+ this.innerModel().withAddresses(addresses);
+ return this;
+ }
+
+ public LoadBalancerImpl withServiceSelector(Map serviceSelector) {
+ this.innerModel().withServiceSelector(serviceSelector);
+ return this;
+ }
+
+ public LoadBalancerImpl withAdvertiseMode(AdvertiseMode advertiseMode) {
+ this.innerModel().withAdvertiseMode(advertiseMode);
+ return this;
+ }
+
+ public LoadBalancerImpl withBgpPeers(List bgpPeers) {
+ this.innerModel().withBgpPeers(bgpPeers);
+ return this;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancersClientImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancersClientImpl.java
new file mode 100644
index 000000000000..cda7aac31b55
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancersClientImpl.java
@@ -0,0 +1,728 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.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.kubernetesruntime.fluent.LoadBalancersClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.LoadBalancerInner;
+import com.azure.resourcemanager.kubernetesruntime.models.LoadBalancerListResult;
+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 LoadBalancersClient.
+ */
+public final class LoadBalancersClientImpl implements LoadBalancersClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final LoadBalancersService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftKubernetesRuntimeImpl client;
+
+ /**
+ * Initializes an instance of LoadBalancersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LoadBalancersClientImpl(MicrosoftKubernetesRuntimeImpl client) {
+ this.service
+ = RestProxy.create(LoadBalancersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftKubernetesRuntimeLoadBalancers to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftKubernetesR")
+ public interface LoadBalancersService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("loadBalancerName") String loadBalancerName,
+ @BodyParam("application/json") LoadBalancerInner resource, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("loadBalancerName") String loadBalancerName, @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);
+ }
+
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceUri) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ 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 LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceUri, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceUri) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceUri), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceUri, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceUri, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceUri) {
+ return new PagedIterable<>(listAsync(resourceUri));
+ }
+
+ /**
+ * List LoadBalancer resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 response of a LoadBalancer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceUri, Context context) {
+ return new PagedIterable<>(listAsync(resourceUri, context));
+ }
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 LoadBalancer along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceUri, String loadBalancerName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (loadBalancerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ loadBalancerName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 LoadBalancer along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceUri, String loadBalancerName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (loadBalancerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, loadBalancerName,
+ accept, context);
+ }
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 LoadBalancer on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceUri, String loadBalancerName) {
+ return getWithResponseAsync(resourceUri, loadBalancerName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 LoadBalancer along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceUri, String loadBalancerName, Context context) {
+ return getWithResponseAsync(resourceUri, loadBalancerName, context).block();
+ }
+
+ /**
+ * Get a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 LoadBalancer.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LoadBalancerInner get(String resourceUri, String loadBalancerName) {
+ return getWithResponse(resourceUri, loadBalancerName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (loadBalancerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ resourceUri, loadBalancerName, resource, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (loadBalancerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ loadBalancerName, resource, accept, context);
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LoadBalancerInner> beginCreateOrUpdateAsync(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceUri, loadBalancerName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ LoadBalancerInner.class, LoadBalancerInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LoadBalancerInner> beginCreateOrUpdateAsync(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceUri, loadBalancerName, resource, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ LoadBalancerInner.class, LoadBalancerInner.class, context);
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LoadBalancerInner> beginCreateOrUpdate(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceUri, loadBalancerName, resource).getSyncPoller();
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 a LoadBalancer resource for an Arc connected cluster
+ * (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LoadBalancerInner> beginCreateOrUpdate(String resourceUri,
+ String loadBalancerName, LoadBalancerInner resource, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceUri, loadBalancerName, resource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceUri, String loadBalancerName,
+ LoadBalancerInner resource) {
+ return beginCreateOrUpdateAsync(resourceUri, loadBalancerName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceUri, String loadBalancerName,
+ LoadBalancerInner resource, Context context) {
+ return beginCreateOrUpdateAsync(resourceUri, loadBalancerName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LoadBalancerInner createOrUpdate(String resourceUri, String loadBalancerName, LoadBalancerInner resource) {
+ return createOrUpdateAsync(resourceUri, loadBalancerName, resource).block();
+ }
+
+ /**
+ * Create a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @param resource Resource create parameters.
+ * @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 LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LoadBalancerInner createOrUpdate(String resourceUri, String loadBalancerName, LoadBalancerInner resource,
+ Context context) {
+ return createOrUpdateAsync(resourceUri, loadBalancerName, resource, context).block();
+ }
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 resourceUri, String loadBalancerName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (loadBalancerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
+ loadBalancerName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 resourceUri, String loadBalancerName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceUri == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
+ }
+ if (loadBalancerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, loadBalancerName,
+ accept, context);
+ }
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 resourceUri, String loadBalancerName) {
+ return deleteWithResponseAsync(resourceUri, loadBalancerName).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceUri, String loadBalancerName, Context context) {
+ return deleteWithResponseAsync(resourceUri, loadBalancerName, context).block();
+ }
+
+ /**
+ * Delete a LoadBalancer.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param loadBalancerName The name of the LoadBalancer.
+ * @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 resourceUri, String loadBalancerName) {
+ deleteWithResponse(resourceUri, loadBalancerName, Context.NONE);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a LoadBalancer list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), 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()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a LoadBalancer list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancersImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancersImpl.java
new file mode 100644
index 000000000000..48e48511caff
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/LoadBalancersImpl.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+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.kubernetesruntime.fluent.LoadBalancersClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.LoadBalancerInner;
+import com.azure.resourcemanager.kubernetesruntime.models.LoadBalancer;
+import com.azure.resourcemanager.kubernetesruntime.models.LoadBalancers;
+
+public final class LoadBalancersImpl implements LoadBalancers {
+ private static final ClientLogger LOGGER = new ClientLogger(LoadBalancersImpl.class);
+
+ private final LoadBalancersClient innerClient;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager;
+
+ public LoadBalancersImpl(LoadBalancersClient innerClient,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceUri) {
+ PagedIterable inner = this.serviceClient().list(resourceUri);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LoadBalancerImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceUri, Context context) {
+ PagedIterable inner = this.serviceClient().list(resourceUri, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new LoadBalancerImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(String resourceUri, String loadBalancerName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceUri, loadBalancerName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new LoadBalancerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public LoadBalancer get(String resourceUri, String loadBalancerName) {
+ LoadBalancerInner inner = this.serviceClient().get(resourceUri, loadBalancerName);
+ if (inner != null) {
+ return new LoadBalancerImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteByResourceGroupWithResponse(String resourceUri, String loadBalancerName,
+ Context context) {
+ return this.serviceClient().deleteWithResponse(resourceUri, loadBalancerName, context);
+ }
+
+ public void deleteByResourceGroup(String resourceUri, String loadBalancerName) {
+ this.serviceClient().delete(resourceUri, loadBalancerName);
+ }
+
+ public LoadBalancer getById(String id) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String loadBalancerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}",
+ "loadBalancerName");
+ if (loadBalancerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'loadBalancers'.", id)));
+ }
+ return this.getWithResponse(resourceUri, loadBalancerName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String loadBalancerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}",
+ "loadBalancerName");
+ if (loadBalancerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'loadBalancers'.", id)));
+ }
+ return this.getWithResponse(resourceUri, loadBalancerName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String loadBalancerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}",
+ "loadBalancerName");
+ if (loadBalancerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'loadBalancers'.", id)));
+ }
+ this.deleteByResourceGroupWithResponse(resourceUri, loadBalancerName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String loadBalancerName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}",
+ "loadBalancerName");
+ if (loadBalancerName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'loadBalancers'.", id)));
+ }
+ return this.deleteByResourceGroupWithResponse(resourceUri, loadBalancerName, context);
+ }
+
+ private LoadBalancersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+
+ public LoadBalancerImpl define(String name) {
+ return new LoadBalancerImpl(name, this.manager());
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/MicrosoftKubernetesRuntimeBuilder.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/MicrosoftKubernetesRuntimeBuilder.java
new file mode 100644
index 000000000000..105d4b384f3b
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/MicrosoftKubernetesRuntimeBuilder.java
@@ -0,0 +1,122 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/**
+ * A builder for creating a new instance of the MicrosoftKubernetesRuntimeImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { MicrosoftKubernetesRuntimeImpl.class })
+public final class MicrosoftKubernetesRuntimeBuilder {
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MicrosoftKubernetesRuntimeBuilder.
+ */
+ public MicrosoftKubernetesRuntimeBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the MicrosoftKubernetesRuntimeBuilder.
+ */
+ public MicrosoftKubernetesRuntimeBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the MicrosoftKubernetesRuntimeBuilder.
+ */
+ public MicrosoftKubernetesRuntimeBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the MicrosoftKubernetesRuntimeBuilder.
+ */
+ public MicrosoftKubernetesRuntimeBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the MicrosoftKubernetesRuntimeBuilder.
+ */
+ public MicrosoftKubernetesRuntimeBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MicrosoftKubernetesRuntimeImpl with the provided parameters.
+ *
+ * @return an instance of MicrosoftKubernetesRuntimeImpl.
+ */
+ public MicrosoftKubernetesRuntimeImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ MicrosoftKubernetesRuntimeImpl client = new MicrosoftKubernetesRuntimeImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint);
+ return client;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/MicrosoftKubernetesRuntimeImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/MicrosoftKubernetesRuntimeImpl.java
new file mode 100644
index 000000000000..c18360a23c59
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/MicrosoftKubernetesRuntimeImpl.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.kubernetesruntime.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.kubernetesruntime.fluent.BgpPeersClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.LoadBalancersClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.MicrosoftKubernetesRuntime;
+import com.azure.resourcemanager.kubernetesruntime.fluent.OperationsClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.ServicesClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.StorageClassClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the MicrosoftKubernetesRuntimeImpl type.
+ */
+@ServiceClient(builder = MicrosoftKubernetesRuntimeBuilder.class)
+public final class MicrosoftKubernetesRuntimeImpl implements MicrosoftKubernetesRuntime {
+ /**
+ * server parameter.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Api Version.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The HTTP pipeline to send requests through.
+ */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /**
+ * The serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * The BgpPeersClient object to access its operations.
+ */
+ private final BgpPeersClient bgpPeers;
+
+ /**
+ * Gets the BgpPeersClient object to access its operations.
+ *
+ * @return the BgpPeersClient object.
+ */
+ public BgpPeersClient getBgpPeers() {
+ return this.bgpPeers;
+ }
+
+ /**
+ * The LoadBalancersClient object to access its operations.
+ */
+ private final LoadBalancersClient loadBalancers;
+
+ /**
+ * Gets the LoadBalancersClient object to access its operations.
+ *
+ * @return the LoadBalancersClient object.
+ */
+ public LoadBalancersClient getLoadBalancers() {
+ return this.loadBalancers;
+ }
+
+ /**
+ * The ServicesClient object to access its operations.
+ */
+ private final ServicesClient services;
+
+ /**
+ * Gets the ServicesClient object to access its operations.
+ *
+ * @return the ServicesClient object.
+ */
+ public ServicesClient getServices() {
+ return this.services;
+ }
+
+ /**
+ * The StorageClassClient object to access its operations.
+ */
+ private final StorageClassClient storageClass;
+
+ /**
+ * Gets the StorageClassClient object to access its operations.
+ *
+ * @return the StorageClassClient object.
+ */
+ public StorageClassClient getStorageClass() {
+ return this.storageClass;
+ }
+
+ /**
+ * The OperationsClient object to access its operations.
+ */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * Initializes an instance of MicrosoftKubernetesRuntime client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param endpoint server parameter.
+ */
+ MicrosoftKubernetesRuntimeImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.apiVersion = "2024-03-01";
+ this.bgpPeers = new BgpPeersClientImpl(this);
+ this.loadBalancers = new LoadBalancersClientImpl(this);
+ this.services = new ServicesClientImpl(this);
+ this.storageClass = new StorageClassClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(MicrosoftKubernetesRuntimeImpl.class);
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationImpl.java
new file mode 100644
index 000000000000..9c76fb73aa35
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationImpl.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.OperationInner;
+import com.azure.resourcemanager.kubernetesruntime.models.ActionType;
+import com.azure.resourcemanager.kubernetesruntime.models.Operation;
+import com.azure.resourcemanager.kubernetesruntime.models.OperationDisplay;
+import com.azure.resourcemanager.kubernetesruntime.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager;
+
+ OperationImpl(OperationInner innerObject,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public Origin origin() {
+ return this.innerModel().origin();
+ }
+
+ public ActionType actionType() {
+ return this.innerModel().actionType();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationsClientImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..fc832475d094
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationsClientImpl.java
@@ -0,0 +1,235 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.kubernetesruntime.fluent.OperationsClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.OperationInner;
+import com.azure.resourcemanager.kubernetesruntime.models.OperationListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public final class OperationsClientImpl implements OperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final OperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftKubernetesRuntimeImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(MicrosoftKubernetesRuntimeImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftKubernetesRuntimeOperations to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftKubernetesR")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.KubernetesRuntime/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @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);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), 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 the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), 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()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationsImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..e6de366b378a
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/OperationsImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.kubernetesruntime.fluent.OperationsClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.OperationInner;
+import com.azure.resourcemanager.kubernetesruntime.models.Operation;
+import com.azure.resourcemanager.kubernetesruntime.models.Operations;
+
+public final class OperationsImpl implements Operations {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ResourceManagerUtils.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ResourceManagerUtils.java
new file mode 100644
index 000000000000..ab413d3ebd3b
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ResourceManagerUtils.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+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.util.CoreUtils;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import reactor.core.publisher.Flux;
+
+final class ResourceManagerUtils {
+ private ResourceManagerUtils() {
+ }
+
+ static String getValueFromIdByName(String id, String name) {
+ if (id == null) {
+ return null;
+ }
+ Iterator itr = Arrays.stream(id.split("/")).iterator();
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && !part.trim().isEmpty()) {
+ if (part.equalsIgnoreCase(name)) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null) {
+ return null;
+ }
+ String parameterNameParentheses = "{" + parameterName + "}";
+ List idSegmentsReverted = Arrays.asList(id.split("/"));
+ List pathSegments = Arrays.asList(pathTemplate.split("/"));
+ Collections.reverse(idSegmentsReverted);
+ Iterator idItrReverted = idSegmentsReverted.iterator();
+ int pathIndex = pathSegments.size();
+ while (idItrReverted.hasNext() && pathIndex > 0) {
+ String idSegment = idItrReverted.next();
+ String pathSegment = pathSegments.get(--pathIndex);
+ if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) {
+ if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) {
+ if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) {
+ List segments = new ArrayList<>();
+ segments.add(idSegment);
+ idItrReverted.forEachRemaining(segments::add);
+ Collections.reverse(segments);
+ if (!segments.isEmpty() && segments.get(0).isEmpty()) {
+ segments.remove(0);
+ }
+ return String.join("/", segments);
+ } else {
+ return idSegment;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
+ return new PagedIterableImpl<>(pageIterable, mapper);
+ }
+
+ private static final class PagedIterableImpl extends PagedIterable {
+
+ private final PagedIterable pagedIterable;
+ private final Function mapper;
+ private final Function, PagedResponse> pageMapper;
+
+ private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) {
+ super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux
+ .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper)))));
+ this.pagedIterable = pagedIterable;
+ this.mapper = mapper;
+ this.pageMapper = getPageMapper(mapper);
+ }
+
+ private static Function, PagedResponse> getPageMapper(Function mapper) {
+ return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(),
+ page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(),
+ null);
+ }
+
+ @Override
+ public Stream stream() {
+ return pagedIterable.stream().map(mapper);
+ }
+
+ @Override
+ public Stream> streamByPage() {
+ return pagedIterable.streamByPage().map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken) {
+ return pagedIterable.streamByPage(continuationToken).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(int preferredPageSize) {
+ return pagedIterable.streamByPage(preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken, int preferredPageSize) {
+ return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage() {
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ }
+ }
+
+ private static final class IteratorImpl implements Iterator {
+
+ private final Iterator iterator;
+ private final Function mapper;
+
+ private IteratorImpl(Iterator iterator, Function mapper) {
+ this.iterator = iterator;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public boolean hasNext() {
+ return iterator.hasNext();
+ }
+
+ @Override
+ public S next() {
+ return mapper.apply(iterator.next());
+ }
+
+ @Override
+ public void remove() {
+ iterator.remove();
+ }
+ }
+
+ private static final class IterableImpl implements Iterable {
+
+ private final Iterable iterable;
+ private final Function mapper;
+
+ private IterableImpl(Iterable iterable, Function mapper) {
+ this.iterable = iterable;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(iterable.iterator(), mapper);
+ }
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ServiceResourceImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ServiceResourceImpl.java
new file mode 100644
index 000000000000..752834f49b45
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ServiceResourceImpl.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.ServiceResourceInner;
+import com.azure.resourcemanager.kubernetesruntime.models.ProvisioningState;
+import com.azure.resourcemanager.kubernetesruntime.models.ServiceResource;
+
+public final class ServiceResourceImpl implements ServiceResource, ServiceResource.Definition, ServiceResource.Update {
+ private ServiceResourceInner innerObject;
+
+ private final com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager 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 String rpObjectId() {
+ return this.innerModel().rpObjectId();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public ServiceResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceUri;
+
+ private String serviceName;
+
+ public ServiceResourceImpl withExistingResourceUri(String resourceUri) {
+ this.resourceUri = resourceUri;
+ return this;
+ }
+
+ public ServiceResource create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getServices()
+ .createOrUpdateWithResponse(resourceUri, serviceName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ServiceResource create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getServices()
+ .createOrUpdateWithResponse(resourceUri, serviceName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ServiceResourceImpl(String name,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = new ServiceResourceInner();
+ this.serviceManager = serviceManager;
+ this.serviceName = name;
+ }
+
+ public ServiceResourceImpl update() {
+ return this;
+ }
+
+ public ServiceResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getServices()
+ .createOrUpdateWithResponse(resourceUri, serviceName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ServiceResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getServices()
+ .createOrUpdateWithResponse(resourceUri, serviceName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ServiceResourceImpl(ServiceResourceInner innerObject,
+ com.azure.resourcemanager.kubernetesruntime.KubernetesruntimeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}", "resourceUri");
+ this.serviceName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}", "serviceName");
+ }
+
+ public ServiceResource refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getServices()
+ .getWithResponse(resourceUri, serviceName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ServiceResource refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getServices()
+ .getWithResponse(resourceUri, serviceName, context)
+ .getValue();
+ return this;
+ }
+}
diff --git a/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ServicesClientImpl.java b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ServicesClientImpl.java
new file mode 100644
index 000000000000..7b8b1f367d09
--- /dev/null
+++ b/sdk/kubernetesruntime/azure-resourcemanager-kubernetesruntime/src/main/java/com/azure/resourcemanager/kubernetesruntime/implementation/ServicesClientImpl.java
@@ -0,0 +1,614 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.kubernetesruntime.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.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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.kubernetesruntime.fluent.ServicesClient;
+import com.azure.resourcemanager.kubernetesruntime.fluent.models.ServiceResourceInner;
+import com.azure.resourcemanager.kubernetesruntime.models.ServiceResourceListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ServicesClient.
+ */
+public final class ServicesClientImpl implements ServicesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ServicesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftKubernetesRuntimeImpl client;
+
+ /**
+ * Initializes an instance of ServicesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ServicesClientImpl(MicrosoftKubernetesRuntimeImpl client) {
+ this.service = RestProxy.create(ServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftKubernetesRuntimeServices to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftKubernetesR")
+ public interface ServicesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/{resourceUri}/providers/Microsoft.KubernetesRuntime/services")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("serviceName") String serviceName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("serviceName") String serviceName, @BodyParam("application/json") ServiceResourceInner resource,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/{resourceUri}/providers/Microsoft.KubernetesRuntime/services/{serviceName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam(value = "resourceUri", encoded = true) String resourceUri,
+ @PathParam("serviceName") String serviceName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono