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 ContainerInstance service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ContainerInstance service API instance.
+ */
+ public ContainerInstanceManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.containerinstance.generated")
+ .append("/")
+ .append(clientVersion);
+ 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 BearerTokenAuthenticationPolicy(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 ContainerInstanceManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of ContainerGroups. It manages ContainerGroup.
+ *
+ * @return Resource collection API of ContainerGroups.
+ */
+ public ContainerGroups containerGroups() {
+ if (this.containerGroups == null) {
+ this.containerGroups = new ContainerGroupsImpl(clientObject.getContainerGroups(), this);
+ }
+ return containerGroups;
+ }
+
+ /**
+ * 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 the resource collection API of Locations.
+ *
+ * @return Resource collection API of Locations.
+ */
+ public Locations locations() {
+ if (this.locations == null) {
+ this.locations = new LocationsImpl(clientObject.getLocations(), this);
+ }
+ return locations;
+ }
+
+ /**
+ * Gets the resource collection API of Containers.
+ *
+ * @return Resource collection API of Containers.
+ */
+ public Containers containers() {
+ if (this.containers == null) {
+ this.containers = new ContainersImpl(clientObject.getContainers(), this);
+ }
+ return containers;
+ }
+
+ /**
+ * Gets the resource collection API of SubnetServiceAssociationLinks.
+ *
+ * @return Resource collection API of SubnetServiceAssociationLinks.
+ */
+ public SubnetServiceAssociationLinks subnetServiceAssociationLinks() {
+ if (this.subnetServiceAssociationLinks == null) {
+ this.subnetServiceAssociationLinks
+ = new SubnetServiceAssociationLinksImpl(clientObject.getSubnetServiceAssociationLinks(), this);
+ }
+ return subnetServiceAssociationLinks;
+ }
+
+ /**
+ * Gets the resource collection API of NGroups. It manages NGroup.
+ *
+ * @return Resource collection API of NGroups.
+ */
+ public NGroups nGroups() {
+ if (this.nGroups == null) {
+ this.nGroups = new NGroupsImpl(clientObject.getNGroups(), this);
+ }
+ return nGroups;
+ }
+
+ /**
+ * Gets the resource collection API of CGProfiles.
+ *
+ * @return Resource collection API of CGProfiles.
+ */
+ public CGProfiles cGProfiles() {
+ if (this.cGProfiles == null) {
+ this.cGProfiles = new CGProfilesImpl(clientObject.getCGProfiles(), this);
+ }
+ return cGProfiles;
+ }
+
+ /**
+ * Gets the resource collection API of CGProfileOperations. It manages ContainerGroupProfile.
+ *
+ * @return Resource collection API of CGProfileOperations.
+ */
+ public CGProfileOperations cGProfileOperations() {
+ if (this.cGProfileOperations == null) {
+ this.cGProfileOperations = new CGProfileOperationsImpl(clientObject.getCGProfileOperations(), this);
+ }
+ return cGProfileOperations;
+ }
+
+ /**
+ * Gets wrapped service client ContainerInstanceManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client ContainerInstanceManagementClient.
+ */
+ public ContainerInstanceManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/CGProfileOperationsClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/CGProfileOperationsClient.java
new file mode 100644
index 000000000000..7b6113f393d5
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/CGProfileOperationsClient.java
@@ -0,0 +1,267 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.fluent.models.ContainerGroupProfileInner;
+import com.azure.resourcemanager.containerinstance.generated.models.CGProfileOperationsCreateOrUpdateResponse;
+import com.azure.resourcemanager.containerinstance.generated.models.CGProfileOperationsUpdateResponse;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupProfilePatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in CGProfileOperationsClient.
+ */
+public interface CGProfileOperationsClient {
+ /**
+ * Create or Update a ContainerGroupProfile
+ *
+ * Create a CGProfile if it doesn't exist or update an existing CGProfile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param containerGroupProfile The ContainerGroupProfile object.
+ * @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 container group profile object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CGProfileOperationsCreateOrUpdateResponse createOrUpdateWithResponse(String resourceGroupName,
+ String containerGroupProfileName, ContainerGroupProfileInner containerGroupProfile, Context context);
+
+ /**
+ * Create or Update a ContainerGroupProfile
+ *
+ * Create a CGProfile if it doesn't exist or update an existing CGProfile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param containerGroupProfile The ContainerGroupProfile object.
+ * @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 container group profile object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupProfileInner createOrUpdate(String resourceGroupName, String containerGroupProfileName,
+ ContainerGroupProfileInner containerGroupProfile);
+
+ /**
+ * Container group profile PATCH REST API.
+ *
+ * Update a specified container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param properties The container group profile properties that need 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 container group profile object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CGProfileOperationsUpdateResponse updateWithResponse(String resourceGroupName, String containerGroupProfileName,
+ ContainerGroupProfilePatch properties, Context context);
+
+ /**
+ * Container group profile PATCH REST API.
+ *
+ * Update a specified container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param properties The container group profile properties that need 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 container group profile object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupProfileInner update(String resourceGroupName, String containerGroupProfileName,
+ ContainerGroupProfilePatch properties);
+
+ /**
+ * Display information about a specified ContainerGroupProfile.
+ *
+ * Get the properties of the specified container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified container group profile along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String containerGroupProfileName, Context context);
+
+ /**
+ * Display information about a specified ContainerGroupProfile.
+ *
+ * Get the properties of the specified container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified container group profile.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupProfileInner getByResourceGroup(String resourceGroupName, String containerGroupProfileName);
+
+ /**
+ * Container group profile DELETE REST API.
+ *
+ * Deletes a container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerGroupProfileName);
+
+ /**
+ * Container group profile DELETE REST API.
+ *
+ * Deletes a container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String containerGroupProfileName,
+ Context context);
+
+ /**
+ * Container group profile DELETE REST API.
+ *
+ * Deletes a container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerGroupProfileName);
+
+ /**
+ * Container group profile DELETE REST API.
+ *
+ * Deletes a container group profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String containerGroupProfileName, Context context);
+
+ /**
+ * Get a list of all the revisions of the specified container group profile in the given subscription and resource
+ * group.
+ *
+ * Get a list of all the revisions of the specified container group profile in the given subscription and resource
+ * group. This operation returns properties of each revision of the specified container group profile including
+ * containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all the revisions of the specified container group profile in the given subscription and
+ * resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAllRevisions(String resourceGroupName,
+ String containerGroupProfileName);
+
+ /**
+ * Get a list of all the revisions of the specified container group profile in the given subscription and resource
+ * group.
+ *
+ * Get a list of all the revisions of the specified container group profile in the given subscription and resource
+ * group. This operation returns properties of each revision of the specified container group profile including
+ * containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all the revisions of the specified container group profile in the given subscription and
+ * resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAllRevisions(String resourceGroupName,
+ String containerGroupProfileName, Context context);
+
+ /**
+ * Get the properties of the specified revision of the container group profile.
+ *
+ * Gets the properties of the specified revision of the container group profile in the given subscription and
+ * resource group. The operation returns the properties of container group profile including containers, image
+ * registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param revisionNumber The revision number of the container group profile.
+ * @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 properties of the specified revision of the container group profile in the given subscription and
+ * resource group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByRevisionNumberWithResponse(String resourceGroupName,
+ String containerGroupProfileName, String revisionNumber, Context context);
+
+ /**
+ * Get the properties of the specified revision of the container group profile.
+ *
+ * Gets the properties of the specified revision of the container group profile in the given subscription and
+ * resource group. The operation returns the properties of container group profile including containers, image
+ * registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupProfileName ContainerGroupProfile name.
+ * @param revisionNumber The revision number of the container group profile.
+ * @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 properties of the specified revision of the container group profile in the given subscription and
+ * resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupProfileInner getByRevisionNumber(String resourceGroupName, String containerGroupProfileName,
+ String revisionNumber);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/CGProfilesClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/CGProfilesClient.java
new file mode 100644
index 000000000000..763c741ed1f0
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/CGProfilesClient.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.fluent.models.ContainerGroupProfileInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in CGProfilesClient.
+ */
+public interface CGProfilesClient {
+ /**
+ * List container group profiles in a subscription.
+ *
+ * Gets a list of all container group profiles under a subscription.
+ *
+ * @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 all container group profiles under a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List container group profiles in a subscription.
+ *
+ * Gets a list of all container group profiles under a subscription.
+ *
+ * @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 all container group profiles under a subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List container group profiles in a resource group.
+ *
+ * Gets a list of all container group profiles under a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all container group profiles under a resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List container group profiles in a resource group.
+ *
+ * Gets a list of all container group profiles under a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all container group profiles under a resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainerGroupsClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainerGroupsClient.java
new file mode 100644
index 000000000000..a2495e0a8fc6
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainerGroupsClient.java
@@ -0,0 +1,489 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.Resource;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.ContainerGroupInner;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.ListResultContainerGroupInner;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainerGroupsClient.
+ */
+public interface ContainerGroupsClient {
+ /**
+ * Get a list of container groups in the specified subscription.
+ *
+ * Get a list of container groups in the specified subscription. This operation returns properties of each container
+ * group including containers, image registry credentials, restart policy, IP address type, OS type, state, and
+ * volumes.
+ *
+ * @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 container groups in the specified subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of container groups in the specified subscription.
+ *
+ * Get a list of container groups in the specified subscription. This operation returns properties of each container
+ * group including containers, image registry credentials, restart policy, IP address type, OS type, state, and
+ * volumes.
+ *
+ * @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 container groups in the specified subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get a list of container groups in the specified subscription and resource group.
+ *
+ * Get a list of container groups in a specified subscription and resource group. This operation returns properties
+ * of each container group including containers, image registry credentials, restart policy, IP address type, OS
+ * type, state, and volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 container groups in a specified subscription and resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of container groups in the specified subscription and resource group.
+ *
+ * Get a list of container groups in a specified subscription and resource group. This operation returns properties
+ * of each container group including containers, image registry credentials, restart policy, IP address type, OS
+ * type, state, and volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 container groups in a specified subscription and resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get the properties of the specified container group.
+ *
+ * Gets the properties of the specified container group in the specified subscription and resource group. The
+ * operation returns the properties of each container group including containers, image registry credentials,
+ * restart policy, IP address type, OS type, state, and volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 properties of the specified container group in the specified subscription and resource group along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String containerGroupName,
+ Context context);
+
+ /**
+ * Get the properties of the specified container group.
+ *
+ * Gets the properties of the specified container group in the specified subscription and resource group. The
+ * operation returns the properties of each container group including containers, image registry credentials,
+ * restart policy, IP address type, OS type, state, and volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 properties of the specified container group in the specified subscription and resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupInner getByResourceGroup(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Create or update container groups.
+ *
+ * Create or update container groups with specified configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerGroup The properties of the container group to be created or 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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerGroupInner> beginCreateOrUpdate(String resourceGroupName,
+ String containerGroupName, ContainerGroupInner containerGroup);
+
+ /**
+ * Create or update container groups.
+ *
+ * Create or update container groups with specified configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerGroup The properties of the container group to be created or 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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerGroupInner> beginCreateOrUpdate(String resourceGroupName,
+ String containerGroupName, ContainerGroupInner containerGroup, Context context);
+
+ /**
+ * Create or update container groups.
+ *
+ * Create or update container groups with specified configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerGroup The properties of the container group to be created or 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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupInner createOrUpdate(String resourceGroupName, String containerGroupName,
+ ContainerGroupInner containerGroup);
+
+ /**
+ * Create or update container groups.
+ *
+ * Create or update container groups with specified configurations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerGroup The properties of the container group to be created or 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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupInner createOrUpdate(String resourceGroupName, String containerGroupName,
+ ContainerGroupInner containerGroup, Context context);
+
+ /**
+ * Update container groups.
+ *
+ * Updates container group tags with specified values.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param resource The container group resource with just the tags 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 container group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String containerGroupName,
+ Resource resource, Context context);
+
+ /**
+ * Update container groups.
+ *
+ * Updates container group tags with specified values.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param resource The container group resource with just the tags 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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupInner update(String resourceGroupName, String containerGroupName, Resource resource);
+
+ /**
+ * Delete the specified container group.
+ *
+ * Delete the specified container group in the specified subscription and resource group. The operation does not
+ * delete other resources provided by the user, such as volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerGroupInner> beginDelete(String resourceGroupName,
+ String containerGroupName);
+
+ /**
+ * Delete the specified container group.
+ *
+ * Delete the specified container group in the specified subscription and resource group. The operation does not
+ * delete other resources provided by the user, such as volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ContainerGroupInner> beginDelete(String resourceGroupName,
+ String containerGroupName, Context context);
+
+ /**
+ * Delete the specified container group.
+ *
+ * Delete the specified container group in the specified subscription and resource group. The operation does not
+ * delete other resources provided by the user, such as volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupInner delete(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Delete the specified container group.
+ *
+ * Delete the specified container group in the specified subscription and resource group. The operation does not
+ * delete other resources provided by the user, such as volumes.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 container group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerGroupInner delete(String resourceGroupName, String containerGroupName, Context context);
+
+ /**
+ * Restarts all containers in a container group.
+ *
+ * Restarts all containers in a container group in place. If container image has updates, new image will be
+ * downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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> beginRestart(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Restarts all containers in a container group.
+ *
+ * Restarts all containers in a container group in place. If container image has updates, new image will be
+ * downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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> beginRestart(String resourceGroupName, String containerGroupName,
+ Context context);
+
+ /**
+ * Restarts all containers in a container group.
+ *
+ * Restarts all containers in a container group in place. If container image has updates, new image will be
+ * downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 restart(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Restarts all containers in a container group.
+ *
+ * Restarts all containers in a container group in place. If container image has updates, new image will be
+ * downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 restart(String resourceGroupName, String containerGroupName, Context context);
+
+ /**
+ * Stops all containers in a container group.
+ *
+ * Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 stopWithResponse(String resourceGroupName, String containerGroupName, Context context);
+
+ /**
+ * Stops all containers in a container group.
+ *
+ * Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 stop(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Starts all containers in a container group.
+ *
+ * Starts all containers in a container group. Compute resources will be allocated and billing will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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> beginStart(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Starts all containers in a container group.
+ *
+ * Starts all containers in a container group. Compute resources will be allocated and billing will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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> beginStart(String resourceGroupName, String containerGroupName, Context context);
+
+ /**
+ * Starts all containers in a container group.
+ *
+ * Starts all containers in a container group. Compute resources will be allocated and billing will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 start(String resourceGroupName, String containerGroupName);
+
+ /**
+ * Starts all containers in a container group.
+ *
+ * Starts all containers in a container group. Compute resources will be allocated and billing will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 start(String resourceGroupName, String containerGroupName, Context context);
+
+ /**
+ * Get all network dependencies for container group.
+ *
+ * Gets all the network dependencies for this container group to allow complete control of network setting and
+ * configuration. For container groups, this will always be an empty list.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 all the network dependencies for this container group to allow complete control of network setting and
+ * configuration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response> getOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName,
+ String containerGroupName, Context context);
+
+ /**
+ * Get all network dependencies for container group.
+ *
+ * Gets all the network dependencies for this container group to allow complete control of network setting and
+ * configuration. For container groups, this will always be an empty list.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @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 all the network dependencies for this container group to allow complete control of network setting and
+ * configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List getOutboundNetworkDependenciesEndpoints(String resourceGroupName, String containerGroupName);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainerInstanceManagementClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainerInstanceManagementClient.java
new file mode 100644
index 000000000000..41eeb8259cf8
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainerInstanceManagementClient.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for ContainerInstanceManagementClient class.
+ */
+public interface ContainerInstanceManagementClient {
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * 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 ContainerGroupsClient object to access its operations.
+ *
+ * @return the ContainerGroupsClient object.
+ */
+ ContainerGroupsClient getContainerGroups();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the LocationsClient object to access its operations.
+ *
+ * @return the LocationsClient object.
+ */
+ LocationsClient getLocations();
+
+ /**
+ * Gets the ContainersClient object to access its operations.
+ *
+ * @return the ContainersClient object.
+ */
+ ContainersClient getContainers();
+
+ /**
+ * Gets the SubnetServiceAssociationLinksClient object to access its operations.
+ *
+ * @return the SubnetServiceAssociationLinksClient object.
+ */
+ SubnetServiceAssociationLinksClient getSubnetServiceAssociationLinks();
+
+ /**
+ * Gets the NGroupsClient object to access its operations.
+ *
+ * @return the NGroupsClient object.
+ */
+ NGroupsClient getNGroups();
+
+ /**
+ * Gets the CGProfilesClient object to access its operations.
+ *
+ * @return the CGProfilesClient object.
+ */
+ CGProfilesClient getCGProfiles();
+
+ /**
+ * Gets the CGProfileOperationsClient object to access its operations.
+ *
+ * @return the CGProfileOperationsClient object.
+ */
+ CGProfileOperationsClient getCGProfileOperations();
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainersClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainersClient.java
new file mode 100644
index 000000000000..74fe5d759ac9
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/ContainersClient.java
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.ContainerAttachResponseInner;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.ContainerExecResponseInner;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.LogsInner;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerExecRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in ContainersClient.
+ */
+public interface ContainersClient {
+ /**
+ * Get the logs for a specified container instance.
+ *
+ * Get the logs for a specified container instance in a specified resource group and container group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerName The name of the container instance.
+ * @param tail The number of lines to show from the tail of the container instance log. If not provided, all
+ * available logs are shown up to 4mb.
+ * @param timestamps If true, adds a timestamp at the beginning of every line of log output. If not provided,
+ * defaults to false.
+ * @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 logs for a specified container instance in a specified resource group and container group along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listLogsWithResponse(String resourceGroupName, String containerGroupName, String containerName,
+ Integer tail, Boolean timestamps, Context context);
+
+ /**
+ * Get the logs for a specified container instance.
+ *
+ * Get the logs for a specified container instance in a specified resource group and container group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerName The name of the container instance.
+ * @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 logs for a specified container instance in a specified resource group and container group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogsInner listLogs(String resourceGroupName, String containerGroupName, String containerName);
+
+ /**
+ * Executes a command in a specific container instance.
+ *
+ * Executes a command for a specific container instance in a specified resource group and container group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerName The name of the container instance.
+ * @param containerExecRequest The request for the exec command.
+ * @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 information for the container exec command along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response executeCommandWithResponse(String resourceGroupName, String containerGroupName,
+ String containerName, ContainerExecRequest containerExecRequest, Context context);
+
+ /**
+ * Executes a command in a specific container instance.
+ *
+ * Executes a command for a specific container instance in a specified resource group and container group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerName The name of the container instance.
+ * @param containerExecRequest The request for the exec command.
+ * @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 information for the container exec command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerExecResponseInner executeCommand(String resourceGroupName, String containerGroupName, String containerName,
+ ContainerExecRequest containerExecRequest);
+
+ /**
+ * Attach to the output of a specific container instance.
+ *
+ * Attach to the output stream of a specific container instance in a specified resource group and container group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerName The name of the container instance.
+ * @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 information for the output stream from container attach along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response attachWithResponse(String resourceGroupName, String containerGroupName,
+ String containerName, Context context);
+
+ /**
+ * Attach to the output of a specific container instance.
+ *
+ * Attach to the output stream of a specific container instance in a specified resource group and container group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param containerGroupName The name of the container group.
+ * @param containerName The name of the container instance.
+ * @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 information for the output stream from container attach.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ContainerAttachResponseInner attach(String resourceGroupName, String containerGroupName, String containerName);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/LocationsClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/LocationsClient.java
new file mode 100644
index 000000000000..8df573ca982e
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/LocationsClient.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.fluent.models.CachedImagesInner;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.CapabilitiesInner;
+import com.azure.resourcemanager.containerinstance.generated.fluent.models.UsageInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in LocationsClient.
+ */
+public interface LocationsClient {
+ /**
+ * Get the usage for a subscription.
+ *
+ * @param location The name of the Azure region.
+ * @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 usage for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsage(String location);
+
+ /**
+ * Get the usage for a subscription.
+ *
+ * @param location The name of the Azure region.
+ * @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 usage for a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsage(String location, Context context);
+
+ /**
+ * Get the list of cached images.
+ *
+ * Get the list of cached images on specific OS type for a subscription in a region.
+ *
+ * @param location The name of the Azure region.
+ * @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 list of cached images on specific OS type for a subscription in a region as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCachedImages(String location);
+
+ /**
+ * Get the list of cached images.
+ *
+ * Get the list of cached images on specific OS type for a subscription in a region.
+ *
+ * @param location The name of the Azure region.
+ * @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 list of cached images on specific OS type for a subscription in a region as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCachedImages(String location, Context context);
+
+ /**
+ * Get the list of capabilities of the location.
+ *
+ * Get the list of CPU/memory/GPU capabilities of a region.
+ *
+ * @param location The name of the Azure region.
+ * @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 list of CPU/memory/GPU capabilities of a region as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCapabilities(String location);
+
+ /**
+ * Get the list of capabilities of the location.
+ *
+ * Get the list of CPU/memory/GPU capabilities of a region.
+ *
+ * @param location The name of the Azure region.
+ * @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 list of CPU/memory/GPU capabilities of a region as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCapabilities(String location, Context context);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/NGroupsClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/NGroupsClient.java
new file mode 100644
index 000000000000..43220f988473
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/NGroupsClient.java
@@ -0,0 +1,461 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.fluent.models.NGroupInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in NGroupsClient.
+ */
+public interface NGroupsClient {
+ /**
+ * NGroups GET REST API
+ *
+ * Get the properties of the specified NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified NGroups resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * NGroups GET REST API
+ *
+ * Get the properties of the specified NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the specified NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NGroupInner getByResourceGroup(String resourceGroupName, String ngroupsName);
+
+ /**
+ * NGroup PUT REST API
+ *
+ * Create or update a NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NGroupInner> beginCreateOrUpdate(String resourceGroupName, String ngroupsName,
+ NGroupInner nGroup);
+
+ /**
+ * NGroup PUT REST API
+ *
+ * Create or update a NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NGroupInner> beginCreateOrUpdate(String resourceGroupName, String ngroupsName,
+ NGroupInner nGroup, Context context);
+
+ /**
+ * NGroup PUT REST API
+ *
+ * Create or update a NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NGroupInner createOrUpdate(String resourceGroupName, String ngroupsName, NGroupInner nGroup);
+
+ /**
+ * NGroup PUT REST API
+ *
+ * Create or update a NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NGroupInner createOrUpdate(String resourceGroupName, String ngroupsName, NGroupInner nGroup, Context context);
+
+ /**
+ * NGroups PATCH REST API
+ *
+ * Update a specified NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NGroupInner> beginUpdate(String resourceGroupName, String ngroupsName,
+ NGroupInner nGroup);
+
+ /**
+ * NGroups PATCH REST API
+ *
+ * Update a specified NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NGroupInner> beginUpdate(String resourceGroupName, String ngroupsName,
+ NGroupInner nGroup, Context context);
+
+ /**
+ * NGroups PATCH REST API
+ *
+ * Update a specified NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NGroupInner update(String resourceGroupName, String ngroupsName, NGroupInner nGroup);
+
+ /**
+ * NGroups PATCH REST API
+ *
+ * Update a specified NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param nGroup The NGroup object.
+ * @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 describes the NGroups resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NGroupInner update(String resourceGroupName, String ngroupsName, NGroupInner nGroup, Context context);
+
+ /**
+ * NGroups Delete REST API
+ *
+ * Deletes the NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String ngroupsName);
+
+ /**
+ * NGroups Delete REST API
+ *
+ * Deletes the NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * NGroups Delete REST API
+ *
+ * Deletes the NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String ngroupsName);
+
+ /**
+ * NGroups Delete REST API
+ *
+ * Deletes the NGroups resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * Starts all container groups in the specified NGroups resource.
+ *
+ * Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing
+ * will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStart(String resourceGroupName, String ngroupsName);
+
+ /**
+ * Starts all container groups in the specified NGroups resource.
+ *
+ * Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing
+ * will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStart(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * Starts all container groups in the specified NGroups resource.
+ *
+ * Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing
+ * will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String ngroupsName);
+
+ /**
+ * Starts all container groups in the specified NGroups resource.
+ *
+ * Starts all container groups in the specified NGroups resource. Compute resources will be allocated and billing
+ * will start.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * Stops all container groups in the specified NGroups resource.
+ *
+ * Stops all container groups in the specified NGroups resource. Compute resources will be deallocated and billing
+ * will stop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response stopWithResponse(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * Stops all container groups in the specified NGroups resource.
+ *
+ * Stops all container groups in the specified NGroups resource. Compute resources will be deallocated and billing
+ * will stop.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stop(String resourceGroupName, String ngroupsName);
+
+ /**
+ * Restarts all container groups in the specified NGroups resource.
+ *
+ * Restarts all container groups in the specified NGroups resource in place. If container image has updates, new
+ * image will be downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRestart(String resourceGroupName, String ngroupsName);
+
+ /**
+ * Restarts all container groups in the specified NGroups resource.
+ *
+ * Restarts all container groups in the specified NGroups resource in place. If container image has updates, new
+ * image will be downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRestart(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * Restarts all container groups in the specified NGroups resource.
+ *
+ * Restarts all container groups in the specified NGroups resource in place. If container image has updates, new
+ * image will be downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String ngroupsName);
+
+ /**
+ * Restarts all container groups in the specified NGroups resource.
+ *
+ * Restarts all container groups in the specified NGroups resource in place. If container image has updates, new
+ * image will be downloaded.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ngroupsName The NGroups name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String ngroupsName, Context context);
+
+ /**
+ * GET NGroups under a resource group REST API.
+ *
+ * Gets a list of all NGroups resources under a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all NGroups resources under a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * GET NGroups under a resource group REST API.
+ *
+ * Gets a list of all NGroups resources under a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 all NGroups resources under a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List NGroups in a subscription.
+ *
+ * Gets a list of all NGroups resources under a subscription.
+ *
+ * @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 all NGroups resources under a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List NGroups in a subscription.
+ *
+ * Gets a list of all NGroups resources under a subscription.
+ *
+ * @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 all NGroups resources under a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/OperationsClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/OperationsClient.java
new file mode 100644
index 000000000000..12dd1c015298
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/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.containerinstance.generated.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.containerinstance.generated.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for Azure Container Instance service.
+ *
+ * @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 operation list response that contains all operations for Azure Container Instance service as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for Azure Container Instance 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 operation list response that contains all operations for Azure Container Instance service as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/SubnetServiceAssociationLinksClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/SubnetServiceAssociationLinksClient.java
new file mode 100644
index 000000000000..e71826240ee7
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/SubnetServiceAssociationLinksClient.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+
+/**
+ * An instance of this class provides access to all the operations defined in SubnetServiceAssociationLinksClient.
+ */
+public interface SubnetServiceAssociationLinksClient {
+ /**
+ * Delete container group virtual network association links.
+ *
+ * Delete container group virtual network association links. The operation does not delete other resources provided
+ * by the user.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName The name of the virtual network.
+ * @param subnetName The name of the subnet.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName,
+ String subnetName);
+
+ /**
+ * Delete container group virtual network association links.
+ *
+ * Delete container group virtual network association links. The operation does not delete other resources provided
+ * by the user.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName The name of the virtual network.
+ * @param subnetName The name of the subnet.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName,
+ String subnetName, Context context);
+
+ /**
+ * Delete container group virtual network association links.
+ *
+ * Delete container group virtual network association links. The operation does not delete other resources provided
+ * by the user.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName The name of the virtual network.
+ * @param subnetName The name of the subnet.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String virtualNetworkName, String subnetName);
+
+ /**
+ * Delete container group virtual network association links.
+ *
+ * Delete container group virtual network association links. The operation does not delete other resources provided
+ * by the user.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName The name of the virtual network.
+ * @param subnetName The name of the subnet.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context);
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/CachedImagesInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/CachedImagesInner.java
new file mode 100644
index 000000000000..f8d336fb0d73
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/CachedImagesInner.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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 java.io.IOException;
+
+/**
+ * The cached image and OS type.
+ */
+@Fluent
+public final class CachedImagesInner implements JsonSerializable {
+ /*
+ * The OS type of the cached image.
+ */
+ private String osType;
+
+ /*
+ * The cached image name.
+ */
+ private String image;
+
+ /**
+ * Creates an instance of CachedImagesInner class.
+ */
+ public CachedImagesInner() {
+ }
+
+ /**
+ * Get the osType property: The OS type of the cached image.
+ *
+ * @return the osType value.
+ */
+ public String osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: The OS type of the cached image.
+ *
+ * @param osType the osType value to set.
+ * @return the CachedImagesInner object itself.
+ */
+ public CachedImagesInner withOsType(String osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the image property: The cached image name.
+ *
+ * @return the image value.
+ */
+ public String image() {
+ return this.image;
+ }
+
+ /**
+ * Set the image property: The cached image name.
+ *
+ * @param image the image value to set.
+ * @return the CachedImagesInner object itself.
+ */
+ public CachedImagesInner withImage(String image) {
+ this.image = image;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (osType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property osType in model CachedImagesInner"));
+ }
+ if (image() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property image in model CachedImagesInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CachedImagesInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("osType", this.osType);
+ jsonWriter.writeStringField("image", this.image);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CachedImagesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CachedImagesInner 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 CachedImagesInner.
+ */
+ public static CachedImagesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CachedImagesInner deserializedCachedImagesInner = new CachedImagesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("osType".equals(fieldName)) {
+ deserializedCachedImagesInner.osType = reader.getString();
+ } else if ("image".equals(fieldName)) {
+ deserializedCachedImagesInner.image = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCachedImagesInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/CapabilitiesInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/CapabilitiesInner.java
new file mode 100644
index 000000000000..982283a9ab76
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/CapabilitiesInner.java
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.models.CapabilitiesCapabilities;
+import java.io.IOException;
+
+/**
+ * The regional capabilities.
+ */
+@Immutable
+public final class CapabilitiesInner implements JsonSerializable {
+ /*
+ * The resource type that this capability describes.
+ */
+ private String resourceType;
+
+ /*
+ * The OS type that this capability describes.
+ */
+ private String osType;
+
+ /*
+ * The resource location.
+ */
+ private String location;
+
+ /*
+ * The ip address type that this capability describes.
+ */
+ private String ipAddressType;
+
+ /*
+ * The GPU sku that this capability describes.
+ */
+ private String gpu;
+
+ /*
+ * The supported capabilities.
+ */
+ private CapabilitiesCapabilities capabilities;
+
+ /**
+ * Creates an instance of CapabilitiesInner class.
+ */
+ public CapabilitiesInner() {
+ }
+
+ /**
+ * Get the resourceType property: The resource type that this capability describes.
+ *
+ * @return the resourceType value.
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Get the osType property: The OS type that this capability describes.
+ *
+ * @return the osType value.
+ */
+ public String osType() {
+ return this.osType;
+ }
+
+ /**
+ * Get the location property: The resource location.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the ipAddressType property: The ip address type that this capability describes.
+ *
+ * @return the ipAddressType value.
+ */
+ public String ipAddressType() {
+ return this.ipAddressType;
+ }
+
+ /**
+ * Get the gpu property: The GPU sku that this capability describes.
+ *
+ * @return the gpu value.
+ */
+ public String gpu() {
+ return this.gpu;
+ }
+
+ /**
+ * Get the capabilities property: The supported capabilities.
+ *
+ * @return the capabilities value.
+ */
+ public CapabilitiesCapabilities capabilities() {
+ return this.capabilities;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (capabilities() != null) {
+ capabilities().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CapabilitiesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CapabilitiesInner 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 CapabilitiesInner.
+ */
+ public static CapabilitiesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CapabilitiesInner deserializedCapabilitiesInner = new CapabilitiesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceType".equals(fieldName)) {
+ deserializedCapabilitiesInner.resourceType = reader.getString();
+ } else if ("osType".equals(fieldName)) {
+ deserializedCapabilitiesInner.osType = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedCapabilitiesInner.location = reader.getString();
+ } else if ("ipAddressType".equals(fieldName)) {
+ deserializedCapabilitiesInner.ipAddressType = reader.getString();
+ } else if ("gpu".equals(fieldName)) {
+ deserializedCapabilitiesInner.gpu = reader.getString();
+ } else if ("capabilities".equals(fieldName)) {
+ deserializedCapabilitiesInner.capabilities = CapabilitiesCapabilities.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCapabilitiesInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerAttachResponseInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerAttachResponseInner.java
new file mode 100644
index 000000000000..83977c0caa1f
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerAttachResponseInner.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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 java.io.IOException;
+
+/**
+ * The information for the output stream from container attach.
+ */
+@Fluent
+public final class ContainerAttachResponseInner implements JsonSerializable {
+ /*
+ * The uri for the output stream from the attach.
+ */
+ private String webSocketUri;
+
+ /*
+ * The password to the output stream from the attach. Send as an Authorization header value when connecting to the
+ * websocketUri.
+ */
+ private String password;
+
+ /**
+ * Creates an instance of ContainerAttachResponseInner class.
+ */
+ public ContainerAttachResponseInner() {
+ }
+
+ /**
+ * Get the webSocketUri property: The uri for the output stream from the attach.
+ *
+ * @return the webSocketUri value.
+ */
+ public String webSocketUri() {
+ return this.webSocketUri;
+ }
+
+ /**
+ * Set the webSocketUri property: The uri for the output stream from the attach.
+ *
+ * @param webSocketUri the webSocketUri value to set.
+ * @return the ContainerAttachResponseInner object itself.
+ */
+ public ContainerAttachResponseInner withWebSocketUri(String webSocketUri) {
+ this.webSocketUri = webSocketUri;
+ return this;
+ }
+
+ /**
+ * Get the password property: The password to the output stream from the attach. Send as an Authorization header
+ * value when connecting to the websocketUri.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: The password to the output stream from the attach. Send as an Authorization header
+ * value when connecting to the websocketUri.
+ *
+ * @param password the password value to set.
+ * @return the ContainerAttachResponseInner object itself.
+ */
+ public ContainerAttachResponseInner withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * 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();
+ jsonWriter.writeStringField("webSocketUri", this.webSocketUri);
+ jsonWriter.writeStringField("password", this.password);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerAttachResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerAttachResponseInner 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 ContainerAttachResponseInner.
+ */
+ public static ContainerAttachResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerAttachResponseInner deserializedContainerAttachResponseInner = new ContainerAttachResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("webSocketUri".equals(fieldName)) {
+ deserializedContainerAttachResponseInner.webSocketUri = reader.getString();
+ } else if ("password".equals(fieldName)) {
+ deserializedContainerAttachResponseInner.password = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerAttachResponseInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerExecResponseInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerExecResponseInner.java
new file mode 100644
index 000000000000..54aa86d6ffce
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerExecResponseInner.java
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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 java.io.IOException;
+
+/**
+ * The information for the container exec command.
+ */
+@Fluent
+public final class ContainerExecResponseInner implements JsonSerializable {
+ /*
+ * The uri for the exec websocket.
+ */
+ private String webSocketUri;
+
+ /*
+ * The password to start the exec command.
+ */
+ private String password;
+
+ /**
+ * Creates an instance of ContainerExecResponseInner class.
+ */
+ public ContainerExecResponseInner() {
+ }
+
+ /**
+ * Get the webSocketUri property: The uri for the exec websocket.
+ *
+ * @return the webSocketUri value.
+ */
+ public String webSocketUri() {
+ return this.webSocketUri;
+ }
+
+ /**
+ * Set the webSocketUri property: The uri for the exec websocket.
+ *
+ * @param webSocketUri the webSocketUri value to set.
+ * @return the ContainerExecResponseInner object itself.
+ */
+ public ContainerExecResponseInner withWebSocketUri(String webSocketUri) {
+ this.webSocketUri = webSocketUri;
+ return this;
+ }
+
+ /**
+ * Get the password property: The password to start the exec command.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: The password to start the exec command.
+ *
+ * @param password the password value to set.
+ * @return the ContainerExecResponseInner object itself.
+ */
+ public ContainerExecResponseInner withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * 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();
+ jsonWriter.writeStringField("webSocketUri", this.webSocketUri);
+ jsonWriter.writeStringField("password", this.password);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerExecResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerExecResponseInner 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 ContainerExecResponseInner.
+ */
+ public static ContainerExecResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerExecResponseInner deserializedContainerExecResponseInner = new ContainerExecResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("webSocketUri".equals(fieldName)) {
+ deserializedContainerExecResponseInner.webSocketUri = reader.getString();
+ } else if ("password".equals(fieldName)) {
+ deserializedContainerExecResponseInner.password = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerExecResponseInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupInner.java
new file mode 100644
index 000000000000..27c1d5b5169e
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupInner.java
@@ -0,0 +1,670 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.containerinstance.generated.models.ConfidentialComputeProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.Container;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupDiagnostics;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupIdentity;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPriority;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPropertiesInstanceView;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupRestartPolicy;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSku;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSubnetId;
+import com.azure.resourcemanager.containerinstance.generated.models.DeploymentExtensionSpec;
+import com.azure.resourcemanager.containerinstance.generated.models.DnsConfiguration;
+import com.azure.resourcemanager.containerinstance.generated.models.EncryptionProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.IdentityAcls;
+import com.azure.resourcemanager.containerinstance.generated.models.ImageRegistryCredential;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.IpAddress;
+import com.azure.resourcemanager.containerinstance.generated.models.OperatingSystemTypes;
+import com.azure.resourcemanager.containerinstance.generated.models.SecretReference;
+import com.azure.resourcemanager.containerinstance.generated.models.Volume;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * A container group.
+ */
+@Fluent
+public final class ContainerGroupInner extends Resource {
+ /*
+ * The zones for the container group.
+ */
+ private List zones;
+
+ /*
+ * The identity of the container group, if configured.
+ */
+ private ContainerGroupIdentity identity;
+
+ /*
+ * The container group properties
+ */
+ private ContainerGroupPropertiesProperties innerProperties = new ContainerGroupPropertiesProperties();
+
+ /*
+ * 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 ContainerGroupInner class.
+ */
+ public ContainerGroupInner() {
+ }
+
+ /**
+ * Get the zones property: The zones for the container group.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The zones for the container group.
+ *
+ * @param zones the zones value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the container group, if configured.
+ *
+ * @return the identity value.
+ */
+ public ContainerGroupIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the container group, if configured.
+ *
+ * @param identity the identity value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withIdentity(ContainerGroupIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: The container group properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ContainerGroupPropertiesProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ContainerGroupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ContainerGroupInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the container group. This only appears in the
+ * response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @return the secretReferences value.
+ */
+ public List secretReferences() {
+ return this.innerProperties() == null ? null : this.innerProperties().secretReferences();
+ }
+
+ /**
+ * Set the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @param secretReferences the secretReferences value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withSecretReferences(List secretReferences) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withSecretReferences(secretReferences);
+ return this;
+ }
+
+ /**
+ * Get the containers property: The containers within the container group.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.innerProperties() == null ? null : this.innerProperties().containers();
+ }
+
+ /**
+ * Set the containers property: The containers within the container group.
+ *
+ * @param containers the containers value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withContainers(List containers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withContainers(containers);
+ return this;
+ }
+
+ /**
+ * Get the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @return the imageRegistryCredentials value.
+ */
+ public List imageRegistryCredentials() {
+ return this.innerProperties() == null ? null : this.innerProperties().imageRegistryCredentials();
+ }
+
+ /**
+ * Set the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @param imageRegistryCredentials the imageRegistryCredentials value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withImageRegistryCredentials(List imageRegistryCredentials) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withImageRegistryCredentials(imageRegistryCredentials);
+ return this;
+ }
+
+ /**
+ * Get the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @return the restartPolicy value.
+ */
+ public ContainerGroupRestartPolicy restartPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().restartPolicy();
+ }
+
+ /**
+ * Set the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @param restartPolicy the restartPolicy value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withRestartPolicy(restartPolicy);
+ return this;
+ }
+
+ /**
+ * Get the ipAddress property: The IP address type of the container group.
+ *
+ * @return the ipAddress value.
+ */
+ public IpAddress ipAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipAddress();
+ }
+
+ /**
+ * Set the ipAddress property: The IP address type of the container group.
+ *
+ * @param ipAddress the ipAddress value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withIpAddress(IpAddress ipAddress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withIpAddress(ipAddress);
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type required by the containers in the container group.
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: The operating system type required by the containers in the container group.
+ *
+ * @param osType the osType value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withOsType(OperatingSystemTypes osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @return the volumes value.
+ */
+ public List volumes() {
+ return this.innerProperties() == null ? null : this.innerProperties().volumes();
+ }
+
+ /**
+ * Set the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @param volumes the volumes value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withVolumes(List volumes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withVolumes(volumes);
+ return this;
+ }
+
+ /**
+ * Get the instanceView property: The instance view of the container group. Only valid in response.
+ *
+ * @return the instanceView value.
+ */
+ public ContainerGroupPropertiesInstanceView instanceView() {
+ return this.innerProperties() == null ? null : this.innerProperties().instanceView();
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostic information for a container group.
+ *
+ * @return the diagnostics value.
+ */
+ public ContainerGroupDiagnostics diagnostics() {
+ return this.innerProperties() == null ? null : this.innerProperties().diagnostics();
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostic information for a container group.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withDiagnostics(ContainerGroupDiagnostics diagnostics) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withDiagnostics(diagnostics);
+ return this;
+ }
+
+ /**
+ * Get the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @return the subnetIds value.
+ */
+ public List subnetIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().subnetIds();
+ }
+
+ /**
+ * Set the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @param subnetIds the subnetIds value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withSubnetIds(List subnetIds) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withSubnetIds(subnetIds);
+ return this;
+ }
+
+ /**
+ * Get the dnsConfig property: The DNS config information for a container group.
+ *
+ * @return the dnsConfig value.
+ */
+ public DnsConfiguration dnsConfig() {
+ return this.innerProperties() == null ? null : this.innerProperties().dnsConfig();
+ }
+
+ /**
+ * Set the dnsConfig property: The DNS config information for a container group.
+ *
+ * @param dnsConfig the dnsConfig value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withDnsConfig(dnsConfig);
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU for a container group.
+ *
+ * @return the sku value.
+ */
+ public ContainerGroupSku sku() {
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
+ }
+
+ /**
+ * Set the sku property: The SKU for a container group.
+ *
+ * @param sku the sku value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withSku(ContainerGroupSku sku) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withSku(sku);
+ return this;
+ }
+
+ /**
+ * Get the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @return the encryptionProperties value.
+ */
+ public EncryptionProperties encryptionProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionProperties();
+ }
+
+ /**
+ * Set the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @param encryptionProperties the encryptionProperties value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withEncryptionProperties(EncryptionProperties encryptionProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withEncryptionProperties(encryptionProperties);
+ return this;
+ }
+
+ /**
+ * Get the initContainers property: The init containers for a container group.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.innerProperties() == null ? null : this.innerProperties().initContainers();
+ }
+
+ /**
+ * Set the initContainers property: The init containers for a container group.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withInitContainers(List initContainers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withInitContainers(initContainers);
+ return this;
+ }
+
+ /**
+ * Get the extensions property: extensions used by virtual kubelet.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.innerProperties() == null ? null : this.innerProperties().extensions();
+ }
+
+ /**
+ * Set the extensions property: extensions used by virtual kubelet.
+ *
+ * @param extensions the extensions value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withExtensions(List extensions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withExtensions(extensions);
+ return this;
+ }
+
+ /**
+ * Get the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @return the confidentialComputeProperties value.
+ */
+ public ConfidentialComputeProperties confidentialComputeProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().confidentialComputeProperties();
+ }
+
+ /**
+ * Set the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @param confidentialComputeProperties the confidentialComputeProperties value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner
+ withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withConfidentialComputeProperties(confidentialComputeProperties);
+ return this;
+ }
+
+ /**
+ * Get the priority property: The priority of the container group.
+ *
+ * @return the priority value.
+ */
+ public ContainerGroupPriority priority() {
+ return this.innerProperties() == null ? null : this.innerProperties().priority();
+ }
+
+ /**
+ * Set the priority property: The priority of the container group.
+ *
+ * @param priority the priority value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withPriority(ContainerGroupPriority priority) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withPriority(priority);
+ return this;
+ }
+
+ /**
+ * Get the identityAcls property: The access control levels of the identities.
+ *
+ * @return the identityAcls value.
+ */
+ public IdentityAcls identityAcls() {
+ return this.innerProperties() == null ? null : this.innerProperties().identityAcls();
+ }
+
+ /**
+ * Set the identityAcls property: The access control levels of the identities.
+ *
+ * @param identityAcls the identityAcls value to set.
+ * @return the ContainerGroupInner object itself.
+ */
+ public ContainerGroupInner withIdentityAcls(IdentityAcls identityAcls) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withIdentityAcls(identityAcls);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property innerProperties in model ContainerGroupInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerGroupInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerGroupInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerGroupInner 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 ContainerGroupInner.
+ */
+ public static ContainerGroupInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerGroupInner deserializedContainerGroupInner = new ContainerGroupInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedContainerGroupInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedContainerGroupInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedContainerGroupInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedContainerGroupInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedContainerGroupInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedContainerGroupInner.innerProperties
+ = ContainerGroupPropertiesProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedContainerGroupInner.zones = zones;
+ } else if ("identity".equals(fieldName)) {
+ deserializedContainerGroupInner.identity = ContainerGroupIdentity.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerGroupInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupProfileInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupProfileInner.java
new file mode 100644
index 000000000000..e3c2fada8444
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupProfileInner.java
@@ -0,0 +1,675 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+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.containerinstance.generated.models.ConfidentialComputeProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.Container;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupDiagnostics;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPriority;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupRestartPolicy;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSku;
+import com.azure.resourcemanager.containerinstance.generated.models.DeploymentExtensionSpec;
+import com.azure.resourcemanager.containerinstance.generated.models.EncryptionProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.ImageRegistryCredential;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.IpAddress;
+import com.azure.resourcemanager.containerinstance.generated.models.OperatingSystemTypes;
+import com.azure.resourcemanager.containerinstance.generated.models.SecurityContextDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.Volume;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * container group profile object.
+ */
+@Fluent
+public final class ContainerGroupProfileInner extends Resource {
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ private SystemData systemData;
+
+ /*
+ * The container group profile properties
+ */
+ private ContainerGroupProfileProperties innerProperties;
+
+ /*
+ * The zones for the container group.
+ */
+ private List zones;
+
+ /*
+ * 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 ContainerGroupProfileInner class.
+ */
+ public ContainerGroupProfileInner() {
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: The container group profile properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ContainerGroupProfileProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the zones property: The zones for the container group.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The zones for the container group.
+ *
+ * @param zones the zones value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ContainerGroupProfileInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ContainerGroupProfileInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU for a container group.
+ *
+ * @return the sku value.
+ */
+ public ContainerGroupSku sku() {
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
+ }
+
+ /**
+ * Set the sku property: The SKU for a container group.
+ *
+ * @param sku the sku value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withSku(ContainerGroupSku sku) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withSku(sku);
+ return this;
+ }
+
+ /**
+ * Get the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @return the encryptionProperties value.
+ */
+ public EncryptionProperties encryptionProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionProperties();
+ }
+
+ /**
+ * Set the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @param encryptionProperties the encryptionProperties value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withEncryptionProperties(EncryptionProperties encryptionProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withEncryptionProperties(encryptionProperties);
+ return this;
+ }
+
+ /**
+ * Get the containers property: The containers within the container group.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.innerProperties() == null ? null : this.innerProperties().containers();
+ }
+
+ /**
+ * Set the containers property: The containers within the container group.
+ *
+ * @param containers the containers value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withContainers(List containers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withContainers(containers);
+ return this;
+ }
+
+ /**
+ * Get the initContainers property: The init containers for a container group.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.innerProperties() == null ? null : this.innerProperties().initContainers();
+ }
+
+ /**
+ * Set the initContainers property: The init containers for a container group.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withInitContainers(List initContainers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withInitContainers(initContainers);
+ return this;
+ }
+
+ /**
+ * Get the extensions property: extensions used by virtual kubelet.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.innerProperties() == null ? null : this.innerProperties().extensions();
+ }
+
+ /**
+ * Set the extensions property: extensions used by virtual kubelet.
+ *
+ * @param extensions the extensions value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withExtensions(List extensions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withExtensions(extensions);
+ return this;
+ }
+
+ /**
+ * Get the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @return the imageRegistryCredentials value.
+ */
+ public List imageRegistryCredentials() {
+ return this.innerProperties() == null ? null : this.innerProperties().imageRegistryCredentials();
+ }
+
+ /**
+ * Set the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @param imageRegistryCredentials the imageRegistryCredentials value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner
+ withImageRegistryCredentials(List imageRegistryCredentials) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withImageRegistryCredentials(imageRegistryCredentials);
+ return this;
+ }
+
+ /**
+ * Get the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @return the restartPolicy value.
+ */
+ public ContainerGroupRestartPolicy restartPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().restartPolicy();
+ }
+
+ /**
+ * Set the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @param restartPolicy the restartPolicy value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withRestartPolicy(restartPolicy);
+ return this;
+ }
+
+ /**
+ * Get the shutdownGracePeriod property: Shutdown grace period for containers in a container group.
+ *
+ * @return the shutdownGracePeriod value.
+ */
+ public OffsetDateTime shutdownGracePeriod() {
+ return this.innerProperties() == null ? null : this.innerProperties().shutdownGracePeriod();
+ }
+
+ /**
+ * Set the shutdownGracePeriod property: Shutdown grace period for containers in a container group.
+ *
+ * @param shutdownGracePeriod the shutdownGracePeriod value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withShutdownGracePeriod(OffsetDateTime shutdownGracePeriod) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withShutdownGracePeriod(shutdownGracePeriod);
+ return this;
+ }
+
+ /**
+ * Get the ipAddress property: The IP address type of the container group.
+ *
+ * @return the ipAddress value.
+ */
+ public IpAddress ipAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipAddress();
+ }
+
+ /**
+ * Set the ipAddress property: The IP address type of the container group.
+ *
+ * @param ipAddress the ipAddress value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withIpAddress(IpAddress ipAddress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withIpAddress(ipAddress);
+ return this;
+ }
+
+ /**
+ * Get the timeToLive property: Post completion time to live for containers of a CG.
+ *
+ * @return the timeToLive value.
+ */
+ public OffsetDateTime timeToLive() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeToLive();
+ }
+
+ /**
+ * Set the timeToLive property: Post completion time to live for containers of a CG.
+ *
+ * @param timeToLive the timeToLive value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withTimeToLive(OffsetDateTime timeToLive) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withTimeToLive(timeToLive);
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type required by the containers in the container group.
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: The operating system type required by the containers in the container group.
+ *
+ * @param osType the osType value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withOsType(OperatingSystemTypes osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @return the volumes value.
+ */
+ public List volumes() {
+ return this.innerProperties() == null ? null : this.innerProperties().volumes();
+ }
+
+ /**
+ * Set the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @param volumes the volumes value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withVolumes(List volumes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withVolumes(volumes);
+ return this;
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostic information for a container group.
+ *
+ * @return the diagnostics value.
+ */
+ public ContainerGroupDiagnostics diagnostics() {
+ return this.innerProperties() == null ? null : this.innerProperties().diagnostics();
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostic information for a container group.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withDiagnostics(ContainerGroupDiagnostics diagnostics) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withDiagnostics(diagnostics);
+ return this;
+ }
+
+ /**
+ * Get the priority property: The priority of the container group.
+ *
+ * @return the priority value.
+ */
+ public ContainerGroupPriority priority() {
+ return this.innerProperties() == null ? null : this.innerProperties().priority();
+ }
+
+ /**
+ * Set the priority property: The priority of the container group.
+ *
+ * @param priority the priority value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withPriority(ContainerGroupPriority priority) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withPriority(priority);
+ return this;
+ }
+
+ /**
+ * Get the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @return the confidentialComputeProperties value.
+ */
+ public ConfidentialComputeProperties confidentialComputeProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().confidentialComputeProperties();
+ }
+
+ /**
+ * Set the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @param confidentialComputeProperties the confidentialComputeProperties value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner
+ withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withConfidentialComputeProperties(confidentialComputeProperties);
+ return this;
+ }
+
+ /**
+ * Get the securityContext property: The container security properties.
+ *
+ * @return the securityContext value.
+ */
+ public SecurityContextDefinition securityContext() {
+ return this.innerProperties() == null ? null : this.innerProperties().securityContext();
+ }
+
+ /**
+ * Set the securityContext property: The container security properties.
+ *
+ * @param securityContext the securityContext value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withSecurityContext(SecurityContextDefinition securityContext) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withSecurityContext(securityContext);
+ return this;
+ }
+
+ /**
+ * Get the revision property: Container group profile current revision number.
+ *
+ * @return the revision value.
+ */
+ public Long revision() {
+ return this.innerProperties() == null ? null : this.innerProperties().revision();
+ }
+
+ /**
+ * Set the revision property: Container group profile current revision number.
+ *
+ * @param revision the revision value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withRevision(Long revision) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withRevision(revision);
+ return this;
+ }
+
+ /**
+ * Get the registeredRevisions property: Registered revisions are calculated at request time based off the records
+ * in the table logs.
+ *
+ * @return the registeredRevisions value.
+ */
+ public List registeredRevisions() {
+ return this.innerProperties() == null ? null : this.innerProperties().registeredRevisions();
+ }
+
+ /**
+ * Set the registeredRevisions property: Registered revisions are calculated at request time based off the records
+ * in the table logs.
+ *
+ * @param registeredRevisions the registeredRevisions value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withRegisteredRevisions(List registeredRevisions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withRegisteredRevisions(registeredRevisions);
+ return this;
+ }
+
+ /**
+ * Get the useKrypton property: Gets or sets Krypton use property.
+ *
+ * @return the useKrypton value.
+ */
+ public Boolean useKrypton() {
+ return this.innerProperties() == null ? null : this.innerProperties().useKrypton();
+ }
+
+ /**
+ * Set the useKrypton property: Gets or sets Krypton use property.
+ *
+ * @param useKrypton the useKrypton value to set.
+ * @return the ContainerGroupProfileInner object itself.
+ */
+ public ContainerGroupProfileInner withUseKrypton(Boolean useKrypton) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerGroupProfileProperties();
+ }
+ this.innerProperties().withUseKrypton(useKrypton);
+ return this;
+ }
+
+ /**
+ * 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.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerGroupProfileInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerGroupProfileInner 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 ContainerGroupProfileInner.
+ */
+ public static ContainerGroupProfileInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerGroupProfileInner deserializedContainerGroupProfileInner = new ContainerGroupProfileInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedContainerGroupProfileInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedContainerGroupProfileInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedContainerGroupProfileInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedContainerGroupProfileInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedContainerGroupProfileInner.withTags(tags);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedContainerGroupProfileInner.systemData = SystemData.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedContainerGroupProfileInner.innerProperties
+ = ContainerGroupProfileProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedContainerGroupProfileInner.zones = zones;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerGroupProfileInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupProfileProperties.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupProfileProperties.java
new file mode 100644
index 000000000000..93c57cf360b3
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupProfileProperties.java
@@ -0,0 +1,686 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.containerinstance.generated.models.ConfidentialComputeProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.Container;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupDiagnostics;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPriority;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupRestartPolicy;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSku;
+import com.azure.resourcemanager.containerinstance.generated.models.DeploymentExtensionSpec;
+import com.azure.resourcemanager.containerinstance.generated.models.EncryptionProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.ImageRegistryCredential;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.IpAddress;
+import com.azure.resourcemanager.containerinstance.generated.models.OperatingSystemTypes;
+import com.azure.resourcemanager.containerinstance.generated.models.SecurityContextDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.Volume;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * The container group profile properties.
+ */
+@Fluent
+public final class ContainerGroupProfileProperties implements JsonSerializable {
+ /*
+ * The SKU for a container group.
+ */
+ private ContainerGroupSku sku;
+
+ /*
+ * The encryption properties for a container group.
+ */
+ private EncryptionProperties encryptionProperties;
+
+ /*
+ * The containers within the container group.
+ */
+ private List containers;
+
+ /*
+ * The init containers for a container group.
+ */
+ private List initContainers;
+
+ /*
+ * extensions used by virtual kubelet
+ */
+ private List extensions;
+
+ /*
+ * The image registry credentials by which the container group is created from.
+ */
+ private List imageRegistryCredentials;
+
+ /*
+ * Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart
+ */
+ private ContainerGroupRestartPolicy restartPolicy;
+
+ /*
+ * Shutdown grace period for containers in a container group.
+ */
+ private OffsetDateTime shutdownGracePeriod;
+
+ /*
+ * The IP address type of the container group.
+ */
+ private IpAddress ipAddress;
+
+ /*
+ * Post completion time to live for containers of a CG
+ */
+ private OffsetDateTime timeToLive;
+
+ /*
+ * The operating system type required by the containers in the container group.
+ */
+ private OperatingSystemTypes osType;
+
+ /*
+ * The list of volumes that can be mounted by containers in this container group.
+ */
+ private List volumes;
+
+ /*
+ * The diagnostic information for a container group.
+ */
+ private ContainerGroupDiagnostics diagnostics;
+
+ /*
+ * The priority of the container group.
+ */
+ private ContainerGroupPriority priority;
+
+ /*
+ * The properties for confidential container group
+ */
+ private ConfidentialComputeProperties confidentialComputeProperties;
+
+ /*
+ * The container security properties.
+ */
+ private SecurityContextDefinition securityContext;
+
+ /*
+ * Container group profile current revision number
+ */
+ private Long revision;
+
+ /*
+ * Registered revisions are calculated at request time based off the records in the table logs.
+ */
+ private List registeredRevisions;
+
+ /*
+ * Gets or sets Krypton use property.
+ */
+ private Boolean useKrypton;
+
+ /**
+ * Creates an instance of ContainerGroupProfileProperties class.
+ */
+ public ContainerGroupProfileProperties() {
+ }
+
+ /**
+ * Get the sku property: The SKU for a container group.
+ *
+ * @return the sku value.
+ */
+ public ContainerGroupSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU for a container group.
+ *
+ * @param sku the sku value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withSku(ContainerGroupSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @return the encryptionProperties value.
+ */
+ public EncryptionProperties encryptionProperties() {
+ return this.encryptionProperties;
+ }
+
+ /**
+ * Set the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @param encryptionProperties the encryptionProperties value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withEncryptionProperties(EncryptionProperties encryptionProperties) {
+ this.encryptionProperties = encryptionProperties;
+ return this;
+ }
+
+ /**
+ * Get the containers property: The containers within the container group.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.containers;
+ }
+
+ /**
+ * Set the containers property: The containers within the container group.
+ *
+ * @param containers the containers value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withContainers(List containers) {
+ this.containers = containers;
+ return this;
+ }
+
+ /**
+ * Get the initContainers property: The init containers for a container group.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.initContainers;
+ }
+
+ /**
+ * Set the initContainers property: The init containers for a container group.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withInitContainers(List initContainers) {
+ this.initContainers = initContainers;
+ return this;
+ }
+
+ /**
+ * Get the extensions property: extensions used by virtual kubelet.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.extensions;
+ }
+
+ /**
+ * Set the extensions property: extensions used by virtual kubelet.
+ *
+ * @param extensions the extensions value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withExtensions(List extensions) {
+ this.extensions = extensions;
+ return this;
+ }
+
+ /**
+ * Get the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @return the imageRegistryCredentials value.
+ */
+ public List imageRegistryCredentials() {
+ return this.imageRegistryCredentials;
+ }
+
+ /**
+ * Set the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @param imageRegistryCredentials the imageRegistryCredentials value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties
+ withImageRegistryCredentials(List imageRegistryCredentials) {
+ this.imageRegistryCredentials = imageRegistryCredentials;
+ return this;
+ }
+
+ /**
+ * Get the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @return the restartPolicy value.
+ */
+ public ContainerGroupRestartPolicy restartPolicy() {
+ return this.restartPolicy;
+ }
+
+ /**
+ * Set the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @param restartPolicy the restartPolicy value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) {
+ this.restartPolicy = restartPolicy;
+ return this;
+ }
+
+ /**
+ * Get the shutdownGracePeriod property: Shutdown grace period for containers in a container group.
+ *
+ * @return the shutdownGracePeriod value.
+ */
+ public OffsetDateTime shutdownGracePeriod() {
+ return this.shutdownGracePeriod;
+ }
+
+ /**
+ * Set the shutdownGracePeriod property: Shutdown grace period for containers in a container group.
+ *
+ * @param shutdownGracePeriod the shutdownGracePeriod value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withShutdownGracePeriod(OffsetDateTime shutdownGracePeriod) {
+ this.shutdownGracePeriod = shutdownGracePeriod;
+ return this;
+ }
+
+ /**
+ * Get the ipAddress property: The IP address type of the container group.
+ *
+ * @return the ipAddress value.
+ */
+ public IpAddress ipAddress() {
+ return this.ipAddress;
+ }
+
+ /**
+ * Set the ipAddress property: The IP address type of the container group.
+ *
+ * @param ipAddress the ipAddress value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withIpAddress(IpAddress ipAddress) {
+ this.ipAddress = ipAddress;
+ return this;
+ }
+
+ /**
+ * Get the timeToLive property: Post completion time to live for containers of a CG.
+ *
+ * @return the timeToLive value.
+ */
+ public OffsetDateTime timeToLive() {
+ return this.timeToLive;
+ }
+
+ /**
+ * Set the timeToLive property: Post completion time to live for containers of a CG.
+ *
+ * @param timeToLive the timeToLive value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withTimeToLive(OffsetDateTime timeToLive) {
+ this.timeToLive = timeToLive;
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type required by the containers in the container group.
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: The operating system type required by the containers in the container group.
+ *
+ * @param osType the osType value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withOsType(OperatingSystemTypes osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @return the volumes value.
+ */
+ public List volumes() {
+ return this.volumes;
+ }
+
+ /**
+ * Set the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @param volumes the volumes value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withVolumes(List volumes) {
+ this.volumes = volumes;
+ return this;
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostic information for a container group.
+ *
+ * @return the diagnostics value.
+ */
+ public ContainerGroupDiagnostics diagnostics() {
+ return this.diagnostics;
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostic information for a container group.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withDiagnostics(ContainerGroupDiagnostics diagnostics) {
+ this.diagnostics = diagnostics;
+ return this;
+ }
+
+ /**
+ * Get the priority property: The priority of the container group.
+ *
+ * @return the priority value.
+ */
+ public ContainerGroupPriority priority() {
+ return this.priority;
+ }
+
+ /**
+ * Set the priority property: The priority of the container group.
+ *
+ * @param priority the priority value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withPriority(ContainerGroupPriority priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * Get the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @return the confidentialComputeProperties value.
+ */
+ public ConfidentialComputeProperties confidentialComputeProperties() {
+ return this.confidentialComputeProperties;
+ }
+
+ /**
+ * Set the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @param confidentialComputeProperties the confidentialComputeProperties value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties
+ withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) {
+ this.confidentialComputeProperties = confidentialComputeProperties;
+ return this;
+ }
+
+ /**
+ * Get the securityContext property: The container security properties.
+ *
+ * @return the securityContext value.
+ */
+ public SecurityContextDefinition securityContext() {
+ return this.securityContext;
+ }
+
+ /**
+ * Set the securityContext property: The container security properties.
+ *
+ * @param securityContext the securityContext value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withSecurityContext(SecurityContextDefinition securityContext) {
+ this.securityContext = securityContext;
+ return this;
+ }
+
+ /**
+ * Get the revision property: Container group profile current revision number.
+ *
+ * @return the revision value.
+ */
+ public Long revision() {
+ return this.revision;
+ }
+
+ /**
+ * Set the revision property: Container group profile current revision number.
+ *
+ * @param revision the revision value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withRevision(Long revision) {
+ this.revision = revision;
+ return this;
+ }
+
+ /**
+ * Get the registeredRevisions property: Registered revisions are calculated at request time based off the records
+ * in the table logs.
+ *
+ * @return the registeredRevisions value.
+ */
+ public List registeredRevisions() {
+ return this.registeredRevisions;
+ }
+
+ /**
+ * Set the registeredRevisions property: Registered revisions are calculated at request time based off the records
+ * in the table logs.
+ *
+ * @param registeredRevisions the registeredRevisions value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withRegisteredRevisions(List registeredRevisions) {
+ this.registeredRevisions = registeredRevisions;
+ return this;
+ }
+
+ /**
+ * Get the useKrypton property: Gets or sets Krypton use property.
+ *
+ * @return the useKrypton value.
+ */
+ public Boolean useKrypton() {
+ return this.useKrypton;
+ }
+
+ /**
+ * Set the useKrypton property: Gets or sets Krypton use property.
+ *
+ * @param useKrypton the useKrypton value to set.
+ * @return the ContainerGroupProfileProperties object itself.
+ */
+ public ContainerGroupProfileProperties withUseKrypton(Boolean useKrypton) {
+ this.useKrypton = useKrypton;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (encryptionProperties() != null) {
+ encryptionProperties().validate();
+ }
+ if (containers() != null) {
+ containers().forEach(e -> e.validate());
+ }
+ if (initContainers() != null) {
+ initContainers().forEach(e -> e.validate());
+ }
+ if (extensions() != null) {
+ extensions().forEach(e -> e.validate());
+ }
+ if (imageRegistryCredentials() != null) {
+ imageRegistryCredentials().forEach(e -> e.validate());
+ }
+ if (ipAddress() != null) {
+ ipAddress().validate();
+ }
+ if (volumes() != null) {
+ volumes().forEach(e -> e.validate());
+ }
+ if (diagnostics() != null) {
+ diagnostics().validate();
+ }
+ if (confidentialComputeProperties() != null) {
+ confidentialComputeProperties().validate();
+ }
+ if (securityContext() != null) {
+ securityContext().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("sku", this.sku == null ? null : this.sku.toString());
+ jsonWriter.writeJsonField("encryptionProperties", this.encryptionProperties);
+ jsonWriter.writeArrayField("containers", this.containers, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("initContainers", this.initContainers,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("extensions", this.extensions, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("imageRegistryCredentials", this.imageRegistryCredentials,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("restartPolicy", this.restartPolicy == null ? null : this.restartPolicy.toString());
+ jsonWriter.writeStringField("shutdownGracePeriod",
+ this.shutdownGracePeriod == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.shutdownGracePeriod));
+ jsonWriter.writeJsonField("ipAddress", this.ipAddress);
+ jsonWriter.writeStringField("timeToLive",
+ this.timeToLive == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.timeToLive));
+ jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString());
+ jsonWriter.writeArrayField("volumes", this.volumes, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("diagnostics", this.diagnostics);
+ jsonWriter.writeStringField("priority", this.priority == null ? null : this.priority.toString());
+ jsonWriter.writeJsonField("confidentialComputeProperties", this.confidentialComputeProperties);
+ jsonWriter.writeJsonField("securityContext", this.securityContext);
+ jsonWriter.writeNumberField("revision", this.revision);
+ jsonWriter.writeArrayField("registeredRevisions", this.registeredRevisions,
+ (writer, element) -> writer.writeLong(element));
+ jsonWriter.writeBooleanField("useKrypton", this.useKrypton);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerGroupProfileProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerGroupProfileProperties 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 ContainerGroupProfileProperties.
+ */
+ public static ContainerGroupProfileProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerGroupProfileProperties deserializedContainerGroupProfileProperties
+ = new ContainerGroupProfileProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("sku".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.sku = ContainerGroupSku.fromString(reader.getString());
+ } else if ("encryptionProperties".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.encryptionProperties
+ = EncryptionProperties.fromJson(reader);
+ } else if ("containers".equals(fieldName)) {
+ List containers = reader.readArray(reader1 -> Container.fromJson(reader1));
+ deserializedContainerGroupProfileProperties.containers = containers;
+ } else if ("initContainers".equals(fieldName)) {
+ List initContainers
+ = reader.readArray(reader1 -> InitContainerDefinition.fromJson(reader1));
+ deserializedContainerGroupProfileProperties.initContainers = initContainers;
+ } else if ("extensions".equals(fieldName)) {
+ List extensions
+ = reader.readArray(reader1 -> DeploymentExtensionSpec.fromJson(reader1));
+ deserializedContainerGroupProfileProperties.extensions = extensions;
+ } else if ("imageRegistryCredentials".equals(fieldName)) {
+ List imageRegistryCredentials
+ = reader.readArray(reader1 -> ImageRegistryCredential.fromJson(reader1));
+ deserializedContainerGroupProfileProperties.imageRegistryCredentials = imageRegistryCredentials;
+ } else if ("restartPolicy".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.restartPolicy
+ = ContainerGroupRestartPolicy.fromString(reader.getString());
+ } else if ("shutdownGracePeriod".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.shutdownGracePeriod = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("ipAddress".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.ipAddress = IpAddress.fromJson(reader);
+ } else if ("timeToLive".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.timeToLive = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("osType".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.osType
+ = OperatingSystemTypes.fromString(reader.getString());
+ } else if ("volumes".equals(fieldName)) {
+ List volumes = reader.readArray(reader1 -> Volume.fromJson(reader1));
+ deserializedContainerGroupProfileProperties.volumes = volumes;
+ } else if ("diagnostics".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.diagnostics
+ = ContainerGroupDiagnostics.fromJson(reader);
+ } else if ("priority".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.priority
+ = ContainerGroupPriority.fromString(reader.getString());
+ } else if ("confidentialComputeProperties".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.confidentialComputeProperties
+ = ConfidentialComputeProperties.fromJson(reader);
+ } else if ("securityContext".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.securityContext
+ = SecurityContextDefinition.fromJson(reader);
+ } else if ("revision".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.revision = reader.getNullable(JsonReader::getLong);
+ } else if ("registeredRevisions".equals(fieldName)) {
+ List registeredRevisions = reader.readArray(reader1 -> reader1.getLong());
+ deserializedContainerGroupProfileProperties.registeredRevisions = registeredRevisions;
+ } else if ("useKrypton".equals(fieldName)) {
+ deserializedContainerGroupProfileProperties.useKrypton = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerGroupProfileProperties;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupPropertiesProperties.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupPropertiesProperties.java
new file mode 100644
index 000000000000..02b94632e96c
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerGroupPropertiesProperties.java
@@ -0,0 +1,685 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.models.ConfidentialComputeProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.Container;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupDiagnostics;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPriority;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPropertiesInstanceView;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupRestartPolicy;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSku;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSubnetId;
+import com.azure.resourcemanager.containerinstance.generated.models.DeploymentExtensionSpec;
+import com.azure.resourcemanager.containerinstance.generated.models.DnsConfiguration;
+import com.azure.resourcemanager.containerinstance.generated.models.EncryptionProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.IdentityAcls;
+import com.azure.resourcemanager.containerinstance.generated.models.ImageRegistryCredential;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.IpAddress;
+import com.azure.resourcemanager.containerinstance.generated.models.OperatingSystemTypes;
+import com.azure.resourcemanager.containerinstance.generated.models.SecretReference;
+import com.azure.resourcemanager.containerinstance.generated.models.Volume;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The container group properties.
+ */
+@Fluent
+public final class ContainerGroupPropertiesProperties implements JsonSerializable {
+ /*
+ * The provisioning state of the container group. This only appears in the response.
+ */
+ private String provisioningState;
+
+ /*
+ * The secret references that will be referenced within the container group.
+ */
+ private List secretReferences;
+
+ /*
+ * The containers within the container group.
+ */
+ private List containers;
+
+ /*
+ * The image registry credentials by which the container group is created from.
+ */
+ private List imageRegistryCredentials;
+
+ /*
+ * Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart
+ */
+ private ContainerGroupRestartPolicy restartPolicy;
+
+ /*
+ * The IP address type of the container group.
+ */
+ private IpAddress ipAddress;
+
+ /*
+ * The operating system type required by the containers in the container group.
+ */
+ private OperatingSystemTypes osType;
+
+ /*
+ * The list of volumes that can be mounted by containers in this container group.
+ */
+ private List volumes;
+
+ /*
+ * The instance view of the container group. Only valid in response.
+ */
+ private ContainerGroupPropertiesInstanceView instanceView;
+
+ /*
+ * The diagnostic information for a container group.
+ */
+ private ContainerGroupDiagnostics diagnostics;
+
+ /*
+ * The subnet resource IDs for a container group.
+ */
+ private List subnetIds;
+
+ /*
+ * The DNS config information for a container group.
+ */
+ private DnsConfiguration dnsConfig;
+
+ /*
+ * The SKU for a container group.
+ */
+ private ContainerGroupSku sku;
+
+ /*
+ * The encryption properties for a container group.
+ */
+ private EncryptionProperties encryptionProperties;
+
+ /*
+ * The init containers for a container group.
+ */
+ private List initContainers;
+
+ /*
+ * extensions used by virtual kubelet
+ */
+ private List extensions;
+
+ /*
+ * The properties for confidential container group
+ */
+ private ConfidentialComputeProperties confidentialComputeProperties;
+
+ /*
+ * The priority of the container group.
+ */
+ private ContainerGroupPriority priority;
+
+ /*
+ * The access control levels of the identities.
+ */
+ private IdentityAcls identityAcls;
+
+ /**
+ * Creates an instance of ContainerGroupPropertiesProperties class.
+ */
+ public ContainerGroupPropertiesProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the container group. This only appears in the
+ * response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @return the secretReferences value.
+ */
+ public List secretReferences() {
+ return this.secretReferences;
+ }
+
+ /**
+ * Set the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @param secretReferences the secretReferences value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withSecretReferences(List secretReferences) {
+ this.secretReferences = secretReferences;
+ return this;
+ }
+
+ /**
+ * Get the containers property: The containers within the container group.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.containers;
+ }
+
+ /**
+ * Set the containers property: The containers within the container group.
+ *
+ * @param containers the containers value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withContainers(List containers) {
+ this.containers = containers;
+ return this;
+ }
+
+ /**
+ * Get the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @return the imageRegistryCredentials value.
+ */
+ public List imageRegistryCredentials() {
+ return this.imageRegistryCredentials;
+ }
+
+ /**
+ * Set the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @param imageRegistryCredentials the imageRegistryCredentials value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties
+ withImageRegistryCredentials(List imageRegistryCredentials) {
+ this.imageRegistryCredentials = imageRegistryCredentials;
+ return this;
+ }
+
+ /**
+ * Get the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @return the restartPolicy value.
+ */
+ public ContainerGroupRestartPolicy restartPolicy() {
+ return this.restartPolicy;
+ }
+
+ /**
+ * Set the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @param restartPolicy the restartPolicy value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) {
+ this.restartPolicy = restartPolicy;
+ return this;
+ }
+
+ /**
+ * Get the ipAddress property: The IP address type of the container group.
+ *
+ * @return the ipAddress value.
+ */
+ public IpAddress ipAddress() {
+ return this.ipAddress;
+ }
+
+ /**
+ * Set the ipAddress property: The IP address type of the container group.
+ *
+ * @param ipAddress the ipAddress value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withIpAddress(IpAddress ipAddress) {
+ this.ipAddress = ipAddress;
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type required by the containers in the container group.
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: The operating system type required by the containers in the container group.
+ *
+ * @param osType the osType value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withOsType(OperatingSystemTypes osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @return the volumes value.
+ */
+ public List volumes() {
+ return this.volumes;
+ }
+
+ /**
+ * Set the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @param volumes the volumes value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withVolumes(List volumes) {
+ this.volumes = volumes;
+ return this;
+ }
+
+ /**
+ * Get the instanceView property: The instance view of the container group. Only valid in response.
+ *
+ * @return the instanceView value.
+ */
+ public ContainerGroupPropertiesInstanceView instanceView() {
+ return this.instanceView;
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostic information for a container group.
+ *
+ * @return the diagnostics value.
+ */
+ public ContainerGroupDiagnostics diagnostics() {
+ return this.diagnostics;
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostic information for a container group.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withDiagnostics(ContainerGroupDiagnostics diagnostics) {
+ this.diagnostics = diagnostics;
+ return this;
+ }
+
+ /**
+ * Get the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @return the subnetIds value.
+ */
+ public List subnetIds() {
+ return this.subnetIds;
+ }
+
+ /**
+ * Set the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @param subnetIds the subnetIds value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withSubnetIds(List subnetIds) {
+ this.subnetIds = subnetIds;
+ return this;
+ }
+
+ /**
+ * Get the dnsConfig property: The DNS config information for a container group.
+ *
+ * @return the dnsConfig value.
+ */
+ public DnsConfiguration dnsConfig() {
+ return this.dnsConfig;
+ }
+
+ /**
+ * Set the dnsConfig property: The DNS config information for a container group.
+ *
+ * @param dnsConfig the dnsConfig value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withDnsConfig(DnsConfiguration dnsConfig) {
+ this.dnsConfig = dnsConfig;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU for a container group.
+ *
+ * @return the sku value.
+ */
+ public ContainerGroupSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU for a container group.
+ *
+ * @param sku the sku value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withSku(ContainerGroupSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @return the encryptionProperties value.
+ */
+ public EncryptionProperties encryptionProperties() {
+ return this.encryptionProperties;
+ }
+
+ /**
+ * Set the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @param encryptionProperties the encryptionProperties value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withEncryptionProperties(EncryptionProperties encryptionProperties) {
+ this.encryptionProperties = encryptionProperties;
+ return this;
+ }
+
+ /**
+ * Get the initContainers property: The init containers for a container group.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.initContainers;
+ }
+
+ /**
+ * Set the initContainers property: The init containers for a container group.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withInitContainers(List initContainers) {
+ this.initContainers = initContainers;
+ return this;
+ }
+
+ /**
+ * Get the extensions property: extensions used by virtual kubelet.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.extensions;
+ }
+
+ /**
+ * Set the extensions property: extensions used by virtual kubelet.
+ *
+ * @param extensions the extensions value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withExtensions(List extensions) {
+ this.extensions = extensions;
+ return this;
+ }
+
+ /**
+ * Get the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @return the confidentialComputeProperties value.
+ */
+ public ConfidentialComputeProperties confidentialComputeProperties() {
+ return this.confidentialComputeProperties;
+ }
+
+ /**
+ * Set the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @param confidentialComputeProperties the confidentialComputeProperties value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties
+ withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) {
+ this.confidentialComputeProperties = confidentialComputeProperties;
+ return this;
+ }
+
+ /**
+ * Get the priority property: The priority of the container group.
+ *
+ * @return the priority value.
+ */
+ public ContainerGroupPriority priority() {
+ return this.priority;
+ }
+
+ /**
+ * Set the priority property: The priority of the container group.
+ *
+ * @param priority the priority value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withPriority(ContainerGroupPriority priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * Get the identityAcls property: The access control levels of the identities.
+ *
+ * @return the identityAcls value.
+ */
+ public IdentityAcls identityAcls() {
+ return this.identityAcls;
+ }
+
+ /**
+ * Set the identityAcls property: The access control levels of the identities.
+ *
+ * @param identityAcls the identityAcls value to set.
+ * @return the ContainerGroupPropertiesProperties object itself.
+ */
+ public ContainerGroupPropertiesProperties withIdentityAcls(IdentityAcls identityAcls) {
+ this.identityAcls = identityAcls;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (secretReferences() != null) {
+ secretReferences().forEach(e -> e.validate());
+ }
+ if (containers() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property containers in model ContainerGroupPropertiesProperties"));
+ } else {
+ containers().forEach(e -> e.validate());
+ }
+ if (imageRegistryCredentials() != null) {
+ imageRegistryCredentials().forEach(e -> e.validate());
+ }
+ if (ipAddress() != null) {
+ ipAddress().validate();
+ }
+ if (osType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property osType in model ContainerGroupPropertiesProperties"));
+ }
+ if (volumes() != null) {
+ volumes().forEach(e -> e.validate());
+ }
+ if (instanceView() != null) {
+ instanceView().validate();
+ }
+ if (diagnostics() != null) {
+ diagnostics().validate();
+ }
+ if (subnetIds() != null) {
+ subnetIds().forEach(e -> e.validate());
+ }
+ if (dnsConfig() != null) {
+ dnsConfig().validate();
+ }
+ if (encryptionProperties() != null) {
+ encryptionProperties().validate();
+ }
+ if (initContainers() != null) {
+ initContainers().forEach(e -> e.validate());
+ }
+ if (extensions() != null) {
+ extensions().forEach(e -> e.validate());
+ }
+ if (confidentialComputeProperties() != null) {
+ confidentialComputeProperties().validate();
+ }
+ if (identityAcls() != null) {
+ identityAcls().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerGroupPropertiesProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("containers", this.containers, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString());
+ jsonWriter.writeArrayField("secretReferences", this.secretReferences,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("imageRegistryCredentials", this.imageRegistryCredentials,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("restartPolicy", this.restartPolicy == null ? null : this.restartPolicy.toString());
+ jsonWriter.writeJsonField("ipAddress", this.ipAddress);
+ jsonWriter.writeArrayField("volumes", this.volumes, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("diagnostics", this.diagnostics);
+ jsonWriter.writeArrayField("subnetIds", this.subnetIds, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("dnsConfig", this.dnsConfig);
+ jsonWriter.writeStringField("sku", this.sku == null ? null : this.sku.toString());
+ jsonWriter.writeJsonField("encryptionProperties", this.encryptionProperties);
+ jsonWriter.writeArrayField("initContainers", this.initContainers,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("extensions", this.extensions, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("confidentialComputeProperties", this.confidentialComputeProperties);
+ jsonWriter.writeStringField("priority", this.priority == null ? null : this.priority.toString());
+ jsonWriter.writeJsonField("identityAcls", this.identityAcls);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerGroupPropertiesProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerGroupPropertiesProperties 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 ContainerGroupPropertiesProperties.
+ */
+ public static ContainerGroupPropertiesProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerGroupPropertiesProperties deserializedContainerGroupPropertiesProperties
+ = new ContainerGroupPropertiesProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("containers".equals(fieldName)) {
+ List containers = reader.readArray(reader1 -> Container.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.containers = containers;
+ } else if ("osType".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.osType
+ = OperatingSystemTypes.fromString(reader.getString());
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.provisioningState = reader.getString();
+ } else if ("secretReferences".equals(fieldName)) {
+ List secretReferences
+ = reader.readArray(reader1 -> SecretReference.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.secretReferences = secretReferences;
+ } else if ("imageRegistryCredentials".equals(fieldName)) {
+ List imageRegistryCredentials
+ = reader.readArray(reader1 -> ImageRegistryCredential.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.imageRegistryCredentials = imageRegistryCredentials;
+ } else if ("restartPolicy".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.restartPolicy
+ = ContainerGroupRestartPolicy.fromString(reader.getString());
+ } else if ("ipAddress".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.ipAddress = IpAddress.fromJson(reader);
+ } else if ("volumes".equals(fieldName)) {
+ List volumes = reader.readArray(reader1 -> Volume.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.volumes = volumes;
+ } else if ("instanceView".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.instanceView
+ = ContainerGroupPropertiesInstanceView.fromJson(reader);
+ } else if ("diagnostics".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.diagnostics
+ = ContainerGroupDiagnostics.fromJson(reader);
+ } else if ("subnetIds".equals(fieldName)) {
+ List subnetIds
+ = reader.readArray(reader1 -> ContainerGroupSubnetId.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.subnetIds = subnetIds;
+ } else if ("dnsConfig".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.dnsConfig = DnsConfiguration.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.sku
+ = ContainerGroupSku.fromString(reader.getString());
+ } else if ("encryptionProperties".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.encryptionProperties
+ = EncryptionProperties.fromJson(reader);
+ } else if ("initContainers".equals(fieldName)) {
+ List initContainers
+ = reader.readArray(reader1 -> InitContainerDefinition.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.initContainers = initContainers;
+ } else if ("extensions".equals(fieldName)) {
+ List extensions
+ = reader.readArray(reader1 -> DeploymentExtensionSpec.fromJson(reader1));
+ deserializedContainerGroupPropertiesProperties.extensions = extensions;
+ } else if ("confidentialComputeProperties".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.confidentialComputeProperties
+ = ConfidentialComputeProperties.fromJson(reader);
+ } else if ("priority".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.priority
+ = ContainerGroupPriority.fromString(reader.getString());
+ } else if ("identityAcls".equals(fieldName)) {
+ deserializedContainerGroupPropertiesProperties.identityAcls = IdentityAcls.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerGroupPropertiesProperties;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerProperties.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerProperties.java
new file mode 100644
index 000000000000..e29fb122bb6a
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ContainerProperties.java
@@ -0,0 +1,382 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.models.ContainerPort;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerProbe;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerPropertiesInstanceView;
+import com.azure.resourcemanager.containerinstance.generated.models.EnvironmentVariable;
+import com.azure.resourcemanager.containerinstance.generated.models.ResourceRequirements;
+import com.azure.resourcemanager.containerinstance.generated.models.SecurityContextDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.VolumeMount;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The container instance properties.
+ */
+@Fluent
+public final class ContainerProperties implements JsonSerializable {
+ /*
+ * The name of the image used to create the container instance.
+ */
+ private String image;
+
+ /*
+ * The commands to execute within the container instance in exec form.
+ */
+ private List command;
+
+ /*
+ * The exposed ports on the container instance.
+ */
+ private List ports;
+
+ /*
+ * The environment variables to set in the container instance.
+ */
+ private List environmentVariables;
+
+ /*
+ * The instance view of the container instance. Only valid in response.
+ */
+ private ContainerPropertiesInstanceView instanceView;
+
+ /*
+ * The resource requirements of the container instance.
+ */
+ private ResourceRequirements resources;
+
+ /*
+ * The volume mounts available to the container instance.
+ */
+ private List volumeMounts;
+
+ /*
+ * The liveness probe.
+ */
+ private ContainerProbe livenessProbe;
+
+ /*
+ * The readiness probe.
+ */
+ private ContainerProbe readinessProbe;
+
+ /*
+ * The container security properties.
+ */
+ private SecurityContextDefinition securityContext;
+
+ /**
+ * Creates an instance of ContainerProperties class.
+ */
+ public ContainerProperties() {
+ }
+
+ /**
+ * Get the image property: The name of the image used to create the container instance.
+ *
+ * @return the image value.
+ */
+ public String image() {
+ return this.image;
+ }
+
+ /**
+ * Set the image property: The name of the image used to create the container instance.
+ *
+ * @param image the image value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withImage(String image) {
+ this.image = image;
+ return this;
+ }
+
+ /**
+ * Get the command property: The commands to execute within the container instance in exec form.
+ *
+ * @return the command value.
+ */
+ public List command() {
+ return this.command;
+ }
+
+ /**
+ * Set the command property: The commands to execute within the container instance in exec form.
+ *
+ * @param command the command value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withCommand(List command) {
+ this.command = command;
+ return this;
+ }
+
+ /**
+ * Get the ports property: The exposed ports on the container instance.
+ *
+ * @return the ports value.
+ */
+ public List ports() {
+ return this.ports;
+ }
+
+ /**
+ * Set the ports property: The exposed ports on the container instance.
+ *
+ * @param ports the ports value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withPorts(List ports) {
+ this.ports = ports;
+ return this;
+ }
+
+ /**
+ * Get the environmentVariables property: The environment variables to set in the container instance.
+ *
+ * @return the environmentVariables value.
+ */
+ public List environmentVariables() {
+ return this.environmentVariables;
+ }
+
+ /**
+ * Set the environmentVariables property: The environment variables to set in the container instance.
+ *
+ * @param environmentVariables the environmentVariables value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withEnvironmentVariables(List environmentVariables) {
+ this.environmentVariables = environmentVariables;
+ return this;
+ }
+
+ /**
+ * Get the instanceView property: The instance view of the container instance. Only valid in response.
+ *
+ * @return the instanceView value.
+ */
+ public ContainerPropertiesInstanceView instanceView() {
+ return this.instanceView;
+ }
+
+ /**
+ * Get the resources property: The resource requirements of the container instance.
+ *
+ * @return the resources value.
+ */
+ public ResourceRequirements resources() {
+ return this.resources;
+ }
+
+ /**
+ * Set the resources property: The resource requirements of the container instance.
+ *
+ * @param resources the resources value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withResources(ResourceRequirements resources) {
+ this.resources = resources;
+ return this;
+ }
+
+ /**
+ * Get the volumeMounts property: The volume mounts available to the container instance.
+ *
+ * @return the volumeMounts value.
+ */
+ public List volumeMounts() {
+ return this.volumeMounts;
+ }
+
+ /**
+ * Set the volumeMounts property: The volume mounts available to the container instance.
+ *
+ * @param volumeMounts the volumeMounts value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withVolumeMounts(List volumeMounts) {
+ this.volumeMounts = volumeMounts;
+ return this;
+ }
+
+ /**
+ * Get the livenessProbe property: The liveness probe.
+ *
+ * @return the livenessProbe value.
+ */
+ public ContainerProbe livenessProbe() {
+ return this.livenessProbe;
+ }
+
+ /**
+ * Set the livenessProbe property: The liveness probe.
+ *
+ * @param livenessProbe the livenessProbe value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withLivenessProbe(ContainerProbe livenessProbe) {
+ this.livenessProbe = livenessProbe;
+ return this;
+ }
+
+ /**
+ * Get the readinessProbe property: The readiness probe.
+ *
+ * @return the readinessProbe value.
+ */
+ public ContainerProbe readinessProbe() {
+ return this.readinessProbe;
+ }
+
+ /**
+ * Set the readinessProbe property: The readiness probe.
+ *
+ * @param readinessProbe the readinessProbe value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withReadinessProbe(ContainerProbe readinessProbe) {
+ this.readinessProbe = readinessProbe;
+ return this;
+ }
+
+ /**
+ * Get the securityContext property: The container security properties.
+ *
+ * @return the securityContext value.
+ */
+ public SecurityContextDefinition securityContext() {
+ return this.securityContext;
+ }
+
+ /**
+ * Set the securityContext property: The container security properties.
+ *
+ * @param securityContext the securityContext value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withSecurityContext(SecurityContextDefinition securityContext) {
+ this.securityContext = securityContext;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (image() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property image in model ContainerProperties"));
+ }
+ if (ports() != null) {
+ ports().forEach(e -> e.validate());
+ }
+ if (environmentVariables() != null) {
+ environmentVariables().forEach(e -> e.validate());
+ }
+ if (instanceView() != null) {
+ instanceView().validate();
+ }
+ if (resources() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property resources in model ContainerProperties"));
+ } else {
+ resources().validate();
+ }
+ if (volumeMounts() != null) {
+ volumeMounts().forEach(e -> e.validate());
+ }
+ if (livenessProbe() != null) {
+ livenessProbe().validate();
+ }
+ if (readinessProbe() != null) {
+ readinessProbe().validate();
+ }
+ if (securityContext() != null) {
+ securityContext().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ContainerProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("image", this.image);
+ jsonWriter.writeJsonField("resources", this.resources);
+ jsonWriter.writeArrayField("command", this.command, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("ports", this.ports, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("environmentVariables", this.environmentVariables,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("volumeMounts", this.volumeMounts, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("livenessProbe", this.livenessProbe);
+ jsonWriter.writeJsonField("readinessProbe", this.readinessProbe);
+ jsonWriter.writeJsonField("securityContext", this.securityContext);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ContainerProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ContainerProperties 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 ContainerProperties.
+ */
+ public static ContainerProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ContainerProperties deserializedContainerProperties = new ContainerProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("image".equals(fieldName)) {
+ deserializedContainerProperties.image = reader.getString();
+ } else if ("resources".equals(fieldName)) {
+ deserializedContainerProperties.resources = ResourceRequirements.fromJson(reader);
+ } else if ("command".equals(fieldName)) {
+ List command = reader.readArray(reader1 -> reader1.getString());
+ deserializedContainerProperties.command = command;
+ } else if ("ports".equals(fieldName)) {
+ List ports = reader.readArray(reader1 -> ContainerPort.fromJson(reader1));
+ deserializedContainerProperties.ports = ports;
+ } else if ("environmentVariables".equals(fieldName)) {
+ List environmentVariables
+ = reader.readArray(reader1 -> EnvironmentVariable.fromJson(reader1));
+ deserializedContainerProperties.environmentVariables = environmentVariables;
+ } else if ("instanceView".equals(fieldName)) {
+ deserializedContainerProperties.instanceView = ContainerPropertiesInstanceView.fromJson(reader);
+ } else if ("volumeMounts".equals(fieldName)) {
+ List volumeMounts = reader.readArray(reader1 -> VolumeMount.fromJson(reader1));
+ deserializedContainerProperties.volumeMounts = volumeMounts;
+ } else if ("livenessProbe".equals(fieldName)) {
+ deserializedContainerProperties.livenessProbe = ContainerProbe.fromJson(reader);
+ } else if ("readinessProbe".equals(fieldName)) {
+ deserializedContainerProperties.readinessProbe = ContainerProbe.fromJson(reader);
+ } else if ("securityContext".equals(fieldName)) {
+ deserializedContainerProperties.securityContext = SecurityContextDefinition.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedContainerProperties;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/DeploymentExtensionSpecProperties.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/DeploymentExtensionSpecProperties.java
new file mode 100644
index 000000000000..6f6ed928a74b
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/DeploymentExtensionSpecProperties.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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 java.io.IOException;
+
+/**
+ * Extension specific properties.
+ */
+@Fluent
+public final class DeploymentExtensionSpecProperties implements JsonSerializable {
+ /*
+ * Type of extension to be added.
+ */
+ private String extensionType;
+
+ /*
+ * Version of the extension being used.
+ */
+ private String version;
+
+ /*
+ * Settings for the extension.
+ */
+ private Object settings;
+
+ /*
+ * Protected settings for the extension.
+ */
+ private Object protectedSettings;
+
+ /**
+ * Creates an instance of DeploymentExtensionSpecProperties class.
+ */
+ public DeploymentExtensionSpecProperties() {
+ }
+
+ /**
+ * Get the extensionType property: Type of extension to be added.
+ *
+ * @return the extensionType value.
+ */
+ public String extensionType() {
+ return this.extensionType;
+ }
+
+ /**
+ * Set the extensionType property: Type of extension to be added.
+ *
+ * @param extensionType the extensionType value to set.
+ * @return the DeploymentExtensionSpecProperties object itself.
+ */
+ public DeploymentExtensionSpecProperties withExtensionType(String extensionType) {
+ this.extensionType = extensionType;
+ return this;
+ }
+
+ /**
+ * Get the version property: Version of the extension being used.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Version of the extension being used.
+ *
+ * @param version the version value to set.
+ * @return the DeploymentExtensionSpecProperties object itself.
+ */
+ public DeploymentExtensionSpecProperties withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the settings property: Settings for the extension.
+ *
+ * @return the settings value.
+ */
+ public Object settings() {
+ return this.settings;
+ }
+
+ /**
+ * Set the settings property: Settings for the extension.
+ *
+ * @param settings the settings value to set.
+ * @return the DeploymentExtensionSpecProperties object itself.
+ */
+ public DeploymentExtensionSpecProperties withSettings(Object settings) {
+ this.settings = settings;
+ return this;
+ }
+
+ /**
+ * Get the protectedSettings property: Protected settings for the extension.
+ *
+ * @return the protectedSettings value.
+ */
+ public Object protectedSettings() {
+ return this.protectedSettings;
+ }
+
+ /**
+ * Set the protectedSettings property: Protected settings for the extension.
+ *
+ * @param protectedSettings the protectedSettings value to set.
+ * @return the DeploymentExtensionSpecProperties object itself.
+ */
+ public DeploymentExtensionSpecProperties withProtectedSettings(Object protectedSettings) {
+ this.protectedSettings = protectedSettings;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (extensionType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property extensionType in model DeploymentExtensionSpecProperties"));
+ }
+ if (version() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property version in model DeploymentExtensionSpecProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DeploymentExtensionSpecProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("extensionType", this.extensionType);
+ jsonWriter.writeStringField("version", this.version);
+ jsonWriter.writeUntypedField("settings", this.settings);
+ jsonWriter.writeUntypedField("protectedSettings", this.protectedSettings);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeploymentExtensionSpecProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeploymentExtensionSpecProperties 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 DeploymentExtensionSpecProperties.
+ */
+ public static DeploymentExtensionSpecProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeploymentExtensionSpecProperties deserializedDeploymentExtensionSpecProperties
+ = new DeploymentExtensionSpecProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("extensionType".equals(fieldName)) {
+ deserializedDeploymentExtensionSpecProperties.extensionType = reader.getString();
+ } else if ("version".equals(fieldName)) {
+ deserializedDeploymentExtensionSpecProperties.version = reader.getString();
+ } else if ("settings".equals(fieldName)) {
+ deserializedDeploymentExtensionSpecProperties.settings = reader.readUntyped();
+ } else if ("protectedSettings".equals(fieldName)) {
+ deserializedDeploymentExtensionSpecProperties.protectedSettings = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeploymentExtensionSpecProperties;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/InitContainerPropertiesDefinition.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/InitContainerPropertiesDefinition.java
new file mode 100644
index 000000000000..f39379308167
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/InitContainerPropertiesDefinition.java
@@ -0,0 +1,246 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.models.EnvironmentVariable;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerPropertiesDefinitionInstanceView;
+import com.azure.resourcemanager.containerinstance.generated.models.SecurityContextDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.VolumeMount;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The init container definition properties.
+ */
+@Fluent
+public final class InitContainerPropertiesDefinition implements JsonSerializable {
+ /*
+ * The image of the init container.
+ */
+ private String image;
+
+ /*
+ * The command to execute within the init container in exec form.
+ */
+ private List command;
+
+ /*
+ * The environment variables to set in the init container.
+ */
+ private List environmentVariables;
+
+ /*
+ * The instance view of the init container. Only valid in response.
+ */
+ private InitContainerPropertiesDefinitionInstanceView instanceView;
+
+ /*
+ * The volume mounts available to the init container.
+ */
+ private List volumeMounts;
+
+ /*
+ * The container security properties.
+ */
+ private SecurityContextDefinition securityContext;
+
+ /**
+ * Creates an instance of InitContainerPropertiesDefinition class.
+ */
+ public InitContainerPropertiesDefinition() {
+ }
+
+ /**
+ * Get the image property: The image of the init container.
+ *
+ * @return the image value.
+ */
+ public String image() {
+ return this.image;
+ }
+
+ /**
+ * Set the image property: The image of the init container.
+ *
+ * @param image the image value to set.
+ * @return the InitContainerPropertiesDefinition object itself.
+ */
+ public InitContainerPropertiesDefinition withImage(String image) {
+ this.image = image;
+ return this;
+ }
+
+ /**
+ * Get the command property: The command to execute within the init container in exec form.
+ *
+ * @return the command value.
+ */
+ public List command() {
+ return this.command;
+ }
+
+ /**
+ * Set the command property: The command to execute within the init container in exec form.
+ *
+ * @param command the command value to set.
+ * @return the InitContainerPropertiesDefinition object itself.
+ */
+ public InitContainerPropertiesDefinition withCommand(List command) {
+ this.command = command;
+ return this;
+ }
+
+ /**
+ * Get the environmentVariables property: The environment variables to set in the init container.
+ *
+ * @return the environmentVariables value.
+ */
+ public List environmentVariables() {
+ return this.environmentVariables;
+ }
+
+ /**
+ * Set the environmentVariables property: The environment variables to set in the init container.
+ *
+ * @param environmentVariables the environmentVariables value to set.
+ * @return the InitContainerPropertiesDefinition object itself.
+ */
+ public InitContainerPropertiesDefinition withEnvironmentVariables(List environmentVariables) {
+ this.environmentVariables = environmentVariables;
+ return this;
+ }
+
+ /**
+ * Get the instanceView property: The instance view of the init container. Only valid in response.
+ *
+ * @return the instanceView value.
+ */
+ public InitContainerPropertiesDefinitionInstanceView instanceView() {
+ return this.instanceView;
+ }
+
+ /**
+ * Get the volumeMounts property: The volume mounts available to the init container.
+ *
+ * @return the volumeMounts value.
+ */
+ public List volumeMounts() {
+ return this.volumeMounts;
+ }
+
+ /**
+ * Set the volumeMounts property: The volume mounts available to the init container.
+ *
+ * @param volumeMounts the volumeMounts value to set.
+ * @return the InitContainerPropertiesDefinition object itself.
+ */
+ public InitContainerPropertiesDefinition withVolumeMounts(List volumeMounts) {
+ this.volumeMounts = volumeMounts;
+ return this;
+ }
+
+ /**
+ * Get the securityContext property: The container security properties.
+ *
+ * @return the securityContext value.
+ */
+ public SecurityContextDefinition securityContext() {
+ return this.securityContext;
+ }
+
+ /**
+ * Set the securityContext property: The container security properties.
+ *
+ * @param securityContext the securityContext value to set.
+ * @return the InitContainerPropertiesDefinition object itself.
+ */
+ public InitContainerPropertiesDefinition withSecurityContext(SecurityContextDefinition securityContext) {
+ this.securityContext = securityContext;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (environmentVariables() != null) {
+ environmentVariables().forEach(e -> e.validate());
+ }
+ if (instanceView() != null) {
+ instanceView().validate();
+ }
+ if (volumeMounts() != null) {
+ volumeMounts().forEach(e -> e.validate());
+ }
+ if (securityContext() != null) {
+ securityContext().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("image", this.image);
+ jsonWriter.writeArrayField("command", this.command, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("environmentVariables", this.environmentVariables,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("volumeMounts", this.volumeMounts, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("securityContext", this.securityContext);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of InitContainerPropertiesDefinition from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of InitContainerPropertiesDefinition 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 InitContainerPropertiesDefinition.
+ */
+ public static InitContainerPropertiesDefinition fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ InitContainerPropertiesDefinition deserializedInitContainerPropertiesDefinition
+ = new InitContainerPropertiesDefinition();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("image".equals(fieldName)) {
+ deserializedInitContainerPropertiesDefinition.image = reader.getString();
+ } else if ("command".equals(fieldName)) {
+ List command = reader.readArray(reader1 -> reader1.getString());
+ deserializedInitContainerPropertiesDefinition.command = command;
+ } else if ("environmentVariables".equals(fieldName)) {
+ List environmentVariables
+ = reader.readArray(reader1 -> EnvironmentVariable.fromJson(reader1));
+ deserializedInitContainerPropertiesDefinition.environmentVariables = environmentVariables;
+ } else if ("instanceView".equals(fieldName)) {
+ deserializedInitContainerPropertiesDefinition.instanceView
+ = InitContainerPropertiesDefinitionInstanceView.fromJson(reader);
+ } else if ("volumeMounts".equals(fieldName)) {
+ List volumeMounts = reader.readArray(reader1 -> VolumeMount.fromJson(reader1));
+ deserializedInitContainerPropertiesDefinition.volumeMounts = volumeMounts;
+ } else if ("securityContext".equals(fieldName)) {
+ deserializedInitContainerPropertiesDefinition.securityContext
+ = SecurityContextDefinition.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedInitContainerPropertiesDefinition;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ListResultContainerGroupInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ListResultContainerGroupInner.java
new file mode 100644
index 000000000000..46a3cf81e7c4
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ListResultContainerGroupInner.java
@@ -0,0 +1,664 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.containerinstance.generated.models.ConfidentialComputeProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.Container;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupDiagnostics;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupIdentity;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPriority;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupProvisioningState;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupRestartPolicy;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSku;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSubnetId;
+import com.azure.resourcemanager.containerinstance.generated.models.DeploymentExtensionSpec;
+import com.azure.resourcemanager.containerinstance.generated.models.DnsConfiguration;
+import com.azure.resourcemanager.containerinstance.generated.models.EncryptionProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.IdentityAcls;
+import com.azure.resourcemanager.containerinstance.generated.models.ImageRegistryCredential;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.IpAddress;
+import com.azure.resourcemanager.containerinstance.generated.models.OperatingSystemTypes;
+import com.azure.resourcemanager.containerinstance.generated.models.SecretReference;
+import com.azure.resourcemanager.containerinstance.generated.models.Volume;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * A container group part of the list result.
+ */
+@Fluent
+public final class ListResultContainerGroupInner extends Resource {
+ /*
+ * The zones for the container group.
+ */
+ private List zones;
+
+ /*
+ * The identity of the container group, if configured.
+ */
+ private ContainerGroupIdentity identity;
+
+ /*
+ * The container group properties
+ */
+ private ListResultContainerGroupPropertiesProperties innerProperties
+ = new ListResultContainerGroupPropertiesProperties();
+
+ /*
+ * 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 ListResultContainerGroupInner class.
+ */
+ public ListResultContainerGroupInner() {
+ }
+
+ /**
+ * Get the zones property: The zones for the container group.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The zones for the container group.
+ *
+ * @param zones the zones value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the container group, if configured.
+ *
+ * @return the identity value.
+ */
+ public ContainerGroupIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the container group, if configured.
+ *
+ * @param identity the identity value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withIdentity(ContainerGroupIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: The container group properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ListResultContainerGroupPropertiesProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ListResultContainerGroupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ListResultContainerGroupInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the container group. This only appears in the
+ * response.
+ *
+ * @return the provisioningState value.
+ */
+ public ContainerGroupProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @return the secretReferences value.
+ */
+ public List secretReferences() {
+ return this.innerProperties() == null ? null : this.innerProperties().secretReferences();
+ }
+
+ /**
+ * Set the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @param secretReferences the secretReferences value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withSecretReferences(List secretReferences) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withSecretReferences(secretReferences);
+ return this;
+ }
+
+ /**
+ * Get the containers property: The containers within the container group.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.innerProperties() == null ? null : this.innerProperties().containers();
+ }
+
+ /**
+ * Set the containers property: The containers within the container group.
+ *
+ * @param containers the containers value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withContainers(List containers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withContainers(containers);
+ return this;
+ }
+
+ /**
+ * Get the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @return the imageRegistryCredentials value.
+ */
+ public List imageRegistryCredentials() {
+ return this.innerProperties() == null ? null : this.innerProperties().imageRegistryCredentials();
+ }
+
+ /**
+ * Set the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @param imageRegistryCredentials the imageRegistryCredentials value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner
+ withImageRegistryCredentials(List imageRegistryCredentials) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withImageRegistryCredentials(imageRegistryCredentials);
+ return this;
+ }
+
+ /**
+ * Get the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @return the restartPolicy value.
+ */
+ public ContainerGroupRestartPolicy restartPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().restartPolicy();
+ }
+
+ /**
+ * Set the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @param restartPolicy the restartPolicy value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withRestartPolicy(restartPolicy);
+ return this;
+ }
+
+ /**
+ * Get the ipAddress property: The IP address type of the container group.
+ *
+ * @return the ipAddress value.
+ */
+ public IpAddress ipAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipAddress();
+ }
+
+ /**
+ * Set the ipAddress property: The IP address type of the container group.
+ *
+ * @param ipAddress the ipAddress value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withIpAddress(IpAddress ipAddress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withIpAddress(ipAddress);
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type required by the containers in the container group.
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: The operating system type required by the containers in the container group.
+ *
+ * @param osType the osType value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withOsType(OperatingSystemTypes osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @return the volumes value.
+ */
+ public List volumes() {
+ return this.innerProperties() == null ? null : this.innerProperties().volumes();
+ }
+
+ /**
+ * Set the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @param volumes the volumes value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withVolumes(List volumes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withVolumes(volumes);
+ return this;
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostic information for a container group.
+ *
+ * @return the diagnostics value.
+ */
+ public ContainerGroupDiagnostics diagnostics() {
+ return this.innerProperties() == null ? null : this.innerProperties().diagnostics();
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostic information for a container group.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withDiagnostics(ContainerGroupDiagnostics diagnostics) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withDiagnostics(diagnostics);
+ return this;
+ }
+
+ /**
+ * Get the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @return the subnetIds value.
+ */
+ public List subnetIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().subnetIds();
+ }
+
+ /**
+ * Set the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @param subnetIds the subnetIds value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withSubnetIds(List subnetIds) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withSubnetIds(subnetIds);
+ return this;
+ }
+
+ /**
+ * Get the dnsConfig property: The DNS config information for a container group.
+ *
+ * @return the dnsConfig value.
+ */
+ public DnsConfiguration dnsConfig() {
+ return this.innerProperties() == null ? null : this.innerProperties().dnsConfig();
+ }
+
+ /**
+ * Set the dnsConfig property: The DNS config information for a container group.
+ *
+ * @param dnsConfig the dnsConfig value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withDnsConfig(dnsConfig);
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU for a container group.
+ *
+ * @return the sku value.
+ */
+ public ContainerGroupSku sku() {
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
+ }
+
+ /**
+ * Set the sku property: The SKU for a container group.
+ *
+ * @param sku the sku value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withSku(ContainerGroupSku sku) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withSku(sku);
+ return this;
+ }
+
+ /**
+ * Get the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @return the encryptionProperties value.
+ */
+ public EncryptionProperties encryptionProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionProperties();
+ }
+
+ /**
+ * Set the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @param encryptionProperties the encryptionProperties value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withEncryptionProperties(EncryptionProperties encryptionProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withEncryptionProperties(encryptionProperties);
+ return this;
+ }
+
+ /**
+ * Get the initContainers property: The init containers for a container group.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.innerProperties() == null ? null : this.innerProperties().initContainers();
+ }
+
+ /**
+ * Set the initContainers property: The init containers for a container group.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withInitContainers(List initContainers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withInitContainers(initContainers);
+ return this;
+ }
+
+ /**
+ * Get the extensions property: extensions used by virtual kubelet.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.innerProperties() == null ? null : this.innerProperties().extensions();
+ }
+
+ /**
+ * Set the extensions property: extensions used by virtual kubelet.
+ *
+ * @param extensions the extensions value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withExtensions(List extensions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withExtensions(extensions);
+ return this;
+ }
+
+ /**
+ * Get the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @return the confidentialComputeProperties value.
+ */
+ public ConfidentialComputeProperties confidentialComputeProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().confidentialComputeProperties();
+ }
+
+ /**
+ * Set the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @param confidentialComputeProperties the confidentialComputeProperties value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner
+ withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withConfidentialComputeProperties(confidentialComputeProperties);
+ return this;
+ }
+
+ /**
+ * Get the priority property: The priority of the container group.
+ *
+ * @return the priority value.
+ */
+ public ContainerGroupPriority priority() {
+ return this.innerProperties() == null ? null : this.innerProperties().priority();
+ }
+
+ /**
+ * Set the priority property: The priority of the container group.
+ *
+ * @param priority the priority value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withPriority(ContainerGroupPriority priority) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withPriority(priority);
+ return this;
+ }
+
+ /**
+ * Get the identityAcls property: The access control levels of the identities.
+ *
+ * @return the identityAcls value.
+ */
+ public IdentityAcls identityAcls() {
+ return this.innerProperties() == null ? null : this.innerProperties().identityAcls();
+ }
+
+ /**
+ * Set the identityAcls property: The access control levels of the identities.
+ *
+ * @param identityAcls the identityAcls value to set.
+ * @return the ListResultContainerGroupInner object itself.
+ */
+ public ListResultContainerGroupInner withIdentityAcls(IdentityAcls identityAcls) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ListResultContainerGroupPropertiesProperties();
+ }
+ this.innerProperties().withIdentityAcls(identityAcls);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property innerProperties in model ListResultContainerGroupInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ListResultContainerGroupInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ListResultContainerGroupInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ListResultContainerGroupInner 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 ListResultContainerGroupInner.
+ */
+ public static ListResultContainerGroupInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ListResultContainerGroupInner deserializedListResultContainerGroupInner
+ = new ListResultContainerGroupInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedListResultContainerGroupInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedListResultContainerGroupInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedListResultContainerGroupInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedListResultContainerGroupInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedListResultContainerGroupInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedListResultContainerGroupInner.innerProperties
+ = ListResultContainerGroupPropertiesProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedListResultContainerGroupInner.zones = zones;
+ } else if ("identity".equals(fieldName)) {
+ deserializedListResultContainerGroupInner.identity = ContainerGroupIdentity.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedListResultContainerGroupInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ListResultContainerGroupPropertiesProperties.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ListResultContainerGroupPropertiesProperties.java
new file mode 100644
index 000000000000..4e7caa297493
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/ListResultContainerGroupPropertiesProperties.java
@@ -0,0 +1,672 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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.containerinstance.generated.models.ConfidentialComputeProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.Container;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupDiagnostics;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupPriority;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupProvisioningState;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupRestartPolicy;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSku;
+import com.azure.resourcemanager.containerinstance.generated.models.ContainerGroupSubnetId;
+import com.azure.resourcemanager.containerinstance.generated.models.DeploymentExtensionSpec;
+import com.azure.resourcemanager.containerinstance.generated.models.DnsConfiguration;
+import com.azure.resourcemanager.containerinstance.generated.models.EncryptionProperties;
+import com.azure.resourcemanager.containerinstance.generated.models.IdentityAcls;
+import com.azure.resourcemanager.containerinstance.generated.models.ImageRegistryCredential;
+import com.azure.resourcemanager.containerinstance.generated.models.InitContainerDefinition;
+import com.azure.resourcemanager.containerinstance.generated.models.IpAddress;
+import com.azure.resourcemanager.containerinstance.generated.models.OperatingSystemTypes;
+import com.azure.resourcemanager.containerinstance.generated.models.SecretReference;
+import com.azure.resourcemanager.containerinstance.generated.models.Volume;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The container group properties.
+ */
+@Fluent
+public final class ListResultContainerGroupPropertiesProperties
+ implements JsonSerializable {
+ /*
+ * The provisioning state of the container group. This only appears in the response.
+ */
+ private ContainerGroupProvisioningState provisioningState;
+
+ /*
+ * The secret references that will be referenced within the container group.
+ */
+ private List secretReferences;
+
+ /*
+ * The containers within the container group.
+ */
+ private List containers;
+
+ /*
+ * The image registry credentials by which the container group is created from.
+ */
+ private List imageRegistryCredentials;
+
+ /*
+ * Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart
+ */
+ private ContainerGroupRestartPolicy restartPolicy;
+
+ /*
+ * The IP address type of the container group.
+ */
+ private IpAddress ipAddress;
+
+ /*
+ * The operating system type required by the containers in the container group.
+ */
+ private OperatingSystemTypes osType;
+
+ /*
+ * The list of volumes that can be mounted by containers in this container group.
+ */
+ private List volumes;
+
+ /*
+ * The diagnostic information for a container group.
+ */
+ private ContainerGroupDiagnostics diagnostics;
+
+ /*
+ * The subnet resource IDs for a container group.
+ */
+ private List subnetIds;
+
+ /*
+ * The DNS config information for a container group.
+ */
+ private DnsConfiguration dnsConfig;
+
+ /*
+ * The SKU for a container group.
+ */
+ private ContainerGroupSku sku;
+
+ /*
+ * The encryption properties for a container group.
+ */
+ private EncryptionProperties encryptionProperties;
+
+ /*
+ * The init containers for a container group.
+ */
+ private List initContainers;
+
+ /*
+ * extensions used by virtual kubelet
+ */
+ private List extensions;
+
+ /*
+ * The properties for confidential container group
+ */
+ private ConfidentialComputeProperties confidentialComputeProperties;
+
+ /*
+ * The priority of the container group.
+ */
+ private ContainerGroupPriority priority;
+
+ /*
+ * The access control levels of the identities.
+ */
+ private IdentityAcls identityAcls;
+
+ /**
+ * Creates an instance of ListResultContainerGroupPropertiesProperties class.
+ */
+ public ListResultContainerGroupPropertiesProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the container group. This only appears in the
+ * response.
+ *
+ * @return the provisioningState value.
+ */
+ public ContainerGroupProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @return the secretReferences value.
+ */
+ public List secretReferences() {
+ return this.secretReferences;
+ }
+
+ /**
+ * Set the secretReferences property: The secret references that will be referenced within the container group.
+ *
+ * @param secretReferences the secretReferences value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withSecretReferences(List secretReferences) {
+ this.secretReferences = secretReferences;
+ return this;
+ }
+
+ /**
+ * Get the containers property: The containers within the container group.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.containers;
+ }
+
+ /**
+ * Set the containers property: The containers within the container group.
+ *
+ * @param containers the containers value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withContainers(List containers) {
+ this.containers = containers;
+ return this;
+ }
+
+ /**
+ * Get the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @return the imageRegistryCredentials value.
+ */
+ public List imageRegistryCredentials() {
+ return this.imageRegistryCredentials;
+ }
+
+ /**
+ * Set the imageRegistryCredentials property: The image registry credentials by which the container group is created
+ * from.
+ *
+ * @param imageRegistryCredentials the imageRegistryCredentials value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties
+ withImageRegistryCredentials(List imageRegistryCredentials) {
+ this.imageRegistryCredentials = imageRegistryCredentials;
+ return this;
+ }
+
+ /**
+ * Get the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @return the restartPolicy value.
+ */
+ public ContainerGroupRestartPolicy restartPolicy() {
+ return this.restartPolicy;
+ }
+
+ /**
+ * Set the restartPolicy property: Restart policy for all containers within the container group.
+ * - `Always` Always restart
+ * - `OnFailure` Restart on failure
+ * - `Never` Never restart.
+ *
+ * @param restartPolicy the restartPolicy value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) {
+ this.restartPolicy = restartPolicy;
+ return this;
+ }
+
+ /**
+ * Get the ipAddress property: The IP address type of the container group.
+ *
+ * @return the ipAddress value.
+ */
+ public IpAddress ipAddress() {
+ return this.ipAddress;
+ }
+
+ /**
+ * Set the ipAddress property: The IP address type of the container group.
+ *
+ * @param ipAddress the ipAddress value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withIpAddress(IpAddress ipAddress) {
+ this.ipAddress = ipAddress;
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type required by the containers in the container group.
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: The operating system type required by the containers in the container group.
+ *
+ * @param osType the osType value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withOsType(OperatingSystemTypes osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @return the volumes value.
+ */
+ public List volumes() {
+ return this.volumes;
+ }
+
+ /**
+ * Set the volumes property: The list of volumes that can be mounted by containers in this container group.
+ *
+ * @param volumes the volumes value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withVolumes(List volumes) {
+ this.volumes = volumes;
+ return this;
+ }
+
+ /**
+ * Get the diagnostics property: The diagnostic information for a container group.
+ *
+ * @return the diagnostics value.
+ */
+ public ContainerGroupDiagnostics diagnostics() {
+ return this.diagnostics;
+ }
+
+ /**
+ * Set the diagnostics property: The diagnostic information for a container group.
+ *
+ * @param diagnostics the diagnostics value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withDiagnostics(ContainerGroupDiagnostics diagnostics) {
+ this.diagnostics = diagnostics;
+ return this;
+ }
+
+ /**
+ * Get the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @return the subnetIds value.
+ */
+ public List subnetIds() {
+ return this.subnetIds;
+ }
+
+ /**
+ * Set the subnetIds property: The subnet resource IDs for a container group.
+ *
+ * @param subnetIds the subnetIds value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withSubnetIds(List subnetIds) {
+ this.subnetIds = subnetIds;
+ return this;
+ }
+
+ /**
+ * Get the dnsConfig property: The DNS config information for a container group.
+ *
+ * @return the dnsConfig value.
+ */
+ public DnsConfiguration dnsConfig() {
+ return this.dnsConfig;
+ }
+
+ /**
+ * Set the dnsConfig property: The DNS config information for a container group.
+ *
+ * @param dnsConfig the dnsConfig value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withDnsConfig(DnsConfiguration dnsConfig) {
+ this.dnsConfig = dnsConfig;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU for a container group.
+ *
+ * @return the sku value.
+ */
+ public ContainerGroupSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU for a container group.
+ *
+ * @param sku the sku value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withSku(ContainerGroupSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @return the encryptionProperties value.
+ */
+ public EncryptionProperties encryptionProperties() {
+ return this.encryptionProperties;
+ }
+
+ /**
+ * Set the encryptionProperties property: The encryption properties for a container group.
+ *
+ * @param encryptionProperties the encryptionProperties value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties
+ withEncryptionProperties(EncryptionProperties encryptionProperties) {
+ this.encryptionProperties = encryptionProperties;
+ return this;
+ }
+
+ /**
+ * Get the initContainers property: The init containers for a container group.
+ *
+ * @return the initContainers value.
+ */
+ public List initContainers() {
+ return this.initContainers;
+ }
+
+ /**
+ * Set the initContainers property: The init containers for a container group.
+ *
+ * @param initContainers the initContainers value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties
+ withInitContainers(List initContainers) {
+ this.initContainers = initContainers;
+ return this;
+ }
+
+ /**
+ * Get the extensions property: extensions used by virtual kubelet.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.extensions;
+ }
+
+ /**
+ * Set the extensions property: extensions used by virtual kubelet.
+ *
+ * @param extensions the extensions value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withExtensions(List extensions) {
+ this.extensions = extensions;
+ return this;
+ }
+
+ /**
+ * Get the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @return the confidentialComputeProperties value.
+ */
+ public ConfidentialComputeProperties confidentialComputeProperties() {
+ return this.confidentialComputeProperties;
+ }
+
+ /**
+ * Set the confidentialComputeProperties property: The properties for confidential container group.
+ *
+ * @param confidentialComputeProperties the confidentialComputeProperties value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties
+ withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) {
+ this.confidentialComputeProperties = confidentialComputeProperties;
+ return this;
+ }
+
+ /**
+ * Get the priority property: The priority of the container group.
+ *
+ * @return the priority value.
+ */
+ public ContainerGroupPriority priority() {
+ return this.priority;
+ }
+
+ /**
+ * Set the priority property: The priority of the container group.
+ *
+ * @param priority the priority value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withPriority(ContainerGroupPriority priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * Get the identityAcls property: The access control levels of the identities.
+ *
+ * @return the identityAcls value.
+ */
+ public IdentityAcls identityAcls() {
+ return this.identityAcls;
+ }
+
+ /**
+ * Set the identityAcls property: The access control levels of the identities.
+ *
+ * @param identityAcls the identityAcls value to set.
+ * @return the ListResultContainerGroupPropertiesProperties object itself.
+ */
+ public ListResultContainerGroupPropertiesProperties withIdentityAcls(IdentityAcls identityAcls) {
+ this.identityAcls = identityAcls;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (secretReferences() != null) {
+ secretReferences().forEach(e -> e.validate());
+ }
+ if (containers() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property containers in model ListResultContainerGroupPropertiesProperties"));
+ } else {
+ containers().forEach(e -> e.validate());
+ }
+ if (imageRegistryCredentials() != null) {
+ imageRegistryCredentials().forEach(e -> e.validate());
+ }
+ if (ipAddress() != null) {
+ ipAddress().validate();
+ }
+ if (osType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property osType in model ListResultContainerGroupPropertiesProperties"));
+ }
+ if (volumes() != null) {
+ volumes().forEach(e -> e.validate());
+ }
+ if (diagnostics() != null) {
+ diagnostics().validate();
+ }
+ if (subnetIds() != null) {
+ subnetIds().forEach(e -> e.validate());
+ }
+ if (dnsConfig() != null) {
+ dnsConfig().validate();
+ }
+ if (encryptionProperties() != null) {
+ encryptionProperties().validate();
+ }
+ if (initContainers() != null) {
+ initContainers().forEach(e -> e.validate());
+ }
+ if (extensions() != null) {
+ extensions().forEach(e -> e.validate());
+ }
+ if (confidentialComputeProperties() != null) {
+ confidentialComputeProperties().validate();
+ }
+ if (identityAcls() != null) {
+ identityAcls().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ListResultContainerGroupPropertiesProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("containers", this.containers, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString());
+ jsonWriter.writeArrayField("secretReferences", this.secretReferences,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("imageRegistryCredentials", this.imageRegistryCredentials,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("restartPolicy", this.restartPolicy == null ? null : this.restartPolicy.toString());
+ jsonWriter.writeJsonField("ipAddress", this.ipAddress);
+ jsonWriter.writeArrayField("volumes", this.volumes, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("diagnostics", this.diagnostics);
+ jsonWriter.writeArrayField("subnetIds", this.subnetIds, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("dnsConfig", this.dnsConfig);
+ jsonWriter.writeStringField("sku", this.sku == null ? null : this.sku.toString());
+ jsonWriter.writeJsonField("encryptionProperties", this.encryptionProperties);
+ jsonWriter.writeArrayField("initContainers", this.initContainers,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("extensions", this.extensions, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("confidentialComputeProperties", this.confidentialComputeProperties);
+ jsonWriter.writeStringField("priority", this.priority == null ? null : this.priority.toString());
+ jsonWriter.writeJsonField("identityAcls", this.identityAcls);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ListResultContainerGroupPropertiesProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ListResultContainerGroupPropertiesProperties 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 ListResultContainerGroupPropertiesProperties.
+ */
+ public static ListResultContainerGroupPropertiesProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ListResultContainerGroupPropertiesProperties deserializedListResultContainerGroupPropertiesProperties
+ = new ListResultContainerGroupPropertiesProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("containers".equals(fieldName)) {
+ List containers = reader.readArray(reader1 -> Container.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.containers = containers;
+ } else if ("osType".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.osType
+ = OperatingSystemTypes.fromString(reader.getString());
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.provisioningState
+ = ContainerGroupProvisioningState.fromString(reader.getString());
+ } else if ("secretReferences".equals(fieldName)) {
+ List secretReferences
+ = reader.readArray(reader1 -> SecretReference.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.secretReferences = secretReferences;
+ } else if ("imageRegistryCredentials".equals(fieldName)) {
+ List imageRegistryCredentials
+ = reader.readArray(reader1 -> ImageRegistryCredential.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.imageRegistryCredentials
+ = imageRegistryCredentials;
+ } else if ("restartPolicy".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.restartPolicy
+ = ContainerGroupRestartPolicy.fromString(reader.getString());
+ } else if ("ipAddress".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.ipAddress = IpAddress.fromJson(reader);
+ } else if ("volumes".equals(fieldName)) {
+ List volumes = reader.readArray(reader1 -> Volume.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.volumes = volumes;
+ } else if ("diagnostics".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.diagnostics
+ = ContainerGroupDiagnostics.fromJson(reader);
+ } else if ("subnetIds".equals(fieldName)) {
+ List subnetIds
+ = reader.readArray(reader1 -> ContainerGroupSubnetId.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.subnetIds = subnetIds;
+ } else if ("dnsConfig".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.dnsConfig
+ = DnsConfiguration.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.sku
+ = ContainerGroupSku.fromString(reader.getString());
+ } else if ("encryptionProperties".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.encryptionProperties
+ = EncryptionProperties.fromJson(reader);
+ } else if ("initContainers".equals(fieldName)) {
+ List initContainers
+ = reader.readArray(reader1 -> InitContainerDefinition.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.initContainers = initContainers;
+ } else if ("extensions".equals(fieldName)) {
+ List extensions
+ = reader.readArray(reader1 -> DeploymentExtensionSpec.fromJson(reader1));
+ deserializedListResultContainerGroupPropertiesProperties.extensions = extensions;
+ } else if ("confidentialComputeProperties".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.confidentialComputeProperties
+ = ConfidentialComputeProperties.fromJson(reader);
+ } else if ("priority".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.priority
+ = ContainerGroupPriority.fromString(reader.getString());
+ } else if ("identityAcls".equals(fieldName)) {
+ deserializedListResultContainerGroupPropertiesProperties.identityAcls
+ = IdentityAcls.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedListResultContainerGroupPropertiesProperties;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/LogsInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/LogsInner.java
new file mode 100644
index 000000000000..f6fb6c8884f1
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/LogsInner.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.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 java.io.IOException;
+
+/**
+ * The logs.
+ */
+@Fluent
+public final class LogsInner implements JsonSerializable {
+ /*
+ * The content of the log.
+ */
+ private String content;
+
+ /**
+ * Creates an instance of LogsInner class.
+ */
+ public LogsInner() {
+ }
+
+ /**
+ * Get the content property: The content of the log.
+ *
+ * @return the content value.
+ */
+ public String content() {
+ return this.content;
+ }
+
+ /**
+ * Set the content property: The content of the log.
+ *
+ * @param content the content value to set.
+ * @return the LogsInner object itself.
+ */
+ public LogsInner withContent(String content) {
+ this.content = content;
+ return this;
+ }
+
+ /**
+ * 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();
+ jsonWriter.writeStringField("content", this.content);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LogsInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LogsInner 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 LogsInner.
+ */
+ public static LogsInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LogsInner deserializedLogsInner = new LogsInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("content".equals(fieldName)) {
+ deserializedLogsInner.content = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLogsInner;
+ });
+ }
+}
diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/NGroupInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/NGroupInner.java
new file mode 100644
index 000000000000..2e6d6b32d128
--- /dev/null
+++ b/sdk/containerinstance/azure-resourcemanager-containerinstance-generated/src/main/java/com/azure/resourcemanager/containerinstance/generated/fluent/models/NGroupInner.java
@@ -0,0 +1,371 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.containerinstance.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+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.containerinstance.generated.models.ContainerGroupProfileStub;
+import com.azure.resourcemanager.containerinstance.generated.models.ElasticProfile;
+import com.azure.resourcemanager.containerinstance.generated.models.NGroupIdentity;
+import com.azure.resourcemanager.containerinstance.generated.models.NGroupProvisioningState;
+import com.azure.resourcemanager.containerinstance.generated.models.PlacementProfile;
+import com.azure.resourcemanager.containerinstance.generated.models.UpdateProfile;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Describes the NGroups resource.
+ */
+@Fluent
+public final class NGroupInner extends Resource {
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ private SystemData systemData;
+
+ /*
+ * Describes the properties of the NGroups resource.
+ */
+ private NGroupProperties innerProperties;
+
+ /*
+ * The identity of the NGroup, if configured.
+ */
+ private NGroupIdentity identity;
+
+ /*
+ * The NGroups zones. NOTE: Availability zones can only be set when you create the scale set
+ */
+ private List