From f87d01364111e195be39e41c43124569b930be34 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 10 Jul 2026 18:38:02 +0000 Subject: [PATCH 1/2] Configurations: 'specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '04d4a73cf90f8e1be80ffc0ca7621094d3d0954b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6547219 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 191 ++- .../README.md | 2 +- .../pom.xml | 2 +- .../ContainerInstanceManagementClient.java | 7 + .../fluent/SandboxGroupsClient.java | 513 ++++++ .../models/SandboxGroupAccessTokenInner.java | 140 ++ .../fluent/models/SandboxGroupInner.java | 224 +++ ...ContainerInstanceManagementClientImpl.java | 18 +- .../SandboxGroupsClientImpl.java | 1436 +++++++++++++++++ ...bnetServiceAssociationLinksClientImpl.java | 2 +- .../models/SandboxGroupListResult.java | 112 ++ .../models/AzureFileVolume.java | 30 + .../models/ManagedServiceIdentity.java | 176 ++ .../models/ManagedServiceIdentityType.java | 62 + .../models/SandboxGroupNetworkProfile.java | 98 ++ .../models/SandboxGroupProperties.java | 130 ++ .../models/SandboxGroupProvisioningState.java | 71 + .../models/SandboxGroupTagsUpdate.java | 126 ++ .../models/SubnetReference.java | 106 ++ .../models/UserAssignedIdentity.java | 97 ++ ...rcemanager-containerinstance_metadata.json | 2 +- .../proxy-config.json | 2 +- .../CGProfileCreateOrUpdateSamples.java | 8 +- .../generated/CGProfileDeleteSamples.java | 2 +- .../CGProfileGetByResourceGroupSamples.java | 4 +- .../CGProfileGetByRevisionNumberSamples.java | 2 +- .../CGProfileListAllRevisionsSamples.java | 2 +- .../generated/CGProfileUpdateSamples.java | 2 +- ...esOperationListByResourceGroupSamples.java | 2 +- .../CGProfilesOperationListSamples.java | 2 +- .../ContainerGroupsCreateOrUpdateSamples.java | 75 +- .../ContainerGroupsDeleteSamples.java | 2 +- ...tainerGroupsGetByResourceGroupSamples.java | 6 +- ...ndNetworkDependenciesEndpointsSamples.java | 25 + ...ainerGroupsListByResourceGroupSamples.java | 2 +- .../generated/ContainerGroupsListSamples.java | 2 +- .../ContainerGroupsRestartSamples.java | 2 +- .../ContainerGroupsStartSamples.java | 2 +- .../generated/ContainerGroupsStopSamples.java | 2 +- .../ContainerGroupsUpdateSamples.java | 2 +- .../generated/ContainersAttachSamples.java | 2 +- .../ContainersExecuteCommandSamples.java | 2 +- .../generated/ContainersListLogsSamples.java | 2 +- .../LocationListCachedImagesSamples.java | 2 +- .../LocationListCapabilitiesSamples.java | 2 +- .../generated/LocationListUsageSamples.java | 2 +- .../NGroupsCreateOrUpdateSamples.java | 36 + .../generated/NGroupsDeleteSamples.java | 22 + .../NGroupsGetByResourceGroupSamples.java | 24 + .../NGroupsListByResourceGroupSamples.java | 23 + .../generated/NGroupsListSamples.java | 22 + .../generated/NGroupsRestartSamples.java | 22 + .../generated/NGroupsStartSamples.java | 22 + .../generated/NGroupsStopSamples.java | 22 + .../generated/NGroupsUpdateSamples.java | 41 + .../generated/OperationsListSamples.java | 2 +- .../SandboxGroupsConnectSamples.java | 25 + .../SandboxGroupsCreateOrUpdateSamples.java | 50 + .../generated/SandboxGroupsDeleteSamples.java | 25 + ...andboxGroupsGetByResourceGroupSamples.java | 24 + ...ndboxGroupsListByResourceGroupSamples.java | 25 + .../generated/SandboxGroupsListSamples.java | 23 + .../generated/SandboxGroupsUpdateSamples.java | 43 + ...etServiceAssociationLinkDeleteSamples.java | 2 +- .../tsp-location.yaml | 2 +- 66 files changed, 4111 insertions(+), 49 deletions(-) create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/SandboxGroupsClient.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupAccessTokenInner.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupInner.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SandboxGroupsClientImpl.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/SandboxGroupListResult.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentity.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentityType.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupNetworkProfile.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProperties.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProvisioningState.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupTagsUpdate.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SubnetReference.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/UserAssignedIdentity.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetOutboundNetworkDependenciesEndpointsSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsCreateOrUpdateSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsDeleteSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsGetByResourceGroupSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListByResourceGroupSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsRestartSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStartSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStopSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsUpdateSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsConnectSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsCreateOrUpdateSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsDeleteSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsGetByResourceGroupSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListByResourceGroupSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListSamples.java create mode 100644 sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsUpdateSamples.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 7c23edde8640..611ad28902a8 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -282,7 +282,7 @@ com.azure.resourcemanager:azure-resourcemanager-appservice;2.55.2;2.56.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.9;2.54.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.8;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-compute;2.58.0;2.59.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.10;2.54.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.10;2.54.0 com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.2;2.56.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-containerservice;2.61.0;2.62.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-cosmos;2.54.3;2.55.0 diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md index 74dc42caae89..5db6ae80cbca 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md @@ -1,14 +1,197 @@ # Release History -## 2.54.0-beta.1 (Unreleased) +## 2.54.0 (2026-07-10) + +### Breaking Changes + +#### `models.CachedImagesListResult` was removed + +#### `models.UsageListResult` was removed + +#### `models.ContainerGroupListResult` was removed + +#### `models.CapabilitiesListResult` was removed + +#### `models.OperationListResult` was removed + +#### `models.ContainerState` was modified + +* `ContainerState()` was changed to private access + +#### `models.ContainerPropertiesInstanceView` was modified + +* `ContainerPropertiesInstanceView()` was changed to private access + +#### `models.InitContainerPropertiesDefinitionInstanceView` was modified + +* `InitContainerPropertiesDefinitionInstanceView()` was changed to private access + +#### `models.Capabilities` was modified + +* `Capabilities()` was changed to private access + +#### `models.Event` was modified + +* `Event()` was changed to private access + +#### `models.CapabilitiesCapabilities` was modified + +* `CapabilitiesCapabilities()` was changed to private access + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access +* `withOperation(java.lang.String)` was removed +* `withDescription(java.lang.String)` was removed +* `withProvider(java.lang.String)` was removed +* `withResource(java.lang.String)` was removed + +#### `models.ContainerGroupPropertiesInstanceView` was modified + +* `ContainerGroupPropertiesInstanceView()` was changed to private access + +#### `models.CachedImages` was modified + +* `CachedImages()` was changed to private access +* `withImage(java.lang.String)` was removed +* `withOsType(java.lang.String)` was removed + +#### `models.UsageName` was modified + +* `UsageName()` was changed to private access + +#### `models.Operation` was modified + +* `Operation()` was changed to private access +* `withProperties(java.lang.Object)` was removed +* `withName(java.lang.String)` was removed +* `withDisplay(models.OperationDisplay)` was removed +* `withOrigin(models.ContainerInstanceOperationsOrigin)` was removed ### Features Added -### Breaking Changes +* `models.NGroupPatch` was added -### Bugs Fixed +* `models.StandbyPoolProfileDefinition` was added -### Other Changes +* `models.LoadBalancerBackendAddressPool` was added + +* `models.CGProfilesUpdateHeaders` was added + +* `models.AzureFileShareAccessTier` was added + +* `models.UserAssignedIdentity` was added + +* `models.ApplicationGateway` was added + +* `models.IdentityAccessControl` was added + +* `models.ElasticProfile` was added + +* `models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy` was added + +* `models.SandboxGroupNetworkProfile` was added + +* `models.LoadBalancer` was added + +* `models.NGroupCGPropertyContainerProperties` was added + +* `models.ElasticProfileContainerGroupNamingPolicy` was added + +* `models.FileShareProperties` was added + +* `models.CGProfilesUpdateResponse` was added + +* `models.ContainerGroupProfilePatch` was added + +* `models.UpdateProfile` was added + +* `models.NGroupUpdateMode` was added + +* `models.NGroupIdentity` was added + +* `models.NGroupProvisioningState` was added + +* `models.ManagedServiceIdentityType` was added + +* `models.NGroupContainerGroupProperties` was added + +* `models.UpdateProfileRollingUpdateProfile` was added + +* `models.SandboxGroupProvisioningState` was added + +* `models.ApiEntityReference` was added + +* `models.NGroupCGPropertyContainer` was added + +* `models.ContainerGroupProfileReferenceDefinition` was added + +* `models.SecretReference` was added + +* `models.StorageProfile` was added + +* `models.NGroupCGPropertyVolume` was added + +* `models.ApplicationGatewayBackendAddressPool` was added + +* `models.CGProfilesCreateOrUpdateHeaders` was added + +* `models.IdentityAccessLevel` was added + +* `models.AzureFileShareAccessType` was added + +* `models.NetworkProfile` was added + +* `models.CGProfilesCreateOrUpdateResponse` was added + +* `models.IdentityAcls` was added + +* `models.SandboxGroupTagsUpdate` was added + +* `models.SubnetReference` was added + +* `models.ConfigMap` was added + +* `models.ManagedServiceIdentity` was added + +* `models.PlacementProfile` was added + +* `models.SandboxGroupProperties` was added + +* `models.FileShare` was added + +* `models.ContainerGroupProfileStub` was added + +#### `models.Container` was modified + +* `configMap()` was added +* `withConfigMap(models.ConfigMap)` was added + +#### `models.ImageRegistryCredential` was modified + +* `withPasswordReference(java.lang.String)` was added +* `passwordReference()` was added + +#### `models.ContainerGroupSku` was modified + +* `NOT_SPECIFIED` was added + +#### `models.Volume` was modified + +* `withSecretReference(java.util.Map)` was added +* `secretReference()` was added + +#### `models.EnvironmentVariable` was modified + +* `secureValueReference()` was added +* `withSecureValueReference(java.lang.String)` was added + +#### `models.AzureFileVolume` was modified + +* `storageAccountKeyReference()` was added +* `userAssignedIdentityClientId()` was added +* `withStorageAccountKeyReference(java.lang.String)` was added +* `withUserAssignedIdentityClientId(java.lang.String)` was added ## 2.53.10 (2026-05-05) diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/README.md b/sdk/containerinstance/azure-resourcemanager-containerinstance/README.md index b8f15499c339..3b22f1aaa52b 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/README.md +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/README.md @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra com.azure.resourcemanager azure-resourcemanager-containerinstance - 2.54.0-beta.1 + 2.54.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/pom.xml b/sdk/containerinstance/azure-resourcemanager-containerinstance/pom.xml index 3ca5515f7fa9..e08d8d243107 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/pom.xml +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/pom.xml @@ -10,7 +10,7 @@ com.azure.resourcemanager azure-resourcemanager-containerinstance - 2.54.0-beta.1 + 2.54.0 jar Microsoft Azure SDK for Container Instance Management diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java index 9a65352a73f5..caa1f6c923bb 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java @@ -74,6 +74,13 @@ public interface ContainerInstanceManagementClient { */ CGProfilesClient getCGProfiles(); + /** + * Gets the SandboxGroupsClient object to access its operations. + * + * @return the SandboxGroupsClient object. + */ + SandboxGroupsClient getSandboxGroups(); + /** * Gets the ContainersClient object to access its operations. * diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/SandboxGroupsClient.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/SandboxGroupsClient.java new file mode 100644 index 000000000000..d435ffb351bb --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/SandboxGroupsClient.java @@ -0,0 +1,513 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +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.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerinstance.fluent.models.SandboxGroupAccessTokenInner; +import com.azure.resourcemanager.containerinstance.fluent.models.SandboxGroupInner; +import com.azure.resourcemanager.containerinstance.models.SandboxGroupTagsUpdate; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SandboxGroupsClient. + */ +public interface SandboxGroupsClient + extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { + /** + * List SandboxGroup resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * List SandboxGroup resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List SandboxGroup resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * List SandboxGroup resources by 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 the response of a SandboxGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * List SandboxGroup resources by 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 the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List SandboxGroup resources by 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 the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 SandboxGroup along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String sandboxGroupName); + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 SandboxGroup on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String sandboxGroupName); + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 SandboxGroup along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String sandboxGroupName, + Context context); + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 SandboxGroup. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SandboxGroupInner getByResourceGroup(String resourceGroupName, String sandboxGroupName); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupInner resource); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, SandboxGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SandboxGroupInner> beginCreateOrUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SandboxGroupInner> beginCreateOrUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource, Context context); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupInner resource); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SandboxGroupInner createOrUpdate(String resourceGroupName, String sandboxGroupName, SandboxGroupInner resource); + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SandboxGroupInner createOrUpdate(String resourceGroupName, String sandboxGroupName, SandboxGroupInner resource, + Context context); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, SandboxGroupInner> beginUpdateAsync(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SandboxGroupInner> beginUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SandboxGroupInner> beginUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties, Context context); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SandboxGroupInner update(String resourceGroupName, String sandboxGroupName, SandboxGroupTagsUpdate properties); + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SandboxGroupInner update(String resourceGroupName, String sandboxGroupName, SandboxGroupTagsUpdate properties, + Context context); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String sandboxGroupName); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String sandboxGroupName); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 sandboxGroupName); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 sandboxGroupName, Context context); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String sandboxGroupName); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 sandboxGroupName); + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 sandboxGroupName, Context context); + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 an access token and endpoint for connecting to the SandboxGroup along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> connectWithResponseAsync(String resourceGroupName, + String sandboxGroupName); + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 an access token and endpoint for connecting to the SandboxGroup on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono connectAsync(String resourceGroupName, String sandboxGroupName); + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 an access token and endpoint for connecting to the SandboxGroup along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response connectWithResponse(String resourceGroupName, String sandboxGroupName, + Context context); + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @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 an access token and endpoint for connecting to the SandboxGroup. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SandboxGroupAccessTokenInner connect(String resourceGroupName, String sandboxGroupName); +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupAccessTokenInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupAccessTokenInner.java new file mode 100644 index 000000000000..eaa9515d1eaa --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupAccessTokenInner.java @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * The result of getting an access token for a SandboxGroup. + */ +@Immutable +public final class SandboxGroupAccessTokenInner implements JsonSerializable { + /* + * The endpoint URL to use with the access token. + */ + private String endpoint; + + /* + * The access token used to authenticate against the endpoint. + */ + private String accessToken; + + /* + * The UTC date and time at which the access token expires. + */ + private OffsetDateTime notAfter; + + /** + * Creates an instance of SandboxGroupAccessTokenInner class. + */ + private SandboxGroupAccessTokenInner() { + } + + /** + * Get the endpoint property: The endpoint URL to use with the access token. + * + * @return the endpoint value. + */ + public String endpoint() { + return this.endpoint; + } + + /** + * Get the accessToken property: The access token used to authenticate against the endpoint. + * + * @return the accessToken value. + */ + public String accessToken() { + return this.accessToken; + } + + /** + * Get the notAfter property: The UTC date and time at which the access token expires. + * + * @return the notAfter value. + */ + public OffsetDateTime notAfter() { + return this.notAfter; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (endpoint() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property endpoint in model SandboxGroupAccessTokenInner")); + } + if (accessToken() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property accessToken in model SandboxGroupAccessTokenInner")); + } + if (notAfter() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property notAfter in model SandboxGroupAccessTokenInner")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SandboxGroupAccessTokenInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("endpoint", this.endpoint); + jsonWriter.writeStringField("accessToken", this.accessToken); + jsonWriter.writeStringField("notAfter", + this.notAfter == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.notAfter)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SandboxGroupAccessTokenInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SandboxGroupAccessTokenInner 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 SandboxGroupAccessTokenInner. + */ + public static SandboxGroupAccessTokenInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SandboxGroupAccessTokenInner deserializedSandboxGroupAccessTokenInner = new SandboxGroupAccessTokenInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("endpoint".equals(fieldName)) { + deserializedSandboxGroupAccessTokenInner.endpoint = reader.getString(); + } else if ("accessToken".equals(fieldName)) { + deserializedSandboxGroupAccessTokenInner.accessToken = reader.getString(); + } else if ("notAfter".equals(fieldName)) { + deserializedSandboxGroupAccessTokenInner.notAfter = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedSandboxGroupAccessTokenInner; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupInner.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupInner.java new file mode 100644 index 000000000000..47377fd8ab2f --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupInner.java @@ -0,0 +1,224 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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.models.ManagedServiceIdentity; +import com.azure.resourcemanager.containerinstance.models.SandboxGroupProperties; +import java.io.IOException; +import java.util.Map; + +/** + * A SandboxGroup tracked resource. + */ +@Fluent +public final class SandboxGroupInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private SandboxGroupProperties properties; + + /* + * The managed service identities assigned to this resource. + */ + private ManagedServiceIdentity identity; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SandboxGroupInner class. + */ + public SandboxGroupInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public SandboxGroupProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the SandboxGroupInner object itself. + */ + public SandboxGroupInner withProperties(SandboxGroupProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the identity property: The managed service identities assigned to this resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The managed service identities assigned to this resource. + * + * @param identity the identity value to set. + * @return the SandboxGroupInner object itself. + */ + public SandboxGroupInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public SandboxGroupInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public SandboxGroupInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + if (identity() != null) { + identity().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.properties); + jsonWriter.writeJsonField("identity", this.identity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SandboxGroupInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SandboxGroupInner 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 SandboxGroupInner. + */ + public static SandboxGroupInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SandboxGroupInner deserializedSandboxGroupInner = new SandboxGroupInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSandboxGroupInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSandboxGroupInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSandboxGroupInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedSandboxGroupInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedSandboxGroupInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedSandboxGroupInner.properties = SandboxGroupProperties.fromJson(reader); + } else if ("identity".equals(fieldName)) { + deserializedSandboxGroupInner.identity = ManagedServiceIdentity.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedSandboxGroupInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSandboxGroupInner; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientImpl.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientImpl.java index ceb524cd09d2..3e53a071669c 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientImpl.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientImpl.java @@ -16,6 +16,7 @@ import com.azure.resourcemanager.containerinstance.fluent.LocationsClient; import com.azure.resourcemanager.containerinstance.fluent.NGroupsClient; import com.azure.resourcemanager.containerinstance.fluent.OperationsClient; +import com.azure.resourcemanager.containerinstance.fluent.SandboxGroupsClient; import com.azure.resourcemanager.containerinstance.fluent.SubnetServiceAssociationLinksClient; import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient; import java.time.Duration; @@ -166,6 +167,20 @@ public CGProfilesClient getCGProfiles() { return this.cGProfiles; } + /** + * The SandboxGroupsClient object to access its operations. + */ + private final SandboxGroupsClient sandboxGroups; + + /** + * Gets the SandboxGroupsClient object to access its operations. + * + * @return the SandboxGroupsClient object. + */ + public SandboxGroupsClient getSandboxGroups() { + return this.sandboxGroups; + } + /** * The ContainersClient object to access its operations. */ @@ -240,11 +255,12 @@ public SubnetServiceAssociationLinksClient getSubnetServiceAssociationLinks() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-09-01"; + this.apiVersion = "2026-07-01"; this.operations = new OperationsClientImpl(this); this.containerGroups = new ContainerGroupsClientImpl(this); this.nGroups = new NGroupsClientImpl(this); this.cGProfiles = new CGProfilesClientImpl(this); + this.sandboxGroups = new SandboxGroupsClientImpl(this); this.containers = new ContainersClientImpl(this); this.cGProfilesOperations = new CGProfilesOperationsClientImpl(this); this.locations = new LocationsClientImpl(this); diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SandboxGroupsClientImpl.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SandboxGroupsClientImpl.java new file mode 100644 index 000000000000..9a81f4c70cda --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SandboxGroupsClientImpl.java @@ -0,0 +1,1436 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerinstance.fluent.SandboxGroupsClient; +import com.azure.resourcemanager.containerinstance.fluent.models.SandboxGroupAccessTokenInner; +import com.azure.resourcemanager.containerinstance.fluent.models.SandboxGroupInner; +import com.azure.resourcemanager.containerinstance.implementation.models.SandboxGroupListResult; +import com.azure.resourcemanager.containerinstance.models.SandboxGroupTagsUpdate; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SandboxGroupsClient. + */ +public final class SandboxGroupsClientImpl implements InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete, SandboxGroupsClient { + /** + * The proxy service used to perform REST calls. + */ + private final SandboxGroupsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerInstanceManagementClientImpl client; + + /** + * Initializes an instance of SandboxGroupsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SandboxGroupsClientImpl(ContainerInstanceManagementClientImpl client) { + this.service + = RestProxy.create(SandboxGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerInstanceManagementClientSandboxGroups to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerInstanceManagementClientSandboxGroups") + public interface SandboxGroupsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/sandboxGroups") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("sandboxGroupName") String sandboxGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("sandboxGroupName") String sandboxGroupName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SandboxGroupInner resource, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("sandboxGroupName") String sandboxGroupName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SandboxGroupTagsUpdate properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("sandboxGroupName") String sandboxGroupName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/sandboxGroups/{sandboxGroupName}/connect") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> connect(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("sandboxGroupName") String sandboxGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List SandboxGroup resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List SandboxGroup resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List SandboxGroup resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List SandboxGroup resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * List SandboxGroup resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * List SandboxGroup resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * List SandboxGroup resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List SandboxGroup resources by 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 ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List SandboxGroup resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List SandboxGroup resources by 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 ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * List SandboxGroup resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * List SandboxGroup resources by 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 ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String sandboxGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String sandboxGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, accept, context); + } + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String sandboxGroupName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, sandboxGroupName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, String sandboxGroupName, + Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, sandboxGroupName, context).block(); + } + + /** + * Get a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SandboxGroupInner getByResourceGroup(String resourceGroupName, String sandboxGroupName) { + return getByResourceGroupWithResponse(resourceGroupName, sandboxGroupName, Context.NONE).getValue(); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, contentType, accept, resource, + context); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, SandboxGroupInner> + beginCreateOrUpdateAsync(String resourceGroupName, String sandboxGroupName, SandboxGroupInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, sandboxGroupName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SandboxGroupInner.class, SandboxGroupInner.class, this.client.getContext()); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SandboxGroupInner> beginCreateOrUpdateAsync( + String resourceGroupName, String sandboxGroupName, SandboxGroupInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, sandboxGroupName, resource, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SandboxGroupInner.class, SandboxGroupInner.class, context); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SandboxGroupInner> beginCreateOrUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, sandboxGroupName, resource).getSyncPoller(); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SandboxGroupInner> beginCreateOrUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupInner resource, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, sandboxGroupName, resource, context).getSyncPoller(); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, sandboxGroupName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, sandboxGroupName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SandboxGroupInner createOrUpdate(String resourceGroupName, String sandboxGroupName, + SandboxGroupInner resource) { + return createOrUpdateAsync(resourceGroupName, sandboxGroupName, resource).block(); + } + + /** + * Create a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SandboxGroupInner createOrUpdate(String resourceGroupName, String sandboxGroupName, + SandboxGroupInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, sandboxGroupName, resource, context).block(); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, contentType, accept, properties, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 SandboxGroup tracked resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, sandboxGroupName, contentType, accept, properties, context); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, SandboxGroupInner> beginUpdateAsync(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, sandboxGroupName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SandboxGroupInner.class, SandboxGroupInner.class, this.client.getContext()); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SandboxGroupInner> beginUpdateAsync(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, sandboxGroupName, properties, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SandboxGroupInner.class, SandboxGroupInner.class, context); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SandboxGroupInner> beginUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties) { + return this.beginUpdateAsync(resourceGroupName, sandboxGroupName, properties).getSyncPoller(); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SandboxGroupInner> beginUpdate(String resourceGroupName, + String sandboxGroupName, SandboxGroupTagsUpdate properties, Context context) { + return this.beginUpdateAsync(resourceGroupName, sandboxGroupName, properties, context).getSyncPoller(); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties) { + return beginUpdateAsync(resourceGroupName, sandboxGroupName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 SandboxGroup tracked resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties, Context context) { + return beginUpdateAsync(resourceGroupName, sandboxGroupName, properties, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SandboxGroupInner update(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties) { + return updateAsync(resourceGroupName, sandboxGroupName, properties).block(); + } + + /** + * Update a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 SandboxGroup tracked resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SandboxGroupInner update(String resourceGroupName, String sandboxGroupName, + SandboxGroupTagsUpdate properties, Context context) { + return updateAsync(resourceGroupName, sandboxGroupName, properties, context).block(); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String sandboxGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String sandboxGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, sandboxGroupName, context); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String sandboxGroupName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, sandboxGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String sandboxGroupName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, sandboxGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String sandboxGroupName) { + return this.beginDeleteAsync(resourceGroupName, sandboxGroupName).getSyncPoller(); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String sandboxGroupName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, sandboxGroupName, context).getSyncPoller(); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String sandboxGroupName) { + return beginDeleteAsync(resourceGroupName, sandboxGroupName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String sandboxGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, sandboxGroupName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String sandboxGroupName) { + deleteAsync(resourceGroupName, sandboxGroupName).block(); + } + + /** + * Delete a SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String sandboxGroupName, Context context) { + deleteAsync(resourceGroupName, sandboxGroupName, context).block(); + } + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an access token and endpoint for connecting to the SandboxGroup along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> connectWithResponseAsync(String resourceGroupName, + String sandboxGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.connect(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, sandboxGroupName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an access token and endpoint for connecting to the SandboxGroup along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> connectWithResponseAsync(String resourceGroupName, + String sandboxGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (sandboxGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter sandboxGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.connect(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, sandboxGroupName, accept, context); + } + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an access token and endpoint for connecting to the SandboxGroup on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono connectAsync(String resourceGroupName, String sandboxGroupName) { + return connectWithResponseAsync(resourceGroupName, sandboxGroupName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an access token and endpoint for connecting to the SandboxGroup along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response connectWithResponse(String resourceGroupName, String sandboxGroupName, + Context context) { + return connectWithResponseAsync(resourceGroupName, sandboxGroupName, context).block(); + } + + /** + * Get an access token and endpoint for connecting to the SandboxGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sandboxGroupName The name of the SandboxGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an access token and endpoint for connecting to the SandboxGroup. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SandboxGroupAccessTokenInner connect(String resourceGroupName, String sandboxGroupName) { + return connectWithResponse(resourceGroupName, sandboxGroupName, Context.NONE).getValue(); + } + + /** + * List SandboxGroup resources by subscription ID + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List SandboxGroup resources by subscription ID + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List SandboxGroup resources by resource group + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List SandboxGroup resources by resource group + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SandboxGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SubnetServiceAssociationLinksClientImpl.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SubnetServiceAssociationLinksClientImpl.java index f26ec0149631..1c0485e11b31 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SubnetServiceAssociationLinksClientImpl.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/SubnetServiceAssociationLinksClientImpl.java @@ -61,7 +61,7 @@ public final class SubnetServiceAssociationLinksClientImpl implements SubnetServ @ServiceInterface(name = "ContainerInstanceManagementClientSubnetServiceAssociationLinks") public interface SubnetServiceAssociationLinksService { @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("endpoint") String endpoint, diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/SandboxGroupListResult.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/SandboxGroupListResult.java new file mode 100644 index 000000000000..160166235003 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/SandboxGroupListResult.java @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.implementation.models; + +import com.azure.core.annotation.Immutable; +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.fluent.models.SandboxGroupInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a SandboxGroup list operation. + */ +@Immutable +public final class SandboxGroupListResult implements JsonSerializable { + /* + * The SandboxGroup items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of SandboxGroupListResult class. + */ + private SandboxGroupListResult() { + } + + /** + * Get the value property: The SandboxGroup items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SandboxGroupListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SandboxGroupListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SandboxGroupListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SandboxGroupListResult 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 SandboxGroupListResult. + */ + public static SandboxGroupListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SandboxGroupListResult deserializedSandboxGroupListResult = new SandboxGroupListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> SandboxGroupInner.fromJson(reader1)); + deserializedSandboxGroupListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSandboxGroupListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSandboxGroupListResult; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileVolume.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileVolume.java index a49561f4ba40..f833cc3fc85e 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileVolume.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileVolume.java @@ -42,6 +42,11 @@ public final class AzureFileVolume implements JsonSerializable */ private String storageAccountKeyReference; + /* + * The client id of the user-assigned managed identity that has access to the Azure File share. + */ + private String userAssignedIdentityClientId; + /** * Creates an instance of AzureFileVolume class. */ @@ -150,6 +155,28 @@ public AzureFileVolume withStorageAccountKeyReference(String storageAccountKeyRe return this; } + /** + * Get the userAssignedIdentityClientId property: The client id of the user-assigned managed identity that has + * access to the Azure File share. + * + * @return the userAssignedIdentityClientId value. + */ + public String userAssignedIdentityClientId() { + return this.userAssignedIdentityClientId; + } + + /** + * Set the userAssignedIdentityClientId property: The client id of the user-assigned managed identity that has + * access to the Azure File share. + * + * @param userAssignedIdentityClientId the userAssignedIdentityClientId value to set. + * @return the AzureFileVolume object itself. + */ + public AzureFileVolume withUserAssignedIdentityClientId(String userAssignedIdentityClientId) { + this.userAssignedIdentityClientId = userAssignedIdentityClientId; + return this; + } + /** * Validates the instance. * @@ -180,6 +207,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("readOnly", this.readOnly); jsonWriter.writeStringField("storageAccountKey", this.storageAccountKey); jsonWriter.writeStringField("storageAccountKeyReference", this.storageAccountKeyReference); + jsonWriter.writeStringField("userAssignedIdentityClientId", this.userAssignedIdentityClientId); return jsonWriter.writeEndObject(); } @@ -209,6 +237,8 @@ public static AzureFileVolume fromJson(JsonReader jsonReader) throws IOException deserializedAzureFileVolume.storageAccountKey = reader.getString(); } else if ("storageAccountKeyReference".equals(fieldName)) { deserializedAzureFileVolume.storageAccountKeyReference = reader.getString(); + } else if ("userAssignedIdentityClientId".equals(fieldName)) { + deserializedAzureFileVolume.userAssignedIdentityClientId = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentity.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentity.java new file mode 100644 index 000000000000..605b27ada641 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentity.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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; +import java.util.Map; + +/** + * Managed service identity (system assigned and/or user assigned identities). + */ +@Fluent +public final class ManagedServiceIdentity implements JsonSerializable { + /* + * The service principal ID of the system assigned identity. This property will only be provided for a system + * assigned identity. + */ + private String principalId; + + /* + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned + * identity. + */ + private String tenantId; + + /* + * The type of managed identity assigned to this resource. + */ + private ManagedServiceIdentityType type; + + /* + * The identities assigned to this resource by the user. + */ + private Map userAssignedIdentities; + + /** + * Creates an instance of ManagedServiceIdentity class. + */ + public ManagedServiceIdentity() { + } + + /** + * Get the principalId property: The service principal ID of the system assigned identity. This property will only + * be provided for a system assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for + * a system assigned identity. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get the type property: The type of managed identity assigned to this resource. + * + * @return the type value. + */ + public ManagedServiceIdentityType type() { + return this.type; + } + + /** + * Set the type property: The type of managed identity assigned to this resource. + * + * @param type the type value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the userAssignedIdentities property: The identities assigned to this resource by the user. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The identities assigned to this resource by the user. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (type() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property type in model ManagedServiceIdentity")); + } + if (userAssignedIdentities() != null) { + userAssignedIdentities().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedServiceIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedServiceIdentity 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 ManagedServiceIdentity. + */ + public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedServiceIdentity deserializedManagedServiceIdentity = new ManagedServiceIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString()); + } else if ("principalId".equals(fieldName)) { + deserializedManagedServiceIdentity.principalId = reader.getString(); + } else if ("tenantId".equals(fieldName)) { + deserializedManagedServiceIdentity.tenantId = reader.getString(); + } else if ("userAssignedIdentities".equals(fieldName)) { + Map userAssignedIdentities + = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); + deserializedManagedServiceIdentity.userAssignedIdentities = userAssignedIdentities; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedServiceIdentity; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentityType.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentityType.java new file mode 100644 index 000000000000..9f763185eb8c --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentityType.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + */ +public final class ManagedServiceIdentityType extends ExpandableStringEnum { + /** + * No managed identity. + */ + public static final ManagedServiceIdentityType NONE = fromString("None"); + + /** + * System assigned managed identity. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** + * User assigned managed identity. + */ + public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** + * System and user assigned managed identity. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED + = fromString("SystemAssigned,UserAssigned"); + + /** + * Creates a new instance of ManagedServiceIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ManagedServiceIdentityType() { + } + + /** + * Creates or finds a ManagedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentityType. + */ + public static ManagedServiceIdentityType fromString(String name) { + return fromString(name, ManagedServiceIdentityType.class); + } + + /** + * Gets known ManagedServiceIdentityType values. + * + * @return known ManagedServiceIdentityType values. + */ + public static Collection values() { + return values(ManagedServiceIdentityType.class); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupNetworkProfile.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupNetworkProfile.java new file mode 100644 index 000000000000..cb995fcd10aa --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupNetworkProfile.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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; +import java.util.List; + +/** + * The network profile for a SandboxGroup. + */ +@Fluent +public final class SandboxGroupNetworkProfile implements JsonSerializable { + /* + * The list of subnets associated with the SandboxGroup. + */ + private List subnets; + + /** + * Creates an instance of SandboxGroupNetworkProfile class. + */ + public SandboxGroupNetworkProfile() { + } + + /** + * Get the subnets property: The list of subnets associated with the SandboxGroup. + * + * @return the subnets value. + */ + public List subnets() { + return this.subnets; + } + + /** + * Set the subnets property: The list of subnets associated with the SandboxGroup. + * + * @param subnets the subnets value to set. + * @return the SandboxGroupNetworkProfile object itself. + */ + public SandboxGroupNetworkProfile withSubnets(List subnets) { + this.subnets = subnets; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (subnets() != null) { + subnets().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("subnets", this.subnets, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SandboxGroupNetworkProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SandboxGroupNetworkProfile 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 SandboxGroupNetworkProfile. + */ + public static SandboxGroupNetworkProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SandboxGroupNetworkProfile deserializedSandboxGroupNetworkProfile = new SandboxGroupNetworkProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("subnets".equals(fieldName)) { + List subnets = reader.readArray(reader1 -> SubnetReference.fromJson(reader1)); + deserializedSandboxGroupNetworkProfile.subnets = subnets; + } else { + reader.skipChildren(); + } + } + + return deserializedSandboxGroupNetworkProfile; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProperties.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProperties.java new file mode 100644 index 000000000000..1475c254844f --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProperties.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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; + +/** + * Properties of a SandboxGroup. + */ +@Fluent +public final class SandboxGroupProperties implements JsonSerializable { + /* + * The status of the last operation. + */ + private SandboxGroupProvisioningState provisioningState; + + /* + * The network profile of the SandboxGroup. + */ + private SandboxGroupNetworkProfile networkProfile; + + /* + * The ARM resource ID of the management resource group associated with this SandboxGroup. + */ + private String managementResourceGroupId; + + /** + * Creates an instance of SandboxGroupProperties class. + */ + public SandboxGroupProperties() { + } + + /** + * Get the provisioningState property: The status of the last operation. + * + * @return the provisioningState value. + */ + public SandboxGroupProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the networkProfile property: The network profile of the SandboxGroup. + * + * @return the networkProfile value. + */ + public SandboxGroupNetworkProfile networkProfile() { + return this.networkProfile; + } + + /** + * Set the networkProfile property: The network profile of the SandboxGroup. + * + * @param networkProfile the networkProfile value to set. + * @return the SandboxGroupProperties object itself. + */ + public SandboxGroupProperties withNetworkProfile(SandboxGroupNetworkProfile networkProfile) { + this.networkProfile = networkProfile; + return this; + } + + /** + * Get the managementResourceGroupId property: The ARM resource ID of the management resource group associated with + * this SandboxGroup. + * + * @return the managementResourceGroupId value. + */ + public String managementResourceGroupId() { + return this.managementResourceGroupId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (networkProfile() != null) { + networkProfile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("networkProfile", this.networkProfile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SandboxGroupProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SandboxGroupProperties 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 SandboxGroupProperties. + */ + public static SandboxGroupProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SandboxGroupProperties deserializedSandboxGroupProperties = new SandboxGroupProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedSandboxGroupProperties.provisioningState + = SandboxGroupProvisioningState.fromString(reader.getString()); + } else if ("networkProfile".equals(fieldName)) { + deserializedSandboxGroupProperties.networkProfile = SandboxGroupNetworkProfile.fromJson(reader); + } else if ("managementResourceGroupId".equals(fieldName)) { + deserializedSandboxGroupProperties.managementResourceGroupId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSandboxGroupProperties; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProvisioningState.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProvisioningState.java new file mode 100644 index 000000000000..a7d81843f9ae --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProvisioningState.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The provisioning state of a SandboxGroup resource. + */ +public final class SandboxGroupProvisioningState extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final SandboxGroupProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final SandboxGroupProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final SandboxGroupProvisioningState CANCELED = fromString("Canceled"); + + /** + * The resource is being updated. + */ + public static final SandboxGroupProvisioningState UPDATING = fromString("Updating"); + + /** + * The resource is being deleted. + */ + public static final SandboxGroupProvisioningState DELETING = fromString("Deleting"); + + /** + * The resource provisioning request was accepted but not yet started. + */ + public static final SandboxGroupProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * Creates a new instance of SandboxGroupProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SandboxGroupProvisioningState() { + } + + /** + * Creates or finds a SandboxGroupProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding SandboxGroupProvisioningState. + */ + public static SandboxGroupProvisioningState fromString(String name) { + return fromString(name, SandboxGroupProvisioningState.class); + } + + /** + * Gets known SandboxGroupProvisioningState values. + * + * @return known SandboxGroupProvisioningState values. + */ + public static Collection values() { + return values(SandboxGroupProvisioningState.class); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupTagsUpdate.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupTagsUpdate.java new file mode 100644 index 000000000000..369d8f22e2ce --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupTagsUpdate.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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; +import java.util.Map; + +/** + * The type used for updating a SandboxGroup resource. + */ +@Fluent +public final class SandboxGroupTagsUpdate implements JsonSerializable { + /* + * Resource tags. + */ + private Map tags; + + /* + * The managed service identities assigned to this resource. + */ + private ManagedServiceIdentity identity; + + /** + * Creates an instance of SandboxGroupTagsUpdate class. + */ + public SandboxGroupTagsUpdate() { + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the SandboxGroupTagsUpdate object itself. + */ + public SandboxGroupTagsUpdate withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the identity property: The managed service identities assigned to this resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The managed service identities assigned to this resource. + * + * @param identity the identity value to set. + * @return the SandboxGroupTagsUpdate object itself. + */ + public SandboxGroupTagsUpdate withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (identity() != null) { + identity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("identity", this.identity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SandboxGroupTagsUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SandboxGroupTagsUpdate 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 SandboxGroupTagsUpdate. + */ + public static SandboxGroupTagsUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SandboxGroupTagsUpdate deserializedSandboxGroupTagsUpdate = new SandboxGroupTagsUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedSandboxGroupTagsUpdate.tags = tags; + } else if ("identity".equals(fieldName)) { + deserializedSandboxGroupTagsUpdate.identity = ManagedServiceIdentity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSandboxGroupTagsUpdate; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SubnetReference.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SubnetReference.java new file mode 100644 index 000000000000..887e11b934c3 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/SubnetReference.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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; + +/** + * A reference to a subnet resource. + */ +@Fluent +public final class SubnetReference implements JsonSerializable { + /* + * The ARM resource ID of the subnet. The caller must have `Microsoft.Network/virtualNetworks/subnets/join/action` + * permission on this subnet (enforced via a linked access check at create/update time). + */ + private String id; + + /** + * Creates an instance of SubnetReference class. + */ + public SubnetReference() { + } + + /** + * Get the id property: The ARM resource ID of the subnet. The caller must have + * `Microsoft.Network/virtualNetworks/subnets/join/action` permission on this subnet (enforced via a linked access + * check at create/update time). + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: The ARM resource ID of the subnet. The caller must have + * `Microsoft.Network/virtualNetworks/subnets/join/action` permission on this subnet (enforced via a linked access + * check at create/update time). + * + * @param id the id value to set. + * @return the SubnetReference object itself. + */ + public SubnetReference withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (id() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property id in model SubnetReference")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SubnetReference.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SubnetReference from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SubnetReference 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 SubnetReference. + */ + public static SubnetReference fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SubnetReference deserializedSubnetReference = new SubnetReference(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSubnetReference.id = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSubnetReference; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/UserAssignedIdentity.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/UserAssignedIdentity.java new file mode 100644 index 000000000000..bf88bb8a0484 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/java/com/azure/resourcemanager/containerinstance/models/UserAssignedIdentity.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.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 java.io.IOException; + +/** + * User assigned identity properties. + */ +@Immutable +public final class UserAssignedIdentity implements JsonSerializable { + /* + * The principal ID of the assigned identity. + */ + private String principalId; + + /* + * The client ID of the assigned identity. + */ + private String clientId; + + /** + * Creates an instance of UserAssignedIdentity class. + */ + public UserAssignedIdentity() { + } + + /** + * Get the principalId property: The principal ID of the assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the clientId property: The client ID of the assigned identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UserAssignedIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UserAssignedIdentity 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 UserAssignedIdentity. + */ + public static UserAssignedIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UserAssignedIdentity deserializedUserAssignedIdentity = new UserAssignedIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("principalId".equals(fieldName)) { + deserializedUserAssignedIdentity.principalId = reader.getString(); + } else if ("clientId".equals(fieldName)) { + deserializedUserAssignedIdentity.clientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUserAssignedIdentity; + }); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/azure-resourcemanager-containerinstance_metadata.json b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/azure-resourcemanager-containerinstance_metadata.json index 345d81226685..855cb5756ed8 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/azure-resourcemanager-containerinstance_metadata.json +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/azure-resourcemanager-containerinstance_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.ContainerInstance":"2025-09-01"},"generatedFiles":["src/main/java/com/azure/resourcemanager/containerinstance/fluent/CGProfilesClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/CGProfilesOperationsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerGroupsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainersClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/LocationsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/NGroupsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/SubnetServiceAssociationLinksClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerAttachResponseInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerExecResponseInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupProfileInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupProfileProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/DeploymentExtensionSpecProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/InitContainerPropertiesDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/LogsInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/NGroupInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/NGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/package-info.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/CGProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/CGProfilesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainersClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/LocationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/NGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/SubnetServiceAssociationLinksClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/CachedImagesListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/CapabilitiesListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/ContainerGroupListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/ContainerGroupProfileListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/NGroupsListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/UsageListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ApiEntityReference.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ApplicationGateway.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ApplicationGatewayBackendAddressPool.java","src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileShareAccessTier.java","src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileShareAccessType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileVolume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesCreateOrUpdateHeaders.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesCreateOrUpdateResponse.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesUpdateHeaders.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesUpdateResponse.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CachedImages.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Capabilities.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CapabilitiesCapabilities.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ConfidentialComputeProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ConfigMap.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Container.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerExec.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerExecRequest.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerExecRequestTerminalSize.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupDiagnostics.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupIdentity.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupIdentityUserAssignedIdentities.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupIpAddressType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupNetworkProtocol.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupPriority.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupProfilePatch.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupProfileReferenceDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupProfileStub.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupPropertiesInstanceView.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupRestartPolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupSku.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupSubnetId.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerHttpGet.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerInstanceOperationsOrigin.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerNetworkProtocol.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerPort.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerProbe.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerPropertiesInstanceView.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerState.java","src/main/java/com/azure/resourcemanager/containerinstance/models/DeploymentExtensionSpec.java","src/main/java/com/azure/resourcemanager/containerinstance/models/DnsConfiguration.java","src/main/java/com/azure/resourcemanager/containerinstance/models/DnsNameLabelReusePolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ElasticProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ElasticProfileContainerGroupNamingPolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/EncryptionProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/EnvironmentVariable.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Event.java","src/main/java/com/azure/resourcemanager/containerinstance/models/FileShare.java","src/main/java/com/azure/resourcemanager/containerinstance/models/FileShareProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/GitRepoVolume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/GpuResource.java","src/main/java/com/azure/resourcemanager/containerinstance/models/GpuSku.java","src/main/java/com/azure/resourcemanager/containerinstance/models/HttpHeader.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IdentityAccessControl.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IdentityAccessLevel.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IdentityAcls.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ImageRegistryCredential.java","src/main/java/com/azure/resourcemanager/containerinstance/models/InitContainerDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/InitContainerPropertiesDefinitionInstanceView.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IpAddress.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LoadBalancer.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LoadBalancerBackendAddressPool.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LogAnalytics.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LogAnalyticsLogType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupCGPropertyContainer.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupCGPropertyContainerProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupCGPropertyVolume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupContainerGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupIdentity.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupPatch.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupProvisioningState.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupUpdateMode.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/OperatingSystemTypes.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Operation.java","src/main/java/com/azure/resourcemanager/containerinstance/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/containerinstance/models/PlacementProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Port.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceLimits.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceRequests.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceRequirements.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Scheme.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SecretReference.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SecurityContextCapabilitiesDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SecurityContextDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/StandbyPoolProfileDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/StorageProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UpdateProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UpdateProfileRollingUpdateProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UsageName.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Volume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/VolumeMount.java","src/main/java/com/azure/resourcemanager/containerinstance/models/package-info.java","src/main/java/com/azure/resourcemanager/containerinstance/package-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.ContainerInstance":"2026-07-01"},"crossLanguagePackageId":"Microsoft.ContainerInstance","crossLanguageVersion":"8754c1d1e0c1","generatedFiles":["src/main/java/com/azure/resourcemanager/containerinstance/fluent/CGProfilesClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/CGProfilesOperationsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerGroupsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainerInstanceManagementClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/ContainersClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/LocationsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/NGroupsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/SandboxGroupsClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/SubnetServiceAssociationLinksClient.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerAttachResponseInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerExecResponseInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupProfileInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupProfileProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/ContainerProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/DeploymentExtensionSpecProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/InitContainerPropertiesDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/LogsInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/NGroupInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/NGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupAccessTokenInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/SandboxGroupInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/containerinstance/fluent/package-info.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/CGProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/CGProfilesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainerInstanceManagementClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/ContainersClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/LocationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/NGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/SandboxGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/SubnetServiceAssociationLinksClientImpl.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/CachedImagesListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/CapabilitiesListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/ContainerGroupListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/ContainerGroupProfileListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/NGroupsListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/SandboxGroupListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/implementation/models/UsageListResult.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ApiEntityReference.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ApplicationGateway.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ApplicationGatewayBackendAddressPool.java","src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileShareAccessTier.java","src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileShareAccessType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/AzureFileVolume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesCreateOrUpdateHeaders.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesCreateOrUpdateResponse.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesUpdateHeaders.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CGProfilesUpdateResponse.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CachedImages.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Capabilities.java","src/main/java/com/azure/resourcemanager/containerinstance/models/CapabilitiesCapabilities.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ConfidentialComputeProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ConfigMap.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Container.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerExec.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerExecRequest.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerExecRequestTerminalSize.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupDiagnostics.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupIdentity.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupIdentityUserAssignedIdentities.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupIpAddressType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupNetworkProtocol.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupPriority.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupProfilePatch.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupProfileReferenceDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupProfileStub.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupPropertiesInstanceView.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupRestartPolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupSku.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerGroupSubnetId.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerHttpGet.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerInstanceOperationsOrigin.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerNetworkProtocol.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerPort.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerProbe.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerPropertiesInstanceView.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ContainerState.java","src/main/java/com/azure/resourcemanager/containerinstance/models/DeploymentExtensionSpec.java","src/main/java/com/azure/resourcemanager/containerinstance/models/DnsConfiguration.java","src/main/java/com/azure/resourcemanager/containerinstance/models/DnsNameLabelReusePolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ElasticProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ElasticProfileContainerGroupNamingPolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy.java","src/main/java/com/azure/resourcemanager/containerinstance/models/EncryptionProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/EnvironmentVariable.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Event.java","src/main/java/com/azure/resourcemanager/containerinstance/models/FileShare.java","src/main/java/com/azure/resourcemanager/containerinstance/models/FileShareProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/GitRepoVolume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/GpuResource.java","src/main/java/com/azure/resourcemanager/containerinstance/models/GpuSku.java","src/main/java/com/azure/resourcemanager/containerinstance/models/HttpHeader.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IdentityAccessControl.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IdentityAccessLevel.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IdentityAcls.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ImageRegistryCredential.java","src/main/java/com/azure/resourcemanager/containerinstance/models/InitContainerDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/InitContainerPropertiesDefinitionInstanceView.java","src/main/java/com/azure/resourcemanager/containerinstance/models/IpAddress.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LoadBalancer.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LoadBalancerBackendAddressPool.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LogAnalytics.java","src/main/java/com/azure/resourcemanager/containerinstance/models/LogAnalyticsLogType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupCGPropertyContainer.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupCGPropertyContainerProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupCGPropertyVolume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupContainerGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupIdentity.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupPatch.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupProvisioningState.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NGroupUpdateMode.java","src/main/java/com/azure/resourcemanager/containerinstance/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/OperatingSystemTypes.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Operation.java","src/main/java/com/azure/resourcemanager/containerinstance/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/containerinstance/models/PlacementProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Port.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceLimits.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceRequests.java","src/main/java/com/azure/resourcemanager/containerinstance/models/ResourceRequirements.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupNetworkProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProperties.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupProvisioningState.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SandboxGroupTagsUpdate.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Scheme.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SecretReference.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SecurityContextCapabilitiesDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SecurityContextDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/StandbyPoolProfileDefinition.java","src/main/java/com/azure/resourcemanager/containerinstance/models/StorageProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/SubnetReference.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UpdateProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UpdateProfileRollingUpdateProfile.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UsageName.java","src/main/java/com/azure/resourcemanager/containerinstance/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/containerinstance/models/Volume.java","src/main/java/com/azure/resourcemanager/containerinstance/models/VolumeMount.java","src/main/java/com/azure/resourcemanager/containerinstance/models/package-info.java","src/main/java/com/azure/resourcemanager/containerinstance/package-info.java"]} \ No newline at end of file diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerinstance/proxy-config.json b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerinstance/proxy-config.json index 026789a5584a..1e5fc0eb1fcf 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerinstance/proxy-config.json +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerinstance/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.containerinstance.implementation.CGProfilesClientImpl$CGProfilesService"],["com.azure.resourcemanager.containerinstance.implementation.CGProfilesOperationsClientImpl$CGProfilesOperationsService"],["com.azure.resourcemanager.containerinstance.implementation.ContainerGroupsClientImpl$ContainerGroupsService"],["com.azure.resourcemanager.containerinstance.implementation.ContainersClientImpl$ContainersService"],["com.azure.resourcemanager.containerinstance.implementation.LocationsClientImpl$LocationsService"],["com.azure.resourcemanager.containerinstance.implementation.NGroupsClientImpl$NGroupsService"],["com.azure.resourcemanager.containerinstance.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerinstance.implementation.SubnetServiceAssociationLinksClientImpl$SubnetServiceAssociationLinksService"]] \ No newline at end of file +[["com.azure.resourcemanager.containerinstance.implementation.CGProfilesClientImpl$CGProfilesService"],["com.azure.resourcemanager.containerinstance.implementation.CGProfilesOperationsClientImpl$CGProfilesOperationsService"],["com.azure.resourcemanager.containerinstance.implementation.ContainerGroupsClientImpl$ContainerGroupsService"],["com.azure.resourcemanager.containerinstance.implementation.ContainersClientImpl$ContainersService"],["com.azure.resourcemanager.containerinstance.implementation.LocationsClientImpl$LocationsService"],["com.azure.resourcemanager.containerinstance.implementation.NGroupsClientImpl$NGroupsService"],["com.azure.resourcemanager.containerinstance.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerinstance.implementation.SandboxGroupsClientImpl$SandboxGroupsService"],["com.azure.resourcemanager.containerinstance.implementation.SubnetServiceAssociationLinksClientImpl$SubnetServiceAssociationLinksService"]] \ No newline at end of file diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileCreateOrUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileCreateOrUpdateSamples.java index 9c3503e33ece..f406619fcf3e 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileCreateOrUpdateSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileCreateOrUpdateSamples.java @@ -40,7 +40,7 @@ */ public final class CGProfileCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfileCreateOrUpdate_CreateConfidential.json */ /** * Sample code: ConfidentialContainerGroupProfile. @@ -78,7 +78,7 @@ public static void confidentialContainerGroupProfile( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfileCreateOrUpdate_EncryptionProperties.json */ /** * Sample code: ContainerGroupProfileWithEncryptionProperties. @@ -112,7 +112,7 @@ public static void containerGroupProfileWithEncryptionProperties( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfileCreateOrUpdate_Extensions.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfileCreateOrUpdate_Extensions.json */ /** * Sample code: ContainerGroupProfileCreateWithExtensions. @@ -153,7 +153,7 @@ public static void containerGroupProfileCreateWithExtensions( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesCreateOrUpdate.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesCreateOrUpdate.json */ /** * Sample code: ContainerGroupProfilesCreateOrUpdate. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileDeleteSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileDeleteSamples.java index c0925bda3dfe..c78878f29712 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileDeleteSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CGProfileDeleteSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesDelete.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesDelete.json */ /** * Sample code: ContainerGroupProfilesDelete. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByResourceGroupSamples.java index ba45dc698e9b..dc7492086575 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByResourceGroupSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CGProfileGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesGet.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesGet.json */ /** * Sample code: ContainerGroupProfilesGet_Succeeded. @@ -24,7 +24,7 @@ public static void containerGroupProfilesGetSucceeded( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesGetPriority.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesGetPriority.json */ /** * Sample code: ContainerGroupProfilesGetWithPriority. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByRevisionNumberSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByRevisionNumberSamples.java index b4854fbf6105..af30a08c6fd6 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByRevisionNumberSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileGetByRevisionNumberSamples.java @@ -9,7 +9,7 @@ */ public final class CGProfileGetByRevisionNumberSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfileGetByRevisionNumber.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfileGetByRevisionNumber.json */ /** * Sample code: ContainerGroupProfileGetByRevisionNumber. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileListAllRevisionsSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileListAllRevisionsSamples.java index b6ef60538a98..4df3fb33af04 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileListAllRevisionsSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileListAllRevisionsSamples.java @@ -9,7 +9,7 @@ */ public final class CGProfileListAllRevisionsSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfileListAllRevisions.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfileListAllRevisions.json */ /** * Sample code: ContainerGroupProfileListAllRevisions. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileUpdateSamples.java index a9a5b1ffaa30..1f765cf74d2e 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileUpdateSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfileUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class CGProfileUpdateSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesPatch.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesPatch.json */ /** * Sample code: ContainerGroupProfilesPatch. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListByResourceGroupSamples.java index e608651f33e6..4662293c00f2 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListByResourceGroupSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CGProfilesOperationListByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesListByResourceGroup.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesListByResourceGroup.json */ /** * Sample code: ContainerGroupProfilesListByResourceGroup. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListSamples.java index 3e5a1d23b27e..3d61a47f8f65 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/CGProfilesOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class CGProfilesOperationListSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupProfilesList.json + * x-ms-original-file: 2026-07-01/ContainerGroupProfilesList.json */ /** * Sample code: ContainerGroupProfilesList. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsCreateOrUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsCreateOrUpdateSamples.java index 369e4e436e19..bcf2cae5154c 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsCreateOrUpdateSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsCreateOrUpdateSamples.java @@ -54,7 +54,7 @@ */ public final class ContainerGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupCreateOrUpdateStandbyPool.json + * x-ms-original-file: 2026-07-01/ContainerGroupCreateOrUpdateStandbyPool.json */ /** * Sample code: ContainerGroupCreateOrUpdateWithStandbyPool. @@ -77,7 +77,7 @@ public static void containerGroupCreateOrUpdateWithStandbyPool( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupExtensions.json + * x-ms-original-file: 2026-07-01/ContainerGroupExtensions.json */ /** * Sample code: ContainerGroupCreateWithExtensions. @@ -120,7 +120,68 @@ public static void containerGroupCreateWithExtensions( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupEncryptionProperties.json + * x-ms-original-file: 2026-07-01/ContainerGroupsCreateOrUpdateManagedIdentityAzureFileshare.json + */ + /** + * Sample code: ContainerGroupsCreateOrUpdateManagedIdentityAzureFileshare. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void containerGroupsCreateOrUpdateManagedIdentityAzureFileshare( + com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) throws IOException { + manager.serviceClient() + .getContainerGroups() + .createOrUpdate("demo", "demo1", new ContainerGroupInner().withLocation("west us") + .withIdentity(new ContainerGroupIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name", + new ContainerGroupIdentityUserAssignedIdentities()))) + .withContainers(Arrays.asList(new Container().withName("demo1") + .withImage("nginx") + .withCommand(Arrays.asList()) + .withPorts(Arrays.asList(new ContainerPort().withPort(80))) + .withEnvironmentVariables(Arrays.asList()) + .withResources(new ResourceRequirements().withRequests(new ResourceRequests().withMemoryInGB(1.5) + .withCpu(1.0) + .withGpu(new GpuResource().withCount(1).withSku(GpuSku.K80)))) + .withVolumeMounts(Arrays.asList( + new VolumeMount().withName("volume1").withMountPath("/mnt/volume1").withReadOnly(false), + new VolumeMount().withName("volume2").withMountPath("/mnt/volume2").withReadOnly(false), + new VolumeMount().withName("volume3").withMountPath("/mnt/volume3").withReadOnly(true))))) + .withImageRegistryCredentials(Arrays.asList()) + .withIpAddress(new IpAddress() + .withPorts(Arrays.asList(new Port().withProtocol(ContainerGroupNetworkProtocol.TCP).withPort(80))) + .withType(ContainerGroupIpAddressType.PUBLIC) + .withDnsNameLabel("dnsnamelabel1") + .withAutoGeneratedDomainNameLabelScope(DnsNameLabelReusePolicy.UNSECURE)) + .withOsType(OperatingSystemTypes.LINUX) + .withVolumes(Arrays.asList( + new Volume().withName("volume1") + .withAzureFile(new AzureFileVolume().withShareName("shareName") + .withStorageAccountName("accountName") + .withUserAssignedIdentityClientId("00000000-0000-0000-0000-000000000000")), + new Volume().withName("volume2") + .withEmptyDir(SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)), + new Volume().withName("volume3") + .withSecret(mapOf("secretKey1", "fakeTokenPlaceholder", "secretKey2", "fakeTokenPlaceholder")))) + .withDiagnostics(new ContainerGroupDiagnostics().withLogAnalytics(new LogAnalytics() + .withWorkspaceId("workspaceid") + .withWorkspaceKey("fakeTokenPlaceholder") + .withLogType(LogAnalyticsLogType.CONTAINER_INSIGHTS) + .withMetadata(mapOf("test-key", "fakeTokenPlaceholder")) + .withWorkspaceResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace"))) + .withSubnetIds(Arrays.asList(new ContainerGroupSubnetId().withId( + "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]"))) + .withDnsConfig(new DnsConfiguration().withNameServers(Arrays.asList("1.1.1.1")) + .withSearchDomains("cluster.local svc.cluster.local") + .withOptions("ndots:2")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-07-01/ContainerGroupEncryptionProperties.json */ /** * Sample code: ContainerGroupWithEncryptionProperties. @@ -158,7 +219,7 @@ public static void containerGroupWithEncryptionProperties( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupsCreateOrUpdateSecretReference.json + * x-ms-original-file: 2026-07-01/ContainerGroupsCreateOrUpdateSecretReference.json */ /** * Sample code: ContainerGroupsCreateOrUpdateSecretReference. @@ -240,7 +301,7 @@ public static void containerGroupsCreateOrUpdateSecretReference( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupCreateConfidential.json + * x-ms-original-file: 2026-07-01/ContainerGroupCreateConfidential.json */ /** * Sample code: ConfidentialContainerGroup. @@ -277,7 +338,7 @@ public static void containerGroupsCreateOrUpdateSecretReference( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupsCreateOrUpdate.json + * x-ms-original-file: 2026-07-01/ContainerGroupsCreateOrUpdate.json */ /** * Sample code: ContainerGroupsCreateOrUpdate. @@ -338,7 +399,7 @@ public static void containerGroupsCreateOrUpdate( } /* - * x-ms-original-file: 2025-09-01/ContainerGroupsCreatePriority.json + * x-ms-original-file: 2026-07-01/ContainerGroupsCreatePriority.json */ /** * Sample code: ContainerGroupsCreateWithPriority. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsDeleteSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsDeleteSamples.java index f5466abac09b..5b379eb4086e 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsDeleteSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsDeleteSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsDelete.json + * x-ms-original-file: 2026-07-01/ContainerGroupsDelete.json */ /** * Sample code: ContainerGroupsDelete. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetByResourceGroupSamples.java index 4e601653037f..2232c3f07898 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetByResourceGroupSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsGetPriority.json + * x-ms-original-file: 2026-07-01/ContainerGroupsGetPriority.json */ /** * Sample code: ContainerGroupsGetWithPriority. @@ -24,7 +24,7 @@ public final class ContainerGroupsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2025-09-01/ContainerGroupsGet_Succeeded.json + * x-ms-original-file: 2026-07-01/ContainerGroupsGet_Succeeded.json */ /** * Sample code: ContainerGroupsGet_Succeeded. @@ -39,7 +39,7 @@ public final class ContainerGroupsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2025-09-01/ContainerGroupsGet_Failed.json + * x-ms-original-file: 2026-07-01/ContainerGroupsGet_Failed.json */ /** * Sample code: ContainerGroupsGet_Failed. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetOutboundNetworkDependenciesEndpointsSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetOutboundNetworkDependenciesEndpointsSamples.java new file mode 100644 index 000000000000..3b49f3526d2b --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsGetOutboundNetworkDependenciesEndpointsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for ContainerGroups GetOutboundNetworkDependenciesEndpoints. + */ +public final class ContainerGroupsGetOutboundNetworkDependenciesEndpointsSamples { + /* + * x-ms-original-file: 2026-07-01/ContainerGroupsGetOutboundNetworkDependenciesEndpoints.json + */ + /** + * Sample code: ContainerGroupsGetOutboundNetworkDependenciesEndpoints. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void containerGroupsGetOutboundNetworkDependenciesEndpoints( + com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getContainerGroups() + .getOutboundNetworkDependenciesEndpointsWithResponse("demo", "demo-cg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListByResourceGroupSamples.java index 7243b97d674a..f22a3f410a4b 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListByResourceGroupSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsListByResourceGroup.json + * x-ms-original-file: 2026-07-01/ContainerGroupsListByResourceGroup.json */ /** * Sample code: ContainerGroupsListByResourceGroup. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListSamples.java index 79faf8e92433..8f328cf4def2 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsListSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsListSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsList.json + * x-ms-original-file: 2026-07-01/ContainerGroupsList.json */ /** * Sample code: ContainerGroupsList. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsRestartSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsRestartSamples.java index a49b689fefc3..fbc7aa1e889a 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsRestartSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsRestartSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsRestartSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsRestart.json + * x-ms-original-file: 2026-07-01/ContainerGroupsRestart.json */ /** * Sample code: ContainerRestart. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStartSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStartSamples.java index bb04e8929ad1..c835dbaf40b3 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStartSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStartSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsStartSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsStart.json + * x-ms-original-file: 2026-07-01/ContainerGroupsStart.json */ /** * Sample code: ContainerStart. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStopSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStopSamples.java index 75fc97189d0f..759157254b40 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStopSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsStopSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerGroupsStopSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsStop.json + * x-ms-original-file: 2026-07-01/ContainerGroupsStop.json */ /** * Sample code: ContainerStop. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsUpdateSamples.java index b60aa87ed8e4..5aae6c45238b 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsUpdateSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainerGroupsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ContainerGroupsUpdateSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupsUpdate.json + * x-ms-original-file: 2026-07-01/ContainerGroupsUpdate.json */ /** * Sample code: ContainerGroupsUpdate. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersAttachSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersAttachSamples.java index 5108743ee795..6edde9d53de8 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersAttachSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersAttachSamples.java @@ -9,7 +9,7 @@ */ public final class ContainersAttachSamples { /* - * x-ms-original-file: 2025-09-01/ContainerAttach.json + * x-ms-original-file: 2026-07-01/ContainerAttach.json */ /** * Sample code: ContainerAttach. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersExecuteCommandSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersExecuteCommandSamples.java index b785622eacd9..36e7277b2960 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersExecuteCommandSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersExecuteCommandSamples.java @@ -12,7 +12,7 @@ */ public final class ContainersExecuteCommandSamples { /* - * x-ms-original-file: 2025-09-01/ContainerExec.json + * x-ms-original-file: 2026-07-01/ContainerExec.json */ /** * Sample code: ContainerExec. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersListLogsSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersListLogsSamples.java index 01e58842f113..bae473b7c6f2 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersListLogsSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/ContainersListLogsSamples.java @@ -9,7 +9,7 @@ */ public final class ContainersListLogsSamples { /* - * x-ms-original-file: 2025-09-01/ContainerListLogs.json + * x-ms-original-file: 2026-07-01/ContainerListLogs.json */ /** * Sample code: ContainerListLogs. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCachedImagesSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCachedImagesSamples.java index 3a9cd172a1a0..3aa8d65aa219 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCachedImagesSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCachedImagesSamples.java @@ -9,7 +9,7 @@ */ public final class LocationListCachedImagesSamples { /* - * x-ms-original-file: 2025-09-01/CachedImagesList.json + * x-ms-original-file: 2026-07-01/CachedImagesList.json */ /** * Sample code: CachedImages. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCapabilitiesSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCapabilitiesSamples.java index 3d15606e18b2..46ea25eac997 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCapabilitiesSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListCapabilitiesSamples.java @@ -9,7 +9,7 @@ */ public final class LocationListCapabilitiesSamples { /* - * x-ms-original-file: 2025-09-01/CapabilitiesList.json + * x-ms-original-file: 2026-07-01/CapabilitiesList.json */ /** * Sample code: GetCapabilities. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListUsageSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListUsageSamples.java index 6f9994a3729a..f13d030e6f5f 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListUsageSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/LocationListUsageSamples.java @@ -9,7 +9,7 @@ */ public final class LocationListUsageSamples { /* - * x-ms-original-file: 2025-09-01/ContainerGroupUsage.json + * x-ms-original-file: 2026-07-01/ContainerGroupUsage.json */ /** * Sample code: ContainerUsage. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsCreateOrUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b73d4778674d --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsCreateOrUpdateSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +import com.azure.resourcemanager.containerinstance.fluent.models.NGroupInner; +import com.azure.resourcemanager.containerinstance.models.ElasticProfile; +import com.azure.resourcemanager.containerinstance.models.NGroupUpdateMode; +import com.azure.resourcemanager.containerinstance.models.UpdateProfile; +import java.util.Arrays; + +/** + * Samples for NGroups CreateOrUpdate. + */ +public final class NGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsCreateOrUpdate.json + */ + /** + * Sample code: NGroupsCreateOrUpdate. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + nGroupsCreateOrUpdate(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getNGroups() + .createOrUpdate("demo", "demo-ngroup", + new NGroupInner().withLocation("eastus") + .withElasticProfile(new ElasticProfile().withDesiredCount(1).withMaintainDesiredCount(true)) + .withContainerGroupProfiles(Arrays.asList()) + .withUpdateProfile(new UpdateProfile().withUpdateMode(NGroupUpdateMode.MANUAL)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsDeleteSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsDeleteSamples.java new file mode 100644 index 000000000000..0ec9ee2930bb --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups Delete. + */ +public final class NGroupsDeleteSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsDelete.json + */ + /** + * Sample code: NGroupsDelete. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsDelete(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getNGroups().delete("demo", "demo-ngroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsGetByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..6ff85d02fcf1 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups GetByResourceGroup. + */ +public final class NGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsGet.json + */ + /** + * Sample code: NGroupsGet. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsGet(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getNGroups() + .getByResourceGroupWithResponse("demo", "demo-ngroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListByResourceGroupSamples.java new file mode 100644 index 000000000000..fc82672dd35a --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups ListByResourceGroup. + */ +public final class NGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsListByResourceGroup.json + */ + /** + * Sample code: NGroupsListByResourceGroup. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + nGroupsListByResourceGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getNGroups().listByResourceGroup("demo", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListSamples.java new file mode 100644 index 000000000000..f1b5a98ed0b8 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups List. + */ +public final class NGroupsListSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsList.json + */ + /** + * Sample code: NGroupsList. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsList(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getNGroups().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsRestartSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsRestartSamples.java new file mode 100644 index 000000000000..addcdaec8653 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsRestartSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups Restart. + */ +public final class NGroupsRestartSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsRestart.json + */ + /** + * Sample code: NGroupsRestart. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsRestart(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getNGroups().restart("demo", "demo-ngroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStartSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStartSamples.java new file mode 100644 index 000000000000..ad678a698858 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStartSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups Start. + */ +public final class NGroupsStartSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsStart.json + */ + /** + * Sample code: NGroupsStart. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsStart(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getNGroups().start("demo", "demo-ngroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStopSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStopSamples.java new file mode 100644 index 000000000000..a8028abebb26 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsStopSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for NGroups Stop. + */ +public final class NGroupsStopSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsStop.json + */ + /** + * Sample code: NGroupsStop. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsStop(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getNGroups().stopWithResponse("demo", "demo-ngroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsUpdateSamples.java new file mode 100644 index 000000000000..6215ae9f5985 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/NGroupsUpdateSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +import com.azure.resourcemanager.containerinstance.models.NGroupPatch; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NGroups Update. + */ +public final class NGroupsUpdateSamples { + /* + * x-ms-original-file: 2026-07-01/NGroupsUpdate.json + */ + /** + * Sample code: NGroupsUpdate. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void nGroupsUpdate(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getNGroups() + .update("demo", "demo-ngroup", new NGroupPatch().withTags(mapOf("env", "test")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/OperationsListSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/OperationsListSamples.java index 2850740b16d7..8265e4cfebef 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/OperationsListSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-09-01/OperationsList.json + * x-ms-original-file: 2026-07-01/OperationsList.json */ /** * Sample code: OperationsList. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsConnectSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsConnectSamples.java new file mode 100644 index 000000000000..0d18a4ffb5b7 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsConnectSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for SandboxGroups Connect. + */ +public final class SandboxGroupsConnectSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsConnect.json + */ + /** + * Sample code: Connect to a SandboxGroup. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + connectToASandboxGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getSandboxGroups() + .connectWithResponse("myResourceGroup", "mySandboxGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsCreateOrUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..29578684530d --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsCreateOrUpdateSamples.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +import com.azure.resourcemanager.containerinstance.fluent.models.SandboxGroupInner; +import com.azure.resourcemanager.containerinstance.models.SandboxGroupNetworkProfile; +import com.azure.resourcemanager.containerinstance.models.SandboxGroupProperties; +import com.azure.resourcemanager.containerinstance.models.SubnetReference; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SandboxGroups CreateOrUpdate. + */ +public final class SandboxGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsCreateOrUpdate.json + */ + /** + * Sample code: Create or update a SandboxGroup. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + createOrUpdateASandboxGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getSandboxGroups() + .createOrUpdate("myResourceGroup", "mySandboxGroup", new SandboxGroupInner().withLocation("eastus") + .withTags(mapOf("environment", "test")) + .withProperties(new SandboxGroupProperties().withNetworkProfile( + new SandboxGroupNetworkProfile().withSubnets(Arrays.asList(new SubnetReference().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet"))))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsDeleteSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsDeleteSamples.java new file mode 100644 index 000000000000..ba5c36fe6553 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for SandboxGroups Delete. + */ +public final class SandboxGroupsDeleteSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsDelete.json + */ + /** + * Sample code: Delete a SandboxGroup. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + deleteASandboxGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getSandboxGroups() + .delete("myResourceGroup", "mySandboxGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsGetByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..e5833688d433 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for SandboxGroups GetByResourceGroup. + */ +public final class SandboxGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsGet.json + */ + /** + * Sample code: Get a SandboxGroup. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void getASandboxGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getSandboxGroups() + .getByResourceGroupWithResponse("myResourceGroup", "mySandboxGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListByResourceGroupSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListByResourceGroupSamples.java new file mode 100644 index 000000000000..65a2714f498e --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for SandboxGroups ListByResourceGroup. + */ +public final class SandboxGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsListByResourceGroup.json + */ + /** + * Sample code: List SandboxGroups by resource group. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + listSandboxGroupsByResourceGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getSandboxGroups() + .listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListSamples.java new file mode 100644 index 000000000000..0b359bb68887 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +/** + * Samples for SandboxGroups List. + */ +public final class SandboxGroupsListSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsListBySubscription.json + */ + /** + * Sample code: List SandboxGroups by subscription. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + listSandboxGroupsBySubscription(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient().getSandboxGroups().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsUpdateSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsUpdateSamples.java new file mode 100644 index 000000000000..be6ba68428c9 --- /dev/null +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SandboxGroupsUpdateSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerinstance.generated; + +import com.azure.resourcemanager.containerinstance.models.SandboxGroupTagsUpdate; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SandboxGroups Update. + */ +public final class SandboxGroupsUpdateSamples { + /* + * x-ms-original-file: 2026-07-01/SandboxGroupsUpdate.json + */ + /** + * Sample code: Update a SandboxGroup. + * + * @param manager Entry point to ContainerInstanceManager. + */ + public static void + updateASandboxGroup(com.azure.resourcemanager.containerinstance.ContainerInstanceManager manager) { + manager.serviceClient() + .getSandboxGroups() + .update("myResourceGroup", "mySandboxGroup", + new SandboxGroupTagsUpdate().withTags(mapOf("environment", "production")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SubnetServiceAssociationLinkDeleteSamples.java b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SubnetServiceAssociationLinkDeleteSamples.java index 249443e48d22..b4ec9ae47cdc 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SubnetServiceAssociationLinkDeleteSamples.java +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/src/samples/java/com/azure/resourcemanager/containerinstance/generated/SubnetServiceAssociationLinkDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SubnetServiceAssociationLinkDeleteSamples { /* - * x-ms-original-file: 2025-09-01/SubnetServiceAssociationLinkDelete.json + * x-ms-original-file: 2026-07-01/SubnetServiceAssociationLinkDelete.json */ /** * Sample code: SubnetServiceAssociationLinkDelete. diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/tsp-location.yaml b/sdk/containerinstance/azure-resourcemanager-containerinstance/tsp-location.yaml index f9defe2a97a5..4c6189784a84 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/tsp-location.yaml +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance -commit: c20c198ed29fb0b4b8f5022ef8a07cca22905656 +commit: 04d4a73cf90f8e1be80ffc0ca7621094d3d0954b repo: Azure/azure-rest-api-specs additionalDirectories: From 0710caff57ce70147ece631c4c79337658771a99 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 13 Jul 2026 14:58:55 +0800 Subject: [PATCH 2/2] Trim 2.54.0 changelog to api-version update (no unexpected breaking changes) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b3fffb85-d710-47f5-b9ba-687c505134ca --- .../CHANGELOG.md | 191 +----------------- 1 file changed, 2 insertions(+), 189 deletions(-) diff --git a/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md index 5db6ae80cbca..cd59b878b8ce 100644 --- a/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-resourcemanager-containerinstance/CHANGELOG.md @@ -2,196 +2,9 @@ ## 2.54.0 (2026-07-10) -### Breaking Changes - -#### `models.CachedImagesListResult` was removed - -#### `models.UsageListResult` was removed - -#### `models.ContainerGroupListResult` was removed - -#### `models.CapabilitiesListResult` was removed - -#### `models.OperationListResult` was removed - -#### `models.ContainerState` was modified - -* `ContainerState()` was changed to private access - -#### `models.ContainerPropertiesInstanceView` was modified - -* `ContainerPropertiesInstanceView()` was changed to private access - -#### `models.InitContainerPropertiesDefinitionInstanceView` was modified - -* `InitContainerPropertiesDefinitionInstanceView()` was changed to private access - -#### `models.Capabilities` was modified - -* `Capabilities()` was changed to private access - -#### `models.Event` was modified - -* `Event()` was changed to private access - -#### `models.CapabilitiesCapabilities` was modified - -* `CapabilitiesCapabilities()` was changed to private access - -#### `models.OperationDisplay` was modified - -* `OperationDisplay()` was changed to private access -* `withOperation(java.lang.String)` was removed -* `withDescription(java.lang.String)` was removed -* `withProvider(java.lang.String)` was removed -* `withResource(java.lang.String)` was removed - -#### `models.ContainerGroupPropertiesInstanceView` was modified - -* `ContainerGroupPropertiesInstanceView()` was changed to private access - -#### `models.CachedImages` was modified - -* `CachedImages()` was changed to private access -* `withImage(java.lang.String)` was removed -* `withOsType(java.lang.String)` was removed - -#### `models.UsageName` was modified - -* `UsageName()` was changed to private access - -#### `models.Operation` was modified - -* `Operation()` was changed to private access -* `withProperties(java.lang.Object)` was removed -* `withName(java.lang.String)` was removed -* `withDisplay(models.OperationDisplay)` was removed -* `withOrigin(models.ContainerInstanceOperationsOrigin)` was removed - -### Features Added - -* `models.NGroupPatch` was added - -* `models.StandbyPoolProfileDefinition` was added - -* `models.LoadBalancerBackendAddressPool` was added - -* `models.CGProfilesUpdateHeaders` was added - -* `models.AzureFileShareAccessTier` was added - -* `models.UserAssignedIdentity` was added - -* `models.ApplicationGateway` was added - -* `models.IdentityAccessControl` was added - -* `models.ElasticProfile` was added - -* `models.ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy` was added - -* `models.SandboxGroupNetworkProfile` was added - -* `models.LoadBalancer` was added - -* `models.NGroupCGPropertyContainerProperties` was added - -* `models.ElasticProfileContainerGroupNamingPolicy` was added - -* `models.FileShareProperties` was added - -* `models.CGProfilesUpdateResponse` was added - -* `models.ContainerGroupProfilePatch` was added - -* `models.UpdateProfile` was added - -* `models.NGroupUpdateMode` was added - -* `models.NGroupIdentity` was added - -* `models.NGroupProvisioningState` was added - -* `models.ManagedServiceIdentityType` was added - -* `models.NGroupContainerGroupProperties` was added - -* `models.UpdateProfileRollingUpdateProfile` was added - -* `models.SandboxGroupProvisioningState` was added - -* `models.ApiEntityReference` was added - -* `models.NGroupCGPropertyContainer` was added - -* `models.ContainerGroupProfileReferenceDefinition` was added - -* `models.SecretReference` was added - -* `models.StorageProfile` was added - -* `models.NGroupCGPropertyVolume` was added - -* `models.ApplicationGatewayBackendAddressPool` was added - -* `models.CGProfilesCreateOrUpdateHeaders` was added - -* `models.IdentityAccessLevel` was added - -* `models.AzureFileShareAccessType` was added - -* `models.NetworkProfile` was added - -* `models.CGProfilesCreateOrUpdateResponse` was added - -* `models.IdentityAcls` was added - -* `models.SandboxGroupTagsUpdate` was added - -* `models.SubnetReference` was added - -* `models.ConfigMap` was added - -* `models.ManagedServiceIdentity` was added - -* `models.PlacementProfile` was added - -* `models.SandboxGroupProperties` was added - -* `models.FileShare` was added - -* `models.ContainerGroupProfileStub` was added - -#### `models.Container` was modified - -* `configMap()` was added -* `withConfigMap(models.ConfigMap)` was added - -#### `models.ImageRegistryCredential` was modified - -* `withPasswordReference(java.lang.String)` was added -* `passwordReference()` was added - -#### `models.ContainerGroupSku` was modified - -* `NOT_SPECIFIED` was added - -#### `models.Volume` was modified - -* `withSecretReference(java.util.Map)` was added -* `secretReference()` was added - -#### `models.EnvironmentVariable` was modified - -* `secureValueReference()` was added -* `withSecureValueReference(java.lang.String)` was added - -#### `models.AzureFileVolume` was modified +### Other Changes -* `storageAccountKeyReference()` was added -* `userAssignedIdentityClientId()` was added -* `withStorageAccountKeyReference(java.lang.String)` was added -* `withUserAssignedIdentityClientId(java.lang.String)` was added +- Updated `api-version` to `2026-07-01`. ## 2.53.10 (2026-05-05)