diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index 46147de5bf45..e528ee150fd8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -1,14 +1,163 @@ # Release History -## 1.5.0-beta.4 (Unreleased) +## 1.5.0-beta.4 (2026-08-26) -### Features Added +- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-07-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.ConnectionPropertiesV2BasicResource$DefinitionStages` was modified + +* `withExistingProject(java.lang.String,java.lang.String,java.lang.String)` was removed in stage 1 + +#### `models.VmPriority` was modified + +* `LOW_PRIORITY` was removed + +#### `models.AccountConnections` was modified + +* `create(java.lang.String,java.lang.String,java.lang.String)` was removed +* `update(java.lang.String,java.lang.String,java.lang.String)` was removed +* `createWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.ConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was removed +* `updateWithResponse(java.lang.String,java.lang.String,java.lang.String,models.ConnectionUpdateContent,com.azure.core.util.Context)` was removed + +#### `models.ConnectionPropertiesV2BasicResource$Definition` was modified + +* `withExistingProject(java.lang.String,java.lang.String,java.lang.String)` was removed + +#### `models.Compute$Definition` was modified + +* `withRegion(com.azure.core.management.Region)` was removed +* `withRegion(java.lang.String)` was removed + +#### `models.ProjectConnections` was modified + +* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed +* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed +* `getById(java.lang.String)` was removed +* `define(java.lang.String)` was removed +* `deleteById(java.lang.String)` was removed + +#### `models.Compute` was modified + +* `regionName()` was removed +* `location()` was removed +* `region()` was removed + +### Features Added + +* `models.ArcDeployment$UpdateStages` was added + +* `models.ArcDeploymentRuntime` was added + +* `models.ArcDeployment$Definition` was added + +* `models.ArcDeployment$DefinitionStages` was added + +* `models.ArcDeployment` was added + +* `models.ArcDeploymentUpdate` was added + +* `models.AgentHostingType` was added + +* `models.ArcDeploymentPatchKubernetesResources` was added + +* `models.ArcDeploymentVllmParameters` was added + +* `models.ArcDeploymentSkuName` was added + +* `models.ArcDeploymentProvisioningDetails` was added + +* `models.ArcDeploymentKubernetesResources` was added + +* `models.ArcDeploymentUpdateProperties` was added + +* `models.CapabilitySettings` was added + +* `models.ArcDeploymentCpuMemoryResourceRequirements` was added + +* `models.ArcDeployment$Update` was added + +* `models.ArcDeployments` was added + +* `models.ArcDeploymentComputeType` was added + +* `models.ArcDeploymentModel` was added + +* `models.AgentHostingConfiguration` was added + +* `models.ArcDeploymentProperties` was added + +* `models.ArcDeploymentPatchCpuMemoryResourceRequirements` was added + +* `models.ManagedClusterAgentHostingConfiguration` was added + +* `models.ArcDeploymentSku` was added + +* `models.ArcDeploymentResourceRequirements` was added + +#### `models.VmPriority` was modified + +* `SPOT` was added + +#### `models.AccountConnections` was modified + +* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `getById(java.lang.String)` was added +* `define(java.lang.String)` was added +* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `deleteById(java.lang.String)` was added + +#### `models.ConnectionPropertiesV2BasicResource$Definition` was modified + +* `withExistingAccount(java.lang.String,java.lang.String)` was added + +#### `CognitiveServicesManager` was modified + +* `arcDeployments()` was added + +#### `models.ComputeProperties` was modified + +* `withLocation(java.lang.String)` was added +* `location()` was added + +#### `models.ProjectProperties` was modified + +* `capabilitySettings()` was added +* `withCapabilitySettings(models.CapabilitySettings)` was added + +#### `models.DeploymentProperties` was modified + +* `contextCacheContainerId()` was added +* `withContextCacheContainerId(java.lang.String)` was added + +#### `models.ProvisioningState` was modified + +* `EXTENSION_UNREACHABLE` was added + +#### `models.ProjectConnections` was modified + +* `update(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added +* `create(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added +* `createWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was added +* `updateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.ConnectionUpdateContent,com.azure.core.util.Context)` was added + +#### `models.ContainerInstanceComputeProperties` was modified + +* `withLocation(java.lang.String)` was added + +#### `models.AccountProperties` was modified + +* `agentHostingConfigurations()` was added +* `withAgentHostingConfigurations(java.util.List)` was added +* `withCapabilitySettings(models.CapabilitySettings)` was added +* `capabilitySettings()` was added +* `a365LoggingEnabled()` was added +* `withA365LoggingEnabled(java.lang.Boolean)` was added + +#### `models.ClusterComputeProperties` was modified -### Other Changes +* `withLocation(java.lang.String)` was added ## 1.5.0-beta.3 (2026-06-26) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md index 6984bcf15139..e29ec4810a34 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md @@ -2,7 +2,7 @@ Azure Resource Manager CognitiveServices client library for Java. -This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-05-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-07-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-cognitiveservices - 1.5.0-beta.3 + 1.5.0-beta.4 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md index 2116f99d9304..26e075361620 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md @@ -50,6 +50,14 @@ - [Start](#agentdeployments_start) - [Stop](#agentdeployments_stop) +## ArcDeployments + +- [CreateOrUpdate](#arcdeployments_createorupdate) +- [Delete](#arcdeployments_delete) +- [Get](#arcdeployments_get) +- [List](#arcdeployments_list) +- [Update](#arcdeployments_update) + ## CommitmentPlans - [CreateOrUpdate](#commitmentplans_createorupdate) @@ -84,7 +92,6 @@ - [Restart](#computes_restart) - [Start](#computes_start) - [Stop](#computes_stop) -- [Update](#computes_update) ## DefenderForAISettings @@ -315,7 +322,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperti */ public final class AccountCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Account CapabilityHost. @@ -343,7 +350,7 @@ public final class AccountCapabilityHostsCreateOrUpdateSamples { */ public final class AccountCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/delete.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/delete.json */ /** * Sample code: Delete Account CapabilityHost. @@ -366,7 +373,7 @@ public final class AccountCapabilityHostsDeleteSamples { */ public final class AccountCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/get.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/get.json */ /** * Sample code: Get Account CapabilityHost. @@ -389,7 +396,7 @@ public final class AccountCapabilityHostsGetSamples { */ public final class AccountCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/list.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/list.json */ /** * Sample code: List Account CapabilityHosts. @@ -406,7 +413,6 @@ public final class AccountCapabilityHostsListSamples { ### AccountConnections_Create ```java -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -416,7 +422,7 @@ import java.time.OffsetDateTime; */ public final class AccountConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/create.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/create.json */ /** * Sample code: CreateAccountConnection. @@ -426,12 +432,12 @@ public final class AccountConnectionsCreateSamples { public static void createAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.accountConnections() - .createWithResponse("resourceGroup-1", "account-1", "connection-1", - new ConnectionPropertiesV2BasicResourceInner().withProperties( - new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")), - com.azure.core.util.Context.NONE); + .define("connection-1") + .withExistingAccount("resourceGroup-1", "account-1") + .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")) + .create(); } } ``` @@ -444,7 +450,7 @@ public final class AccountConnectionsCreateSamples { */ public final class AccountConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/delete.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/delete.json */ /** * Sample code: DeleteAccountConnection. @@ -467,7 +473,7 @@ public final class AccountConnectionsDeleteSamples { */ public final class AccountConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/get.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/get.json */ /** * Sample code: GetAccountConnection. @@ -490,7 +496,7 @@ public final class AccountConnectionsGetSamples { */ public final class AccountConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/list.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/list.json */ /** * Sample code: ListAccountConnections. @@ -512,7 +518,7 @@ public final class AccountConnectionsListSamples { import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -522,7 +528,7 @@ import java.util.Map; */ public final class AccountConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/update.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/update.json */ /** * Sample code: UpdateAccountConnection. @@ -531,16 +537,17 @@ public final class AccountConnectionsUpdateSamples { */ public static void updateAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.accountConnections() - .updateWithResponse("test-rg", "account-1", "connection-1", - new ConnectionUpdateContent().withProperties( - new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))), - com.azure.core.util.Context.NONE); + ConnectionPropertiesV2BasicResource resource = manager.accountConnections() + .getWithResponse("test-rg", "account-1", "connection-1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))) + .apply(); } // Use "Map.of" if available @@ -561,21 +568,26 @@ public final class AccountConnectionsUpdateSamples { ```java import com.azure.resourcemanager.cognitiveservices.models.AccountProperties; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.Encryption; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.KeySource; import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; +import com.azure.resourcemanager.cognitiveservices.models.ManagedClusterAgentHostingConfiguration; import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity; import com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; /** * Samples for Accounts Create. */ public final class AccountsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateAccountMin.json + * x-ms-original-file: 2026-07-15-preview/CreateAccountMin.json */ /** * Sample code: Create Account Min. @@ -595,7 +607,7 @@ public final class AccountsCreateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/CreateAccount.json + * x-ms-original-file: 2026-07-15-preview/CreateAccount.json */ /** * Sample code: Create Account. @@ -613,12 +625,63 @@ public final class AccountsCreateSamples { .withKeyVersion("fakeTokenPlaceholder") .withKeyVaultUri("fakeTokenPlaceholder")).withKeySource(KeySource.MICROSOFT_KEY_VAULT)) .withUserOwnedStorage(Arrays.asList(new UserOwnedStorage().withResourceId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount")))) + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"))) + .withCapabilitySettings(new CapabilitySettings().withDocumentStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myCosmosAccount") + .withVectorStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Search/searchServices/mySearchService") + .withBlobStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"))) .withKind("Emotion") .withSku(new Sku().withName("S0")) .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .create(); } + + /* + * x-ms-original-file: 2026-07-15-preview/CreateAccountWithAgentHostingConfiguration.json + */ + /** + * Sample code: Create a Foundry account with customer-owned AKS hosting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createAFoundryAccountWithCustomerOwnedAKSHosting( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.accounts() + .define("foundryByocAccount") + .withExistingResourceGroup("myResourceGroup") + .withRegion("West US") + .withProperties(new AccountProperties().withAgentHostingConfigurations( + Arrays.asList(new ManagedClusterAgentHostingConfiguration().withName("default") + .withHostingManagementIdentityResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/account-control-plane") + .withWorkloadIdentityResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aks-workload") + .withClusterResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/cluster1") + .withStorageAccountResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/storage1")))) + .withKind("AIServices") + .withSku(new Sku().withName("S0")) + .withIdentity(new Identity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/account-control-plane", + new UserAssignedIdentity()))) + .create(); + } + + // 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; + } } ``` @@ -630,7 +693,7 @@ public final class AccountsCreateSamples { */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteAccount.json + * x-ms-original-file: 2026-07-15-preview/DeleteAccount.json */ /** * Sample code: Delete Account. @@ -657,7 +720,7 @@ import java.util.Arrays; */ public final class AccountsEvaluateDeploymentPoliciesSamples { /* - * x-ms-original-file: 2026-05-15-preview/EvaluateDeploymentPolicies.json + * x-ms-original-file: 2026-07-15-preview/EvaluateDeploymentPolicies.json */ /** * Sample code: EvaluateDeploymentPolicies. @@ -692,7 +755,7 @@ public final class AccountsEvaluateDeploymentPoliciesSamples { */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetAccount.json + * x-ms-original-file: 2026-07-15-preview/GetAccount.json */ /** * Sample code: Get Account. @@ -714,7 +777,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsBySubscription.json + * x-ms-original-file: 2026-07-15-preview/ListAccountsBySubscription.json */ /** * Sample code: List Accounts by Subscription. @@ -736,7 +799,7 @@ public final class AccountsListSamples { */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsByResourceGroup.json + * x-ms-original-file: 2026-07-15-preview/ListAccountsByResourceGroup.json */ /** * Sample code: List Accounts by Resource Group. @@ -758,7 +821,7 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsListKeysSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListKeys.json + * x-ms-original-file: 2026-07-15-preview/ListKeys.json */ /** * Sample code: List Keys. @@ -779,7 +842,7 @@ public final class AccountsListKeysSamples { */ public final class AccountsListModelsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountModels.json + * x-ms-original-file: 2026-07-15-preview/ListAccountModels.json */ /** * Sample code: List AccountModels. @@ -800,7 +863,7 @@ public final class AccountsListModelsSamples { */ public final class AccountsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSkus.json + * x-ms-original-file: 2026-07-15-preview/ListSkus.json */ /** * Sample code: List SKUs. @@ -821,7 +884,7 @@ public final class AccountsListSkusSamples { */ public final class AccountsListUsagesSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetUsages.json + * x-ms-original-file: 2026-07-15-preview/GetUsages.json */ /** * Sample code: Get Usages. @@ -834,7 +897,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/GetUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -848,7 +911,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/GetUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -862,7 +925,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/GetUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. @@ -888,7 +951,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameter */ public final class AccountsRegenerateKeySamples { /* - * x-ms-original-file: 2026-05-15-preview/RegenerateKey.json + * x-ms-original-file: 2026-07-15-preview/RegenerateKey.json */ /** * Sample code: Regenerate Keys. @@ -914,7 +977,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateAccount.json + * x-ms-original-file: 2026-07-15-preview/UpdateAccount.json */ /** * Sample code: Update Account. @@ -942,7 +1005,7 @@ import java.util.Map; */ public final class AgentApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/createOrUpdate.json */ /** * Sample code: Create or Update Account Agent Application. @@ -983,7 +1046,7 @@ public final class AgentApplicationsCreateOrUpdateSamples { */ public final class AgentApplicationsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/delete.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/delete.json */ /** * Sample code: Delete Account Agent Application. @@ -1007,7 +1070,7 @@ public final class AgentApplicationsDeleteSamples { */ public final class AgentApplicationsDisableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/disable.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/disable.json */ /** * Sample code: Disable Agent Application. @@ -1031,7 +1094,7 @@ public final class AgentApplicationsDisableSamples { */ public final class AgentApplicationsEnableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/enable.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/enable.json */ /** * Sample code: Enable Agent Application. @@ -1055,7 +1118,7 @@ public final class AgentApplicationsEnableSamples { */ public final class AgentApplicationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/get.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/get.json */ /** * Sample code: Get Account Agent Application. @@ -1081,7 +1144,7 @@ import java.util.Arrays; */ public final class AgentApplicationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/list.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/list.json */ /** * Sample code: List Account Agent Applications. @@ -1105,7 +1168,7 @@ public final class AgentApplicationsListSamples { */ public final class AgentApplicationsListAgentsSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/listAgents.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/listAgents.json */ /** * Sample code: List Agents for Agent Application. @@ -1136,7 +1199,7 @@ import java.util.Arrays; */ public final class AgentDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/createOrUpdate.json */ /** * Sample code: Create or Update Agent Deployment. @@ -1168,7 +1231,7 @@ public final class AgentDeploymentsCreateOrUpdateSamples { */ public final class AgentDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/delete.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/delete.json */ /** * Sample code: Delete Agent Deployment. @@ -1192,7 +1255,7 @@ public final class AgentDeploymentsDeleteSamples { */ public final class AgentDeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/get.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/get.json */ /** * Sample code: Get Agent Deployment. @@ -1217,7 +1280,7 @@ public final class AgentDeploymentsGetSamples { */ public final class AgentDeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/list.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/list.json */ /** * Sample code: List Agent Deployments. @@ -1241,7 +1304,7 @@ public final class AgentDeploymentsListSamples { */ public final class AgentDeploymentsStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/start.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/start.json */ /** * Sample code: Start Agent Deployment. @@ -1265,7 +1328,7 @@ public final class AgentDeploymentsStartSamples { */ public final class AgentDeploymentsStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/stop.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/stop.json */ /** * Sample code: Stop Agent Deployment. @@ -1281,6 +1344,215 @@ public final class AgentDeploymentsStopSamples { } ``` +### ArcDeployments_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ArcDeployments CreateOrUpdate. + */ +public final class ArcDeploymentsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateArcDeployment.json + */ + /** + * Sample code: CreateOrUpdateArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + createOrUpdateArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .define("phi-3-arc") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("OpenAI").withName("phi-3-mini")) + .withExtensionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/edge-cluster/providers/Microsoft.KubernetesConfiguration/extensions/inference-operator") + .withRuntime(ArcDeploymentRuntime.ONNX) + .withCompute(ArcDeploymentComputeType.CPU) + .withReplicas(2) + .withResources(new ArcDeploymentKubernetesResources() + .withRequests(new ArcDeploymentCpuMemoryResourceRequirements().withCpu("8").withMemory("16Gi")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("8").withMemory("16Gi"))) + .withNodeSelector(mapOf("agentpool", "cpu"))) + .withSku(new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC)) + .create(); + } + + /* + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateArcDeploymentWithTemplate.json + */ + /** + * Sample code: CreateOrUpdateArcDeploymentWithTemplate. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createOrUpdateArcDeploymentWithTemplate( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .define("qwen-template-arc") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("OpenAI").withName("qwen3")) + .withExtensionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/edge-cluster/providers/Microsoft.KubernetesConfiguration/extensions/inference-operator") + .withRuntime(ArcDeploymentRuntime.VLLM) + .withCompute(ArcDeploymentComputeType.GPU) + .withDeploymentTemplate( + "azureml://registries/azureml-openai-oss/deploymenttemplates/vllm-qwen--qwen3-5-0-8b/versions/1") + .withReplicas(2) + .withResources(new ArcDeploymentKubernetesResources() + .withLimits(new ArcDeploymentResourceRequirements().withGpu(5))) + .withNodeSelector(mapOf("agentpool", "a100"))) + .withSku(new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC)) + .create(); + } + + // 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; + } +} +``` + +### ArcDeployments_Delete + +```java +/** + * Samples for ArcDeployments Delete. + */ +public final class ArcDeploymentsDeleteSamples { + /* + * x-ms-original-file: 2026-07-15-preview/DeleteArcDeployment.json + */ + /** + * Sample code: DeleteArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .delete("resourceGroupName", "accountName", "phi-3-arc", com.azure.core.util.Context.NONE); + } +} +``` + +### ArcDeployments_Get + +```java +/** + * Samples for ArcDeployments Get. + */ +public final class ArcDeploymentsGetSamples { + /* + * x-ms-original-file: 2026-07-15-preview/GetArcDeployment.json + */ + /** + * Sample code: GetArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .getWithResponse("resourceGroupName", "accountName", "qwen-template-arc", com.azure.core.util.Context.NONE); + } +} +``` + +### ArcDeployments_List + +```java +/** + * Samples for ArcDeployments List. + */ +public final class ArcDeploymentsListSamples { + /* + * x-ms-original-file: 2026-07-15-preview/ListArcDeployments.json + */ + /** + * Sample code: ListArcDeployments. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listArcDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} +``` + +### ArcDeployments_Update + +```java +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdateProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ArcDeployments Update. + */ +public final class ArcDeploymentsUpdateSamples { + /* + * x-ms-original-file: 2026-07-15-preview/UpdateArcDeployment.json + */ + /** + * Sample code: UpdateArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + ArcDeployment resource = manager.arcDeployments() + .getWithResponse("resourceGroupName", "accountName", "phi-3-arc", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ArcDeploymentUpdateProperties().withReplicas(3) + .withResources(new ArcDeploymentPatchKubernetesResources() + .withRequests( + new ArcDeploymentPatchCpuMemoryResourceRequirements().withCpu("500m").withMemory("2Gi")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("4").withMemory("16Gi"))) + .withNodeSelector(mapOf("agentpool", "cpu"))) + .apply(); + } + + // 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; + } +} +``` + ### CommitmentPlans_CreateOrUpdate ```java @@ -1294,7 +1566,7 @@ import com.azure.resourcemanager.cognitiveservices.models.HostingModel; */ public final class CommitmentPlansCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/PutCommitmentPlan.json */ /** * Sample code: PutCommitmentPlan. @@ -1322,7 +1594,7 @@ public final class CommitmentPlansCreateOrUpdateSamples { */ public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-15-preview/CreateSharedCommitmentPlanAssociation.json */ /** * Sample code: PutCommitmentPlan. @@ -1353,7 +1625,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class CommitmentPlansCreateOrUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/CreateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. @@ -1385,7 +1657,7 @@ public final class CommitmentPlansCreateOrUpdatePlanSamples { */ public final class CommitmentPlansDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/DeleteCommitmentPlan.json */ /** * Sample code: DeleteCommitmentPlan. @@ -1408,7 +1680,7 @@ public final class CommitmentPlansDeleteSamples { */ public final class CommitmentPlansDeleteAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-15-preview/DeleteSharedCommitmentPlanAssociation.json */ /** * Sample code: DeleteCommitmentPlan. @@ -1432,7 +1704,7 @@ public final class CommitmentPlansDeleteAssociationSamples { */ public final class CommitmentPlansDeletePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/DeleteSharedCommitmentPlan.json */ /** * Sample code: Delete Commitment Plan. @@ -1455,7 +1727,7 @@ public final class CommitmentPlansDeletePlanSamples { */ public final class CommitmentPlansGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/GetCommitmentPlan.json */ /** * Sample code: GetCommitmentPlan. @@ -1478,7 +1750,7 @@ public final class CommitmentPlansGetSamples { */ public final class CommitmentPlansGetAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-15-preview/GetSharedCommitmentPlanAssociation.json */ /** * Sample code: GetCommitmentPlan. @@ -1501,7 +1773,7 @@ public final class CommitmentPlansGetAssociationSamples { */ public final class CommitmentPlansGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/GetSharedCommitmentPlan.json */ /** * Sample code: Get Commitment Plan. @@ -1524,7 +1796,7 @@ public final class CommitmentPlansGetByResourceGroupSamples { */ public final class CommitmentPlansListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentPlans.json + * x-ms-original-file: 2026-07-15-preview/ListCommitmentPlans.json */ /** * Sample code: ListCommitmentPlans. @@ -1546,7 +1818,7 @@ public final class CommitmentPlansListSamples { */ public final class CommitmentPlansListAssociationsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlanAssociations.json + * x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlanAssociations.json */ /** * Sample code: ListCommitmentPlans. @@ -1569,7 +1841,7 @@ public final class CommitmentPlansListAssociationsSamples { */ public final class CommitmentPlansListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansByResourceGroup.json + * x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlansByResourceGroup.json */ /** * Sample code: List Commitment Plans by Resource Group. @@ -1591,7 +1863,7 @@ public final class CommitmentPlansListByResourceGroupSamples { */ public final class CommitmentPlansListPlansBySubscriptionSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansBySubscription.json + * x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlansBySubscription.json */ /** * Sample code: List Accounts by Subscription. @@ -1617,7 +1889,7 @@ import java.util.Map; */ public final class CommitmentPlansUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/UpdateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. @@ -1654,7 +1926,7 @@ public final class CommitmentPlansUpdatePlanSamples { */ public final class CommitmentTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentTiers.json + * x-ms-original-file: 2026-07-15-preview/ListCommitmentTiers.json */ /** * Sample code: ListCommitmentTiers. @@ -1676,7 +1948,7 @@ public final class CommitmentTiersListSamples { */ public final class ComputeOperationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetComputeOperationStatus.json + * x-ms-original-file: 2026-07-15-preview/GetComputeOperationStatus.json */ /** * Sample code: GetComputeOperationStatus. @@ -1711,7 +1983,7 @@ import java.util.Map; */ public final class ComputesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/PutContainerInstanceCompute.json */ /** * Sample code: PutContainerInstanceCompute. @@ -1723,12 +1995,12 @@ public final class ComputesCreateOrUpdateSamples { manager.computes() .define("myContainerInstance") .withExistingAccount("rgcognitiveservices", "myAccount") - .withProperties(new ContainerInstanceComputeProperties().withTargetClusterId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster") + .withProperties(new ContainerInstanceComputeProperties().withLocation("eastus") + .withTargetClusterId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster") .withImageLink("mcr.microsoft.com/azureml/curated/pytorch-gpu:latest") .withIdleTimeBeforeShutdown("PT30M") .withSshSettings(new SshSettings().withSshPublicKey("fakeTokenPlaceholder").withAdminEnabled(true))) - .withRegion("eastus") .withIdentity(new Identity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf( "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity", @@ -1737,7 +2009,7 @@ public final class ComputesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/PutCompute.json + * x-ms-original-file: 2026-07-15-preview/PutCompute.json */ /** * Sample code: PutCompute. @@ -1748,14 +2020,11 @@ public final class ComputesCreateOrUpdateSamples { manager.computes() .define("myCompute") .withExistingAccount("rgcognitiveservices", "myAccount") - .withProperties(new ClusterComputeProperties() + .withProperties(new ClusterComputeProperties().withLocation("eastus") .withPools(Arrays.asList(new Pool().withName("default") .withVmPriority(VmPriority.REGULAR) .withInstanceType("Standard_DS3_v2") - .withNodeCount(2))) - .withSubnetArmId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/default")) - .withRegion("eastus") + .withNodeCount(2)))) .withIdentity(new Identity().withType(ResourceIdentityType.NONE)) .create(); } @@ -1782,7 +2051,7 @@ public final class ComputesCreateOrUpdateSamples { */ public final class ComputesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteCompute.json + * x-ms-original-file: 2026-07-15-preview/DeleteCompute.json */ /** * Sample code: DeleteCompute. @@ -1803,7 +2072,7 @@ public final class ComputesDeleteSamples { */ public final class ComputesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/GetContainerInstanceCompute.json */ /** * Sample code: GetContainerInstanceCompute. @@ -1818,7 +2087,7 @@ public final class ComputesGetSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetCompute.json + * x-ms-original-file: 2026-07-15-preview/GetCompute.json */ /** * Sample code: GetCompute. @@ -1840,7 +2109,7 @@ public final class ComputesGetSamples { */ public final class ComputesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListComputes.json + * x-ms-original-file: 2026-07-15-preview/ListComputes.json */ /** * Sample code: ListComputes. @@ -1861,7 +2130,7 @@ public final class ComputesListSamples { */ public final class ComputesRestartSamples { /* - * x-ms-original-file: 2026-05-15-preview/RestartContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/RestartContainerInstanceCompute.json */ /** * Sample code: RestartContainerInstanceCompute. @@ -1884,7 +2153,7 @@ public final class ComputesRestartSamples { */ public final class ComputesStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/StartContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/StartContainerInstanceCompute.json */ /** * Sample code: StartContainerInstanceCompute. @@ -1907,7 +2176,7 @@ public final class ComputesStartSamples { */ public final class ComputesStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/StopContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/StopContainerInstanceCompute.json */ /** * Sample code: StopContainerInstanceCompute. @@ -1922,41 +2191,6 @@ public final class ComputesStopSamples { } ``` -### Computes_Update - -```java -import com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties; -import com.azure.resourcemanager.cognitiveservices.models.Compute; -import com.azure.resourcemanager.cognitiveservices.models.Pool; -import com.azure.resourcemanager.cognitiveservices.models.VmPriority; -import java.util.Arrays; - -/** - * Samples for Computes Update. - */ -public final class ComputesUpdateSamples { - /* - * x-ms-original-file: 2026-05-15-preview/UpdateCompute.json - */ - /** - * Sample code: UpdateCompute. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void updateCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - Compute resource = manager.computes() - .getWithResponse("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ClusterComputeProperties().withPools(Arrays.asList(new Pool().withName("default") - .withVmPriority(VmPriority.REGULAR) - .withInstanceType("Standard_DS3_v2") - .withNodeCount(4)))) - .apply(); - } -} -``` - ### DefenderForAISettings_CreateOrUpdate ```java @@ -1967,7 +2201,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt */ public final class DefenderForAISettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/PutDefenderForAISetting.json */ /** * Sample code: PutDefenderForAISetting. @@ -1993,7 +2227,7 @@ public final class DefenderForAISettingsCreateOrUpdateSamples { */ public final class DefenderForAISettingsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/GetDefenderForAISetting.json */ /** * Sample code: GetDefenderForAISetting. @@ -2016,7 +2250,7 @@ public final class DefenderForAISettingsGetSamples { */ public final class DefenderForAISettingsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/ListDefenderForAISetting.json */ /** * Sample code: ListDefenderForAISetting. @@ -2041,7 +2275,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt */ public final class DefenderForAISettingsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/UpdateDefenderForAISetting.json */ /** * Sample code: UpdateDefenderForAISetting. @@ -2066,7 +2300,7 @@ public final class DefenderForAISettingsUpdateSamples { */ public final class DeletedAccountsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeletedAccount.json + * x-ms-original-file: 2026-07-15-preview/GetDeletedAccount.json */ /** * Sample code: Get Account. @@ -2088,7 +2322,7 @@ public final class DeletedAccountsGetSamples { */ public final class DeletedAccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeletedAccountsBySubscription.json + * x-ms-original-file: 2026-07-15-preview/ListDeletedAccountsBySubscription.json */ /** * Sample code: List Deleted Accounts by Subscription. @@ -2110,7 +2344,7 @@ public final class DeletedAccountsListSamples { */ public final class DeletedAccountsPurgeSamples { /* - * x-ms-original-file: 2026-05-15-preview/PurgeDeletedAccount.json + * x-ms-original-file: 2026-07-15-preview/PurgeDeletedAccount.json */ /** * Sample code: Delete Account. @@ -2138,7 +2372,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDeployment.json + * x-ms-original-file: 2026-07-15-preview/PutDeployment.json */ /** * Sample code: PutDeployment. @@ -2158,7 +2392,7 @@ public final class DeploymentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/PutDeploymentWithSpeculativeDecoding.json + * x-ms-original-file: 2026-07-15-preview/PutDeploymentWithSpeculativeDecoding.json */ /** * Sample code: PutDeploymentWithSpeculativeDecoding. @@ -2195,7 +2429,7 @@ public final class DeploymentsCreateOrUpdateSamples { */ public final class DeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteDeployment.json + * x-ms-original-file: 2026-07-15-preview/DeleteDeployment.json */ /** * Sample code: DeleteDeployment. @@ -2217,7 +2451,7 @@ public final class DeploymentsDeleteSamples { */ public final class DeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeployment.json + * x-ms-original-file: 2026-07-15-preview/GetDeployment.json */ /** * Sample code: GetDeployment. @@ -2239,7 +2473,7 @@ public final class DeploymentsGetSamples { */ public final class DeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeployments.json + * x-ms-original-file: 2026-07-15-preview/ListDeployments.json */ /** * Sample code: ListDeployments. @@ -2260,7 +2494,7 @@ public final class DeploymentsListSamples { */ public final class DeploymentsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeploymentSkus.json + * x-ms-original-file: 2026-07-15-preview/ListDeploymentSkus.json */ /** * Sample code: ListDeploymentSkus. @@ -2283,7 +2517,7 @@ public final class DeploymentsListSkusSamples { */ public final class DeploymentsPauseSamples { /* - * x-ms-original-file: 2026-05-15-preview/PauseDeployment.json + * x-ms-original-file: 2026-07-15-preview/PauseDeployment.json */ /** * Sample code: PauseDeployment. @@ -2305,7 +2539,7 @@ public final class DeploymentsPauseSamples { */ public final class DeploymentsResumeSamples { /* - * x-ms-original-file: 2026-05-15-preview/ResumeDeployment.json + * x-ms-original-file: 2026-07-15-preview/ResumeDeployment.json */ /** * Sample code: ResumeDeployment. @@ -2330,7 +2564,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class DeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDeployment.json + * x-ms-original-file: 2026-07-15-preview/UpdateDeployment.json */ /** * Sample code: UpdateDeployment. @@ -2359,7 +2593,7 @@ import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; */ public final class EncryptionScopesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutEncryptionScope.json + * x-ms-original-file: 2026-07-15-preview/PutEncryptionScope.json */ /** * Sample code: PutEncryptionScope. @@ -2391,7 +2625,7 @@ public final class EncryptionScopesCreateOrUpdateSamples { */ public final class EncryptionScopesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteEncryptionScope.json + * x-ms-original-file: 2026-07-15-preview/DeleteEncryptionScope.json */ /** * Sample code: DeleteEncryptionScope. @@ -2414,7 +2648,7 @@ public final class EncryptionScopesDeleteSamples { */ public final class EncryptionScopesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetEncryptionScope.json + * x-ms-original-file: 2026-07-15-preview/GetEncryptionScope.json */ /** * Sample code: GetEncryptionScope. @@ -2438,7 +2672,7 @@ public final class EncryptionScopesGetSamples { */ public final class EncryptionScopesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListEncryptionScopes.json + * x-ms-original-file: 2026-07-15-preview/ListEncryptionScopes.json */ /** * Sample code: ListEncryptionScopes. @@ -2460,7 +2694,7 @@ public final class EncryptionScopesListSamples { */ public final class LocationBasedModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json */ /** * Sample code: ListLocationBasedModelCapacities Global Scope. @@ -2473,7 +2707,7 @@ public final class LocationBasedModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesClassicScope.json */ /** * Sample code: ListLocationBasedModelCapacities Classic Scope. @@ -2486,7 +2720,7 @@ public final class LocationBasedModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json */ /** * Sample code: ListLocationBasedModelCapacities DataZone Scope. @@ -2499,7 +2733,7 @@ public final class LocationBasedModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacities.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacities.json */ /** * Sample code: ListLocationBasedModelCapacities. @@ -2521,7 +2755,7 @@ public final class LocationBasedModelCapacitiesListSamples { */ public final class ManagedComputeCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeCapacities.json + * x-ms-original-file: 2026-07-15-preview/ListManagedComputeCapacities.json */ /** * Sample code: List Managed Compute Capacities. @@ -2547,7 +2781,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class ManagedComputeDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateManagedComputeDeployment.json */ /** * Sample code: CreateOrUpdateManagedComputeDeployment. @@ -2570,7 +2804,7 @@ public final class ManagedComputeDeploymentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateVmManagedComputeDeployment.json */ /** * Sample code: CreateOrUpdateVmManagedComputeDeployment. @@ -2602,7 +2836,7 @@ public final class ManagedComputeDeploymentsCreateOrUpdateSamples { */ public final class ManagedComputeDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/DeleteManagedComputeDeployment.json */ /** * Sample code: DeleteManagedComputeDeployment. @@ -2625,7 +2859,7 @@ public final class ManagedComputeDeploymentsDeleteSamples { */ public final class ManagedComputeDeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/GetVmManagedComputeDeployment.json */ /** * Sample code: GetVmManagedComputeDeployment. @@ -2639,7 +2873,7 @@ public final class ManagedComputeDeploymentsGetSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/GetManagedComputeDeployment.json */ /** * Sample code: GetManagedComputeDeployment. @@ -2662,7 +2896,7 @@ public final class ManagedComputeDeploymentsGetSamples { */ public final class ManagedComputeDeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListVmManagedComputeDeployments.json + * x-ms-original-file: 2026-07-15-preview/ListVmManagedComputeDeployments.json */ /** * Sample code: ListVmManagedComputeDeployments. @@ -2675,7 +2909,7 @@ public final class ManagedComputeDeploymentsListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeDeployments.json + * x-ms-original-file: 2026-07-15-preview/ListManagedComputeDeployments.json */ /** * Sample code: ListManagedComputeDeployments. @@ -2700,7 +2934,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class ManagedComputeDeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/UpdateVmManagedComputeDeployment.json */ /** * Sample code: UpdateVmManagedComputeDeployment. @@ -2716,7 +2950,7 @@ public final class ManagedComputeDeploymentsUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/UpdateManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/UpdateManagedComputeDeployment.json */ /** * Sample code: UpdateManagedComputeDeployment. @@ -2741,7 +2975,7 @@ public final class ManagedComputeDeploymentsUpdateSamples { */ public final class ManagedComputeUsagesOperationGroupListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeUsages.json + * x-ms-original-file: 2026-07-15-preview/ListManagedComputeUsages.json */ /** * Sample code: List Managed Compute Usages. @@ -2765,7 +2999,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisio */ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/provisionManagedNetwork.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/provisionManagedNetwork.json */ /** * Sample code: Provision ManagedNetwork. @@ -2789,7 +3023,7 @@ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { */ public final class ManagedNetworkSettingsOperationDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/deleteManagedNetworkV2.json */ /** * Sample code: Delete ManagedNetworkSettings. @@ -2812,7 +3046,7 @@ public final class ManagedNetworkSettingsOperationDeleteSamples { */ public final class ManagedNetworkSettingsOperationGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/getManagedNetworkV2.json */ /** * Sample code: Get ManagedNetworkSettings. @@ -2835,7 +3069,7 @@ public final class ManagedNetworkSettingsOperationGetSamples { */ public final class ManagedNetworkSettingsOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/listManagedNetworkV2.json */ /** * Sample code: List ManagedNetworkSettings. @@ -2868,7 +3102,7 @@ import java.util.Map; */ public final class ManagedNetworkSettingsOperationPatchSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/patchManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/patchManagedNetworkV2.json */ /** * Sample code: Patch ManagedNetworkSettings. @@ -2921,7 +3155,7 @@ import java.util.Map; */ public final class ManagedNetworkSettingsOperationPutSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json */ /** * Sample code: Put ManagedNetworkSettings. @@ -2964,7 +3198,7 @@ public final class ManagedNetworkSettingsOperationPutSamples { */ public final class ModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacities.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacities.json */ /** * Sample code: ListModelCapacities. @@ -2977,7 +3211,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesDataZoneScope.json */ /** * Sample code: ListModelCapacities DataZone Scope. @@ -2990,7 +3224,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesGlobalScope.json */ /** * Sample code: ListModelCapacities Global Scope. @@ -3003,7 +3237,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesClassicScope.json */ /** * Sample code: ListModelCapacities Classic Scope. @@ -3025,7 +3259,7 @@ public final class ModelCapacitiesListSamples { */ public final class ModelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationModels.json + * x-ms-original-file: 2026-07-15-preview/ListLocationModels.json */ /** * Sample code: ListLocationModels. @@ -3047,7 +3281,7 @@ public final class ModelsListSamples { */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-15-preview/GetNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: GetNetworkSecurityPerimeterConfigurations. @@ -3071,7 +3305,7 @@ public final class NetworkSecurityPerimeterConfigurationsGetSamples { */ public final class NetworkSecurityPerimeterConfigurationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-15-preview/ListNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ListNetworkSecurityPerimeterConfigurations. @@ -3094,7 +3328,7 @@ public final class NetworkSecurityPerimeterConfigurationsListSamples { */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: 2026-05-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. @@ -3117,7 +3351,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetOperations.json + * x-ms-original-file: 2026-07-15-preview/GetOperations.json */ /** * Sample code: Get Operations. @@ -3142,7 +3376,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RuleStatus; */ public final class OutboundRuleCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/createOrUpdateRuleV2.json */ /** * Sample code: CreateOrUpdate OutboundRule. @@ -3170,7 +3404,7 @@ public final class OutboundRuleCreateOrUpdateSamples { */ public final class OutboundRuleDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/deleteRuleV2.json */ /** * Sample code: Delete OutboundRule. @@ -3193,7 +3427,7 @@ public final class OutboundRuleDeleteSamples { */ public final class OutboundRuleGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/getRuleV2.json */ /** * Sample code: Get OutboundRule. @@ -3216,7 +3450,7 @@ public final class OutboundRuleGetSamples { */ public final class OutboundRuleListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/listRuleV2.json */ /** * Sample code: List OutboundRules. @@ -3246,7 +3480,7 @@ import java.util.Map; */ public final class OutboundRulesOperationPostSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/postOutboundRulesV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/postOutboundRulesV2.json */ /** * Sample code: Post OutboundRules. @@ -3291,7 +3525,7 @@ import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConn */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-15-preview/PutPrivateEndpointConnection.json */ /** * Sample code: PutPrivateEndpointConnection. @@ -3319,7 +3553,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-07-15-preview/DeletePrivateEndpointConnection.json */ /** * Sample code: DeletePrivateEndpointConnection. @@ -3342,7 +3576,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-15-preview/GetPrivateEndpointConnection.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -3365,7 +3599,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateEndpointConnections.json + * x-ms-original-file: 2026-07-15-preview/ListPrivateEndpointConnections.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -3387,7 +3621,7 @@ public final class PrivateEndpointConnectionsListSamples { */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateLinkResources.json + * x-ms-original-file: 2026-07-15-preview/ListPrivateLinkResources.json */ /** * Sample code: ListPrivateLinkResources. @@ -3412,7 +3646,7 @@ import java.util.Arrays; */ public final class ProjectCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Project CapabilityHost. @@ -3442,7 +3676,7 @@ public final class ProjectCapabilityHostsCreateOrUpdateSamples { */ public final class ProjectCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/delete.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/delete.json */ /** * Sample code: Delete Project CapabilityHost. @@ -3465,7 +3699,7 @@ public final class ProjectCapabilityHostsDeleteSamples { */ public final class ProjectCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/get.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/get.json */ /** * Sample code: Get Project CapabilityHost. @@ -3489,7 +3723,7 @@ public final class ProjectCapabilityHostsGetSamples { */ public final class ProjectCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/list.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/list.json */ /** * Sample code: List Project CapabilityHosts. @@ -3506,6 +3740,7 @@ public final class ProjectCapabilityHostsListSamples { ### ProjectConnections_Create ```java +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -3515,7 +3750,7 @@ import java.time.OffsetDateTime; */ public final class ProjectConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/create.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/create.json */ /** * Sample code: CreateProjectConnection. @@ -3525,12 +3760,12 @@ public final class ProjectConnectionsCreateSamples { public static void createProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.projectConnections() - .define("connection-1") - .withExistingProject("resourceGroup-1", "account-1", "project-1") - .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")) - .create(); + .createWithResponse("resourceGroup-1", "account-1", "project-1", "connection-1", + new ConnectionPropertiesV2BasicResourceInner().withProperties( + new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")), + com.azure.core.util.Context.NONE); } } ``` @@ -3543,7 +3778,7 @@ public final class ProjectConnectionsCreateSamples { */ public final class ProjectConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/delete.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/delete.json */ /** * Sample code: DeleteProjectConnection. @@ -3567,7 +3802,7 @@ public final class ProjectConnectionsDeleteSamples { */ public final class ProjectConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/get.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/get.json */ /** * Sample code: GetProjectConnection. @@ -3591,7 +3826,7 @@ public final class ProjectConnectionsGetSamples { */ public final class ProjectConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/list.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/list.json */ /** * Sample code: ListProjectConnection. @@ -3613,7 +3848,7 @@ public final class ProjectConnectionsListSamples { import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -3623,7 +3858,7 @@ import java.util.Map; */ public final class ProjectConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/update.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/update.json */ /** * Sample code: UpdateProjectConnection. @@ -3632,17 +3867,16 @@ public final class ProjectConnectionsUpdateSamples { */ public static void updateProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - ConnectionPropertiesV2BasicResource resource = manager.projectConnections() - .getWithResponse("test-rg", "account-1", "project-1", "connection-1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))) - .apply(); + manager.projectConnections() + .updateWithResponse("test-rg", "account-1", "project-1", "connection-1", + new ConnectionUpdateContent().withProperties( + new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available @@ -3662,6 +3896,7 @@ public final class ProjectConnectionsUpdateSamples { ### Projects_Create ```java +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; @@ -3671,7 +3906,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; */ public final class ProjectsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateProjectMin.json + * x-ms-original-file: 2026-07-15-preview/CreateProjectMin.json */ /** * Sample code: Create Project Min. @@ -3689,7 +3924,7 @@ public final class ProjectsCreateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/CreateProject.json + * x-ms-original-file: 2026-07-15-preview/CreateProject.json */ /** * Sample code: Create Project. @@ -3701,8 +3936,12 @@ public final class ProjectsCreateSamples { .define("testProject1") .withExistingAccount("myResourceGroup", "testCreate1") .withRegion("West US") - .withProperties( - new ProjectProperties().withDisplayName("p1").withDescription("Description of this project")) + .withProperties(new ProjectProperties().withDisplayName("p1") + .withDescription("Description of this project") + .withCapabilitySettings(new CapabilitySettings().withDocumentStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myProjectCosmosAccount") + .withVectorStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Search/searchServices/myProjectSearchService"))) .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .create(); } @@ -3717,7 +3956,7 @@ public final class ProjectsCreateSamples { */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteProject.json + * x-ms-original-file: 2026-07-15-preview/DeleteProject.json */ /** * Sample code: Delete Project. @@ -3738,7 +3977,7 @@ public final class ProjectsDeleteSamples { */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetProject.json + * x-ms-original-file: 2026-07-15-preview/GetProject.json */ /** * Sample code: Get Project. @@ -3760,7 +3999,7 @@ public final class ProjectsGetSamples { */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListProjects.json + * x-ms-original-file: 2026-07-15-preview/ListProjects.json */ /** * Sample code: List Project. @@ -3784,7 +4023,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateProjects.json + * x-ms-original-file: 2026-07-15-preview/UpdateProjects.json */ /** * Sample code: Update Project. @@ -3811,7 +4050,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy; */ public final class QuotaTiersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateQuotaTier.json + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. @@ -3836,7 +4075,7 @@ public final class QuotaTiersCreateOrUpdateSamples { */ public final class QuotaTiersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetQuotaTier.json + * x-ms-original-file: 2026-07-15-preview/GetQuotaTier.json */ /** * Sample code: Get the Quota Tier information for a subscription. @@ -3858,7 +4097,7 @@ public final class QuotaTiersGetSamples { */ public final class QuotaTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListQuotaTiers.json + * x-ms-original-file: 2026-07-15-preview/ListQuotaTiers.json */ /** * Sample code: List the Quota Tier for a subscription. @@ -3884,7 +4123,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy; */ public final class QuotaTiersUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateQuotaTier.json + * x-ms-original-file: 2026-07-15-preview/UpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. @@ -3914,7 +4153,7 @@ import java.util.Arrays; */ public final class RaiBlocklistItemsBatchAddSamples { /* - * x-ms-original-file: 2026-05-15-preview/AddRaiBlocklistItems.json + * x-ms-original-file: 2026-07-15-preview/AddRaiBlocklistItems.json */ /** * Sample code: AddRaiBlocklistItems. @@ -3946,7 +4185,7 @@ import java.util.Arrays; */ public final class RaiBlocklistItemsBatchDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItems.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklistItems.json */ /** * Sample code: DeleteRaiBlocklistItems. @@ -3972,7 +4211,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProper */ public final class RaiBlocklistItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklistItem.json + * x-ms-original-file: 2026-07-15-preview/PutRaiBlocklistItem.json */ /** * Sample code: PutRaiBlocklistItem. @@ -3998,7 +4237,7 @@ public final class RaiBlocklistItemsCreateOrUpdateSamples { */ public final class RaiBlocklistItemsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItem.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklistItem.json */ /** * Sample code: DeleteRaiBlocklistItem. @@ -4022,7 +4261,7 @@ public final class RaiBlocklistItemsDeleteSamples { */ public final class RaiBlocklistItemsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklistItem.json + * x-ms-original-file: 2026-07-15-preview/GetRaiBlocklistItem.json */ /** * Sample code: GetRaiBlocklistItem. @@ -4046,7 +4285,7 @@ public final class RaiBlocklistItemsGetSamples { */ public final class RaiBlocklistItemsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklistItems.json + * x-ms-original-file: 2026-07-15-preview/ListBlocklistItems.json */ /** * Sample code: ListBlocklistItems. @@ -4071,7 +4310,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties */ public final class RaiBlocklistsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklist.json + * x-ms-original-file: 2026-07-15-preview/PutRaiBlocklist.json */ /** * Sample code: PutRaiBlocklist. @@ -4096,7 +4335,7 @@ public final class RaiBlocklistsCreateOrUpdateSamples { */ public final class RaiBlocklistsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklist.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklist.json */ /** * Sample code: DeleteRaiBlocklist. @@ -4119,7 +4358,7 @@ public final class RaiBlocklistsDeleteSamples { */ public final class RaiBlocklistsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklist.json + * x-ms-original-file: 2026-07-15-preview/GetRaiBlocklist.json */ /** * Sample code: GetRaiBlocklist. @@ -4141,7 +4380,7 @@ public final class RaiBlocklistsGetSamples { */ public final class RaiBlocklistsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklists.json + * x-ms-original-file: 2026-07-15-preview/ListBlocklists.json */ /** * Sample code: ListBlocklists. @@ -4162,7 +4401,7 @@ public final class RaiBlocklistsListSamples { */ public final class RaiContentFiltersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiContentFilter.json + * x-ms-original-file: 2026-07-15-preview/GetRaiContentFilter.json */ /** * Sample code: GetRaiContentFilters. @@ -4184,7 +4423,7 @@ public final class RaiContentFiltersGetSamples { */ public final class RaiContentFiltersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiContentFilters.json + * x-ms-original-file: 2026-07-15-preview/ListRaiContentFilters.json */ /** * Sample code: ListRaiContentFilters. @@ -4209,7 +4448,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvi */ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/PutRaiExternalSafetyProvider.json */ /** * Sample code: PutRaiExternalSafetyProvider. @@ -4240,7 +4479,7 @@ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { */ public final class RaiExternalSafetyProviderDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiExternalSafetyProvider.json */ /** * Sample code: DeleteRaiTopic. @@ -4261,7 +4500,7 @@ public final class RaiExternalSafetyProviderDeleteSamples { */ public final class RaiExternalSafetyProviderGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/GetRaiExternalSafetyProvider.json */ /** * Sample code: GetRaiExternalSafetyProvider. @@ -4283,7 +4522,7 @@ public final class RaiExternalSafetyProviderGetSamples { */ public final class RaiExternalSafetyProvidersOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiExternalSafetyProviders.json + * x-ms-original-file: 2026-07-15-preview/ListRaiExternalSafetyProviders.json */ /** * Sample code: ListRaiExternalSafetyProviders. @@ -4326,7 +4565,7 @@ import java.util.Arrays; */ public final class RaiPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/PutRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -4400,7 +4639,7 @@ public final class RaiPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicyWithEgress.json + * x-ms-original-file: 2026-07-15-preview/PutRaiPolicyWithEgress.json */ /** * Sample code: PutRaiPolicyWithEgress. @@ -4413,6 +4652,7 @@ public final class RaiPoliciesCreateOrUpdateSamples { .define("egress-baseline") .withExistingAccount("resourceGroupName", "accountName") .withProperties(new RaiPolicyProperties().withBasePolicyName("Microsoft.Default") + .withContentFilters(Arrays.asList()) .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) .withDefaultAction(RaiEgressDefaultAction.DENY) .withDescription("Corporate baseline egress policy for sandboxed agents") @@ -4459,7 +4699,7 @@ public final class RaiPoliciesCreateOrUpdateSamples { */ public final class RaiPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. @@ -4481,7 +4721,7 @@ public final class RaiPoliciesDeleteSamples { */ public final class RaiPoliciesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/GetRaiPolicy.json */ /** * Sample code: GetRaiPolicy. @@ -4503,7 +4743,7 @@ public final class RaiPoliciesGetSamples { */ public final class RaiPoliciesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiPolicies.json + * x-ms-original-file: 2026-07-15-preview/ListRaiPolicies.json */ /** * Sample code: ListRaiPolicies. @@ -4531,7 +4771,7 @@ import java.util.Map; */ public final class RaiToolLabelsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiToolLabel.json + * x-ms-original-file: 2026-07-15-preview/PutRaiToolLabel.json */ /** * Sample code: PutRaiToolLabel. @@ -4575,7 +4815,7 @@ public final class RaiToolLabelsCreateOrUpdateSamples { */ public final class RaiToolLabelsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiToolLabel.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiToolLabel.json */ /** * Sample code: DeleteRaiToolLabel. @@ -4598,7 +4838,7 @@ public final class RaiToolLabelsDeleteSamples { */ public final class RaiToolLabelsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiToolLabel.json + * x-ms-original-file: 2026-07-15-preview/GetRaiToolLabel.json */ /** * Sample code: GetRaiToolLabel. @@ -4620,7 +4860,7 @@ public final class RaiToolLabelsGetSamples { */ public final class RaiToolLabelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiToolLabels.json + * x-ms-original-file: 2026-07-15-preview/ListRaiToolLabels.json */ /** * Sample code: ListRaiToolLabels. @@ -4643,7 +4883,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties; */ public final class RaiTopicsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiTopic.json + * x-ms-original-file: 2026-07-15-preview/PutRaiTopic.json */ /** * Sample code: PutRaiTopic. @@ -4670,7 +4910,7 @@ public final class RaiTopicsCreateOrUpdateSamples { */ public final class RaiTopicsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiTopic.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiTopic.json */ /** * Sample code: DeleteRaiTopic. @@ -4692,7 +4932,7 @@ public final class RaiTopicsDeleteSamples { */ public final class RaiTopicsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiTopic.json + * x-ms-original-file: 2026-07-15-preview/GetRaiTopic.json */ /** * Sample code: GetRaiTopic. @@ -4714,7 +4954,7 @@ public final class RaiTopicsGetSamples { */ public final class RaiTopicsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiTopics.json + * x-ms-original-file: 2026-07-15-preview/ListRaiTopics.json */ /** * Sample code: ListRaiTopics. @@ -4741,7 +4981,7 @@ import java.util.Arrays; */ public final class ResourceProviderCalculateModelCapacitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CalculateModelCapacity.json + * x-ms-original-file: 2026-07-15-preview/CalculateModelCapacity.json */ /** * Sample code: Calculate Model Capacity. @@ -4776,7 +5016,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilit */ public final class ResourceProviderCheckDomainAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckDomainAvailability.json + * x-ms-original-file: 2026-07-15-preview/CheckDomainAvailability.json */ /** * Sample code: Check SKU Availability. @@ -4805,7 +5045,7 @@ import java.util.Arrays; */ public final class ResourceProviderCheckSkuAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckSkuAvailability.json + * x-ms-original-file: 2026-07-15-preview/CheckSkuAvailability.json */ /** * Sample code: Check SKU Availability. @@ -4832,7 +5072,7 @@ public final class ResourceProviderCheckSkuAvailabilitySamples { */ public final class ResourceSkusListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSkus.json + * x-ms-original-file: 2026-07-15-preview/GetSkus.json */ /** * Sample code: Regenerate Keys. @@ -4861,7 +5101,7 @@ import java.util.Arrays; */ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/PutSubscriptionRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -4944,7 +5184,7 @@ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { */ public final class SubscriptionRaiPolicyDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/DeleteSubscriptionRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. @@ -4965,7 +5205,7 @@ public final class SubscriptionRaiPolicyDeleteSamples { */ public final class SubscriptionRaiPolicyGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/GetSubscriptionRaiPolicy.json */ /** * Sample code: GetRaiPolicy. @@ -4988,7 +5228,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvi */ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/TestRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/TestRaiExternalSafetyProvider.json */ /** * Sample code: TestRaiExternalSafetyProvider. @@ -5021,7 +5261,7 @@ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { */ public final class UsagesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListUsages.json + * x-ms-original-file: 2026-07-15-preview/ListUsages.json */ /** * Sample code: Get Usages. @@ -5033,7 +5273,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/ListUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -5046,7 +5286,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/ListUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -5059,7 +5299,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/ListUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. @@ -5089,7 +5329,7 @@ import java.util.Map; */ public final class WorkbenchesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutWorkbench.json + * x-ms-original-file: 2026-07-15-preview/PutWorkbench.json */ /** * Sample code: PutWorkbench. @@ -5136,7 +5376,7 @@ public final class WorkbenchesCreateOrUpdateSamples { */ public final class WorkbenchesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteWorkbench.json + * x-ms-original-file: 2026-07-15-preview/DeleteWorkbench.json */ /** * Sample code: DeleteWorkbench. @@ -5158,7 +5398,7 @@ public final class WorkbenchesDeleteSamples { */ public final class WorkbenchesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetWorkbench.json + * x-ms-original-file: 2026-07-15-preview/GetWorkbench.json */ /** * Sample code: GetWorkbench. @@ -5181,7 +5421,7 @@ public final class WorkbenchesGetSamples { */ public final class WorkbenchesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListWorkbenches.json + * x-ms-original-file: 2026-07-15-preview/ListWorkbenches.json */ /** * Sample code: ListWorkbenches. @@ -5202,7 +5442,7 @@ public final class WorkbenchesListSamples { */ public final class WorkbenchesRestartSamples { /* - * x-ms-original-file: 2026-05-15-preview/RestartWorkbench.json + * x-ms-original-file: 2026-07-15-preview/RestartWorkbench.json */ /** * Sample code: RestartWorkbench. @@ -5224,7 +5464,7 @@ public final class WorkbenchesRestartSamples { */ public final class WorkbenchesStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/StartWorkbench.json + * x-ms-original-file: 2026-07-15-preview/StartWorkbench.json */ /** * Sample code: StartWorkbench. @@ -5246,7 +5486,7 @@ public final class WorkbenchesStartSamples { */ public final class WorkbenchesStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/StopWorkbench.json + * x-ms-original-file: 2026-07-15-preview/StopWorkbench.json */ /** * Sample code: StopWorkbench. @@ -5274,7 +5514,7 @@ import java.util.Map; */ public final class WorkbenchesUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateWorkbench.json + * x-ms-original-file: 2026-07-15-preview/UpdateWorkbench.json */ /** * Sample code: UpdateWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml index 6e3aa607b80c..5f512bc8d174 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for CognitiveServices Management - This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package api-version 2026-05-15-preview. + This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package api-version 2026-07-15-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java index 43a40fd85e12..f6a97fdfe1a4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java @@ -30,6 +30,7 @@ import com.azure.resourcemanager.cognitiveservices.implementation.AccountsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.AgentApplicationsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.AgentDeploymentsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.ArcDeploymentsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.CognitiveServicesManagementClientBuilder; import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansImpl; import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersImpl; @@ -76,6 +77,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Accounts; import com.azure.resourcemanager.cognitiveservices.models.AgentApplications; import com.azure.resourcemanager.cognitiveservices.models.AgentDeployments; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployments; import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlans; import com.azure.resourcemanager.cognitiveservices.models.CommitmentTiers; import com.azure.resourcemanager.cognitiveservices.models.ComputeOperations; @@ -171,6 +173,8 @@ public final class CognitiveServicesManager { private QuotaTiers quotaTiers; + private ArcDeployments arcDeployments; + private AgentApplications agentApplications; private ManagedComputeDeployments managedComputeDeployments; @@ -654,7 +658,7 @@ public Projects projects() { } /** - * Gets the resource collection API of ProjectConnections. It manages ConnectionPropertiesV2BasicResource. + * Gets the resource collection API of ProjectConnections. * * @return Resource collection API of ProjectConnections. */ @@ -690,6 +694,18 @@ public QuotaTiers quotaTiers() { return quotaTiers; } + /** + * Gets the resource collection API of ArcDeployments. It manages ArcDeployment. + * + * @return Resource collection API of ArcDeployments. + */ + public ArcDeployments arcDeployments() { + if (this.arcDeployments == null) { + this.arcDeployments = new ArcDeploymentsImpl(clientObject.getArcDeployments(), this); + } + return arcDeployments; + } + /** * Gets the resource collection API of AgentApplications. It manages AgentApplication. * @@ -829,7 +845,7 @@ public RaiExternalSafetyProvidersOperations raiExternalSafetyProvidersOperations } /** - * Gets the resource collection API of AccountConnections. + * Gets the resource collection API of AccountConnections. It manages ConnectionPropertiesV2BasicResource. * * @return Resource collection API of AccountConnections. */ diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ArcDeploymentsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ArcDeploymentsClient.java new file mode 100644 index 000000000000..1fd18f6d18d5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ArcDeploymentsClient.java @@ -0,0 +1,286 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdate; + +/** + * An instance of this class provides access to all the operations defined in ArcDeploymentsClient. + */ +public interface ArcDeploymentsClient { + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String deploymentName, + Context context); + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ArcDeploymentInner get(String resourceGroupName, String accountName, String deploymentName); + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ArcDeploymentInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentInner resource); + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ArcDeploymentInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentInner resource, Context context); + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ArcDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentInner resource); + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ArcDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentInner resource, Context context); + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ArcDeploymentInner> beginUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentUpdate properties); + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ArcDeploymentInner> beginUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentUpdate properties, Context context); + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ArcDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties); + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ArcDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties, Context context); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName, + Context context); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName, Context context); + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java index a4627997b782..a19c56c75f8a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java @@ -193,6 +193,13 @@ public interface CognitiveServicesManagementClient { */ QuotaTiersClient getQuotaTiers(); + /** + * Gets the ArcDeploymentsClient object to access its operations. + * + * @return the ArcDeploymentsClient object. + */ + ArcDeploymentsClient getArcDeployments(); + /** * Gets the AgentApplicationsClient object to access its operations. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java index f10d17f244bc..aa60289bcfa1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java @@ -57,7 +57,7 @@ Response getWithResponse(String resourceGroupName, String accountN * @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 cognitive Services compute resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, String accountName, @@ -74,7 +74,7 @@ SyncPoller, ComputeInner> beginCreateOrUpdate(String re * @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 cognitive Services compute resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, String accountName, @@ -90,7 +90,7 @@ SyncPoller, ComputeInner> beginCreateOrUpdate(String re * @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 cognitive Services compute resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, @@ -107,77 +107,12 @@ ComputeInner createOrUpdate(String resourceGroupName, String accountName, String * @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 cognitive Services compute resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, ComputeInner resource, Context context); - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ComputeInner> beginUpdate(String resourceGroupName, String accountName, - String computeName, ComputeInner properties); - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ComputeInner> beginUpdate(String resourceGroupName, String accountName, - String computeName, ComputeInner properties, Context context); - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ComputeInner update(String resourceGroupName, String accountName, String computeName, ComputeInner properties); - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ComputeInner update(String resourceGroupName, String accountName, String computeName, ComputeInner properties, - Context context); - /** * Deletes the specified compute associated with the Cognitive Services account. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ArcDeploymentInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ArcDeploymentInner.java new file mode 100644 index 000000000000..459ba30157b0 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ArcDeploymentInner.java @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import java.io.IOException; + +/** + * Cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ +@Fluent +public final class ArcDeploymentInner extends ProxyResource { + /* + * Properties of the Cognitive Services Arc deployment. + */ + private ArcDeploymentProperties properties; + + /* + * The Arc deployment SKU. Only the SKU name is required for Arc deployments. + */ + private ArcDeploymentSku sku; + + /* + * Resource Etag. + */ + private String etag; + + /* + * 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 ArcDeploymentInner class. + */ + public ArcDeploymentInner() { + } + + /** + * Get the properties property: Properties of the Cognitive Services Arc deployment. + * + * @return the properties value. + */ + public ArcDeploymentProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of the Cognitive Services Arc deployment. + * + * @param properties the properties value to set. + * @return the ArcDeploymentInner object itself. + */ + public ArcDeploymentInner withProperties(ArcDeploymentProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the sku property: The Arc deployment SKU. Only the SKU name is required for Arc deployments. + * + * @return the sku value. + */ + public ArcDeploymentSku sku() { + return this.sku; + } + + /** + * Set the sku property: The Arc deployment SKU. Only the SKU name is required for Arc deployments. + * + * @param sku the sku value to set. + * @return the ArcDeploymentInner object itself. + */ + public ArcDeploymentInner withSku(ArcDeploymentSku sku) { + this.sku = sku; + return this; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * 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 JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeJsonField("sku", this.sku); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentInner 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 ArcDeploymentInner. + */ + public static ArcDeploymentInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentInner deserializedArcDeploymentInner = new ArcDeploymentInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedArcDeploymentInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedArcDeploymentInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedArcDeploymentInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedArcDeploymentInner.properties = ArcDeploymentProperties.fromJson(reader); + } else if ("sku".equals(fieldName)) { + deserializedArcDeploymentInner.sku = ArcDeploymentSku.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedArcDeploymentInner.etag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedArcDeploymentInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java index 6bdd7649390d..db792a492799 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java @@ -31,11 +31,6 @@ public final class ComputeInner extends ProxyResource { */ private String etag; - /* - * The location of the compute resource. - */ - private String location; - /* * Resource tags. */ @@ -108,26 +103,6 @@ public String etag() { return this.etag; } - /** - * Get the location property: The location of the compute resource. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The location of the compute resource. - * - * @param location the location value to set. - * @return the ComputeInner object itself. - */ - public ComputeInner withLocation(String location) { - this.location = location; - return this; - } - /** * Get the tags property: Resource tags. * @@ -234,7 +209,6 @@ public String id() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("properties", this.properties); - jsonWriter.writeStringField("location", this.location); jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("kind", this.kind); jsonWriter.writeJsonField("identity", this.identity); @@ -267,8 +241,6 @@ public static ComputeInner fromJson(JsonReader jsonReader) throws IOException { deserializedComputeInner.properties = ComputeProperties.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedComputeInner.etag = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedComputeInner.location = reader.getString(); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedComputeInner.tags = tags; diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java index 1a0fdff296a1..3d8a25da368c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.AccountConnections; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; public final class AccountConnectionsImpl implements AccountConnections { private static final ClientLogger LOGGER = new ClientLogger(AccountConnectionsImpl.class); @@ -47,45 +46,6 @@ public ConnectionPropertiesV2BasicResource get(String resourceGroupName, String } } - public Response createWithResponse(String resourceGroupName, - String accountName, String connectionName, ConnectionPropertiesV2BasicResourceInner connection, - Context context) { - Response inner = this.serviceClient() - .createWithResponse(resourceGroupName, accountName, connectionName, connection, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); - } - - public ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, - String connectionName) { - ConnectionPropertiesV2BasicResourceInner inner - = this.serviceClient().create(resourceGroupName, accountName, connectionName); - if (inner != null) { - return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response updateWithResponse(String resourceGroupName, - String accountName, String connectionName, ConnectionUpdateContent connection, Context context) { - Response inner = this.serviceClient() - .updateWithResponse(resourceGroupName, accountName, connectionName, connection, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); - } - - public ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, - String connectionName) { - ConnectionPropertiesV2BasicResourceInner inner - = this.serviceClient().update(resourceGroupName, accountName, connectionName); - if (inner != null) { - return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, connectionName, context); @@ -110,6 +70,82 @@ public PagedIterable list(String resourceGr inner1 -> new ConnectionPropertiesV2BasicResourceImpl(inner1, this.manager())); } + public ConnectionPropertiesV2BasicResource getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, connectionName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, connectionName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + this.deleteWithResponse(resourceGroupName, accountName, connectionName, Context.NONE); + } + + public Response deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.deleteWithResponse(resourceGroupName, accountName, connectionName, context); + } + private AccountConnectionsClient serviceClient() { return this.innerClient; } @@ -117,4 +153,8 @@ private AccountConnectionsClient serviceClient() { private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { return this.serviceManager; } + + public ConnectionPropertiesV2BasicResourceImpl define(String name) { + return new ConnectionPropertiesV2BasicResourceImpl(name, this.manager()); + } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentImpl.java new file mode 100644 index 000000000000..02893e6f2163 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentImpl.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdate; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdateProperties; + +public final class ArcDeploymentImpl implements ArcDeployment, ArcDeployment.Definition, ArcDeployment.Update { + private ArcDeploymentInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ArcDeploymentProperties properties() { + return this.innerModel().properties(); + } + + public ArcDeploymentSku sku() { + return this.innerModel().sku(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public ArcDeploymentInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String deploymentName; + + private ArcDeploymentUpdate updateProperties; + + public ArcDeploymentImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public ArcDeployment create() { + this.innerObject = serviceManager.serviceClient() + .getArcDeployments() + .createOrUpdate(resourceGroupName, accountName, deploymentName, this.innerModel(), Context.NONE); + return this; + } + + public ArcDeployment create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getArcDeployments() + .createOrUpdate(resourceGroupName, accountName, deploymentName, this.innerModel(), context); + return this; + } + + ArcDeploymentImpl(String name, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new ArcDeploymentInner(); + this.serviceManager = serviceManager; + this.deploymentName = name; + } + + public ArcDeploymentImpl update() { + this.updateProperties = new ArcDeploymentUpdate(); + return this; + } + + public ArcDeployment apply() { + this.innerObject = serviceManager.serviceClient() + .getArcDeployments() + .update(resourceGroupName, accountName, deploymentName, updateProperties, Context.NONE); + return this; + } + + public ArcDeployment apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getArcDeployments() + .update(resourceGroupName, accountName, deploymentName, updateProperties, context); + return this; + } + + ArcDeploymentImpl(ArcDeploymentInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); + this.deploymentName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "arcDeployments"); + } + + public ArcDeployment refresh() { + this.innerObject = serviceManager.serviceClient() + .getArcDeployments() + .getWithResponse(resourceGroupName, accountName, deploymentName, Context.NONE) + .getValue(); + return this; + } + + public ArcDeployment refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getArcDeployments() + .getWithResponse(resourceGroupName, accountName, deploymentName, context) + .getValue(); + return this; + } + + public ArcDeploymentImpl withProperties(ArcDeploymentProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public ArcDeploymentImpl withSku(ArcDeploymentSku sku) { + this.innerModel().withSku(sku); + return this; + } + + public ArcDeploymentImpl withProperties(ArcDeploymentUpdateProperties properties) { + this.updateProperties.withProperties(properties); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsClientImpl.java new file mode 100644 index 000000000000..3ff9fb3e492c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsClientImpl.java @@ -0,0 +1,1013 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +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.cognitiveservices.fluent.ArcDeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.implementation.models.ArcDeploymentListResult; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdate; +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 ArcDeploymentsClient. + */ +public final class ArcDeploymentsClientImpl implements ArcDeploymentsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ArcDeploymentsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of ArcDeploymentsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ArcDeploymentsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(ArcDeploymentsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientArcDeployments to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "CognitiveServicesManagementClientArcDeployments") + public interface ArcDeploymentsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @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("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcDeploymentInner resource, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcDeploymentInner resource, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @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("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcDeploymentUpdate properties, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcDeploymentUpdate properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @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("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("deploymentName") String deploymentName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String deploymentName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String deploymentName) { + return getWithResponseAsync(resourceGroupName, accountName, deploymentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, + String deploymentName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, deploymentName, accept, context); + } + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArcDeploymentInner get(String resourceGroupName, String accountName, String deploymentName) { + return getWithResponse(resourceGroupName, accountName, deploymentName, Context.NONE).getValue(); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources + * along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentInner resource) { + 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, accountName, deploymentName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources + * along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String deploymentName, ArcDeploymentInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, contentType, accept, + resource, Context.NONE); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources + * along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String deploymentName, ArcDeploymentInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, contentType, accept, + resource, context); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ArcDeploymentInner> beginCreateOrUpdateAsync( + String resourceGroupName, String accountName, String deploymentName, ArcDeploymentInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, deploymentName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ArcDeploymentInner.class, ArcDeploymentInner.class, this.client.getContext()); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ArcDeploymentInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentInner resource) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, deploymentName, resource); + return this.client.getLroResult(response, ArcDeploymentInner.class, + ArcDeploymentInner.class, Context.NONE); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ArcDeploymentInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, deploymentName, resource, context); + return this.client.getLroResult(response, ArcDeploymentInner.class, + ArcDeploymentInner.class, context); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + String deploymentName, ArcDeploymentInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, deploymentName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArcDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentInner resource) { + return beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, resource).getFinalResult(); + } + + /** + * Creates or updates an Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param resource The Arc deployment properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArcDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, resource, context).getFinalResult(); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources + * along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String deploymentName, ArcDeploymentUpdate properties) { + 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, accountName, deploymentName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources + * along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, contentType, accept, + properties, Context.NONE); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources + * along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, contentType, accept, + properties, context); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ArcDeploymentInner> beginUpdateAsync(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, deploymentName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ArcDeploymentInner.class, ArcDeploymentInner.class, this.client.getContext()); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ArcDeploymentInner> beginUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentUpdate properties) { + Response response = updateWithResponse(resourceGroupName, accountName, deploymentName, properties); + return this.client.getLroResult(response, ArcDeploymentInner.class, + ArcDeploymentInner.class, Context.NONE); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by + * customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ArcDeploymentInner> beginUpdate(String resourceGroupName, + String accountName, String deploymentName, ArcDeploymentUpdate properties, Context context) { + Response response + = updateWithResponse(resourceGroupName, accountName, deploymentName, properties, context); + return this.client.getLroResult(response, ArcDeploymentInner.class, + ArcDeploymentInner.class, context); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties) { + return beginUpdateAsync(resourceGroupName, accountName, deploymentName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArcDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties) { + return beginUpdate(resourceGroupName, accountName, deploymentName, properties).getFinalResult(); + } + + /** + * Updates the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @param properties The Arc deployment update properties. + * @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 cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ArcDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + ArcDeploymentUpdate properties, Context context) { + return beginUpdate(resourceGroupName, accountName, deploymentName, properties, context).getFinalResult(); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, + String deploymentName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String accountName, + String deploymentName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, Context.NONE); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String accountName, String deploymentName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, deploymentName, context); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, + String deploymentName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, deploymentName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, + String deploymentName) { + Response response = deleteWithResponse(resourceGroupName, accountName, deploymentName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, + String deploymentName, Context context) { + Response response = deleteWithResponse(resourceGroupName, accountName, deploymentName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName) { + return beginDeleteAsync(resourceGroupName, accountName, deploymentName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName) { + beginDelete(resourceGroupName, accountName, deploymentName).getFinalResult(); + } + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 accountName, String deploymentName, Context context) { + beginDelete(resourceGroupName, accountName, deploymentName, context).getFinalResult(); + } + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, 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())); + } + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, + Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Arc deployments associated with the Cognitive Services account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 Arc deployments associated with the Cognitive Services account along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * 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 Arc deployments associated with the Cognitive Services account along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsImpl.java new file mode 100644 index 000000000000..6156901e71cd --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsImpl.java @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployments; + +public final class ArcDeploymentsImpl implements ArcDeployments { + private static final ClientLogger LOGGER = new ClientLogger(ArcDeploymentsImpl.class); + + private final ArcDeploymentsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public ArcDeploymentsImpl(ArcDeploymentsClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String accountName, String deploymentName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, deploymentName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ArcDeploymentImpl(inner.getValue(), this.manager())); + } + + public ArcDeployment get(String resourceGroupName, String accountName, String deploymentName) { + ArcDeploymentInner inner = this.serviceClient().get(resourceGroupName, accountName, deploymentName); + if (inner != null) { + return new ArcDeploymentImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String deploymentName) { + this.serviceClient().delete(resourceGroupName, accountName, deploymentName); + } + + public void delete(String resourceGroupName, String accountName, String deploymentName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, deploymentName, context); + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ArcDeploymentImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ArcDeploymentImpl(inner1, this.manager())); + } + + public ArcDeployment getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String deploymentName = ResourceManagerUtils.getValueFromIdByName(id, "arcDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'arcDeployments'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, deploymentName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String deploymentName = ResourceManagerUtils.getValueFromIdByName(id, "arcDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'arcDeployments'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, deploymentName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String deploymentName = ResourceManagerUtils.getValueFromIdByName(id, "arcDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'arcDeployments'.", id))); + } + this.delete(resourceGroupName, accountName, deploymentName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String deploymentName = ResourceManagerUtils.getValueFromIdByName(id, "arcDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'arcDeployments'.", id))); + } + this.delete(resourceGroupName, accountName, deploymentName, context); + } + + private ArcDeploymentsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public ArcDeploymentImpl define(String name) { + return new ArcDeploymentImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java index 600916975fca..48aa850bcb5c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java @@ -31,6 +31,7 @@ import com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient; import com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient; import com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient; import com.azure.resourcemanager.cognitiveservices.fluent.CognitiveServicesManagementClient; import com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient; import com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient; @@ -464,6 +465,20 @@ public QuotaTiersClient getQuotaTiers() { return this.quotaTiers; } + /** + * The ArcDeploymentsClient object to access its operations. + */ + private final ArcDeploymentsClient arcDeployments; + + /** + * Gets the ArcDeploymentsClient object to access its operations. + * + * @return the ArcDeploymentsClient object. + */ + public ArcDeploymentsClient getArcDeployments() { + return this.arcDeployments; + } + /** * The AgentApplicationsClient object to access its operations. */ @@ -817,7 +832,7 @@ public ModelCapacitiesClient getModelCapacities() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-05-15-preview"; + this.apiVersion = "2026-07-15-preview"; this.resourceProviders = new ResourceProvidersClientImpl(this); this.operations = new OperationsClientImpl(this); this.accounts = new AccountsClientImpl(this); @@ -839,6 +854,7 @@ public ModelCapacitiesClient getModelCapacities() { this.projectConnections = new ProjectConnectionsClientImpl(this); this.projectCapabilityHosts = new ProjectCapabilityHostsClientImpl(this); this.quotaTiers = new QuotaTiersClientImpl(this); + this.arcDeployments = new ArcDeploymentsClientImpl(this); this.agentApplications = new AgentApplicationsClientImpl(this); this.managedComputeDeployments = new ManagedComputeDeploymentsClientImpl(this); this.computeOperations = new ComputeOperationsClientImpl(this); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java index 61838cb3cfe8..06e5d6652cd6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.cognitiveservices.implementation; -import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner; @@ -39,10 +38,6 @@ public String etag() { return this.innerModel().etag(); } - public String location() { - return this.innerModel().location(); - } - public Map tags() { Map inner = this.innerModel().tags(); if (inner != null) { @@ -64,14 +59,6 @@ public SystemData systemData() { return this.innerModel().systemData(); } - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - public String resourceGroupName() { return resourceGroupName; } @@ -123,14 +110,14 @@ public ComputeImpl update() { public Compute apply() { this.innerObject = serviceManager.serviceClient() .getComputes() - .update(resourceGroupName, accountName, computeName, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, accountName, computeName, this.innerModel(), Context.NONE); return this; } public Compute apply(Context context) { this.innerObject = serviceManager.serviceClient() .getComputes() - .update(resourceGroupName, accountName, computeName, this.innerModel(), context); + .createOrUpdate(resourceGroupName, accountName, computeName, this.innerModel(), context); return this; } @@ -188,16 +175,6 @@ public ComputeImpl withProperties(ComputeProperties properties) { return this; } - public ComputeImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ComputeImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - public ComputeImpl withTags(Map tags) { this.innerModel().withTags(tags); return this; diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java index 7561c16b0aaf..a29e6048828c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java @@ -12,7 +12,6 @@ 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; @@ -90,45 +89,25 @@ Response getSync(@HostParam("endpoint") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("computeName") String computeName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Accept: application/json;q=0.9" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") - @ExpectedResponses({ 200, 201 }) + @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("computeName") String computeName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ComputeInner resource, - Context context); + @BodyParam("application/json") ComputeInner resource, Context context); + @Headers({ "Accept: application/json;q=0.9" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") - @ExpectedResponses({ 200, 201 }) + @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("computeName") String computeName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ComputeInner resource, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") - @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("accountName") String accountName, - @PathParam("computeName") String computeName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ComputeInner properties, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("computeName") String computeName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ComputeInner properties, - Context context); + @BodyParam("application/json") ComputeInner resource, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") @@ -321,17 +300,16 @@ public ComputeInner get(String resourceGroupName, String accountName, String com * @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 cognitive Services compute resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName, String computeName, ComputeInner resource) { 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, accountName, computeName, contentType, accept, - resource, context)) + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -345,15 +323,14 @@ private Mono>> createOrUpdateWithResponseAsync(String * @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 cognitive Services compute resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, String computeName, ComputeInner resource) { final String contentType = "application/json"; - final String accept = "application/json"; return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, accept, resource, + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, resource, Context.NONE); } @@ -368,15 +345,14 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @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 cognitive Services compute resource along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, String computeName, ComputeInner resource, Context context) { final String contentType = "application/json"; - final String accept = "application/json"; return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, accept, resource, + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, resource, context); } @@ -390,7 +366,7 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @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 cognitive Services compute resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ComputeInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -411,7 +387,7 @@ private PollerFlux, ComputeInner> beginCreateOrUpdateAs * @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 cognitive Services compute resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, @@ -433,7 +409,7 @@ public SyncPoller, ComputeInner> beginCreateOrUpdate(St * @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 cognitive Services compute resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, @@ -454,7 +430,7 @@ public SyncPoller, ComputeInner> beginCreateOrUpdate(St * @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 cognitive Services compute resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String computeName, @@ -473,7 +449,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String * @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 cognitive Services compute resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, @@ -492,7 +468,7 @@ public ComputeInner createOrUpdate(String resourceGroupName, String accountName, * @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 cognitive Services compute resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, @@ -500,194 +476,6 @@ public ComputeInner createOrUpdate(String resourceGroupName, String accountName, return beginCreateOrUpdate(resourceGroupName, accountName, computeName, resource, context).getFinalResult(); } - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String computeName, ComputeInner properties) { - 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, accountName, computeName, contentType, accept, - properties, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String computeName, - ComputeInner properties) { - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, accept, - properties, Context.NONE); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String computeName, - ComputeInner properties, Context context) { - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, contentType, accept, - properties, context); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ComputeInner> beginUpdateAsync(String resourceGroupName, - String accountName, String computeName, ComputeInner properties) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, computeName, properties); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ComputeInner.class, ComputeInner.class, this.client.getContext()); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ComputeInner> beginUpdate(String resourceGroupName, String accountName, - String computeName, ComputeInner properties) { - Response response = updateWithResponse(resourceGroupName, accountName, computeName, properties); - return this.client.getLroResult(response, ComputeInner.class, ComputeInner.class, - Context.NONE); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ComputeInner> beginUpdate(String resourceGroupName, String accountName, - String computeName, ComputeInner properties, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, computeName, properties, context); - return this.client.getLroResult(response, ComputeInner.class, ComputeInner.class, - context); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String computeName, - ComputeInner properties) { - return beginUpdateAsync(resourceGroupName, accountName, computeName, properties).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ComputeInner update(String resourceGroupName, String accountName, String computeName, - ComputeInner properties) { - return beginUpdate(resourceGroupName, accountName, computeName, properties).getFinalResult(); - } - - /** - * Updates a compute associated with the Cognitive Services account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param computeName The name of the compute associated with the Cognitive Services Account. - * @param properties The compute properties to update. - * @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 cognitive Services compute resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ComputeInner update(String resourceGroupName, String accountName, String computeName, - ComputeInner properties, Context context) { - return beginUpdate(resourceGroupName, accountName, computeName, properties, context).getFinalResult(); - } - /** * Deletes the specified compute associated with the Cognitive Services account. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java index 36a4ebeea258..e03ac228de90 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java @@ -53,33 +53,28 @@ private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager man private String accountName; - private String projectName; - private String connectionName; private ConnectionUpdateContent updateConnection; - public ConnectionPropertiesV2BasicResourceImpl withExistingProject(String resourceGroupName, String accountName, - String projectName) { + public ConnectionPropertiesV2BasicResourceImpl withExistingAccount(String resourceGroupName, String accountName) { this.resourceGroupName = resourceGroupName; this.accountName = accountName; - this.projectName = projectName; return this; } public ConnectionPropertiesV2BasicResource create() { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .createWithResponse(resourceGroupName, accountName, projectName, connectionName, this.innerModel(), - Context.NONE) + .getAccountConnections() + .createWithResponse(resourceGroupName, accountName, connectionName, this.innerModel(), Context.NONE) .getValue(); return this; } public ConnectionPropertiesV2BasicResource create(Context context) { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .createWithResponse(resourceGroupName, accountName, projectName, connectionName, this.innerModel(), context) + .getAccountConnections() + .createWithResponse(resourceGroupName, accountName, connectionName, this.innerModel(), context) .getValue(); return this; } @@ -98,17 +93,16 @@ public ConnectionPropertiesV2BasicResourceImpl update() { public ConnectionPropertiesV2BasicResource apply() { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .updateWithResponse(resourceGroupName, accountName, projectName, connectionName, updateConnection, - Context.NONE) + .getAccountConnections() + .updateWithResponse(resourceGroupName, accountName, connectionName, updateConnection, Context.NONE) .getValue(); return this; } public ConnectionPropertiesV2BasicResource apply(Context context) { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .updateWithResponse(resourceGroupName, accountName, projectName, connectionName, updateConnection, context) + .getAccountConnections() + .updateWithResponse(resourceGroupName, accountName, connectionName, updateConnection, context) .getValue(); return this; } @@ -119,22 +113,21 @@ public ConnectionPropertiesV2BasicResource apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); - this.projectName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "projects"); this.connectionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "connections"); } public ConnectionPropertiesV2BasicResource refresh() { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .getWithResponse(resourceGroupName, accountName, projectName, connectionName, Context.NONE) + .getAccountConnections() + .getWithResponse(resourceGroupName, accountName, connectionName, Context.NONE) .getValue(); return this; } public ConnectionPropertiesV2BasicResource refresh(Context context) { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .getWithResponse(resourceGroupName, accountName, projectName, connectionName, context) + .getAccountConnections() + .getWithResponse(resourceGroupName, accountName, connectionName, context) .getValue(); return this; } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java index f86d10aa2c49..b78436ad1ea8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient; import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; import com.azure.resourcemanager.cognitiveservices.models.ProjectConnections; public final class ProjectConnectionsImpl implements ProjectConnections { @@ -46,6 +47,46 @@ public ConnectionPropertiesV2BasicResource get(String resourceGroupName, String } } + public Response createWithResponse(String resourceGroupName, + String accountName, String projectName, String connectionName, + ConnectionPropertiesV2BasicResourceInner connection, Context context) { + Response inner = this.serviceClient() + .createWithResponse(resourceGroupName, accountName, projectName, connectionName, connection, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); + } + + public ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String projectName, + String connectionName) { + ConnectionPropertiesV2BasicResourceInner inner + = this.serviceClient().create(resourceGroupName, accountName, projectName, connectionName); + if (inner != null) { + return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response updateWithResponse(String resourceGroupName, + String accountName, String projectName, String connectionName, ConnectionUpdateContent connection, + Context context) { + Response inner = this.serviceClient() + .updateWithResponse(resourceGroupName, accountName, projectName, connectionName, connection, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); + } + + public ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String projectName, + String connectionName) { + ConnectionPropertiesV2BasicResourceInner inner + = this.serviceClient().update(resourceGroupName, accountName, projectName, connectionName); + if (inner != null) { + return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); + } else { + return null; + } + } + public Response deleteWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, Context context) { return this.serviceClient() @@ -72,103 +113,6 @@ public PagedIterable list(String resourceGr inner1 -> new ConnectionPropertiesV2BasicResourceImpl(inner1, this.manager())); } - public ConnectionPropertiesV2BasicResource getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, projectName, connectionName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, projectName, connectionName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - this.deleteWithResponse(resourceGroupName, accountName, projectName, connectionName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - return this.deleteWithResponse(resourceGroupName, accountName, projectName, connectionName, context); - } - private ProjectConnectionsClient serviceClient() { return this.innerClient; } @@ -176,8 +120,4 @@ private ProjectConnectionsClient serviceClient() { private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { return this.serviceManager; } - - public ConnectionPropertiesV2BasicResourceImpl define(String name) { - return new ConnectionPropertiesV2BasicResourceImpl(name, this.manager()); - } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ArcDeploymentListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ArcDeploymentListResult.java new file mode 100644 index 000000000000..97805d37d7b8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ArcDeploymentListResult.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of Arc deployments. + */ +@Immutable +public final class ArcDeploymentListResult implements JsonSerializable { + /* + * The link used to get the next page of Arc deployments. + */ + private String nextLink; + + /* + * Gets the list of Arc deployments and their properties. + */ + private List value; + + /** + * Creates an instance of ArcDeploymentListResult class. + */ + private ArcDeploymentListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of Arc deployments. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Get the value property: Gets the list of Arc deployments and their properties. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentListResult 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 ArcDeploymentListResult. + */ + public static ArcDeploymentListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentListResult deserializedArcDeploymentListResult = new ArcDeploymentListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ArcDeploymentInner.fromJson(reader1)); + deserializedArcDeploymentListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedArcDeploymentListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java index 44119d8900fd..ee7fba79ce70 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java @@ -7,7 +7,6 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; /** * Resource collection API of AccountConnections. @@ -42,23 +41,22 @@ Response getWithResponse(String resourceGro ConnectionPropertiesV2BasicResource get(String resourceGroupName, String accountName, String connectionName); /** - * Create or update Cognitive Services account connection under the specified account. + * Delete Cognitive Services account connection by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param connectionName Friendly name of the connection. - * @param connection The object for creating or updating a new account connection. * @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 connection base resource schema along with {@link Response}. + * @return the {@link Response}. */ - Response createWithResponse(String resourceGroupName, String accountName, - String connectionName, ConnectionPropertiesV2BasicResourceInner connection, Context context); + Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName, + Context context); /** - * Create or update Cognitive Services account connection under the specified account. + * Delete Cognitive Services account connection by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. @@ -66,93 +64,89 @@ Response createWithResponse(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema. */ - ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String connectionName); + void delete(String resourceGroupName, String accountName, String connectionName); /** - * Update Cognitive Services account connection under the specified account. + * Lists all the available Cognitive Services account connections under the specified account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. - * @param connection Parameters for account connection update. - * @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 connection base resource schema along with {@link Response}. + * @return the paginated response with {@link PagedIterable}. */ - Response updateWithResponse(String resourceGroupName, String accountName, - String connectionName, ConnectionUpdateContent connection, Context context); + PagedIterable list(String resourceGroupName, String accountName); /** - * Update Cognitive Services account connection under the specified account. + * Lists all the available Cognitive Services account connections under the specified account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. + * @param target Target of the connection. + * @param category Category of the connection. + * @param includeAll query parameter that indicates if get connection call should return both connections and + * datastores. + * @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 connection base resource schema. + * @return the paginated response with {@link PagedIterable}. */ - ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String connectionName); + PagedIterable list(String resourceGroupName, String accountName, String target, + String category, Boolean includeAll, Context context); /** - * Delete Cognitive Services account connection by name. + * Lists Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. - * @param context The context to associate with this operation. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return connection base resource schema along with {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName, - Context context); + ConnectionPropertiesV2BasicResource getById(String id); /** - * Delete Cognitive Services account connection by name. + * Lists Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. + * @param id the resource 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 connection base resource schema along with {@link Response}. */ - void delete(String resourceGroupName, String accountName, String connectionName); + Response getByIdWithResponse(String id, Context context); /** - * Lists all the available Cognitive Services account connections under the specified account. + * Delete Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String accountName); + void deleteById(String id); /** - * Lists all the available Cognitive Services account connections under the specified account. + * Delete Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param target Target of the connection. - * @param category Category of the connection. - * @param includeAll query parameter that indicates if get connection call should return both connections and - * datastores. + * @param id the resource 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 paginated response with {@link PagedIterable}. + * @return the {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName, String target, - String category, Boolean includeAll, Context context); + Response deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ConnectionPropertiesV2BasicResource resource. + * + * @param name resource name. + * @return the first stage of the new ConnectionPropertiesV2BasicResource definition. + */ + ConnectionPropertiesV2BasicResource.DefinitionStages.Blank define(String name); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java index 70800672ab5f..33f254e8a999 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java @@ -115,6 +115,11 @@ public final class AccountProperties implements JsonSerializable associatedProjects; + /* + * Reusable default agent capability settings inherited by child projects. + */ + private CapabilitySettings capabilitySettings; + + /* + * Customer-owned AKS hosting configurations for Foundry agents. This property can only be specified when the + * account is created; an existing account without a hosting configuration cannot add one later. This API version + * supports exactly one configuration, while the array shape is reserved for future API versions that may support + * multiple configurations. Once set, the configuration cannot be changed, removed, or reordered. Account update + * requests should omit this property or send the complete existing value unchanged. Responses only include hosting + * configuration types defined by the requested API version. + */ + private List agentHostingConfigurations; + /** * Creates an instance of AccountProperties class. */ @@ -492,6 +512,28 @@ public AccountProperties withStoredCompletionsDisabled(Boolean storedCompletions return this; } + /** + * Get the a365LoggingEnabled property: Specifies whether A365 logging is enabled. Defaults to true. Set to false to + * opt out. + * + * @return the a365LoggingEnabled value. + */ + public Boolean a365LoggingEnabled() { + return this.a365LoggingEnabled; + } + + /** + * Set the a365LoggingEnabled property: Specifies whether A365 logging is enabled. Defaults to true. Set to false to + * opt out. + * + * @param a365LoggingEnabled the a365LoggingEnabled value to set. + * @return the AccountProperties object itself. + */ + public AccountProperties withA365LoggingEnabled(Boolean a365LoggingEnabled) { + this.a365LoggingEnabled = a365LoggingEnabled; + return this; + } + /** * Get the quotaLimit property: The quotaLimit property. * @@ -774,6 +816,57 @@ public AccountProperties withAssociatedProjects(List associatedProjects) return this; } + /** + * Get the capabilitySettings property: Reusable default agent capability settings inherited by child projects. + * + * @return the capabilitySettings value. + */ + public CapabilitySettings capabilitySettings() { + return this.capabilitySettings; + } + + /** + * Set the capabilitySettings property: Reusable default agent capability settings inherited by child projects. + * + * @param capabilitySettings the capabilitySettings value to set. + * @return the AccountProperties object itself. + */ + public AccountProperties withCapabilitySettings(CapabilitySettings capabilitySettings) { + this.capabilitySettings = capabilitySettings; + return this; + } + + /** + * Get the agentHostingConfigurations property: Customer-owned AKS hosting configurations for Foundry agents. This + * property can only be specified when the account is created; an existing account without a hosting configuration + * cannot add one later. This API version supports exactly one configuration, while the array shape is reserved for + * future API versions that may support multiple configurations. Once set, the configuration cannot be changed, + * removed, or reordered. Account update requests should omit this property or send the complete existing value + * unchanged. Responses only include hosting configuration types defined by the requested API version. + * + * @return the agentHostingConfigurations value. + */ + public List agentHostingConfigurations() { + return this.agentHostingConfigurations; + } + + /** + * Set the agentHostingConfigurations property: Customer-owned AKS hosting configurations for Foundry agents. This + * property can only be specified when the account is created; an existing account without a hosting configuration + * cannot add one later. This API version supports exactly one configuration, while the array shape is reserved for + * future API versions that may support multiple configurations. Once set, the configuration cannot be changed, + * removed, or reordered. Account update requests should omit this property or send the complete existing value + * unchanged. Responses only include hosting configuration types defined by the requested API version. + * + * @param agentHostingConfigurations the agentHostingConfigurations value to set. + * @return the AccountProperties object itself. + */ + public AccountProperties + withAgentHostingConfigurations(List agentHostingConfigurations) { + this.agentHostingConfigurations = agentHostingConfigurations; + return this; + } + /** * {@inheritDoc} */ @@ -792,6 +885,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("apiProperties", this.apiProperties); jsonWriter.writeBooleanField("dynamicThrottlingEnabled", this.dynamicThrottlingEnabled); jsonWriter.writeBooleanField("storedCompletionsDisabled", this.storedCompletionsDisabled); + jsonWriter.writeBooleanField("a365LoggingEnabled", this.a365LoggingEnabled); jsonWriter.writeBooleanField("restrictOutboundNetworkAccess", this.restrictOutboundNetworkAccess); jsonWriter.writeArrayField("allowedFqdnList", this.allowedFqdnList, (writer, element) -> writer.writeString(element)); @@ -806,6 +900,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("defaultProject", this.defaultProject); jsonWriter.writeArrayField("associatedProjects", this.associatedProjects, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("capabilitySettings", this.capabilitySettings); + jsonWriter.writeArrayField("agentHostingConfigurations", this.agentHostingConfigurations, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -869,6 +966,8 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti } else if ("storedCompletionsDisabled".equals(fieldName)) { deserializedAccountProperties.storedCompletionsDisabled = reader.getNullable(JsonReader::getBoolean); + } else if ("a365LoggingEnabled".equals(fieldName)) { + deserializedAccountProperties.a365LoggingEnabled = reader.getNullable(JsonReader::getBoolean); } else if ("quotaLimit".equals(fieldName)) { deserializedAccountProperties.quotaLimit = QuotaLimit.fromJson(reader); } else if ("restrictOutboundNetworkAccess".equals(fieldName)) { @@ -911,6 +1010,12 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti } else if ("associatedProjects".equals(fieldName)) { List associatedProjects = reader.readArray(reader1 -> reader1.getString()); deserializedAccountProperties.associatedProjects = associatedProjects; + } else if ("capabilitySettings".equals(fieldName)) { + deserializedAccountProperties.capabilitySettings = CapabilitySettings.fromJson(reader); + } else if ("agentHostingConfigurations".equals(fieldName)) { + List agentHostingConfigurations + = reader.readArray(reader1 -> AgentHostingConfiguration.fromJson(reader1)); + deserializedAccountProperties.agentHostingConfigurations = agentHostingConfigurations; } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingConfiguration.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingConfiguration.java new file mode 100644 index 000000000000..ff82d4c98e42 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingConfiguration.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Base configuration for hosting Foundry agents. + */ +@Fluent +public class AgentHostingConfiguration implements JsonSerializable { + /* + * Type of infrastructure used to host Foundry agents. + */ + private AgentHostingType hostingType = AgentHostingType.fromString("AgentHostingConfiguration"); + + /* + * Unique name of the hosting configuration within the Foundry account. + */ + private String name; + + /** + * Creates an instance of AgentHostingConfiguration class. + */ + public AgentHostingConfiguration() { + } + + /** + * Get the hostingType property: Type of infrastructure used to host Foundry agents. + * + * @return the hostingType value. + */ + public AgentHostingType hostingType() { + return this.hostingType; + } + + /** + * Get the name property: Unique name of the hosting configuration within the Foundry account. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Unique name of the hosting configuration within the Foundry account. + * + * @param name the name value to set. + * @return the AgentHostingConfiguration object itself. + */ + public AgentHostingConfiguration withName(String name) { + this.name = name; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("hostingType", this.hostingType == null ? null : this.hostingType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentHostingConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentHostingConfiguration 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 AgentHostingConfiguration. + */ + public static AgentHostingConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("hostingType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("ManagedCluster".equals(discriminatorValue)) { + return ManagedClusterAgentHostingConfiguration.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static AgentHostingConfiguration fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentHostingConfiguration deserializedAgentHostingConfiguration = new AgentHostingConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedAgentHostingConfiguration.name = reader.getString(); + } else if ("hostingType".equals(fieldName)) { + deserializedAgentHostingConfiguration.hostingType = AgentHostingType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentHostingConfiguration; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingType.java new file mode 100644 index 000000000000..fb722f0b721f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of infrastructure used to host Foundry agents. + */ +public final class AgentHostingType extends ExpandableStringEnum { + /** + * Agents are hosted on an Azure Kubernetes Service managed cluster. + */ + public static final AgentHostingType MANAGED_CLUSTER = fromString("ManagedCluster"); + + /** + * Creates a new instance of AgentHostingType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AgentHostingType() { + } + + /** + * Creates or finds a AgentHostingType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgentHostingType. + */ + public static AgentHostingType fromString(String name) { + return fromString(name, AgentHostingType.class); + } + + /** + * Gets known AgentHostingType values. + * + * @return known AgentHostingType values. + */ + public static Collection values() { + return values(AgentHostingType.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployment.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployment.java new file mode 100644 index 000000000000..0078c7ff9814 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployment.java @@ -0,0 +1,216 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; + +/** + * An immutable client-side representation of ArcDeployment. + */ +public interface ArcDeployment { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: Properties of the Cognitive Services Arc deployment. + * + * @return the properties value. + */ + ArcDeploymentProperties properties(); + + /** + * Gets the sku property: The Arc deployment SKU. Only the SKU name is required for Arc deployments. + * + * @return the sku value. + */ + ArcDeploymentSku sku(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner object. + * + * @return the inner object. + */ + ArcDeploymentInner innerModel(); + + /** + * The entirety of the ArcDeployment definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithProperties, DefinitionStages.WithSku, DefinitionStages.WithCreate { + } + + /** + * The ArcDeployment definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the ArcDeployment definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the ArcDeployment definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @return the next definition stage. + */ + WithProperties withExistingAccount(String resourceGroupName, String accountName); + } + + /** + * The stage of the ArcDeployment definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of the Cognitive Services Arc deployment.. + * + * @param properties Properties of the Cognitive Services Arc deployment. + * @return the next definition stage. + */ + WithSku withProperties(ArcDeploymentProperties properties); + } + + /** + * The stage of the ArcDeployment definition allowing to specify sku. + */ + interface WithSku { + /** + * Specifies the sku property: The Arc deployment SKU. Only the SKU name is required for Arc deployments.. + * + * @param sku The Arc deployment SKU. Only the SKU name is required for Arc deployments. + * @return the next definition stage. + */ + WithCreate withSku(ArcDeploymentSku sku); + } + + /** + * The stage of the ArcDeployment definition which contains all the minimum required properties for the resource + * to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate { + /** + * Executes the create request. + * + * @return the created resource. + */ + ArcDeployment create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + ArcDeployment create(Context context); + } + } + + /** + * Begins update for the ArcDeployment resource. + * + * @return the stage of resource update. + */ + ArcDeployment.Update update(); + + /** + * The template for ArcDeployment update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + ArcDeployment apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + ArcDeployment apply(Context context); + } + + /** + * The ArcDeployment update stages. + */ + interface UpdateStages { + /** + * The stage of the ArcDeployment update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties that can be updated on an Arc deployment.. + * + * @param properties Properties that can be updated on an Arc deployment. + * @return the next definition stage. + */ + Update withProperties(ArcDeploymentUpdateProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + ArcDeployment refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + ArcDeployment refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentComputeType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentComputeType.java new file mode 100644 index 000000000000..24601af2a228 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentComputeType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Compute type for an Arc deployment. + */ +public final class ArcDeploymentComputeType extends ExpandableStringEnum { + /** + * GPU compute. + */ + public static final ArcDeploymentComputeType GPU = fromString("gpu"); + + /** + * CPU compute. + */ + public static final ArcDeploymentComputeType CPU = fromString("cpu"); + + /** + * Creates a new instance of ArcDeploymentComputeType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ArcDeploymentComputeType() { + } + + /** + * Creates or finds a ArcDeploymentComputeType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ArcDeploymentComputeType. + */ + public static ArcDeploymentComputeType fromString(String name) { + return fromString(name, ArcDeploymentComputeType.class); + } + + /** + * Gets known ArcDeploymentComputeType values. + * + * @return known ArcDeploymentComputeType values. + */ + public static Collection values() { + return values(ArcDeploymentComputeType.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentCpuMemoryResourceRequirements.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentCpuMemoryResourceRequirements.java new file mode 100644 index 000000000000..fcc355f1705d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentCpuMemoryResourceRequirements.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * CPU and memory resource requirements for an Arc deployment replica. + */ +@Fluent +public final class ArcDeploymentCpuMemoryResourceRequirements + implements JsonSerializable { + /* + * Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + */ + private String cpu; + + /* + * Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + */ + private String memory; + + /** + * Creates an instance of ArcDeploymentCpuMemoryResourceRequirements class. + */ + public ArcDeploymentCpuMemoryResourceRequirements() { + } + + /** + * Get the cpu property: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * + * @return the cpu value. + */ + public String cpu() { + return this.cpu; + } + + /** + * Set the cpu property: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * + * @param cpu the cpu value to set. + * @return the ArcDeploymentCpuMemoryResourceRequirements object itself. + */ + public ArcDeploymentCpuMemoryResourceRequirements withCpu(String cpu) { + this.cpu = cpu; + return this; + } + + /** + * Get the memory property: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * + * @return the memory value. + */ + public String memory() { + return this.memory; + } + + /** + * Set the memory property: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * + * @param memory the memory value to set. + * @return the ArcDeploymentCpuMemoryResourceRequirements object itself. + */ + public ArcDeploymentCpuMemoryResourceRequirements withMemory(String memory) { + this.memory = memory; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("cpu", this.cpu); + jsonWriter.writeStringField("memory", this.memory); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentCpuMemoryResourceRequirements from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentCpuMemoryResourceRequirements 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 ArcDeploymentCpuMemoryResourceRequirements. + */ + public static ArcDeploymentCpuMemoryResourceRequirements fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentCpuMemoryResourceRequirements deserializedArcDeploymentCpuMemoryResourceRequirements + = new ArcDeploymentCpuMemoryResourceRequirements(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cpu".equals(fieldName)) { + deserializedArcDeploymentCpuMemoryResourceRequirements.cpu = reader.getString(); + } else if ("memory".equals(fieldName)) { + deserializedArcDeploymentCpuMemoryResourceRequirements.memory = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentCpuMemoryResourceRequirements; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentKubernetesResources.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentKubernetesResources.java new file mode 100644 index 000000000000..94383ef2b747 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentKubernetesResources.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Per-replica Kubernetes resource requests and limits for an Arc deployment. + */ +@Fluent +public final class ArcDeploymentKubernetesResources implements JsonSerializable { + /* + * Kubernetes CPU and memory resource requests for each deployment replica. + */ + private ArcDeploymentCpuMemoryResourceRequirements requests; + + /* + * Kubernetes resource limits for each deployment replica. + */ + private ArcDeploymentResourceRequirements limits; + + /** + * Creates an instance of ArcDeploymentKubernetesResources class. + */ + public ArcDeploymentKubernetesResources() { + } + + /** + * Get the requests property: Kubernetes CPU and memory resource requests for each deployment replica. + * + * @return the requests value. + */ + public ArcDeploymentCpuMemoryResourceRequirements requests() { + return this.requests; + } + + /** + * Set the requests property: Kubernetes CPU and memory resource requests for each deployment replica. + * + * @param requests the requests value to set. + * @return the ArcDeploymentKubernetesResources object itself. + */ + public ArcDeploymentKubernetesResources withRequests(ArcDeploymentCpuMemoryResourceRequirements requests) { + this.requests = requests; + return this; + } + + /** + * Get the limits property: Kubernetes resource limits for each deployment replica. + * + * @return the limits value. + */ + public ArcDeploymentResourceRequirements limits() { + return this.limits; + } + + /** + * Set the limits property: Kubernetes resource limits for each deployment replica. + * + * @param limits the limits value to set. + * @return the ArcDeploymentKubernetesResources object itself. + */ + public ArcDeploymentKubernetesResources withLimits(ArcDeploymentResourceRequirements limits) { + this.limits = limits; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("requests", this.requests); + jsonWriter.writeJsonField("limits", this.limits); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentKubernetesResources from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentKubernetesResources 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 ArcDeploymentKubernetesResources. + */ + public static ArcDeploymentKubernetesResources fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentKubernetesResources deserializedArcDeploymentKubernetesResources + = new ArcDeploymentKubernetesResources(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("requests".equals(fieldName)) { + deserializedArcDeploymentKubernetesResources.requests + = ArcDeploymentCpuMemoryResourceRequirements.fromJson(reader); + } else if ("limits".equals(fieldName)) { + deserializedArcDeploymentKubernetesResources.limits + = ArcDeploymentResourceRequirements.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentKubernetesResources; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentModel.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentModel.java new file mode 100644 index 000000000000..887d0112306b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentModel.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Model reference for an Arc deployment. + */ +@Fluent +public final class ArcDeploymentModel implements JsonSerializable { + /* + * Deployment model format. + */ + private String format; + + /* + * Deployment model name. + */ + private String name; + + /** + * Creates an instance of ArcDeploymentModel class. + */ + public ArcDeploymentModel() { + } + + /** + * Get the format property: Deployment model format. + * + * @return the format value. + */ + public String format() { + return this.format; + } + + /** + * Set the format property: Deployment model format. + * + * @param format the format value to set. + * @return the ArcDeploymentModel object itself. + */ + public ArcDeploymentModel withFormat(String format) { + this.format = format; + return this; + } + + /** + * Get the name property: Deployment model name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Deployment model name. + * + * @param name the name value to set. + * @return the ArcDeploymentModel object itself. + */ + public ArcDeploymentModel withName(String name) { + this.name = name; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("format", this.format); + jsonWriter.writeStringField("name", this.name); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentModel 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 ArcDeploymentModel. + */ + public static ArcDeploymentModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentModel deserializedArcDeploymentModel = new ArcDeploymentModel(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("format".equals(fieldName)) { + deserializedArcDeploymentModel.format = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedArcDeploymentModel.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentModel; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchCpuMemoryResourceRequirements.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchCpuMemoryResourceRequirements.java new file mode 100644 index 000000000000..38a9326bc87f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchCpuMemoryResourceRequirements.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * CPU and memory resource requirements for an Arc deployment replica update. + */ +@Fluent +public final class ArcDeploymentPatchCpuMemoryResourceRequirements + implements JsonSerializable { + /* + * Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + */ + private String cpu; + + /* + * Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + */ + private String memory; + + /** + * Creates an instance of ArcDeploymentPatchCpuMemoryResourceRequirements class. + */ + public ArcDeploymentPatchCpuMemoryResourceRequirements() { + } + + /** + * Get the cpu property: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * + * @return the cpu value. + */ + public String cpu() { + return this.cpu; + } + + /** + * Set the cpu property: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * + * @param cpu the cpu value to set. + * @return the ArcDeploymentPatchCpuMemoryResourceRequirements object itself. + */ + public ArcDeploymentPatchCpuMemoryResourceRequirements withCpu(String cpu) { + this.cpu = cpu; + return this; + } + + /** + * Get the memory property: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * + * @return the memory value. + */ + public String memory() { + return this.memory; + } + + /** + * Set the memory property: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * + * @param memory the memory value to set. + * @return the ArcDeploymentPatchCpuMemoryResourceRequirements object itself. + */ + public ArcDeploymentPatchCpuMemoryResourceRequirements withMemory(String memory) { + this.memory = memory; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("cpu", this.cpu); + jsonWriter.writeStringField("memory", this.memory); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentPatchCpuMemoryResourceRequirements from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentPatchCpuMemoryResourceRequirements 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 ArcDeploymentPatchCpuMemoryResourceRequirements. + */ + public static ArcDeploymentPatchCpuMemoryResourceRequirements fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentPatchCpuMemoryResourceRequirements deserializedArcDeploymentPatchCpuMemoryResourceRequirements + = new ArcDeploymentPatchCpuMemoryResourceRequirements(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cpu".equals(fieldName)) { + deserializedArcDeploymentPatchCpuMemoryResourceRequirements.cpu = reader.getString(); + } else if ("memory".equals(fieldName)) { + deserializedArcDeploymentPatchCpuMemoryResourceRequirements.memory = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentPatchCpuMemoryResourceRequirements; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchKubernetesResources.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchKubernetesResources.java new file mode 100644 index 000000000000..609c42713993 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchKubernetesResources.java @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Per-replica Kubernetes resource requests and limits for an Arc deployment update. + */ +@Fluent +public final class ArcDeploymentPatchKubernetesResources + implements JsonSerializable { + /* + * Kubernetes CPU and memory resource requests for each deployment replica. + */ + private ArcDeploymentPatchCpuMemoryResourceRequirements requests; + + /* + * Kubernetes resource limits for each deployment replica. + */ + private ArcDeploymentResourceRequirements limits; + + /** + * Creates an instance of ArcDeploymentPatchKubernetesResources class. + */ + public ArcDeploymentPatchKubernetesResources() { + } + + /** + * Get the requests property: Kubernetes CPU and memory resource requests for each deployment replica. + * + * @return the requests value. + */ + public ArcDeploymentPatchCpuMemoryResourceRequirements requests() { + return this.requests; + } + + /** + * Set the requests property: Kubernetes CPU and memory resource requests for each deployment replica. + * + * @param requests the requests value to set. + * @return the ArcDeploymentPatchKubernetesResources object itself. + */ + public ArcDeploymentPatchKubernetesResources + withRequests(ArcDeploymentPatchCpuMemoryResourceRequirements requests) { + this.requests = requests; + return this; + } + + /** + * Get the limits property: Kubernetes resource limits for each deployment replica. + * + * @return the limits value. + */ + public ArcDeploymentResourceRequirements limits() { + return this.limits; + } + + /** + * Set the limits property: Kubernetes resource limits for each deployment replica. + * + * @param limits the limits value to set. + * @return the ArcDeploymentPatchKubernetesResources object itself. + */ + public ArcDeploymentPatchKubernetesResources withLimits(ArcDeploymentResourceRequirements limits) { + this.limits = limits; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("requests", this.requests); + jsonWriter.writeJsonField("limits", this.limits); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentPatchKubernetesResources from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentPatchKubernetesResources 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 ArcDeploymentPatchKubernetesResources. + */ + public static ArcDeploymentPatchKubernetesResources fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentPatchKubernetesResources deserializedArcDeploymentPatchKubernetesResources + = new ArcDeploymentPatchKubernetesResources(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("requests".equals(fieldName)) { + deserializedArcDeploymentPatchKubernetesResources.requests + = ArcDeploymentPatchCpuMemoryResourceRequirements.fromJson(reader); + } else if ("limits".equals(fieldName)) { + deserializedArcDeploymentPatchKubernetesResources.limits + = ArcDeploymentResourceRequirements.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentPatchKubernetesResources; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProperties.java new file mode 100644 index 000000000000..a3c46c37c04f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProperties.java @@ -0,0 +1,440 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Properties of a Cognitive Services Arc deployment. + */ +@Fluent +public final class ArcDeploymentProperties implements JsonSerializable { + /* + * Model reference. Required on creation and immutable after creation. + */ + private ArcDeploymentModel model; + + /* + * Full Azure resource ID of the Foundry inference extension on the target Arc-enabled Kubernetes cluster. Required + * on creation and immutable after creation. + */ + private String extensionId; + + /* + * Inference runtime. Required on creation and immutable after creation. + */ + private ArcDeploymentRuntime runtime; + + /* + * Compute type for the deployment. Required on creation and immutable after creation. + */ + private ArcDeploymentComputeType compute; + + /* + * Optional deployment template identifier for advanced vLLM tuning. Allowed only when runtime is vllm. + * Example: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version} + */ + private String deploymentTemplate; + + /* + * Read-only. Effective vLLM runtime parameters resolved for the deployed model. Returned only when runtime is vllm. + */ + private ArcDeploymentVllmParameters vllmParameters; + + /* + * Physical replica count on the Arc cluster. + */ + private int replicas; + + /* + * Per-replica Kubernetes resource requests and limits. + */ + private ArcDeploymentKubernetesResources resources; + + /* + * Kubernetes node selector key-value map used to schedule pods onto nodes with matching labels. + */ + private Map nodeSelector; + + /* + * The deployment state. + */ + private DeploymentState deploymentState; + + /* + * The name of RAI policy. + */ + private String raiPolicyName; + + /* + * Read-only. Current provisioning state. + */ + private ProvisioningState provisioningState; + + /* + * Read-only. Status message and timestamp from the last provisioning operation. + */ + private ArcDeploymentProvisioningDetails provisioningDetails; + + /* + * Read-only. Base URL for inference calls to this deployment on the Arc cluster. Populated when provisioningState + * is Succeeded. + */ + private String inferenceEndpoint; + + /* + * Read-only. Deployment capabilities represented as key-value pairs. + */ + private Map capabilities; + + /** + * Creates an instance of ArcDeploymentProperties class. + */ + public ArcDeploymentProperties() { + } + + /** + * Get the model property: Model reference. Required on creation and immutable after creation. + * + * @return the model value. + */ + public ArcDeploymentModel model() { + return this.model; + } + + /** + * Set the model property: Model reference. Required on creation and immutable after creation. + * + * @param model the model value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withModel(ArcDeploymentModel model) { + this.model = model; + return this; + } + + /** + * Get the extensionId property: Full Azure resource ID of the Foundry inference extension on the target Arc-enabled + * Kubernetes cluster. Required on creation and immutable after creation. + * + * @return the extensionId value. + */ + public String extensionId() { + return this.extensionId; + } + + /** + * Set the extensionId property: Full Azure resource ID of the Foundry inference extension on the target Arc-enabled + * Kubernetes cluster. Required on creation and immutable after creation. + * + * @param extensionId the extensionId value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withExtensionId(String extensionId) { + this.extensionId = extensionId; + return this; + } + + /** + * Get the runtime property: Inference runtime. Required on creation and immutable after creation. + * + * @return the runtime value. + */ + public ArcDeploymentRuntime runtime() { + return this.runtime; + } + + /** + * Set the runtime property: Inference runtime. Required on creation and immutable after creation. + * + * @param runtime the runtime value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withRuntime(ArcDeploymentRuntime runtime) { + this.runtime = runtime; + return this; + } + + /** + * Get the compute property: Compute type for the deployment. Required on creation and immutable after creation. + * + * @return the compute value. + */ + public ArcDeploymentComputeType compute() { + return this.compute; + } + + /** + * Set the compute property: Compute type for the deployment. Required on creation and immutable after creation. + * + * @param compute the compute value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withCompute(ArcDeploymentComputeType compute) { + this.compute = compute; + return this; + } + + /** + * Get the deploymentTemplate property: Optional deployment template identifier for advanced vLLM tuning. Allowed + * only when runtime is vllm. + * Example: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}. + * + * @return the deploymentTemplate value. + */ + public String deploymentTemplate() { + return this.deploymentTemplate; + } + + /** + * Set the deploymentTemplate property: Optional deployment template identifier for advanced vLLM tuning. Allowed + * only when runtime is vllm. + * Example: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}. + * + * @param deploymentTemplate the deploymentTemplate value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withDeploymentTemplate(String deploymentTemplate) { + this.deploymentTemplate = deploymentTemplate; + return this; + } + + /** + * Get the vllmParameters property: Read-only. Effective vLLM runtime parameters resolved for the deployed model. + * Returned only when runtime is vllm. + * + * @return the vllmParameters value. + */ + public ArcDeploymentVllmParameters vllmParameters() { + return this.vllmParameters; + } + + /** + * Get the replicas property: Physical replica count on the Arc cluster. + * + * @return the replicas value. + */ + public int replicas() { + return this.replicas; + } + + /** + * Set the replicas property: Physical replica count on the Arc cluster. + * + * @param replicas the replicas value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withReplicas(int replicas) { + this.replicas = replicas; + return this; + } + + /** + * Get the resources property: Per-replica Kubernetes resource requests and limits. + * + * @return the resources value. + */ + public ArcDeploymentKubernetesResources resources() { + return this.resources; + } + + /** + * Set the resources property: Per-replica Kubernetes resource requests and limits. + * + * @param resources the resources value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withResources(ArcDeploymentKubernetesResources resources) { + this.resources = resources; + return this; + } + + /** + * Get the nodeSelector property: Kubernetes node selector key-value map used to schedule pods onto nodes with + * matching labels. + * + * @return the nodeSelector value. + */ + public Map nodeSelector() { + return this.nodeSelector; + } + + /** + * Set the nodeSelector property: Kubernetes node selector key-value map used to schedule pods onto nodes with + * matching labels. + * + * @param nodeSelector the nodeSelector value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withNodeSelector(Map nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get the deploymentState property: The deployment state. + * + * @return the deploymentState value. + */ + public DeploymentState deploymentState() { + return this.deploymentState; + } + + /** + * Set the deploymentState property: The deployment state. + * + * @param deploymentState the deploymentState value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withDeploymentState(DeploymentState deploymentState) { + this.deploymentState = deploymentState; + return this; + } + + /** + * Get the raiPolicyName property: The name of RAI policy. + * + * @return the raiPolicyName value. + */ + public String raiPolicyName() { + return this.raiPolicyName; + } + + /** + * Set the raiPolicyName property: The name of RAI policy. + * + * @param raiPolicyName the raiPolicyName value to set. + * @return the ArcDeploymentProperties object itself. + */ + public ArcDeploymentProperties withRaiPolicyName(String raiPolicyName) { + this.raiPolicyName = raiPolicyName; + return this; + } + + /** + * Get the provisioningState property: Read-only. Current provisioning state. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the provisioningDetails property: Read-only. Status message and timestamp from the last provisioning + * operation. + * + * @return the provisioningDetails value. + */ + public ArcDeploymentProvisioningDetails provisioningDetails() { + return this.provisioningDetails; + } + + /** + * Get the inferenceEndpoint property: Read-only. Base URL for inference calls to this deployment on the Arc + * cluster. Populated when provisioningState is Succeeded. + * + * @return the inferenceEndpoint value. + */ + public String inferenceEndpoint() { + return this.inferenceEndpoint; + } + + /** + * Get the capabilities property: Read-only. Deployment capabilities represented as key-value pairs. + * + * @return the capabilities value. + */ + public Map capabilities() { + return this.capabilities; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("model", this.model); + jsonWriter.writeStringField("extensionId", this.extensionId); + jsonWriter.writeStringField("runtime", this.runtime == null ? null : this.runtime.toString()); + jsonWriter.writeStringField("compute", this.compute == null ? null : this.compute.toString()); + jsonWriter.writeIntField("replicas", this.replicas); + jsonWriter.writeJsonField("resources", this.resources); + jsonWriter.writeStringField("deploymentTemplate", this.deploymentTemplate); + jsonWriter.writeMapField("nodeSelector", this.nodeSelector, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("deploymentState", + this.deploymentState == null ? null : this.deploymentState.toString()); + jsonWriter.writeStringField("raiPolicyName", this.raiPolicyName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentProperties 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 ArcDeploymentProperties. + */ + public static ArcDeploymentProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentProperties deserializedArcDeploymentProperties = new ArcDeploymentProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + deserializedArcDeploymentProperties.model = ArcDeploymentModel.fromJson(reader); + } else if ("extensionId".equals(fieldName)) { + deserializedArcDeploymentProperties.extensionId = reader.getString(); + } else if ("runtime".equals(fieldName)) { + deserializedArcDeploymentProperties.runtime = ArcDeploymentRuntime.fromString(reader.getString()); + } else if ("compute".equals(fieldName)) { + deserializedArcDeploymentProperties.compute + = ArcDeploymentComputeType.fromString(reader.getString()); + } else if ("replicas".equals(fieldName)) { + deserializedArcDeploymentProperties.replicas = reader.getInt(); + } else if ("resources".equals(fieldName)) { + deserializedArcDeploymentProperties.resources = ArcDeploymentKubernetesResources.fromJson(reader); + } else if ("deploymentTemplate".equals(fieldName)) { + deserializedArcDeploymentProperties.deploymentTemplate = reader.getString(); + } else if ("vllmParameters".equals(fieldName)) { + deserializedArcDeploymentProperties.vllmParameters = ArcDeploymentVllmParameters.fromJson(reader); + } else if ("nodeSelector".equals(fieldName)) { + Map nodeSelector = reader.readMap(reader1 -> reader1.getString()); + deserializedArcDeploymentProperties.nodeSelector = nodeSelector; + } else if ("deploymentState".equals(fieldName)) { + deserializedArcDeploymentProperties.deploymentState + = DeploymentState.fromString(reader.getString()); + } else if ("raiPolicyName".equals(fieldName)) { + deserializedArcDeploymentProperties.raiPolicyName = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedArcDeploymentProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("provisioningDetails".equals(fieldName)) { + deserializedArcDeploymentProperties.provisioningDetails + = ArcDeploymentProvisioningDetails.fromJson(reader); + } else if ("inferenceEndpoint".equals(fieldName)) { + deserializedArcDeploymentProperties.inferenceEndpoint = reader.getString(); + } else if ("capabilities".equals(fieldName)) { + Map capabilities = reader.readMap(reader1 -> reader1.getString()); + deserializedArcDeploymentProperties.capabilities = capabilities; + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProvisioningDetails.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProvisioningDetails.java new file mode 100644 index 000000000000..18b4f6e76715 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProvisioningDetails.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * Provisioning status details for an Arc deployment. + */ +@Immutable +public final class ArcDeploymentProvisioningDetails implements JsonSerializable { + /* + * A human-readable status message from the last provisioning operation. + */ + private String message; + + /* + * Timestamp of the last provisioning operation. + */ + private OffsetDateTime lastOperationTimestamp; + + /** + * Creates an instance of ArcDeploymentProvisioningDetails class. + */ + private ArcDeploymentProvisioningDetails() { + } + + /** + * Get the message property: A human-readable status message from the last provisioning operation. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * Get the lastOperationTimestamp property: Timestamp of the last provisioning operation. + * + * @return the lastOperationTimestamp value. + */ + public OffsetDateTime lastOperationTimestamp() { + return this.lastOperationTimestamp; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("message", this.message); + jsonWriter.writeStringField("lastOperationTimestamp", + this.lastOperationTimestamp == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastOperationTimestamp)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentProvisioningDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentProvisioningDetails 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 ArcDeploymentProvisioningDetails. + */ + public static ArcDeploymentProvisioningDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentProvisioningDetails deserializedArcDeploymentProvisioningDetails + = new ArcDeploymentProvisioningDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("message".equals(fieldName)) { + deserializedArcDeploymentProvisioningDetails.message = reader.getString(); + } else if ("lastOperationTimestamp".equals(fieldName)) { + deserializedArcDeploymentProvisioningDetails.lastOperationTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentProvisioningDetails; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentResourceRequirements.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentResourceRequirements.java new file mode 100644 index 000000000000..30921d5544e7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentResourceRequirements.java @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Kubernetes resource requirements for an Arc deployment replica. + * Specify either cpu and memory together, or gpu. GPU is supported only in limits, not requests. + */ +@Fluent +public final class ArcDeploymentResourceRequirements implements JsonSerializable { + /* + * Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * Required with memory when specifying CPU and memory limits. Do not specify with gpu. + */ + private String cpu; + + /* + * Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * Required with cpu when specifying CPU and memory limits. Do not specify with gpu. + */ + private String memory; + + /* + * Kubernetes GPU quantity, for example 1, 2, or 5. + * Required when specifying GPU limits. Do not specify with cpu or memory. + */ + private Integer gpu; + + /** + * Creates an instance of ArcDeploymentResourceRequirements class. + */ + public ArcDeploymentResourceRequirements() { + } + + /** + * Get the cpu property: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * Required with memory when specifying CPU and memory limits. Do not specify with gpu. + * + * @return the cpu value. + */ + public String cpu() { + return this.cpu; + } + + /** + * Set the cpu property: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + * Required with memory when specifying CPU and memory limits. Do not specify with gpu. + * + * @param cpu the cpu value to set. + * @return the ArcDeploymentResourceRequirements object itself. + */ + public ArcDeploymentResourceRequirements withCpu(String cpu) { + this.cpu = cpu; + return this; + } + + /** + * Get the memory property: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * Required with cpu when specifying CPU and memory limits. Do not specify with gpu. + * + * @return the memory value. + */ + public String memory() { + return this.memory; + } + + /** + * Set the memory property: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + * Required with cpu when specifying CPU and memory limits. Do not specify with gpu. + * + * @param memory the memory value to set. + * @return the ArcDeploymentResourceRequirements object itself. + */ + public ArcDeploymentResourceRequirements withMemory(String memory) { + this.memory = memory; + return this; + } + + /** + * Get the gpu property: Kubernetes GPU quantity, for example 1, 2, or 5. + * Required when specifying GPU limits. Do not specify with cpu or memory. + * + * @return the gpu value. + */ + public Integer gpu() { + return this.gpu; + } + + /** + * Set the gpu property: Kubernetes GPU quantity, for example 1, 2, or 5. + * Required when specifying GPU limits. Do not specify with cpu or memory. + * + * @param gpu the gpu value to set. + * @return the ArcDeploymentResourceRequirements object itself. + */ + public ArcDeploymentResourceRequirements withGpu(Integer gpu) { + this.gpu = gpu; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("cpu", this.cpu); + jsonWriter.writeStringField("memory", this.memory); + jsonWriter.writeNumberField("gpu", this.gpu); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentResourceRequirements from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentResourceRequirements 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 ArcDeploymentResourceRequirements. + */ + public static ArcDeploymentResourceRequirements fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentResourceRequirements deserializedArcDeploymentResourceRequirements + = new ArcDeploymentResourceRequirements(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cpu".equals(fieldName)) { + deserializedArcDeploymentResourceRequirements.cpu = reader.getString(); + } else if ("memory".equals(fieldName)) { + deserializedArcDeploymentResourceRequirements.memory = reader.getString(); + } else if ("gpu".equals(fieldName)) { + deserializedArcDeploymentResourceRequirements.gpu = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentResourceRequirements; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentRuntime.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentRuntime.java new file mode 100644 index 000000000000..3577f2032512 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentRuntime.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Inference runtime for an Arc deployment. + */ +public final class ArcDeploymentRuntime extends ExpandableStringEnum { + /** + * vLLM runtime. + */ + public static final ArcDeploymentRuntime VLLM = fromString("vllm"); + + /** + * ONNX runtime. + */ + public static final ArcDeploymentRuntime ONNX = fromString("onnx-genai"); + + /** + * Creates a new instance of ArcDeploymentRuntime value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ArcDeploymentRuntime() { + } + + /** + * Creates or finds a ArcDeploymentRuntime from its string representation. + * + * @param name a name to look for. + * @return the corresponding ArcDeploymentRuntime. + */ + public static ArcDeploymentRuntime fromString(String name) { + return fromString(name, ArcDeploymentRuntime.class); + } + + /** + * Gets known ArcDeploymentRuntime values. + * + * @return known ArcDeploymentRuntime values. + */ + public static Collection values() { + return values(ArcDeploymentRuntime.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSku.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSku.java new file mode 100644 index 000000000000..0bc4cc820068 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSku.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * SKU for an Arc deployment. + */ +@Fluent +public final class ArcDeploymentSku implements JsonSerializable { + /* + * The name of the Arc deployment SKU. Must be Arc. + */ + private ArcDeploymentSkuName name; + + /** + * Creates an instance of ArcDeploymentSku class. + */ + public ArcDeploymentSku() { + } + + /** + * Get the name property: The name of the Arc deployment SKU. Must be Arc. + * + * @return the name value. + */ + public ArcDeploymentSkuName name() { + return this.name; + } + + /** + * Set the name property: The name of the Arc deployment SKU. Must be Arc. + * + * @param name the name value to set. + * @return the ArcDeploymentSku object itself. + */ + public ArcDeploymentSku withName(ArcDeploymentSkuName name) { + this.name = name; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name == null ? null : this.name.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentSku from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentSku 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 ArcDeploymentSku. + */ + public static ArcDeploymentSku fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentSku deserializedArcDeploymentSku = new ArcDeploymentSku(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedArcDeploymentSku.name = ArcDeploymentSkuName.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentSku; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSkuName.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSkuName.java new file mode 100644 index 000000000000..d9c1e221f608 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSkuName.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * SKU for an Arc deployment. + */ +public final class ArcDeploymentSkuName extends ExpandableStringEnum { + /** + * Arc SKU. + */ + public static final ArcDeploymentSkuName ARC = fromString("Arc"); + + /** + * Creates a new instance of ArcDeploymentSkuName value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ArcDeploymentSkuName() { + } + + /** + * Creates or finds a ArcDeploymentSkuName from its string representation. + * + * @param name a name to look for. + * @return the corresponding ArcDeploymentSkuName. + */ + public static ArcDeploymentSkuName fromString(String name) { + return fromString(name, ArcDeploymentSkuName.class); + } + + /** + * Gets known ArcDeploymentSkuName values. + * + * @return known ArcDeploymentSkuName values. + */ + public static Collection values() { + return values(ArcDeploymentSkuName.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdate.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdate.java new file mode 100644 index 000000000000..6752ce2201c1 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdate.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The object used to update an Arc deployment. + */ +@Fluent +public final class ArcDeploymentUpdate implements JsonSerializable { + /* + * Properties that can be updated on an Arc deployment. + */ + private ArcDeploymentUpdateProperties properties; + + /** + * Creates an instance of ArcDeploymentUpdate class. + */ + public ArcDeploymentUpdate() { + } + + /** + * Get the properties property: Properties that can be updated on an Arc deployment. + * + * @return the properties value. + */ + public ArcDeploymentUpdateProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties that can be updated on an Arc deployment. + * + * @param properties the properties value to set. + * @return the ArcDeploymentUpdate object itself. + */ + public ArcDeploymentUpdate withProperties(ArcDeploymentUpdateProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentUpdate 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 ArcDeploymentUpdate. + */ + public static ArcDeploymentUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentUpdate deserializedArcDeploymentUpdate = new ArcDeploymentUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedArcDeploymentUpdate.properties = ArcDeploymentUpdateProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentUpdate; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdateProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdateProperties.java new file mode 100644 index 000000000000..f61cb121dabf --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdateProperties.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Mutable properties for an Arc deployment. + */ +@Fluent +public final class ArcDeploymentUpdateProperties implements JsonSerializable { + /* + * Physical replica count on the Arc cluster. + */ + private Integer replicas; + + /* + * Per-replica Kubernetes resource requests and limits. + */ + private ArcDeploymentPatchKubernetesResources resources; + + /* + * Kubernetes node selector key-value map used to schedule pods onto nodes with matching labels. + */ + private Map nodeSelector; + + /** + * Creates an instance of ArcDeploymentUpdateProperties class. + */ + public ArcDeploymentUpdateProperties() { + } + + /** + * Get the replicas property: Physical replica count on the Arc cluster. + * + * @return the replicas value. + */ + public Integer replicas() { + return this.replicas; + } + + /** + * Set the replicas property: Physical replica count on the Arc cluster. + * + * @param replicas the replicas value to set. + * @return the ArcDeploymentUpdateProperties object itself. + */ + public ArcDeploymentUpdateProperties withReplicas(Integer replicas) { + this.replicas = replicas; + return this; + } + + /** + * Get the resources property: Per-replica Kubernetes resource requests and limits. + * + * @return the resources value. + */ + public ArcDeploymentPatchKubernetesResources resources() { + return this.resources; + } + + /** + * Set the resources property: Per-replica Kubernetes resource requests and limits. + * + * @param resources the resources value to set. + * @return the ArcDeploymentUpdateProperties object itself. + */ + public ArcDeploymentUpdateProperties withResources(ArcDeploymentPatchKubernetesResources resources) { + this.resources = resources; + return this; + } + + /** + * Get the nodeSelector property: Kubernetes node selector key-value map used to schedule pods onto nodes with + * matching labels. + * + * @return the nodeSelector value. + */ + public Map nodeSelector() { + return this.nodeSelector; + } + + /** + * Set the nodeSelector property: Kubernetes node selector key-value map used to schedule pods onto nodes with + * matching labels. + * + * @param nodeSelector the nodeSelector value to set. + * @return the ArcDeploymentUpdateProperties object itself. + */ + public ArcDeploymentUpdateProperties withNodeSelector(Map nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("replicas", this.replicas); + jsonWriter.writeJsonField("resources", this.resources); + jsonWriter.writeMapField("nodeSelector", this.nodeSelector, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentUpdateProperties 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 ArcDeploymentUpdateProperties. + */ + public static ArcDeploymentUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentUpdateProperties deserializedArcDeploymentUpdateProperties + = new ArcDeploymentUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("replicas".equals(fieldName)) { + deserializedArcDeploymentUpdateProperties.replicas = reader.getNullable(JsonReader::getInt); + } else if ("resources".equals(fieldName)) { + deserializedArcDeploymentUpdateProperties.resources + = ArcDeploymentPatchKubernetesResources.fromJson(reader); + } else if ("nodeSelector".equals(fieldName)) { + Map nodeSelector = reader.readMap(reader1 -> reader1.getString()); + deserializedArcDeploymentUpdateProperties.nodeSelector = nodeSelector; + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentUpdateProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentVllmParameters.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentVllmParameters.java new file mode 100644 index 000000000000..b8cbfb841975 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentVllmParameters.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.cognitiveservices.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; + +/** + * Effective vLLM runtime parameters for an Arc deployment. + */ +@Immutable +public final class ArcDeploymentVllmParameters implements JsonSerializable { + /* + * Number of GPUs used for tensor parallelism. + */ + private Integer tensorParallelSize; + + /* + * Maximum model context length. + */ + private Integer maxModelLen; + + /* + * Fraction of GPU memory reserved for model execution. + */ + private Float gpuMemoryUtilization; + + /* + * Whether eager execution is enforced for the vLLM runtime. + */ + private Boolean enforceEager; + + /** + * Creates an instance of ArcDeploymentVllmParameters class. + */ + private ArcDeploymentVllmParameters() { + } + + /** + * Get the tensorParallelSize property: Number of GPUs used for tensor parallelism. + * + * @return the tensorParallelSize value. + */ + public Integer tensorParallelSize() { + return this.tensorParallelSize; + } + + /** + * Get the maxModelLen property: Maximum model context length. + * + * @return the maxModelLen value. + */ + public Integer maxModelLen() { + return this.maxModelLen; + } + + /** + * Get the gpuMemoryUtilization property: Fraction of GPU memory reserved for model execution. + * + * @return the gpuMemoryUtilization value. + */ + public Float gpuMemoryUtilization() { + return this.gpuMemoryUtilization; + } + + /** + * Get the enforceEager property: Whether eager execution is enforced for the vLLM runtime. + * + * @return the enforceEager value. + */ + public Boolean enforceEager() { + return this.enforceEager; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("tensorParallelSize", this.tensorParallelSize); + jsonWriter.writeNumberField("maxModelLen", this.maxModelLen); + jsonWriter.writeNumberField("gpuMemoryUtilization", this.gpuMemoryUtilization); + jsonWriter.writeBooleanField("enforceEager", this.enforceEager); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArcDeploymentVllmParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArcDeploymentVllmParameters 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 ArcDeploymentVllmParameters. + */ + public static ArcDeploymentVllmParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArcDeploymentVllmParameters deserializedArcDeploymentVllmParameters = new ArcDeploymentVllmParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tensorParallelSize".equals(fieldName)) { + deserializedArcDeploymentVllmParameters.tensorParallelSize = reader.getNullable(JsonReader::getInt); + } else if ("maxModelLen".equals(fieldName)) { + deserializedArcDeploymentVllmParameters.maxModelLen = reader.getNullable(JsonReader::getInt); + } else if ("gpuMemoryUtilization".equals(fieldName)) { + deserializedArcDeploymentVllmParameters.gpuMemoryUtilization + = reader.getNullable(JsonReader::getFloat); + } else if ("enforceEager".equals(fieldName)) { + deserializedArcDeploymentVllmParameters.enforceEager = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedArcDeploymentVllmParameters; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployments.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployments.java new file mode 100644 index 000000000000..6562d74c1792 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployments.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ArcDeployments. + */ +public interface ArcDeployments { + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String deploymentName, + Context context); + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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 specified Arc deployment associated with the Cognitive Services account. + */ + ArcDeployment get(String resourceGroupName, String accountName, String deploymentName); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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. + */ + void delete(String resourceGroupName, String accountName, String deploymentName); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the Arc deployment associated with the Cognitive Services Account. The name + * must be unique within the account across deployments, managedComputeDeployments, and arcDeployments. + * @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. + */ + void delete(String resourceGroupName, String accountName, String deploymentName, Context context); + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the Arc deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @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 Arc deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Arc deployment associated with the Cognitive Services account along with {@link Response}. + */ + ArcDeployment getById(String id); + + /** + * Gets the specified Arc deployment associated with the Cognitive Services account. + * + * @param id the resource 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 specified Arc deployment associated with the Cognitive Services account along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes the specified Arc deployment associated with the Cognitive Services account. + * + * @param id the resource 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. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ArcDeployment resource. + * + * @param name resource name. + * @return the first stage of the new ArcDeployment definition. + */ + ArcDeployment.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilitySettings.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilitySettings.java new file mode 100644 index 000000000000..9ae594e722f4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilitySettings.java @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.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; + +/** + * Extensible agent capability configuration. Carries the Azure resource IDs of the agent storage dependencies. Modeled + * as an object so future capability-backed resources can be added without changing the account or project contract. + */ +@Fluent +public final class CapabilitySettings implements JsonSerializable { + /* + * Azure resource ID of the document store used by agent runtime state. + */ + private String documentStore; + + /* + * Azure resource ID of the vector store used by agent retrieval and indexing. + */ + private String vectorStore; + + /* + * Azure resource ID of the blob store used by agent file and artifact storage. + */ + private String blobStore; + + /** + * Creates an instance of CapabilitySettings class. + */ + public CapabilitySettings() { + } + + /** + * Get the documentStore property: Azure resource ID of the document store used by agent runtime state. + * + * @return the documentStore value. + */ + public String documentStore() { + return this.documentStore; + } + + /** + * Set the documentStore property: Azure resource ID of the document store used by agent runtime state. + * + * @param documentStore the documentStore value to set. + * @return the CapabilitySettings object itself. + */ + public CapabilitySettings withDocumentStore(String documentStore) { + this.documentStore = documentStore; + return this; + } + + /** + * Get the vectorStore property: Azure resource ID of the vector store used by agent retrieval and indexing. + * + * @return the vectorStore value. + */ + public String vectorStore() { + return this.vectorStore; + } + + /** + * Set the vectorStore property: Azure resource ID of the vector store used by agent retrieval and indexing. + * + * @param vectorStore the vectorStore value to set. + * @return the CapabilitySettings object itself. + */ + public CapabilitySettings withVectorStore(String vectorStore) { + this.vectorStore = vectorStore; + return this; + } + + /** + * Get the blobStore property: Azure resource ID of the blob store used by agent file and artifact storage. + * + * @return the blobStore value. + */ + public String blobStore() { + return this.blobStore; + } + + /** + * Set the blobStore property: Azure resource ID of the blob store used by agent file and artifact storage. + * + * @param blobStore the blobStore value to set. + * @return the CapabilitySettings object itself. + */ + public CapabilitySettings withBlobStore(String blobStore) { + this.blobStore = blobStore; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("documentStore", this.documentStore); + jsonWriter.writeStringField("vectorStore", this.vectorStore); + jsonWriter.writeStringField("blobStore", this.blobStore); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CapabilitySettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CapabilitySettings 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 CapabilitySettings. + */ + public static CapabilitySettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CapabilitySettings deserializedCapabilitySettings = new CapabilitySettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("documentStore".equals(fieldName)) { + deserializedCapabilitySettings.documentStore = reader.getString(); + } else if ("vectorStore".equals(fieldName)) { + deserializedCapabilitySettings.vectorStore = reader.getString(); + } else if ("blobStore".equals(fieldName)) { + deserializedCapabilitySettings.blobStore = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCapabilitySettings; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java index 03b0c92039b8..fb329131fbf6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java @@ -89,12 +89,22 @@ public ClusterComputeProperties withSubnetArmId(String subnetArmId) { return this; } + /** + * {@inheritDoc} + */ + @Override + public ClusterComputeProperties withLocation(String location) { + super.withLocation(location); + return this; + } + /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); jsonWriter.writeArrayField("pools", this.pools, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("computeType", this.computeType == null ? null : this.computeType.toString()); jsonWriter.writeStringField("subnetArmId", this.subnetArmId); @@ -117,7 +127,9 @@ public static ClusterComputeProperties fromJson(JsonReader jsonReader) throws IO String fieldName = reader.getFieldName(); reader.nextToken(); - if ("provisioningState".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedClusterComputeProperties.withLocation(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { deserializedClusterComputeProperties .withProvisioningState(ComputeProvisioningState.fromString(reader.getString())); } else if ("errors".equals(fieldName)) { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java index 2c59af7f72d9..fec37b303a02 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.cognitiveservices.models; -import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner; @@ -50,13 +49,6 @@ public interface Compute { */ String etag(); - /** - * Gets the location property: The location of the compute resource. - * - * @return the location value. - */ - String location(); - /** * Gets the tags property: Resource tags. * @@ -85,20 +77,6 @@ public interface Compute { */ SystemData systemData(); - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - /** * Gets the name of the resource group. * @@ -163,8 +141,8 @@ interface WithProperties { * The stage of the Compute definition which contains all the minimum required properties for the resource to be * created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithTags, - DefinitionStages.WithKind, DefinitionStages.WithIdentity { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithKind, DefinitionStages.WithIdentity { /** * Executes the create request. * @@ -181,27 +159,6 @@ interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.Wit Compute create(Context context); } - /** - * The stage of the Compute definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The location of the compute resource. - * @return the next definition stage. - */ - WithCreate withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The location of the compute resource. - * @return the next definition stage. - */ - WithCreate withRegion(String location); - } - /** * The stage of the Compute definition allowing to specify tags. */ diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java index c46ae8d05b79..083df9e6aff2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.cognitiveservices.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.management.exception.ManagementError; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; @@ -19,13 +19,18 @@ * Base properties for all compute resource types. * The computeType discriminator determines the concrete property shape. */ -@Immutable +@Fluent public class ComputeProperties implements JsonSerializable { /* * The type of compute resource. */ private ComputeType computeType = ComputeType.fromString("ComputeProperties"); + /* + * The location of the compute resource. + */ + private String location; + /* * Provisioning state of the compute resource. */ @@ -56,6 +61,26 @@ public ComputeType computeType() { return this.computeType; } + /** + * Get the location property: The location of the compute resource. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: The location of the compute resource. + * + * @param location the location value to set. + * @return the ComputeProperties object itself. + */ + public ComputeProperties withLocation(String location) { + this.location = location; + return this; + } + /** * Get the provisioningState property: Provisioning state of the compute resource. * @@ -122,6 +147,7 @@ ComputeProperties withCreationTime(OffsetDateTime creationTime) { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); jsonWriter.writeStringField("computeType", this.computeType == null ? null : this.computeType.toString()); return jsonWriter.writeEndObject(); } @@ -132,6 +158,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ComputeProperties 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 ComputeProperties. */ public static ComputeProperties fromJson(JsonReader jsonReader) throws IOException { @@ -168,7 +195,9 @@ static ComputeProperties fromJsonKnownDiscriminator(JsonReader jsonReader) throw String fieldName = reader.getFieldName(); reader.nextToken(); - if ("computeType".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedComputeProperties.location = reader.getString(); + } else if ("computeType".equals(fieldName)) { deserializedComputeProperties.computeType = ComputeType.fromString(reader.getString()); } else if ("provisioningState".equals(fieldName)) { deserializedComputeProperties.provisioningState diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java index 58c66fe07127..f2c8bd54eaf2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java @@ -84,14 +84,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, accountName, projectName. + * Specifies resourceGroupName, accountName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. - * @param projectName The name of Cognitive Services account's project. * @return the next definition stage. */ - WithProperties withExistingProject(String resourceGroupName, String accountName, String projectName); + WithProperties withExistingAccount(String resourceGroupName, String accountName); } /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java index 387288c4690d..2cd5eedf2922 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java @@ -155,12 +155,22 @@ public ConnectivityEndpoints connectivityEndpoints() { return this.connectivityEndpoints; } + /** + * {@inheritDoc} + */ + @Override + public ContainerInstanceComputeProperties withLocation(String location) { + super.withLocation(location); + return this; + } + /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); jsonWriter.writeStringField("targetClusterId", this.targetClusterId); jsonWriter.writeStringField("imageLink", this.imageLink); jsonWriter.writeStringField("computeType", this.computeType == null ? null : this.computeType.toString()); @@ -186,7 +196,9 @@ public static ContainerInstanceComputeProperties fromJson(JsonReader jsonReader) String fieldName = reader.getFieldName(); reader.nextToken(); - if ("provisioningState".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.withLocation(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { deserializedContainerInstanceComputeProperties .withProvisioningState(ComputeProvisioningState.fromString(reader.getString())); } else if ("errors".equals(fieldName)) { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java index 8ee26958e765..9699f4c1962d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java @@ -28,6 +28,11 @@ public final class DeploymentProperties implements JsonSerializable { + ManagedClusterAgentHostingConfiguration deserializedManagedClusterAgentHostingConfiguration + = new ManagedClusterAgentHostingConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedManagedClusterAgentHostingConfiguration.withName(reader.getString()); + } else if ("hostingManagementIdentityResourceId".equals(fieldName)) { + deserializedManagedClusterAgentHostingConfiguration.hostingManagementIdentityResourceId + = reader.getString(); + } else if ("workloadIdentityResourceId".equals(fieldName)) { + deserializedManagedClusterAgentHostingConfiguration.workloadIdentityResourceId = reader.getString(); + } else if ("clusterResourceId".equals(fieldName)) { + deserializedManagedClusterAgentHostingConfiguration.clusterResourceId = reader.getString(); + } else if ("storageAccountResourceId".equals(fieldName)) { + deserializedManagedClusterAgentHostingConfiguration.storageAccountResourceId = reader.getString(); + } else if ("hostingType".equals(fieldName)) { + deserializedManagedClusterAgentHostingConfiguration.hostingType + = AgentHostingType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterAgentHostingConfiguration; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java index f9142ab01827..1b6d0d684870 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java @@ -129,9 +129,9 @@ public Pool withNodeCount(int nodeCount) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("vmPriority", this.vmPriority == null ? null : this.vmPriority.toString()); jsonWriter.writeStringField("instanceType", this.instanceType); jsonWriter.writeIntField("nodeCount", this.nodeCount); + jsonWriter.writeStringField("vmPriority", this.vmPriority == null ? null : this.vmPriority.toString()); return jsonWriter.writeEndObject(); } @@ -153,12 +153,12 @@ public static Pool fromJson(JsonReader jsonReader) throws IOException { if ("name".equals(fieldName)) { deserializedPool.name = reader.getString(); - } else if ("vmPriority".equals(fieldName)) { - deserializedPool.vmPriority = VmPriority.fromString(reader.getString()); } else if ("instanceType".equals(fieldName)) { deserializedPool.instanceType = reader.getString(); } else if ("nodeCount".equals(fieldName)) { deserializedPool.nodeCount = reader.getInt(); + } else if ("vmPriority".equals(fieldName)) { + deserializedPool.vmPriority = VmPriority.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java index 232f328ed24d..32ce4f887c12 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java @@ -7,6 +7,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; /** * Resource collection API of ProjectConnections. @@ -44,23 +45,25 @@ ConnectionPropertiesV2BasicResource get(String resourceGroupName, String account String connectionName); /** - * Delete Cognitive Services project connection by name. + * Create or update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param projectName The name of Cognitive Services account's project. * @param connectionName Friendly name of the connection. + * @param connection The object for creating or updating a new account connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return connection base resource schema along with {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String projectName, - String connectionName, Context context); + Response createWithResponse(String resourceGroupName, String accountName, + String projectName, String connectionName, ConnectionPropertiesV2BasicResourceInner connection, + Context context); /** - * Delete Cognitive Services project connection by name. + * Create or update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. @@ -69,92 +72,102 @@ Response deleteWithResponse(String resourceGroupName, String accountName, * @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 connection base resource schema. */ - void delete(String resourceGroupName, String accountName, String projectName, String connectionName); + ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String projectName, + String connectionName); /** - * Lists all the available Cognitive Services project connections under the specified project. + * Update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param projectName The name of Cognitive Services account's project. + * @param connectionName Friendly name of the connection. + * @param connection Parameters for account connection update. + * @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 paginated response with {@link PagedIterable}. + * @return connection base resource schema along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName, - String projectName); + Response updateWithResponse(String resourceGroupName, String accountName, + String projectName, String connectionName, ConnectionUpdateContent connection, Context context); /** - * Lists all the available Cognitive Services project connections under the specified project. + * Update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param projectName The name of Cognitive Services account's project. - * @param target Target of the connection. - * @param category Category of the connection. - * @param includeAll query parameter that indicates if get connection call should return both connections and - * datastores. - * @param context The context to associate with this operation. + * @param connectionName Friendly name of the connection. * @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 paginated response with {@link PagedIterable}. + * @return connection base resource schema. */ - PagedIterable list(String resourceGroupName, String accountName, - String projectName, String target, String category, Boolean includeAll, Context context); + ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String projectName, + String connectionName); /** - * Lists Cognitive Services project connection by name. + * Delete Cognitive Services project connection by name. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. + * @param connectionName Friendly name of the connection. + * @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 connection base resource schema along with {@link Response}. + * @return the {@link Response}. */ - ConnectionPropertiesV2BasicResource getById(String id); + Response deleteWithResponse(String resourceGroupName, String accountName, String projectName, + String connectionName, Context context); /** - * Lists Cognitive Services project connection by name. + * Delete Cognitive Services project connection by name. * - * @param id the resource ID. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. + * @param connectionName Friendly name of the connection. * @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 connection base resource schema along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + void delete(String resourceGroupName, String accountName, String projectName, String connectionName); /** - * Delete Cognitive Services project connection by name. + * Lists all the available Cognitive Services project connections under the specified project. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. * @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 paginated response with {@link PagedIterable}. */ - void deleteById(String id); + PagedIterable list(String resourceGroupName, String accountName, + String projectName); /** - * Delete Cognitive Services project connection by name. + * Lists all the available Cognitive Services project connections under the specified project. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. + * @param target Target of the connection. + * @param category Category of the connection. + * @param includeAll query parameter that indicates if get connection call should return both connections and + * datastores. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ConnectionPropertiesV2BasicResource resource. - * - * @param name resource name. - * @return the first stage of the new ConnectionPropertiesV2BasicResource definition. + * @return the paginated response with {@link PagedIterable}. */ - ConnectionPropertiesV2BasicResource.DefinitionStages.Blank define(String name); + PagedIterable list(String resourceGroupName, String accountName, + String projectName, String target, String category, Boolean includeAll, Context context); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java index 2b7c1066a408..7a0633498c03 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java @@ -42,6 +42,12 @@ public final class ProjectProperties implements JsonSerializable { public static final VmPriority REGULAR = fromString("Regular"); /** - * Low-priority VM. + * Spot VM priority. */ - public static final VmPriority LOW_PRIORITY = fromString("LowPriority"); + public static final VmPriority SPOT = fromString("Spot"); /** * Creates a new instance of VmPriority value. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/azure-resourcemanager-cognitiveservices_metadata.json b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/azure-resourcemanager-cognitiveservices_metadata.json index d3f332388693..7523a1bd6f45 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/azure-resourcemanager-cognitiveservices_metadata.json +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/azure-resourcemanager-cognitiveservices_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.CognitiveServices":"2026-05-15-preview"},"crossLanguagePackageId":"Microsoft.CognitiveServices","crossLanguageVersion":"80649970687f","crossLanguageDefinitions":{"com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.CapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.beginDelete":"Microsoft.CognitiveServices.CapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.createOrUpdate":"Microsoft.CognitiveServices.CapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.delete":"Microsoft.CognitiveServices.CapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.get":"Microsoft.CognitiveServices.CapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.getWithResponse":"Microsoft.CognitiveServices.CapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.list":"Microsoft.CognitiveServices.CapabilityHosts.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.create":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.createWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.delete":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.deleteWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.get":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.list":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.update":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.updateWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient":"Microsoft.CognitiveServices.Accounts","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginCreate":"Microsoft.CognitiveServices.Accounts.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginDelete":"Microsoft.CognitiveServices.Accounts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginUpdate":"Microsoft.CognitiveServices.Accounts.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.create":"Microsoft.CognitiveServices.Accounts.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.delete":"Microsoft.CognitiveServices.Accounts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.evaluateDeploymentPolicies":"Microsoft.CognitiveServices.Accounts.evaluateDeploymentPolicies","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.evaluateDeploymentPoliciesWithResponse":"Microsoft.CognitiveServices.Accounts.evaluateDeploymentPolicies","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.getByResourceGroup":"Microsoft.CognitiveServices.Accounts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.CognitiveServices.Accounts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.list":"Microsoft.CognitiveServices.Accounts.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listByResourceGroup":"Microsoft.CognitiveServices.Accounts.listByResourceGroup","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listKeys":"Microsoft.CognitiveServices.Accounts.listKeys","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listKeysWithResponse":"Microsoft.CognitiveServices.Accounts.listKeys","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listModels":"Microsoft.CognitiveServices.Accounts.listModels","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listSkus":"Microsoft.CognitiveServices.Accounts.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listSkusWithResponse":"Microsoft.CognitiveServices.Accounts.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listUsages":"Microsoft.CognitiveServices.Accounts.listUsages","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listUsagesWithResponse":"Microsoft.CognitiveServices.Accounts.listUsages","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.regenerateKey":"Microsoft.CognitiveServices.Accounts.regenerateKey","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.regenerateKeyWithResponse":"Microsoft.CognitiveServices.Accounts.regenerateKey","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.update":"Microsoft.CognitiveServices.Accounts.update","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient":"Microsoft.CognitiveServices.AgentApplications","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.AgentApplications.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.beginDelete":"Microsoft.CognitiveServices.AgentApplications.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.createOrUpdate":"Microsoft.CognitiveServices.AgentApplications.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.delete":"Microsoft.CognitiveServices.AgentApplications.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.disable":"Microsoft.CognitiveServices.AgentApplications.disable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.disableWithResponse":"Microsoft.CognitiveServices.AgentApplications.disable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.enable":"Microsoft.CognitiveServices.AgentApplications.enable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.enableWithResponse":"Microsoft.CognitiveServices.AgentApplications.enable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.get":"Microsoft.CognitiveServices.AgentApplications.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.getWithResponse":"Microsoft.CognitiveServices.AgentApplications.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.list":"Microsoft.CognitiveServices.AgentApplications.list","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.listAgents":"Microsoft.CognitiveServices.AgentApplications.listAgents","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.listAgentsWithResponse":"Microsoft.CognitiveServices.AgentApplications.listAgents","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.AgentDeploymentResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.AgentDeploymentResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.AgentDeploymentResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.delete":"Microsoft.CognitiveServices.AgentDeploymentResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.get":"Microsoft.CognitiveServices.AgentDeploymentResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.list":"Microsoft.CognitiveServices.AgentDeploymentResources.list","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.start":"Microsoft.CognitiveServices.AgentDeploymentResources.start","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.startWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.start","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.stop":"Microsoft.CognitiveServices.AgentDeploymentResources.stop","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.stopWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.stop","com.azure.resourcemanager.cognitiveservices.fluent.CognitiveServicesManagementClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient":"Microsoft.CognitiveServices.CommitmentPlans","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginCreateOrUpdateAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.createOrUpdateAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginCreateOrUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.createOrUpdatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDelete":"Microsoft.CognitiveServices.CommitmentPlans.delete","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDeleteAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.deleteAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDeletePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.deletePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.updatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdate":"Microsoft.CognitiveServices.CommitmentPlans.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdateAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.createOrUpdateAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.createOrUpdatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.CommitmentPlans.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.delete":"Microsoft.CognitiveServices.CommitmentPlans.delete","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.deleteAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.deleteAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.deletePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.deletePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.get":"Microsoft.CognitiveServices.CommitmentPlans.get","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.getAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getAssociationWithResponse":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.getAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getByResourceGroup":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.getPlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getByResourceGroupWithResponse":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.getPlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getWithResponse":"Microsoft.CognitiveServices.CommitmentPlans.get","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.list":"Microsoft.CognitiveServices.CommitmentPlans.list","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listAssociations":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.listAssociations","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listByResourceGroup":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.listPlansByResourceGroup","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listPlansBySubscription":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.listPlansBySubscription","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.updatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.updatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient.list":"Microsoft.CognitiveServices.CommitmentTiersOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient":"Microsoft.CognitiveServices.ComputeOperations","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient.get":"Microsoft.CognitiveServices.ComputeOperations.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient.getWithResponse":"Microsoft.CognitiveServices.ComputeOperations.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient":"Microsoft.CognitiveServices.Computes","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Computes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginDelete":"Microsoft.CognitiveServices.Computes.delete","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginRestart":"Microsoft.CognitiveServices.Computes.restart","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginStart":"Microsoft.CognitiveServices.Computes.start","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginStop":"Microsoft.CognitiveServices.Computes.stop","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginUpdate":"Microsoft.CognitiveServices.Computes.update","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.createOrUpdate":"Microsoft.CognitiveServices.Computes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.delete":"Microsoft.CognitiveServices.Computes.delete","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.get":"Microsoft.CognitiveServices.Computes.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.getWithResponse":"Microsoft.CognitiveServices.Computes.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.list":"Microsoft.CognitiveServices.Computes.list","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.restart":"Microsoft.CognitiveServices.Computes.restart","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.start":"Microsoft.CognitiveServices.Computes.start","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.stop":"Microsoft.CognitiveServices.Computes.stop","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.update":"Microsoft.CognitiveServices.Computes.update","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient":"Microsoft.CognitiveServices.DefenderForAISettings","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.createOrUpdate":"Microsoft.CognitiveServices.DefenderForAISettings.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.get":"Microsoft.CognitiveServices.DefenderForAISettings.get","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.getWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.get","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.list":"Microsoft.CognitiveServices.DefenderForAISettings.list","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.update":"Microsoft.CognitiveServices.DefenderForAISettings.update","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.updateWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.update","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient":"Microsoft.CognitiveServices.DeletedAccounts","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.beginPurge":"Microsoft.CognitiveServices.DeletedAccounts.purge","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.get":"Microsoft.CognitiveServices.DeletedAccounts.get","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.getWithResponse":"Microsoft.CognitiveServices.DeletedAccounts.get","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.list":"Microsoft.CognitiveServices.DeletedAccounts.list","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.purge":"Microsoft.CognitiveServices.DeletedAccounts.purge","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient":"Microsoft.CognitiveServices.Deployments","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Deployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginDelete":"Microsoft.CognitiveServices.Deployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.Deployments.update","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.Deployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.delete":"Microsoft.CognitiveServices.Deployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.get":"Microsoft.CognitiveServices.Deployments.get","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.Deployments.get","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.list":"Microsoft.CognitiveServices.Deployments.list","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.listSkus":"Microsoft.CognitiveServices.Deployments.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.pause":"Microsoft.CognitiveServices.Deployments.pause","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.pauseWithResponse":"Microsoft.CognitiveServices.Deployments.pause","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.resume":"Microsoft.CognitiveServices.Deployments.resume","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.resumeWithResponse":"Microsoft.CognitiveServices.Deployments.resume","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.update":"Microsoft.CognitiveServices.Deployments.update","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient":"Microsoft.CognitiveServices.EncryptionScopes","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.beginDelete":"Microsoft.CognitiveServices.EncryptionScopes.delete","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.createOrUpdate":"Microsoft.CognitiveServices.EncryptionScopes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.EncryptionScopes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.delete":"Microsoft.CognitiveServices.EncryptionScopes.delete","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.get":"Microsoft.CognitiveServices.EncryptionScopes.get","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.getWithResponse":"Microsoft.CognitiveServices.EncryptionScopes.get","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.list":"Microsoft.CognitiveServices.EncryptionScopes.list","com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient.list":"Microsoft.CognitiveServices.LocationBasedModelCapacitiesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient":"Microsoft.CognitiveServices.ManagedComputeCapacities","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient.list":"Microsoft.CognitiveServices.ManagedComputeCapacities.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient":"Microsoft.CognitiveServices.ManagedComputeDeployments","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.ManagedComputeDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.delete":"Microsoft.CognitiveServices.ManagedComputeDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.get":"Microsoft.CognitiveServices.ManagedComputeDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.ManagedComputeDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.list":"Microsoft.CognitiveServices.ManagedComputeDeployments.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.update":"Microsoft.CognitiveServices.ManagedComputeDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient":"Microsoft.CognitiveServices.ManagedComputeUsagesOperationGroup","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient.list":"Microsoft.CognitiveServices.ManagedComputeUsagesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient.beginProvisionManagedNetwork":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.provisionManagedNetwork","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient.provisionManagedNetwork":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.provisionManagedNetwork","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginDelete":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginPatch":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.patch","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginPut":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.put","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.delete":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.get":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.getWithResponse":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.list":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.patch":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.patch","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.put":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.put","com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient.list":"Microsoft.CognitiveServices.ModelCapacitiesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient.list":"Microsoft.CognitiveServices.ModelsOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.beginReconcile":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.reconcile","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.get":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.get","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.getWithResponse":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.get","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.list":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.list","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.reconcile":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.reconcile","com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient":"Microsoft.CognitiveServices.Operations","com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.OutboundRuleBasicResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.beginDelete":"Microsoft.CognitiveServices.OutboundRuleBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.createOrUpdate":"Microsoft.CognitiveServices.OutboundRuleBasicResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.delete":"Microsoft.CognitiveServices.OutboundRuleBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.get":"Microsoft.CognitiveServices.OutboundRuleBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.getWithResponse":"Microsoft.CognitiveServices.OutboundRuleBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.list":"Microsoft.CognitiveServices.OutboundRuleBasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesOperationsClient.post":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.post","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient":"Microsoft.CognitiveServices.PrivateEndpointConnections","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.PrivateEndpointConnections.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.CognitiveServices.PrivateEndpointConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.createOrUpdate":"Microsoft.CognitiveServices.PrivateEndpointConnections.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.CognitiveServices.PrivateEndpointConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.CognitiveServices.PrivateEndpointConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.PrivateEndpointConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.CognitiveServices.PrivateEndpointConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.listWithResponse":"Microsoft.CognitiveServices.PrivateEndpointConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient.list":"Microsoft.CognitiveServices.Accounts.privateLinkResourcesList","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient.listWithResponse":"Microsoft.CognitiveServices.Accounts.privateLinkResourcesList","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient":"Microsoft.CognitiveServices.ProjectCapabilityHosts","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ProjectCapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.beginDelete":"Microsoft.CognitiveServices.ProjectCapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.createOrUpdate":"Microsoft.CognitiveServices.ProjectCapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.delete":"Microsoft.CognitiveServices.ProjectCapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.get":"Microsoft.CognitiveServices.ProjectCapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.getWithResponse":"Microsoft.CognitiveServices.ProjectCapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.list":"Microsoft.CognitiveServices.ProjectCapabilityHosts.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient":"Microsoft.CognitiveServices.ProjectConnections","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.create":"Microsoft.CognitiveServices.ProjectConnections.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.createWithResponse":"Microsoft.CognitiveServices.ProjectConnections.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.delete":"Microsoft.CognitiveServices.ProjectConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.deleteWithResponse":"Microsoft.CognitiveServices.ProjectConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.get":"Microsoft.CognitiveServices.ProjectConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.ProjectConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.list":"Microsoft.CognitiveServices.ProjectConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.update":"Microsoft.CognitiveServices.ProjectConnections.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.updateWithResponse":"Microsoft.CognitiveServices.ProjectConnections.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient":"Microsoft.CognitiveServices.Projects","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginCreate":"Microsoft.CognitiveServices.Projects.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginDelete":"Microsoft.CognitiveServices.Projects.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginUpdate":"Microsoft.CognitiveServices.Projects.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.create":"Microsoft.CognitiveServices.Projects.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.delete":"Microsoft.CognitiveServices.Projects.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.get":"Microsoft.CognitiveServices.Projects.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.getWithResponse":"Microsoft.CognitiveServices.Projects.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.list":"Microsoft.CognitiveServices.Projects.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.update":"Microsoft.CognitiveServices.Projects.update","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient":"Microsoft.CognitiveServices.QuotaTiers","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.createOrUpdate":"Microsoft.CognitiveServices.QuotaTiers.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.QuotaTiers.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.get":"Microsoft.CognitiveServices.QuotaTiers.get","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.getWithResponse":"Microsoft.CognitiveServices.QuotaTiers.get","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.list":"Microsoft.CognitiveServices.QuotaTiers.listBySubscription","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.update":"Microsoft.CognitiveServices.QuotaTiers.update","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.updateWithResponse":"Microsoft.CognitiveServices.QuotaTiers.update","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient":"Microsoft.CognitiveServices.RaiBlocklistItems","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchAdd":"Microsoft.CognitiveServices.RaiBlocklists.batchAdd","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchAddWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.batchAdd","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchDelete":"Microsoft.CognitiveServices.RaiBlocklists.batchDelete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchDeleteWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.batchDelete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.beginDelete":"Microsoft.CognitiveServices.RaiBlocklistItems.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiBlocklistItems.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiBlocklistItems.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.delete":"Microsoft.CognitiveServices.RaiBlocklistItems.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.get":"Microsoft.CognitiveServices.RaiBlocklistItems.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.getWithResponse":"Microsoft.CognitiveServices.RaiBlocklistItems.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.list":"Microsoft.CognitiveServices.RaiBlocklistItems.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient":"Microsoft.CognitiveServices.RaiBlocklists","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.beginDelete":"Microsoft.CognitiveServices.RaiBlocklists.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiBlocklists.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.delete":"Microsoft.CognitiveServices.RaiBlocklists.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.get":"Microsoft.CognitiveServices.RaiBlocklists.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.getWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.list":"Microsoft.CognitiveServices.RaiBlocklists.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient":"Microsoft.CognitiveServices.RaiContentFilters","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.get":"Microsoft.CognitiveServices.RaiContentFilters.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.getWithResponse":"Microsoft.CognitiveServices.RaiContentFilters.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.list":"Microsoft.CognitiveServices.RaiContentFilters.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.beginDelete":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.createOrUpdate":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.delete":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.get":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.getWithResponse":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersOperationsClient.list":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient":"Microsoft.CognitiveServices.RaiPolicies","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.beginDelete":"Microsoft.CognitiveServices.RaiPolicies.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.createOrUpdate":"Microsoft.CognitiveServices.RaiPolicies.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiPolicies.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.delete":"Microsoft.CognitiveServices.RaiPolicies.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.get":"Microsoft.CognitiveServices.RaiPolicies.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.getWithResponse":"Microsoft.CognitiveServices.RaiPolicies.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.list":"Microsoft.CognitiveServices.RaiPolicies.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient":"Microsoft.CognitiveServices.RaiToolLabels","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.beginDelete":"Microsoft.CognitiveServices.RaiToolLabels.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiToolLabels.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiToolLabels.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.delete":"Microsoft.CognitiveServices.RaiToolLabels.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.get":"Microsoft.CognitiveServices.RaiToolLabels.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.getWithResponse":"Microsoft.CognitiveServices.RaiToolLabels.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.list":"Microsoft.CognitiveServices.RaiToolLabels.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient":"Microsoft.CognitiveServices.RaiTopics","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.beginDelete":"Microsoft.CognitiveServices.RaiTopics.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiTopics.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiTopics.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.delete":"Microsoft.CognitiveServices.RaiTopics.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.get":"Microsoft.CognitiveServices.RaiTopics.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.getWithResponse":"Microsoft.CognitiveServices.RaiTopics.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.list":"Microsoft.CognitiveServices.RaiTopics.list","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.calculateModelCapacity":"Microsoft.CognitiveServices.calculateModelCapacity","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.calculateModelCapacityWithResponse":"Microsoft.CognitiveServices.calculateModelCapacity","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkDomainAvailability":"Microsoft.CognitiveServices.checkDomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkDomainAvailabilityWithResponse":"Microsoft.CognitiveServices.checkDomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkSkuAvailability":"Microsoft.CognitiveServices.checkSkuAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkSkuAvailabilityWithResponse":"Microsoft.CognitiveServices.checkSkuAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient.list":"Microsoft.CognitiveServices.ResourceSkusOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient":"Microsoft.CognitiveServices.SubscriptionRaiPolicy","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.beginDelete":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.delete","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.createOrUpdate":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.delete":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.delete","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.get":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.get","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.getWithResponse":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.get","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient.createOrUpdate":"Microsoft.CognitiveServices.Accounts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.Accounts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient.list":"Microsoft.CognitiveServices.UsagesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient":"Microsoft.CognitiveServices.Workbenches","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Workbenches.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginDelete":"Microsoft.CognitiveServices.Workbenches.delete","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginRestart":"Microsoft.CognitiveServices.Workbenches.restart","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginStart":"Microsoft.CognitiveServices.Workbenches.start","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginStop":"Microsoft.CognitiveServices.Workbenches.stop","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginUpdate":"Microsoft.CognitiveServices.Workbenches.update","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.createOrUpdate":"Microsoft.CognitiveServices.Workbenches.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.delete":"Microsoft.CognitiveServices.Workbenches.delete","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.get":"Microsoft.CognitiveServices.Workbenches.get","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.getWithResponse":"Microsoft.CognitiveServices.Workbenches.get","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.list":"Microsoft.CognitiveServices.Workbenches.list","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.restart":"Microsoft.CognitiveServices.Workbenches.restart","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.start":"Microsoft.CognitiveServices.Workbenches.start","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.stop":"Microsoft.CognitiveServices.Workbenches.stop","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.update":"Microsoft.CognitiveServices.Workbenches.update","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountInner":"Microsoft.CognitiveServices.Account","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner":"Microsoft.CognitiveServices.AccountModel","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner":"Microsoft.CognitiveServices.AccountSkuListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentApplicationInner":"Microsoft.CognitiveServices.AgentApplication","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentDeploymentInner":"Microsoft.CognitiveServices.AgentDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentReferenceResourceArmPaginatedResultInner":"Microsoft.CognitiveServices.AgentReferenceResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner":"Microsoft.CognitiveServices.ApiKeys","com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner":"Microsoft.CognitiveServices.CalculateModelCapacityResult","com.azure.resourcemanager.cognitiveservices.fluent.models.CapabilityHostInner":"Microsoft.CognitiveServices.CapabilityHost","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationInner":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociation","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationProperties":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociationProperties","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanInner":"Microsoft.CognitiveServices.CommitmentPlan","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentTierInner":"Microsoft.CognitiveServices.CommitmentTier","com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner":"Microsoft.CognitiveServices.Compute","com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner":"Microsoft.CognitiveServices.ComputeOperationStatus","com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner":"Microsoft.CognitiveServices.DefenderForAISetting","com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingProperties":"Microsoft.CognitiveServices.DefenderForAISettingProperties","com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner":"Microsoft.CognitiveServices.Deployment","com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner":"Microsoft.CognitiveServices.DomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner":"Microsoft.CognitiveServices.EncryptionScope","com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesResponse","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner":"Microsoft.CognitiveServices.ManagedComputeCapacity","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeDeploymentInner":"Microsoft.CognitiveServices.ManagedComputeDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner":"Microsoft.CognitiveServices.ManagedComputeUsage","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkProvisionStatusInner":"Microsoft.CognitiveServices.ManagedNetworkProvisionStatus","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsBasicResourceInner":"Microsoft.CognitiveServices.ManagedNetworkSettingsBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsInner":"Microsoft.CognitiveServices.ManagedNetworkSettings","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsPropertiesBasicResourceInner":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner":"Microsoft.CognitiveServices.ModelCapacityListResultValueItem","com.azure.resourcemanager.cognitiveservices.fluent.models.ModelInner":"Microsoft.CognitiveServices.Model","com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.cognitiveservices.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.cognitiveservices.fluent.models.OutboundRuleBasicResourceInner":"Microsoft.CognitiveServices.OutboundRuleBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateEndpointConnectionInner":"Microsoft.CognitiveServices.PrivateEndpointConnection","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateEndpointConnectionListResultInner":"Microsoft.CognitiveServices.PrivateEndpointConnectionListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateLinkResourceListResultInner":"Microsoft.CognitiveServices.PrivateLinkResourceListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectCapabilityHostInner":"Microsoft.CognitiveServices.ProjectCapabilityHost","com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectInner":"Microsoft.CognitiveServices.Project","com.azure.resourcemanager.cognitiveservices.fluent.models.QuotaTierInner":"Microsoft.CognitiveServices.QuotaTier","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner":"Microsoft.CognitiveServices.RaiBlocklist","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner":"Microsoft.CognitiveServices.RaiBlocklistItem","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner":"Microsoft.CognitiveServices.RaiContentFilter","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiExternalSafetyProviderSchemaInner":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchema","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner":"Microsoft.CognitiveServices.RaiPolicy","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiToolLabelInner":"Microsoft.CognitiveServices.RaiToolLabel","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiTopicInner":"Microsoft.CognitiveServices.RaiTopic","com.azure.resourcemanager.cognitiveservices.fluent.models.ResourceSkuInner":"Microsoft.CognitiveServices.ResourceSku","com.azure.resourcemanager.cognitiveservices.fluent.models.SkuAvailabilityListResultInner":"Microsoft.CognitiveServices.SkuAvailabilityListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner":"Microsoft.CognitiveServices.SkuResource","com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner":"Microsoft.CognitiveServices.Usage","com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner":"Microsoft.CognitiveServices.UsageListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner":"Microsoft.CognitiveServices.Workbench","com.azure.resourcemanager.cognitiveservices.implementation.CognitiveServicesManagementClientBuilder":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.implementation.models.AccountListResult":"Microsoft.CognitiveServices.AccountListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AccountModelListResult":"Microsoft.CognitiveServices.AccountModelListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AgentApplicationResourceArmPaginatedResult":"Microsoft.CognitiveServices.AgentApplicationResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AgentDeploymentResourceArmPaginatedResult":"Microsoft.CognitiveServices.AgentDeploymentResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CapabilityHostResourceArmPaginatedResult":"Microsoft.CognitiveServices.CapabilityHostResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentPlanAccountAssociationListResult":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociationListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentPlanListResult":"Microsoft.CognitiveServices.CommitmentPlanListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentTierListResult":"Microsoft.CognitiveServices.CommitmentTierListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ComputeListResult":"Microsoft.CognitiveServices.ComputeListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ConnectionPropertiesV2BasicResourceArmPaginatedResult":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DefenderForAISettingResult":"Microsoft.CognitiveServices.DefenderForAISettingResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DeploymentListResult":"Microsoft.CognitiveServices.DeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DeploymentSkuListResult":"Microsoft.CognitiveServices.DeploymentSkuListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.EncryptionScopeListResult":"Microsoft.CognitiveServices.EncryptionScopeListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeCapacityListResult":"Microsoft.CognitiveServices.ManagedComputeCapacityListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeDeploymentListResult":"Microsoft.CognitiveServices.ManagedComputeDeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeUsageListResult":"Microsoft.CognitiveServices.ManagedComputeUsageListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedNetworkListResult":"Microsoft.CognitiveServices.ManagedNetworkListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ModelCapacityListResult":"Microsoft.CognitiveServices.ModelCapacityListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ModelListResult":"Microsoft.CognitiveServices.ModelListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.NetworkSecurityPerimeterConfigurationList":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationList","com.azure.resourcemanager.cognitiveservices.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.OutboundRuleListResult":"Microsoft.CognitiveServices.OutboundRuleListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ProjectCapabilityHostResourceArmPaginatedResult":"Microsoft.CognitiveServices.ProjectCapabilityHostResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ProjectListResult":"Microsoft.CognitiveServices.ProjectListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.QuotaTierListResult":"Microsoft.CognitiveServices.QuotaTierListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiBlockListItemsResult":"Microsoft.CognitiveServices.RaiBlockListItemsResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiBlockListResult":"Microsoft.CognitiveServices.RaiBlockListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiContentFilterListResult":"Microsoft.CognitiveServices.RaiContentFilterListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiExternalSafetyProviderResult":"Microsoft.CognitiveServices.RaiExternalSafetyProviderResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiPolicyListResult":"Microsoft.CognitiveServices.RaiPolicyListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiToolLabelResult":"Microsoft.CognitiveServices.RaiToolLabelResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiTopicResult":"Microsoft.CognitiveServices.RaiTopicResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ResourceSkuListResult":"Microsoft.CognitiveServices.ResourceSkuListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.WorkbenchListResult":"Microsoft.CognitiveServices.WorkbenchListResult","com.azure.resourcemanager.cognitiveservices.models.AadAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AADAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AbusePenalty":"Microsoft.CognitiveServices.AbusePenalty","com.azure.resourcemanager.cognitiveservices.models.AbusePenaltyAction":"Microsoft.CognitiveServices.AbusePenaltyAction","com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AccessKeyAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AccountKeyAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AccountKeyAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AccountProperties":"Microsoft.CognitiveServices.AccountProperties","com.azure.resourcemanager.cognitiveservices.models.AccountSku":"Microsoft.CognitiveServices.AccountSku","com.azure.resourcemanager.cognitiveservices.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentProperties":"Microsoft.CognitiveServices.AgentDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentProvisioningState":"Microsoft.CognitiveServices.AgentDeploymentProvisioningState","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentState":"Microsoft.CognitiveServices.AgentDeploymentState","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentType":"Microsoft.CognitiveServices.AgentDeploymentType","com.azure.resourcemanager.cognitiveservices.models.AgentProtocol":"Microsoft.CognitiveServices.AgentProtocol","com.azure.resourcemanager.cognitiveservices.models.AgentProtocolVersion":"Microsoft.CognitiveServices.AgentProtocolVersion","com.azure.resourcemanager.cognitiveservices.models.AgentReference":"Microsoft.CognitiveServices.AgentReference","com.azure.resourcemanager.cognitiveservices.models.AgentReferenceProperties":"Microsoft.CognitiveServices.AgentReferenceProperties","com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProperties":"Microsoft.CognitiveServices.AgenticApplicationProperties","com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProvisioningState":"Microsoft.CognitiveServices.AgenticApplicationProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ApiKeyAuthConnectionProperties":"Microsoft.CognitiveServices.ApiKeyAuthConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ApiProperties":"Microsoft.CognitiveServices.ApiProperties","com.azure.resourcemanager.cognitiveservices.models.ApplicationAuthorizationPolicy":"Microsoft.CognitiveServices.ApplicationAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.ApplicationTrafficRoutingPolicy":"Microsoft.CognitiveServices.ApplicationTrafficRoutingPolicy","com.azure.resourcemanager.cognitiveservices.models.AssignedIdentity":"Microsoft.CognitiveServices.AssignedIdentity","com.azure.resourcemanager.cognitiveservices.models.BillingMeterInfo":"Microsoft.CognitiveServices.BillingMeterInfo","com.azure.resourcemanager.cognitiveservices.models.BuiltInAuthorizationScheme":"Microsoft.CognitiveServices.BuiltInAuthorizationScheme","com.azure.resourcemanager.cognitiveservices.models.ByPassSelection":"Microsoft.CognitiveServices.ByPassSelection","com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter":"Microsoft.CognitiveServices.CalculateModelCapacityParameter","com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity":"Microsoft.CognitiveServices.CalculateModelCapacityResultEstimatedCapacity","com.azure.resourcemanager.cognitiveservices.models.CallRateLimit":"Microsoft.CognitiveServices.CallRateLimit","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostKind":"Microsoft.CognitiveServices.CapabilityHostKind","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperties":"Microsoft.CognitiveServices.CapabilityHostProperties","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProvisioningState":"Microsoft.CognitiveServices.CapabilityHostProvisioningState","com.azure.resourcemanager.cognitiveservices.models.CapacityConfig":"Microsoft.CognitiveServices.CapacityConfig","com.azure.resourcemanager.cognitiveservices.models.ChannelsBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.ChannelsBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter":"Microsoft.CognitiveServices.CheckDomainAvailabilityParameter","com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter":"Microsoft.CognitiveServices.CheckSkuAvailabilityParameter","com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties":"Microsoft.CognitiveServices.ClusterComputeProperties","com.azure.resourcemanager.cognitiveservices.models.CommitmentCost":"Microsoft.CognitiveServices.CommitmentCost","com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod":"Microsoft.CognitiveServices.CommitmentPeriod","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanAssociation":"Microsoft.CognitiveServices.CommitmentPlanAssociation","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties":"Microsoft.CognitiveServices.CommitmentPlanProperties","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProvisioningState":"Microsoft.CognitiveServices.CommitmentPlanProvisioningState","com.azure.resourcemanager.cognitiveservices.models.CommitmentQuota":"Microsoft.CognitiveServices.CommitmentQuota","com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusProperties":"Microsoft.CognitiveServices.ComputeOperationStatusProperties","com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusType":"Microsoft.CognitiveServices.ComputeOperationStatusType","com.azure.resourcemanager.cognitiveservices.models.ComputeProperties":"Microsoft.CognitiveServices.ComputeProperties","com.azure.resourcemanager.cognitiveservices.models.ComputeProvisioningState":"Microsoft.CognitiveServices.ComputeProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ComputeType":"Microsoft.CognitiveServices.ComputeType","com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey":"Microsoft.CognitiveServices.ConnectionAccessKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionAccountKey":"Microsoft.CognitiveServices.ConnectionAccountKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionApiKey":"Microsoft.CognitiveServices.ConnectionApiKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionAuthType":"Microsoft.CognitiveServices.ConnectionAuthType","com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory":"Microsoft.CognitiveServices.ConnectionCategory","com.azure.resourcemanager.cognitiveservices.models.ConnectionGroup":"Microsoft.CognitiveServices.ConnectionGroup","com.azure.resourcemanager.cognitiveservices.models.ConnectionManagedIdentity":"Microsoft.CognitiveServices.ConnectionManagedIdentity","com.azure.resourcemanager.cognitiveservices.models.ConnectionOAuth2":"Microsoft.CognitiveServices.ConnectionOAuth2","com.azure.resourcemanager.cognitiveservices.models.ConnectionPersonalAccessToken":"Microsoft.CognitiveServices.ConnectionPersonalAccessToken","com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2":"Microsoft.CognitiveServices.ConnectionPropertiesV2","com.azure.resourcemanager.cognitiveservices.models.ConnectionServicePrincipal":"Microsoft.CognitiveServices.ConnectionServicePrincipal","com.azure.resourcemanager.cognitiveservices.models.ConnectionSharedAccessSignature":"Microsoft.CognitiveServices.ConnectionSharedAccessSignature","com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent":"Microsoft.CognitiveServices.ConnectionUpdateContent","com.azure.resourcemanager.cognitiveservices.models.ConnectionUsernamePassword":"Microsoft.CognitiveServices.ConnectionUsernamePassword","com.azure.resourcemanager.cognitiveservices.models.ConnectivityEndpoints":"Microsoft.CognitiveServices.ConnectivityEndpoints","com.azure.resourcemanager.cognitiveservices.models.ContainerInstanceComputeProperties":"Microsoft.CognitiveServices.ContainerInstanceComputeProperties","com.azure.resourcemanager.cognitiveservices.models.ContentLevel":"Microsoft.CognitiveServices.ContentLevel","com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig":"Microsoft.CognitiveServices.CustomBlocklistConfig","com.azure.resourcemanager.cognitiveservices.models.CustomKeys":"Microsoft.CognitiveServices.CustomKeys","com.azure.resourcemanager.cognitiveservices.models.CustomKeysConnectionProperties":"Microsoft.CognitiveServices.CustomKeysConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState":"Microsoft.CognitiveServices.DefenderForAISettingState","com.azure.resourcemanager.cognitiveservices.models.DeploymentCapacitySettings":"Microsoft.CognitiveServices.DeploymentCapacitySettings","com.azure.resourcemanager.cognitiveservices.models.DeploymentModel":"Microsoft.CognitiveServices.DeploymentModel","com.azure.resourcemanager.cognitiveservices.models.DeploymentModelVersionUpgradeOption":"Microsoft.CognitiveServices.DeploymentModelVersionUpgradeOption","com.azure.resourcemanager.cognitiveservices.models.DeploymentPolicyEvaluationResult":"Microsoft.CognitiveServices.DeploymentPolicyEvaluationResult","com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties":"Microsoft.CognitiveServices.DeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.DeploymentProvisioningState":"Microsoft.CognitiveServices.DeploymentProvisioningState","com.azure.resourcemanager.cognitiveservices.models.DeploymentRouting":"Microsoft.CognitiveServices.DeploymentRouting","com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleSettings":"Microsoft.CognitiveServices.DeploymentScaleSettings","com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleType":"Microsoft.CognitiveServices.DeploymentScaleType","com.azure.resourcemanager.cognitiveservices.models.DeploymentSizeCapacity":"Microsoft.CognitiveServices.DeploymentSizeCapacity","com.azure.resourcemanager.cognitiveservices.models.DeploymentSpeculativeDecoding":"Microsoft.CognitiveServices.DeploymentSpeculativeDecoding","com.azure.resourcemanager.cognitiveservices.models.DeploymentState":"Microsoft.CognitiveServices.DeploymentState","com.azure.resourcemanager.cognitiveservices.models.DeprecationStatus":"Microsoft.CognitiveServices.DeprecationStatus","com.azure.resourcemanager.cognitiveservices.models.Encryption":"Microsoft.CognitiveServices.Encryption","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties":"Microsoft.CognitiveServices.EncryptionScopeProperties","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProvisioningState":"Microsoft.CognitiveServices.EncryptionScopeProvisioningState","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState":"Microsoft.CognitiveServices.EncryptionScopeState","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesDeployment","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesRequest","com.azure.resourcemanager.cognitiveservices.models.FirewallSku":"Microsoft.CognitiveServices.FirewallSku","com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgrade":"Microsoft.CognitiveServices.FoundryAutoUpgrade","com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgradeMode":"Microsoft.CognitiveServices.FoundryAutoUpgradeMode","com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule":"Microsoft.CognitiveServices.FqdnOutboundRule","com.azure.resourcemanager.cognitiveservices.models.HostedAgentDeployment":"Microsoft.CognitiveServices.HostedAgentDeployment","com.azure.resourcemanager.cognitiveservices.models.HostingModel":"Microsoft.CognitiveServices.HostingModel","com.azure.resourcemanager.cognitiveservices.models.Identity":"Microsoft.CognitiveServices.Identity","com.azure.resourcemanager.cognitiveservices.models.IdentityKind":"Microsoft.CognitiveServices.IdentityKind","com.azure.resourcemanager.cognitiveservices.models.IdentityManagementType":"Microsoft.CognitiveServices.IdentityManagementType","com.azure.resourcemanager.cognitiveservices.models.IdentityProvisioningState":"Microsoft.CognitiveServices.IdentityProvisioningState","com.azure.resourcemanager.cognitiveservices.models.IpRule":"Microsoft.CognitiveServices.IpRule","com.azure.resourcemanager.cognitiveservices.models.IsolationMode":"Microsoft.CognitiveServices.IsolationMode","com.azure.resourcemanager.cognitiveservices.models.KeyName":"Microsoft.CognitiveServices.KeyName","com.azure.resourcemanager.cognitiveservices.models.KeySource":"Microsoft.CognitiveServices.KeySource","com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties":"Microsoft.CognitiveServices.KeyVaultProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedAgentDeployment":"Microsoft.CognitiveServices.ManagedAgentDeployment","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacityProperties":"Microsoft.CognitiveServices.ManagedComputeCapacityProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentInfo":"Microsoft.CognitiveServices.ManagedComputeDeploymentInfo","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties":"Microsoft.CognitiveServices.ManagedComputeDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProvisioningDetails":"Microsoft.CognitiveServices.ManagedComputeDeploymentProvisioningDetails","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentRoutes":"Microsoft.CognitiveServices.ManagedComputeDeploymentRoutes","com.azure.resourcemanager.cognitiveservices.models.ManagedIdentityAuthTypeConnectionProperties":"Microsoft.CognitiveServices.ManagedIdentityAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkKind":"Microsoft.CognitiveServices.ManagedNetworkKind","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisionOptions":"Microsoft.CognitiveServices.ManagedNetworkProvisionOptions","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisioningState":"Microsoft.CognitiveServices.ManagedNetworkProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsEx":"Microsoft.CognitiveServices.ManagedNetworkSettingsEx","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsProperties":"Microsoft.CognitiveServices.ManagedNetworkSettingsProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkStatus":"Microsoft.CognitiveServices.ManagedNetworkStatus","com.azure.resourcemanager.cognitiveservices.models.ManagedPERequirement":"Microsoft.CognitiveServices.ManagedPERequirement","com.azure.resourcemanager.cognitiveservices.models.ManagedPEStatus":"Microsoft.CognitiveServices.ManagedPEStatus","com.azure.resourcemanager.cognitiveservices.models.MetricName":"Microsoft.CognitiveServices.MetricName","com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkload":"Microsoft.CognitiveServices.ModelCapacityCalculatorWorkload","com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkloadRequestParam":"Microsoft.CognitiveServices.ModelCapacityCalculatorWorkloadRequestParam","com.azure.resourcemanager.cognitiveservices.models.ModelDeprecationInfo":"Microsoft.CognitiveServices.ModelDeprecationInfo","com.azure.resourcemanager.cognitiveservices.models.ModelLifecycleStatus":"Microsoft.CognitiveServices.ModelLifecycleStatus","com.azure.resourcemanager.cognitiveservices.models.ModelSku":"Microsoft.CognitiveServices.ModelSku","com.azure.resourcemanager.cognitiveservices.models.ModelSkuCapacityProperties":"Microsoft.CognitiveServices.ModelSkuCapacityProperties","com.azure.resourcemanager.cognitiveservices.models.MultiRegionSettings":"Microsoft.CognitiveServices.MultiRegionSettings","com.azure.resourcemanager.cognitiveservices.models.NetworkInjection":"Microsoft.CognitiveServices.NetworkInjection","com.azure.resourcemanager.cognitiveservices.models.NetworkRuleAction":"Microsoft.CognitiveServices.NetworkRuleAction","com.azure.resourcemanager.cognitiveservices.models.NetworkRuleSet":"Microsoft.CognitiveServices.NetworkRuleSet","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter":"Microsoft.CognitiveServices.NetworkSecurityPerimeter","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRule","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRuleProperties","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationAssociationInfo","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo":"Microsoft.CognitiveServices.NetworkSecurityPerimeterProfileInfo","com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties":"Microsoft.CognitiveServices.NoneAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection":"Microsoft.CognitiveServices.NspAccessRuleDirection","com.azure.resourcemanager.cognitiveservices.models.OAuth2AuthTypeConnectionProperties":"Microsoft.CognitiveServices.OAuth2AuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.cognitiveservices.models.OrganizationSharedBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.OrganizationSharedBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.cognitiveservices.models.OutboundRule":"Microsoft.CognitiveServices.OutboundRule","com.azure.resourcemanager.cognitiveservices.models.PatAuthTypeConnectionProperties":"Microsoft.CognitiveServices.PATAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.PatchResourceSku":"Microsoft.CognitiveServices.PatchResourceSku","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTags":"Microsoft.CognitiveServices.PatchResourceTags","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku":"Microsoft.CognitiveServices.PatchResourceTagsAndSku","com.azure.resourcemanager.cognitiveservices.models.PolicyAssignmentEvaluationDetails":"Microsoft.CognitiveServices.PolicyAssignmentEvaluationDetails","com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome":"Microsoft.CognitiveServices.PolicyEvaluationOutcome","com.azure.resourcemanager.cognitiveservices.models.PolicyExpressionEvaluationDetails":"Microsoft.CognitiveServices.PolicyExpressionEvaluationDetails","com.azure.resourcemanager.cognitiveservices.models.Pool":"Microsoft.CognitiveServices.Pool","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProperties":"Microsoft.CognitiveServices.PrivateEndpointConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointOutboundRule":"Microsoft.CognitiveServices.PrivateEndpointOutboundRule","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointOutboundRuleDestination":"Microsoft.CognitiveServices.PrivateEndpointOutboundRuleDestination","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResource":"Microsoft.CognitiveServices.PrivateLinkResource","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResourceProperties":"Microsoft.CognitiveServices.PrivateLinkResourceProperties","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.cognitiveservices.models.ProjectCapabilityHostProperties":"Microsoft.CognitiveServices.ProjectCapabilityHostProperties","com.azure.resourcemanager.cognitiveservices.models.ProjectProperties":"Microsoft.CognitiveServices.ProjectProperties","com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue":"Microsoft.CognitiveServices.ProvisioningIssue","com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties":"Microsoft.CognitiveServices.ProvisioningIssueProperties","com.azure.resourcemanager.cognitiveservices.models.ProvisioningState":"Microsoft.CognitiveServices.ProvisioningState","com.azure.resourcemanager.cognitiveservices.models.PublicNetworkAccess":"Microsoft.CognitiveServices.PublicNetworkAccess","com.azure.resourcemanager.cognitiveservices.models.QuotaLimit":"Microsoft.CognitiveServices.QuotaLimit","com.azure.resourcemanager.cognitiveservices.models.QuotaScopeType":"Microsoft.CognitiveServices.QuotaScopeType","com.azure.resourcemanager.cognitiveservices.models.QuotaTierProperties":"Microsoft.CognitiveServices.QuotaTierProperties","com.azure.resourcemanager.cognitiveservices.models.QuotaTierUpgradeEligibilityInfo":"Microsoft.CognitiveServices.QuotaTierUpgradeEligibilityInfo","com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus":"Microsoft.CognitiveServices.QuotaUsageStatus","com.azure.resourcemanager.cognitiveservices.models.RaiActionType":"Microsoft.CognitiveServices.RaiActionType","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistConfig":"Microsoft.CognitiveServices.RaiBlocklistConfig","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest":"Microsoft.CognitiveServices.RaiBlocklistItemBulkRequest","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties":"Microsoft.CognitiveServices.RaiBlocklistItemProperties","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties":"Microsoft.CognitiveServices.RaiBlocklistProperties","com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties":"Microsoft.CognitiveServices.RaiContentFilterProperties","com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction":"Microsoft.CognitiveServices.RaiEgressDefaultAction","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation":"Microsoft.CognitiveServices.RaiEgressHeaderOperation","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform":"Microsoft.CognitiveServices.RaiEgressHeaderTransform","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderValueRef":"Microsoft.CognitiveServices.RaiEgressHeaderValueRef","com.azure.resourcemanager.cognitiveservices.models.RaiEgressManagedIdentityRef":"Microsoft.CognitiveServices.RaiEgressManagedIdentityRef","com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode":"Microsoft.CognitiveServices.RaiEgressMode","com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig":"Microsoft.CognitiveServices.RaiEgressPolicyConfig","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget":"Microsoft.CognitiveServices.RaiEgressRewriteTarget","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule":"Microsoft.CognitiveServices.RaiEgressRule","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction":"Microsoft.CognitiveServices.RaiEgressRuleAction","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType":"Microsoft.CognitiveServices.RaiEgressRuleActionType","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch":"Microsoft.CognitiveServices.RaiEgressRuleMatch","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType":"Microsoft.CognitiveServices.RaiEgressRuleType","com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme":"Microsoft.CognitiveServices.RaiEgressScheme","com.azure.resourcemanager.cognitiveservices.models.RaiEgressSecretRef":"Microsoft.CognitiveServices.RaiEgressSecretRef","com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProviderSchemaProperties":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemaProperties","com.azure.resourcemanager.cognitiveservices.models.RaiMonitorConfig":"Microsoft.CognitiveServices.RaiMonitorConfig","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter":"Microsoft.CognitiveServices.RaiPolicyContentFilter","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource":"Microsoft.CognitiveServices.RaiPolicyContentSource","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode":"Microsoft.CognitiveServices.RaiPolicyMode","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties":"Microsoft.CognitiveServices.RaiPolicyProperties","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyType":"Microsoft.CognitiveServices.RaiPolicyType","com.azure.resourcemanager.cognitiveservices.models.RaiSafetyProviderConfig":"Microsoft.CognitiveServices.RaiSafetyProviderConfig","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelProperties":"Microsoft.CognitiveServices.RaiToolLabelProperties","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesAccountScope":"Microsoft.CognitiveServices.RaiToolLabelPropertiesAccountScope","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesProjectScopesItem":"Microsoft.CognitiveServices.RaiToolLabelPropertiesProjectScopesItem","com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties":"Microsoft.CognitiveServices.RaiTopicProperties","com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters":"Microsoft.CognitiveServices.RegenerateKeyParameters","com.azure.resourcemanager.cognitiveservices.models.RegionSetting":"Microsoft.CognitiveServices.RegionSetting","com.azure.resourcemanager.cognitiveservices.models.ReplacementConfig":"Microsoft.CognitiveServices.ReplacementConfig","com.azure.resourcemanager.cognitiveservices.models.RequestMatchPattern":"Microsoft.CognitiveServices.RequestMatchPattern","com.azure.resourcemanager.cognitiveservices.models.ResourceBase":"Microsoft.CognitiveServices.ResourceBase","com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType":"Microsoft.CognitiveServices.ResourceIdentityType","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionInfo":"Microsoft.CognitiveServices.ResourceSkuRestrictionInfo","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictions":"Microsoft.CognitiveServices.ResourceSkuRestrictions","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionsReasonCode":"Microsoft.CognitiveServices.ResourceSkuRestrictionsReasonCode","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionsType":"Microsoft.CognitiveServices.ResourceSkuRestrictionsType","com.azure.resourcemanager.cognitiveservices.models.RoleBasedBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.RoleBasedBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.RoutingMethods":"Microsoft.CognitiveServices.RoutingMethods","com.azure.resourcemanager.cognitiveservices.models.RoutingMode":"Microsoft.CognitiveServices.RoutingMode","com.azure.resourcemanager.cognitiveservices.models.RuleAction":"Microsoft.CognitiveServices.RuleAction","com.azure.resourcemanager.cognitiveservices.models.RuleCategory":"Microsoft.CognitiveServices.RuleCategory","com.azure.resourcemanager.cognitiveservices.models.RuleStatus":"Microsoft.CognitiveServices.RuleStatus","com.azure.resourcemanager.cognitiveservices.models.RuleType":"Microsoft.CognitiveServices.RuleType","com.azure.resourcemanager.cognitiveservices.models.SafetyProviderConfig":"Microsoft.CognitiveServices.SafetyProviderConfig","com.azure.resourcemanager.cognitiveservices.models.SasAuthTypeConnectionProperties":"Microsoft.CognitiveServices.SASAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ScenarioType":"Microsoft.CognitiveServices.ScenarioType","com.azure.resourcemanager.cognitiveservices.models.ServicePrincipalAuthTypeConnectionProperties":"Microsoft.CognitiveServices.ServicePrincipalAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ServiceTagOutboundRule":"Microsoft.CognitiveServices.ServiceTagOutboundRule","com.azure.resourcemanager.cognitiveservices.models.ServiceTagOutboundRuleDestination":"Microsoft.CognitiveServices.ServiceTagOutboundRuleDestination","com.azure.resourcemanager.cognitiveservices.models.ServiceTier":"Microsoft.CognitiveServices.ServiceTier","com.azure.resourcemanager.cognitiveservices.models.Sku":"Microsoft.CognitiveServices.Sku","com.azure.resourcemanager.cognitiveservices.models.SkuAvailability":"Microsoft.CognitiveServices.SkuAvailability","com.azure.resourcemanager.cognitiveservices.models.SkuCapability":"Microsoft.CognitiveServices.SkuCapability","com.azure.resourcemanager.cognitiveservices.models.SkuChangeInfo":"Microsoft.CognitiveServices.SkuChangeInfo","com.azure.resourcemanager.cognitiveservices.models.SkuTier":"Microsoft.CognitiveServices.SkuTier","com.azure.resourcemanager.cognitiveservices.models.SshSettings":"Microsoft.CognitiveServices.SshSettings","com.azure.resourcemanager.cognitiveservices.models.ThrottlingRule":"Microsoft.CognitiveServices.ThrottlingRule","com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy":"Microsoft.CognitiveServices.TierUpgradePolicy","com.azure.resourcemanager.cognitiveservices.models.TrafficRoutingProtocol":"Microsoft.CognitiveServices.TrafficRoutingProtocol","com.azure.resourcemanager.cognitiveservices.models.TrafficRoutingRule":"Microsoft.CognitiveServices.TrafficRoutingRule","com.azure.resourcemanager.cognitiveservices.models.UnitType":"Microsoft.CognitiveServices.UnitType","com.azure.resourcemanager.cognitiveservices.models.UpgradeAvailabilityStatus":"Microsoft.CognitiveServices.UpgradeAvailabilityStatus","com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity":"Microsoft.CognitiveServices.UserAssignedIdentity","com.azure.resourcemanager.cognitiveservices.models.UserOwnedAmlWorkspace":"Microsoft.CognitiveServices.UserOwnedAmlWorkspace","com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage":"Microsoft.CognitiveServices.UserOwnedStorage","com.azure.resourcemanager.cognitiveservices.models.UsernamePasswordAuthTypeConnectionProperties":"Microsoft.CognitiveServices.UsernamePasswordAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.VersionedAgentReference":"Microsoft.CognitiveServices.VersionedAgentReference","com.azure.resourcemanager.cognitiveservices.models.VirtualNetworkRule":"Microsoft.CognitiveServices.VirtualNetworkRule","com.azure.resourcemanager.cognitiveservices.models.VmPriority":"Microsoft.CognitiveServices.VmPriority","com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties":"Microsoft.CognitiveServices.WorkbenchProperties"},"generatedFiles":["src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentApplicationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputeOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeletedAccountsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkProvisionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkSettingsOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiToolLabelsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiTopicsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/SubscriptionRaiPoliciesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/TestRaiExternalSafetyProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentApplicationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentReferenceResourceArmPaginatedResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentTierInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeOperationStatusInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ConnectionPropertiesV2BasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DomainAvailabilityInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkProvisionStatusInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsPropertiesBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/OutboundRuleBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateEndpointConnectionListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateLinkResourceListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ProjectCapabilityHostInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ProjectInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/QuotaTierInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiExternalSafetyProviderSchemaInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiToolLabelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiTopicInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ResourceSkuInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuAvailabilityListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountCapabilityHostsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountCapabilityHostsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountSkuListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentReferenceResourceArmPaginatedResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ApiKeysImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CapabilityHostImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlansClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlansImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTierImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTiersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTiersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationStatusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeletedAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeletedAccountsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DomainAvailabilityImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionStatusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsPropertiesBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRuleBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourceListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTierImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTiersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTiersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProviderSchemaImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkuImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkusClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuAvailabilityListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SubscriptionRaiPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SubscriptionRaiPoliciesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/TestRaiExternalSafetyProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/TestRaiExternalSafetyProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AccountListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AccountModelListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AgentApplicationResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AgentDeploymentResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CapabilityHostResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentPlanAccountAssociationListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentPlanListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentTierListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ConnectionPropertiesV2BasicResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DefenderForAISettingResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DeploymentSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/EncryptionScopeListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedNetworkListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ModelCapacityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ModelListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/NetworkSecurityPerimeterConfigurationList.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/OutboundRuleListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ProjectCapabilityHostResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ProjectListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/QuotaTierListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiBlockListItemsResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiBlockListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiContentFilterListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiExternalSafetyProviderResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiPolicyListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiToolLabelResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiTopicResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ResourceSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AadAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AbusePenalty.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AbusePenaltyAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccessKeyAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountCapabilityHosts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountKeyAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentApplication.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentApplications.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentProtocol.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentProtocolVersion.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReference.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReferenceProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReferenceResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgenticApplicationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgenticApplicationProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiKeyAuthConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiKeys.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApplicationAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApplicationTrafficRoutingPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AssignedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/BuiltInAuthorizationScheme.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CallRateLimit.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ChannelsBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckDomainAvailabilityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentCost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPeriod.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlan.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAssociation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlans.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentQuota.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentTiers.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAccessKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAccountKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionApiKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAuthType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionCategory.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionGroup.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionManagedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionOAuth2.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPersonalAccessToken.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionServicePrincipal.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionSharedAccessSignature.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionUpdateContent.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionUsernamePassword.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomKeys.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomKeysConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeletedAccounts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModelVersionUpgradeOption.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentRouting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSpeculativeDecoding.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeprecationStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DomainAvailability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FirewallSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgrade.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgradeMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FqdnOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostingModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Identity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityManagementType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IpRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IsolationMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeyName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeySource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedIdentityAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisionOptions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisionStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsEx.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsPropertiesBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedPERequirement.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedPEStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/MetricName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelDeprecationInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Models.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/MultiRegionSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkInjection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NoneAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OAuth2AuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Operation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Operations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OrganizationSharedBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Origin.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRuleBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRules.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRulesOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTags.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTagsAndSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointOutboundRuleDestination.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Project.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHostProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHosts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Projects.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaLimit.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaScopeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTierProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTierUpgradeEligibilityInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTiers.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaUsageStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressDefaultAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderOperation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderTransform.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderValueRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressManagedIdentityRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressPolicyConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRewriteTarget.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleMatch.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressScheme.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressSecretRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviderSchema.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviderSchemaProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProvidersOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiSafetyProviderConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelPropertiesAccountScope.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelPropertiesProjectScopesItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabels.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopic.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopicProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopics.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RegenerateKeyParameters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RegionSetting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ReplacementConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RequestMatchPattern.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceBase.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionsReasonCode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionsType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoleBasedBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoutingMethods.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoutingMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleCategory.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SafetyProviderConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SasAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ScenarioType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServicePrincipalAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTagOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTagOutboundRuleDestination.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Sku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuAvailability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuAvailabilityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuCapability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuChangeInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SubscriptionRaiPolicies.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TestRaiExternalSafetyProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ThrottlingRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TierUpgradePolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TrafficRoutingProtocol.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TrafficRoutingRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UnitType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UpgradeAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UsageListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usages.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedStorage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UsernamePasswordAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VersionedAgentReference.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VirtualNetworkRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.CognitiveServices":"2026-07-15-preview"},"crossLanguagePackageId":"Microsoft.CognitiveServices","crossLanguageVersion":"4ad81aedf78c","crossLanguageDefinitions":{"com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.CapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.beginDelete":"Microsoft.CognitiveServices.CapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.createOrUpdate":"Microsoft.CognitiveServices.CapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.delete":"Microsoft.CognitiveServices.CapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.get":"Microsoft.CognitiveServices.CapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.getWithResponse":"Microsoft.CognitiveServices.CapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.list":"Microsoft.CognitiveServices.CapabilityHosts.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.create":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.createWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.delete":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.deleteWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.get":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.list":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.update":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.updateWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient":"Microsoft.CognitiveServices.Accounts","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginCreate":"Microsoft.CognitiveServices.Accounts.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginDelete":"Microsoft.CognitiveServices.Accounts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginUpdate":"Microsoft.CognitiveServices.Accounts.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.create":"Microsoft.CognitiveServices.Accounts.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.delete":"Microsoft.CognitiveServices.Accounts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.evaluateDeploymentPolicies":"Microsoft.CognitiveServices.Accounts.evaluateDeploymentPolicies","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.evaluateDeploymentPoliciesWithResponse":"Microsoft.CognitiveServices.Accounts.evaluateDeploymentPolicies","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.getByResourceGroup":"Microsoft.CognitiveServices.Accounts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.CognitiveServices.Accounts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.list":"Microsoft.CognitiveServices.Accounts.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listByResourceGroup":"Microsoft.CognitiveServices.Accounts.listByResourceGroup","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listKeys":"Microsoft.CognitiveServices.Accounts.listKeys","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listKeysWithResponse":"Microsoft.CognitiveServices.Accounts.listKeys","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listModels":"Microsoft.CognitiveServices.Accounts.listModels","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listSkus":"Microsoft.CognitiveServices.Accounts.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listSkusWithResponse":"Microsoft.CognitiveServices.Accounts.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listUsages":"Microsoft.CognitiveServices.Accounts.listUsages","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listUsagesWithResponse":"Microsoft.CognitiveServices.Accounts.listUsages","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.regenerateKey":"Microsoft.CognitiveServices.Accounts.regenerateKey","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.regenerateKeyWithResponse":"Microsoft.CognitiveServices.Accounts.regenerateKey","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.update":"Microsoft.CognitiveServices.Accounts.update","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient":"Microsoft.CognitiveServices.AgentApplications","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.AgentApplications.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.beginDelete":"Microsoft.CognitiveServices.AgentApplications.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.createOrUpdate":"Microsoft.CognitiveServices.AgentApplications.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.delete":"Microsoft.CognitiveServices.AgentApplications.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.disable":"Microsoft.CognitiveServices.AgentApplications.disable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.disableWithResponse":"Microsoft.CognitiveServices.AgentApplications.disable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.enable":"Microsoft.CognitiveServices.AgentApplications.enable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.enableWithResponse":"Microsoft.CognitiveServices.AgentApplications.enable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.get":"Microsoft.CognitiveServices.AgentApplications.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.getWithResponse":"Microsoft.CognitiveServices.AgentApplications.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.list":"Microsoft.CognitiveServices.AgentApplications.list","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.listAgents":"Microsoft.CognitiveServices.AgentApplications.listAgents","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.listAgentsWithResponse":"Microsoft.CognitiveServices.AgentApplications.listAgents","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.AgentDeploymentResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.AgentDeploymentResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.AgentDeploymentResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.delete":"Microsoft.CognitiveServices.AgentDeploymentResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.get":"Microsoft.CognitiveServices.AgentDeploymentResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.list":"Microsoft.CognitiveServices.AgentDeploymentResources.list","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.start":"Microsoft.CognitiveServices.AgentDeploymentResources.start","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.startWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.start","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.stop":"Microsoft.CognitiveServices.AgentDeploymentResources.stop","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.stopWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.stop","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient":"Microsoft.CognitiveServices.ArcDeployments","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ArcDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.ArcDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.ArcDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.ArcDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.delete":"Microsoft.CognitiveServices.ArcDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.get":"Microsoft.CognitiveServices.ArcDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.ArcDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.list":"Microsoft.CognitiveServices.ArcDeployments.list","com.azure.resourcemanager.cognitiveservices.fluent.ArcDeploymentsClient.update":"Microsoft.CognitiveServices.ArcDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.CognitiveServicesManagementClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient":"Microsoft.CognitiveServices.CommitmentPlans","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginCreateOrUpdateAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.createOrUpdateAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginCreateOrUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.createOrUpdatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDelete":"Microsoft.CognitiveServices.CommitmentPlans.delete","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDeleteAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.deleteAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDeletePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.deletePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.updatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdate":"Microsoft.CognitiveServices.CommitmentPlans.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdateAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.createOrUpdateAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.createOrUpdatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.CommitmentPlans.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.delete":"Microsoft.CognitiveServices.CommitmentPlans.delete","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.deleteAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.deleteAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.deletePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.deletePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.get":"Microsoft.CognitiveServices.CommitmentPlans.get","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.getAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getAssociationWithResponse":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.getAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getByResourceGroup":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.getPlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getByResourceGroupWithResponse":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.getPlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getWithResponse":"Microsoft.CognitiveServices.CommitmentPlans.get","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.list":"Microsoft.CognitiveServices.CommitmentPlans.list","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listAssociations":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.listAssociations","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listByResourceGroup":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.listPlansByResourceGroup","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listPlansBySubscription":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.listPlansBySubscription","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.updatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.updatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient.list":"Microsoft.CognitiveServices.CommitmentTiersOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient":"Microsoft.CognitiveServices.ComputeOperations","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient.get":"Microsoft.CognitiveServices.ComputeOperations.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient.getWithResponse":"Microsoft.CognitiveServices.ComputeOperations.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient":"Microsoft.CognitiveServices.Computes","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Computes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginDelete":"Microsoft.CognitiveServices.Computes.delete","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginRestart":"Microsoft.CognitiveServices.Computes.restart","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginStart":"Microsoft.CognitiveServices.Computes.start","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginStop":"Microsoft.CognitiveServices.Computes.stop","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.createOrUpdate":"Microsoft.CognitiveServices.Computes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.delete":"Microsoft.CognitiveServices.Computes.delete","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.get":"Microsoft.CognitiveServices.Computes.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.getWithResponse":"Microsoft.CognitiveServices.Computes.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.list":"Microsoft.CognitiveServices.Computes.list","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.restart":"Microsoft.CognitiveServices.Computes.restart","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.start":"Microsoft.CognitiveServices.Computes.start","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.stop":"Microsoft.CognitiveServices.Computes.stop","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient":"Microsoft.CognitiveServices.DefenderForAISettings","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.createOrUpdate":"Microsoft.CognitiveServices.DefenderForAISettings.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.get":"Microsoft.CognitiveServices.DefenderForAISettings.get","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.getWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.get","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.list":"Microsoft.CognitiveServices.DefenderForAISettings.list","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.update":"Microsoft.CognitiveServices.DefenderForAISettings.update","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.updateWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.update","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient":"Microsoft.CognitiveServices.DeletedAccounts","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.beginPurge":"Microsoft.CognitiveServices.DeletedAccounts.purge","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.get":"Microsoft.CognitiveServices.DeletedAccounts.get","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.getWithResponse":"Microsoft.CognitiveServices.DeletedAccounts.get","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.list":"Microsoft.CognitiveServices.DeletedAccounts.list","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.purge":"Microsoft.CognitiveServices.DeletedAccounts.purge","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient":"Microsoft.CognitiveServices.Deployments","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Deployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginDelete":"Microsoft.CognitiveServices.Deployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.Deployments.update","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.Deployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.delete":"Microsoft.CognitiveServices.Deployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.get":"Microsoft.CognitiveServices.Deployments.get","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.Deployments.get","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.list":"Microsoft.CognitiveServices.Deployments.list","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.listSkus":"Microsoft.CognitiveServices.Deployments.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.pause":"Microsoft.CognitiveServices.Deployments.pause","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.pauseWithResponse":"Microsoft.CognitiveServices.Deployments.pause","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.resume":"Microsoft.CognitiveServices.Deployments.resume","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.resumeWithResponse":"Microsoft.CognitiveServices.Deployments.resume","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.update":"Microsoft.CognitiveServices.Deployments.update","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient":"Microsoft.CognitiveServices.EncryptionScopes","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.beginDelete":"Microsoft.CognitiveServices.EncryptionScopes.delete","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.createOrUpdate":"Microsoft.CognitiveServices.EncryptionScopes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.EncryptionScopes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.delete":"Microsoft.CognitiveServices.EncryptionScopes.delete","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.get":"Microsoft.CognitiveServices.EncryptionScopes.get","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.getWithResponse":"Microsoft.CognitiveServices.EncryptionScopes.get","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.list":"Microsoft.CognitiveServices.EncryptionScopes.list","com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient.list":"Microsoft.CognitiveServices.LocationBasedModelCapacitiesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient":"Microsoft.CognitiveServices.ManagedComputeCapacities","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient.list":"Microsoft.CognitiveServices.ManagedComputeCapacities.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient":"Microsoft.CognitiveServices.ManagedComputeDeployments","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.ManagedComputeDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.delete":"Microsoft.CognitiveServices.ManagedComputeDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.get":"Microsoft.CognitiveServices.ManagedComputeDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.ManagedComputeDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.list":"Microsoft.CognitiveServices.ManagedComputeDeployments.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.update":"Microsoft.CognitiveServices.ManagedComputeDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient":"Microsoft.CognitiveServices.ManagedComputeUsagesOperationGroup","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient.list":"Microsoft.CognitiveServices.ManagedComputeUsagesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient.beginProvisionManagedNetwork":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.provisionManagedNetwork","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient.provisionManagedNetwork":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.provisionManagedNetwork","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginDelete":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginPatch":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.patch","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginPut":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.put","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.delete":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.get":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.getWithResponse":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.list":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.patch":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.patch","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.put":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.put","com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient.list":"Microsoft.CognitiveServices.ModelCapacitiesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient.list":"Microsoft.CognitiveServices.ModelsOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.beginReconcile":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.reconcile","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.get":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.get","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.getWithResponse":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.get","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.list":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.list","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.reconcile":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.reconcile","com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient":"Microsoft.CognitiveServices.Operations","com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.OutboundRuleBasicResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.beginDelete":"Microsoft.CognitiveServices.OutboundRuleBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.createOrUpdate":"Microsoft.CognitiveServices.OutboundRuleBasicResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.delete":"Microsoft.CognitiveServices.OutboundRuleBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.get":"Microsoft.CognitiveServices.OutboundRuleBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.getWithResponse":"Microsoft.CognitiveServices.OutboundRuleBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.list":"Microsoft.CognitiveServices.OutboundRuleBasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesOperationsClient.post":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.post","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient":"Microsoft.CognitiveServices.PrivateEndpointConnections","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.PrivateEndpointConnections.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.CognitiveServices.PrivateEndpointConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.createOrUpdate":"Microsoft.CognitiveServices.PrivateEndpointConnections.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.CognitiveServices.PrivateEndpointConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.CognitiveServices.PrivateEndpointConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.PrivateEndpointConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.CognitiveServices.PrivateEndpointConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.listWithResponse":"Microsoft.CognitiveServices.PrivateEndpointConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient.list":"Microsoft.CognitiveServices.Accounts.privateLinkResourcesList","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient.listWithResponse":"Microsoft.CognitiveServices.Accounts.privateLinkResourcesList","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient":"Microsoft.CognitiveServices.ProjectCapabilityHosts","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ProjectCapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.beginDelete":"Microsoft.CognitiveServices.ProjectCapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.createOrUpdate":"Microsoft.CognitiveServices.ProjectCapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.delete":"Microsoft.CognitiveServices.ProjectCapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.get":"Microsoft.CognitiveServices.ProjectCapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.getWithResponse":"Microsoft.CognitiveServices.ProjectCapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.list":"Microsoft.CognitiveServices.ProjectCapabilityHosts.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient":"Microsoft.CognitiveServices.ProjectConnections","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.create":"Microsoft.CognitiveServices.ProjectConnections.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.createWithResponse":"Microsoft.CognitiveServices.ProjectConnections.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.delete":"Microsoft.CognitiveServices.ProjectConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.deleteWithResponse":"Microsoft.CognitiveServices.ProjectConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.get":"Microsoft.CognitiveServices.ProjectConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.ProjectConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.list":"Microsoft.CognitiveServices.ProjectConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.update":"Microsoft.CognitiveServices.ProjectConnections.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.updateWithResponse":"Microsoft.CognitiveServices.ProjectConnections.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient":"Microsoft.CognitiveServices.Projects","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginCreate":"Microsoft.CognitiveServices.Projects.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginDelete":"Microsoft.CognitiveServices.Projects.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginUpdate":"Microsoft.CognitiveServices.Projects.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.create":"Microsoft.CognitiveServices.Projects.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.delete":"Microsoft.CognitiveServices.Projects.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.get":"Microsoft.CognitiveServices.Projects.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.getWithResponse":"Microsoft.CognitiveServices.Projects.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.list":"Microsoft.CognitiveServices.Projects.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.update":"Microsoft.CognitiveServices.Projects.update","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient":"Microsoft.CognitiveServices.QuotaTiers","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.createOrUpdate":"Microsoft.CognitiveServices.QuotaTiers.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.QuotaTiers.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.get":"Microsoft.CognitiveServices.QuotaTiers.get","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.getWithResponse":"Microsoft.CognitiveServices.QuotaTiers.get","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.list":"Microsoft.CognitiveServices.QuotaTiers.listBySubscription","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.update":"Microsoft.CognitiveServices.QuotaTiers.update","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.updateWithResponse":"Microsoft.CognitiveServices.QuotaTiers.update","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient":"Microsoft.CognitiveServices.RaiBlocklistItems","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchAdd":"Microsoft.CognitiveServices.RaiBlocklists.batchAdd","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchAddWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.batchAdd","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchDelete":"Microsoft.CognitiveServices.RaiBlocklists.batchDelete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchDeleteWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.batchDelete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.beginDelete":"Microsoft.CognitiveServices.RaiBlocklistItems.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiBlocklistItems.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiBlocklistItems.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.delete":"Microsoft.CognitiveServices.RaiBlocklistItems.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.get":"Microsoft.CognitiveServices.RaiBlocklistItems.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.getWithResponse":"Microsoft.CognitiveServices.RaiBlocklistItems.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.list":"Microsoft.CognitiveServices.RaiBlocklistItems.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient":"Microsoft.CognitiveServices.RaiBlocklists","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.beginDelete":"Microsoft.CognitiveServices.RaiBlocklists.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiBlocklists.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.delete":"Microsoft.CognitiveServices.RaiBlocklists.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.get":"Microsoft.CognitiveServices.RaiBlocklists.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.getWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.list":"Microsoft.CognitiveServices.RaiBlocklists.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient":"Microsoft.CognitiveServices.RaiContentFilters","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.get":"Microsoft.CognitiveServices.RaiContentFilters.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.getWithResponse":"Microsoft.CognitiveServices.RaiContentFilters.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.list":"Microsoft.CognitiveServices.RaiContentFilters.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.beginDelete":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.createOrUpdate":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.delete":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.get":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.getWithResponse":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersOperationsClient.list":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient":"Microsoft.CognitiveServices.RaiPolicies","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.beginDelete":"Microsoft.CognitiveServices.RaiPolicies.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.createOrUpdate":"Microsoft.CognitiveServices.RaiPolicies.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiPolicies.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.delete":"Microsoft.CognitiveServices.RaiPolicies.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.get":"Microsoft.CognitiveServices.RaiPolicies.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.getWithResponse":"Microsoft.CognitiveServices.RaiPolicies.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.list":"Microsoft.CognitiveServices.RaiPolicies.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient":"Microsoft.CognitiveServices.RaiToolLabels","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.beginDelete":"Microsoft.CognitiveServices.RaiToolLabels.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiToolLabels.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiToolLabels.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.delete":"Microsoft.CognitiveServices.RaiToolLabels.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.get":"Microsoft.CognitiveServices.RaiToolLabels.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.getWithResponse":"Microsoft.CognitiveServices.RaiToolLabels.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.list":"Microsoft.CognitiveServices.RaiToolLabels.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient":"Microsoft.CognitiveServices.RaiTopics","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.beginDelete":"Microsoft.CognitiveServices.RaiTopics.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiTopics.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiTopics.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.delete":"Microsoft.CognitiveServices.RaiTopics.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.get":"Microsoft.CognitiveServices.RaiTopics.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.getWithResponse":"Microsoft.CognitiveServices.RaiTopics.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.list":"Microsoft.CognitiveServices.RaiTopics.list","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.calculateModelCapacity":"Microsoft.CognitiveServices.calculateModelCapacity","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.calculateModelCapacityWithResponse":"Microsoft.CognitiveServices.calculateModelCapacity","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkDomainAvailability":"Microsoft.CognitiveServices.checkDomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkDomainAvailabilityWithResponse":"Microsoft.CognitiveServices.checkDomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkSkuAvailability":"Microsoft.CognitiveServices.checkSkuAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkSkuAvailabilityWithResponse":"Microsoft.CognitiveServices.checkSkuAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient.list":"Microsoft.CognitiveServices.ResourceSkusOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient":"Microsoft.CognitiveServices.SubscriptionRaiPolicy","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.beginDelete":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.delete","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.createOrUpdate":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.delete":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.delete","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.get":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.get","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.getWithResponse":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.get","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient.createOrUpdate":"Microsoft.CognitiveServices.Accounts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.Accounts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient.list":"Microsoft.CognitiveServices.UsagesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient":"Microsoft.CognitiveServices.Workbenches","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Workbenches.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginDelete":"Microsoft.CognitiveServices.Workbenches.delete","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginRestart":"Microsoft.CognitiveServices.Workbenches.restart","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginStart":"Microsoft.CognitiveServices.Workbenches.start","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginStop":"Microsoft.CognitiveServices.Workbenches.stop","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginUpdate":"Microsoft.CognitiveServices.Workbenches.update","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.createOrUpdate":"Microsoft.CognitiveServices.Workbenches.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.delete":"Microsoft.CognitiveServices.Workbenches.delete","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.get":"Microsoft.CognitiveServices.Workbenches.get","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.getWithResponse":"Microsoft.CognitiveServices.Workbenches.get","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.list":"Microsoft.CognitiveServices.Workbenches.list","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.restart":"Microsoft.CognitiveServices.Workbenches.restart","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.start":"Microsoft.CognitiveServices.Workbenches.start","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.stop":"Microsoft.CognitiveServices.Workbenches.stop","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.update":"Microsoft.CognitiveServices.Workbenches.update","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountInner":"Microsoft.CognitiveServices.Account","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner":"Microsoft.CognitiveServices.AccountModel","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner":"Microsoft.CognitiveServices.AccountSkuListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentApplicationInner":"Microsoft.CognitiveServices.AgentApplication","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentDeploymentInner":"Microsoft.CognitiveServices.AgentDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentReferenceResourceArmPaginatedResultInner":"Microsoft.CognitiveServices.AgentReferenceResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner":"Microsoft.CognitiveServices.ApiKeys","com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner":"Microsoft.CognitiveServices.ArcDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner":"Microsoft.CognitiveServices.CalculateModelCapacityResult","com.azure.resourcemanager.cognitiveservices.fluent.models.CapabilityHostInner":"Microsoft.CognitiveServices.CapabilityHost","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationInner":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociation","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationProperties":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociationProperties","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanInner":"Microsoft.CognitiveServices.CommitmentPlan","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentTierInner":"Microsoft.CognitiveServices.CommitmentTier","com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner":"Microsoft.CognitiveServices.Compute","com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner":"Microsoft.CognitiveServices.ComputeOperationStatus","com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner":"Microsoft.CognitiveServices.DefenderForAISetting","com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingProperties":"Microsoft.CognitiveServices.DefenderForAISettingProperties","com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner":"Microsoft.CognitiveServices.Deployment","com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner":"Microsoft.CognitiveServices.DomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner":"Microsoft.CognitiveServices.EncryptionScope","com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesResponse","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner":"Microsoft.CognitiveServices.ManagedComputeCapacity","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeDeploymentInner":"Microsoft.CognitiveServices.ManagedComputeDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner":"Microsoft.CognitiveServices.ManagedComputeUsage","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkProvisionStatusInner":"Microsoft.CognitiveServices.ManagedNetworkProvisionStatus","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsBasicResourceInner":"Microsoft.CognitiveServices.ManagedNetworkSettingsBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsInner":"Microsoft.CognitiveServices.ManagedNetworkSettings","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsPropertiesBasicResourceInner":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner":"Microsoft.CognitiveServices.ModelCapacityListResultValueItem","com.azure.resourcemanager.cognitiveservices.fluent.models.ModelInner":"Microsoft.CognitiveServices.Model","com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.cognitiveservices.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.cognitiveservices.fluent.models.OutboundRuleBasicResourceInner":"Microsoft.CognitiveServices.OutboundRuleBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateEndpointConnectionInner":"Microsoft.CognitiveServices.PrivateEndpointConnection","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateEndpointConnectionListResultInner":"Microsoft.CognitiveServices.PrivateEndpointConnectionListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateLinkResourceListResultInner":"Microsoft.CognitiveServices.PrivateLinkResourceListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectCapabilityHostInner":"Microsoft.CognitiveServices.ProjectCapabilityHost","com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectInner":"Microsoft.CognitiveServices.Project","com.azure.resourcemanager.cognitiveservices.fluent.models.QuotaTierInner":"Microsoft.CognitiveServices.QuotaTier","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner":"Microsoft.CognitiveServices.RaiBlocklist","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner":"Microsoft.CognitiveServices.RaiBlocklistItem","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner":"Microsoft.CognitiveServices.RaiContentFilter","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiExternalSafetyProviderSchemaInner":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchema","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner":"Microsoft.CognitiveServices.RaiPolicy","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiToolLabelInner":"Microsoft.CognitiveServices.RaiToolLabel","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiTopicInner":"Microsoft.CognitiveServices.RaiTopic","com.azure.resourcemanager.cognitiveservices.fluent.models.ResourceSkuInner":"Microsoft.CognitiveServices.ResourceSku","com.azure.resourcemanager.cognitiveservices.fluent.models.SkuAvailabilityListResultInner":"Microsoft.CognitiveServices.SkuAvailabilityListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner":"Microsoft.CognitiveServices.SkuResource","com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner":"Microsoft.CognitiveServices.Usage","com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner":"Microsoft.CognitiveServices.UsageListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner":"Microsoft.CognitiveServices.Workbench","com.azure.resourcemanager.cognitiveservices.implementation.CognitiveServicesManagementClientBuilder":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.implementation.models.AccountListResult":"Microsoft.CognitiveServices.AccountListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AccountModelListResult":"Microsoft.CognitiveServices.AccountModelListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AgentApplicationResourceArmPaginatedResult":"Microsoft.CognitiveServices.AgentApplicationResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AgentDeploymentResourceArmPaginatedResult":"Microsoft.CognitiveServices.AgentDeploymentResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ArcDeploymentListResult":"Microsoft.CognitiveServices.ArcDeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CapabilityHostResourceArmPaginatedResult":"Microsoft.CognitiveServices.CapabilityHostResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentPlanAccountAssociationListResult":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociationListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentPlanListResult":"Microsoft.CognitiveServices.CommitmentPlanListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentTierListResult":"Microsoft.CognitiveServices.CommitmentTierListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ComputeListResult":"Microsoft.CognitiveServices.ComputeListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ConnectionPropertiesV2BasicResourceArmPaginatedResult":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DefenderForAISettingResult":"Microsoft.CognitiveServices.DefenderForAISettingResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DeploymentListResult":"Microsoft.CognitiveServices.DeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DeploymentSkuListResult":"Microsoft.CognitiveServices.DeploymentSkuListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.EncryptionScopeListResult":"Microsoft.CognitiveServices.EncryptionScopeListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeCapacityListResult":"Microsoft.CognitiveServices.ManagedComputeCapacityListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeDeploymentListResult":"Microsoft.CognitiveServices.ManagedComputeDeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeUsageListResult":"Microsoft.CognitiveServices.ManagedComputeUsageListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedNetworkListResult":"Microsoft.CognitiveServices.ManagedNetworkListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ModelCapacityListResult":"Microsoft.CognitiveServices.ModelCapacityListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ModelListResult":"Microsoft.CognitiveServices.ModelListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.NetworkSecurityPerimeterConfigurationList":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationList","com.azure.resourcemanager.cognitiveservices.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.OutboundRuleListResult":"Microsoft.CognitiveServices.OutboundRuleListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ProjectCapabilityHostResourceArmPaginatedResult":"Microsoft.CognitiveServices.ProjectCapabilityHostResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ProjectListResult":"Microsoft.CognitiveServices.ProjectListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.QuotaTierListResult":"Microsoft.CognitiveServices.QuotaTierListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiBlockListItemsResult":"Microsoft.CognitiveServices.RaiBlockListItemsResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiBlockListResult":"Microsoft.CognitiveServices.RaiBlockListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiContentFilterListResult":"Microsoft.CognitiveServices.RaiContentFilterListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiExternalSafetyProviderResult":"Microsoft.CognitiveServices.RaiExternalSafetyProviderResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiPolicyListResult":"Microsoft.CognitiveServices.RaiPolicyListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiToolLabelResult":"Microsoft.CognitiveServices.RaiToolLabelResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiTopicResult":"Microsoft.CognitiveServices.RaiTopicResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ResourceSkuListResult":"Microsoft.CognitiveServices.ResourceSkuListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.WorkbenchListResult":"Microsoft.CognitiveServices.WorkbenchListResult","com.azure.resourcemanager.cognitiveservices.models.AadAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AADAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AbusePenalty":"Microsoft.CognitiveServices.AbusePenalty","com.azure.resourcemanager.cognitiveservices.models.AbusePenaltyAction":"Microsoft.CognitiveServices.AbusePenaltyAction","com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AccessKeyAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AccountKeyAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AccountKeyAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AccountProperties":"Microsoft.CognitiveServices.AccountProperties","com.azure.resourcemanager.cognitiveservices.models.AccountSku":"Microsoft.CognitiveServices.AccountSku","com.azure.resourcemanager.cognitiveservices.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentProperties":"Microsoft.CognitiveServices.AgentDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentProvisioningState":"Microsoft.CognitiveServices.AgentDeploymentProvisioningState","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentState":"Microsoft.CognitiveServices.AgentDeploymentState","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentType":"Microsoft.CognitiveServices.AgentDeploymentType","com.azure.resourcemanager.cognitiveservices.models.AgentHostingConfiguration":"Microsoft.CognitiveServices.AgentHostingConfiguration","com.azure.resourcemanager.cognitiveservices.models.AgentHostingType":"Microsoft.CognitiveServices.AgentHostingType","com.azure.resourcemanager.cognitiveservices.models.AgentProtocol":"Microsoft.CognitiveServices.AgentProtocol","com.azure.resourcemanager.cognitiveservices.models.AgentProtocolVersion":"Microsoft.CognitiveServices.AgentProtocolVersion","com.azure.resourcemanager.cognitiveservices.models.AgentReference":"Microsoft.CognitiveServices.AgentReference","com.azure.resourcemanager.cognitiveservices.models.AgentReferenceProperties":"Microsoft.CognitiveServices.AgentReferenceProperties","com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProperties":"Microsoft.CognitiveServices.AgenticApplicationProperties","com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProvisioningState":"Microsoft.CognitiveServices.AgenticApplicationProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ApiKeyAuthConnectionProperties":"Microsoft.CognitiveServices.ApiKeyAuthConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ApiProperties":"Microsoft.CognitiveServices.ApiProperties","com.azure.resourcemanager.cognitiveservices.models.ApplicationAuthorizationPolicy":"Microsoft.CognitiveServices.ApplicationAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.ApplicationTrafficRoutingPolicy":"Microsoft.CognitiveServices.ApplicationTrafficRoutingPolicy","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType":"Microsoft.CognitiveServices.ArcDeploymentComputeType","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements":"Microsoft.CognitiveServices.ArcDeploymentCpuMemoryResourceRequirements","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources":"Microsoft.CognitiveServices.ArcDeploymentKubernetesResources","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel":"Microsoft.CognitiveServices.ArcDeploymentModel","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements":"Microsoft.CognitiveServices.ArcDeploymentPatchCpuMemoryResourceRequirements","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchKubernetesResources":"Microsoft.CognitiveServices.ArcDeploymentPatchKubernetesResources","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties":"Microsoft.CognitiveServices.ArcDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProvisioningDetails":"Microsoft.CognitiveServices.ArcDeploymentProvisioningDetails","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements":"Microsoft.CognitiveServices.ArcDeploymentResourceRequirements","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime":"Microsoft.CognitiveServices.ArcDeploymentRuntime","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku":"Microsoft.CognitiveServices.ArcDeploymentSku","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName":"Microsoft.CognitiveServices.ArcDeploymentSkuName","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdate":"Microsoft.CognitiveServices.ArcDeploymentUpdate","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdateProperties":"Microsoft.CognitiveServices.ArcDeploymentUpdateProperties","com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentVllmParameters":"Microsoft.CognitiveServices.ArcDeploymentVllmParameters","com.azure.resourcemanager.cognitiveservices.models.AssignedIdentity":"Microsoft.CognitiveServices.AssignedIdentity","com.azure.resourcemanager.cognitiveservices.models.BillingMeterInfo":"Microsoft.CognitiveServices.BillingMeterInfo","com.azure.resourcemanager.cognitiveservices.models.BuiltInAuthorizationScheme":"Microsoft.CognitiveServices.BuiltInAuthorizationScheme","com.azure.resourcemanager.cognitiveservices.models.ByPassSelection":"Microsoft.CognitiveServices.ByPassSelection","com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter":"Microsoft.CognitiveServices.CalculateModelCapacityParameter","com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity":"Microsoft.CognitiveServices.CalculateModelCapacityResultEstimatedCapacity","com.azure.resourcemanager.cognitiveservices.models.CallRateLimit":"Microsoft.CognitiveServices.CallRateLimit","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostKind":"Microsoft.CognitiveServices.CapabilityHostKind","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperties":"Microsoft.CognitiveServices.CapabilityHostProperties","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProvisioningState":"Microsoft.CognitiveServices.CapabilityHostProvisioningState","com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings":"Microsoft.CognitiveServices.CapabilitySettings","com.azure.resourcemanager.cognitiveservices.models.CapacityConfig":"Microsoft.CognitiveServices.CapacityConfig","com.azure.resourcemanager.cognitiveservices.models.ChannelsBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.ChannelsBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter":"Microsoft.CognitiveServices.CheckDomainAvailabilityParameter","com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter":"Microsoft.CognitiveServices.CheckSkuAvailabilityParameter","com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties":"Microsoft.CognitiveServices.ClusterComputeProperties","com.azure.resourcemanager.cognitiveservices.models.CommitmentCost":"Microsoft.CognitiveServices.CommitmentCost","com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod":"Microsoft.CognitiveServices.CommitmentPeriod","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanAssociation":"Microsoft.CognitiveServices.CommitmentPlanAssociation","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties":"Microsoft.CognitiveServices.CommitmentPlanProperties","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProvisioningState":"Microsoft.CognitiveServices.CommitmentPlanProvisioningState","com.azure.resourcemanager.cognitiveservices.models.CommitmentQuota":"Microsoft.CognitiveServices.CommitmentQuota","com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusProperties":"Microsoft.CognitiveServices.ComputeOperationStatusProperties","com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusType":"Microsoft.CognitiveServices.ComputeOperationStatusType","com.azure.resourcemanager.cognitiveservices.models.ComputeProperties":"Microsoft.CognitiveServices.ComputeProperties","com.azure.resourcemanager.cognitiveservices.models.ComputeProvisioningState":"Microsoft.CognitiveServices.ComputeProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ComputeType":"Microsoft.CognitiveServices.ComputeType","com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey":"Microsoft.CognitiveServices.ConnectionAccessKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionAccountKey":"Microsoft.CognitiveServices.ConnectionAccountKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionApiKey":"Microsoft.CognitiveServices.ConnectionApiKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionAuthType":"Microsoft.CognitiveServices.ConnectionAuthType","com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory":"Microsoft.CognitiveServices.ConnectionCategory","com.azure.resourcemanager.cognitiveservices.models.ConnectionGroup":"Microsoft.CognitiveServices.ConnectionGroup","com.azure.resourcemanager.cognitiveservices.models.ConnectionManagedIdentity":"Microsoft.CognitiveServices.ConnectionManagedIdentity","com.azure.resourcemanager.cognitiveservices.models.ConnectionOAuth2":"Microsoft.CognitiveServices.ConnectionOAuth2","com.azure.resourcemanager.cognitiveservices.models.ConnectionPersonalAccessToken":"Microsoft.CognitiveServices.ConnectionPersonalAccessToken","com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2":"Microsoft.CognitiveServices.ConnectionPropertiesV2","com.azure.resourcemanager.cognitiveservices.models.ConnectionServicePrincipal":"Microsoft.CognitiveServices.ConnectionServicePrincipal","com.azure.resourcemanager.cognitiveservices.models.ConnectionSharedAccessSignature":"Microsoft.CognitiveServices.ConnectionSharedAccessSignature","com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent":"Microsoft.CognitiveServices.ConnectionUpdateContent","com.azure.resourcemanager.cognitiveservices.models.ConnectionUsernamePassword":"Microsoft.CognitiveServices.ConnectionUsernamePassword","com.azure.resourcemanager.cognitiveservices.models.ConnectivityEndpoints":"Microsoft.CognitiveServices.ConnectivityEndpoints","com.azure.resourcemanager.cognitiveservices.models.ContainerInstanceComputeProperties":"Microsoft.CognitiveServices.ContainerInstanceComputeProperties","com.azure.resourcemanager.cognitiveservices.models.ContentLevel":"Microsoft.CognitiveServices.ContentLevel","com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig":"Microsoft.CognitiveServices.CustomBlocklistConfig","com.azure.resourcemanager.cognitiveservices.models.CustomKeys":"Microsoft.CognitiveServices.CustomKeys","com.azure.resourcemanager.cognitiveservices.models.CustomKeysConnectionProperties":"Microsoft.CognitiveServices.CustomKeysConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState":"Microsoft.CognitiveServices.DefenderForAISettingState","com.azure.resourcemanager.cognitiveservices.models.DeploymentCapacitySettings":"Microsoft.CognitiveServices.DeploymentCapacitySettings","com.azure.resourcemanager.cognitiveservices.models.DeploymentModel":"Microsoft.CognitiveServices.DeploymentModel","com.azure.resourcemanager.cognitiveservices.models.DeploymentModelVersionUpgradeOption":"Microsoft.CognitiveServices.DeploymentModelVersionUpgradeOption","com.azure.resourcemanager.cognitiveservices.models.DeploymentPolicyEvaluationResult":"Microsoft.CognitiveServices.DeploymentPolicyEvaluationResult","com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties":"Microsoft.CognitiveServices.DeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.DeploymentProvisioningState":"Microsoft.CognitiveServices.DeploymentProvisioningState","com.azure.resourcemanager.cognitiveservices.models.DeploymentRouting":"Microsoft.CognitiveServices.DeploymentRouting","com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleSettings":"Microsoft.CognitiveServices.DeploymentScaleSettings","com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleType":"Microsoft.CognitiveServices.DeploymentScaleType","com.azure.resourcemanager.cognitiveservices.models.DeploymentSizeCapacity":"Microsoft.CognitiveServices.DeploymentSizeCapacity","com.azure.resourcemanager.cognitiveservices.models.DeploymentSpeculativeDecoding":"Microsoft.CognitiveServices.DeploymentSpeculativeDecoding","com.azure.resourcemanager.cognitiveservices.models.DeploymentState":"Microsoft.CognitiveServices.DeploymentState","com.azure.resourcemanager.cognitiveservices.models.DeprecationStatus":"Microsoft.CognitiveServices.DeprecationStatus","com.azure.resourcemanager.cognitiveservices.models.Encryption":"Microsoft.CognitiveServices.Encryption","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties":"Microsoft.CognitiveServices.EncryptionScopeProperties","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProvisioningState":"Microsoft.CognitiveServices.EncryptionScopeProvisioningState","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState":"Microsoft.CognitiveServices.EncryptionScopeState","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesDeployment","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesRequest","com.azure.resourcemanager.cognitiveservices.models.FirewallSku":"Microsoft.CognitiveServices.FirewallSku","com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgrade":"Microsoft.CognitiveServices.FoundryAutoUpgrade","com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgradeMode":"Microsoft.CognitiveServices.FoundryAutoUpgradeMode","com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule":"Microsoft.CognitiveServices.FqdnOutboundRule","com.azure.resourcemanager.cognitiveservices.models.HostedAgentDeployment":"Microsoft.CognitiveServices.HostedAgentDeployment","com.azure.resourcemanager.cognitiveservices.models.HostingModel":"Microsoft.CognitiveServices.HostingModel","com.azure.resourcemanager.cognitiveservices.models.Identity":"Microsoft.CognitiveServices.Identity","com.azure.resourcemanager.cognitiveservices.models.IdentityKind":"Microsoft.CognitiveServices.IdentityKind","com.azure.resourcemanager.cognitiveservices.models.IdentityManagementType":"Microsoft.CognitiveServices.IdentityManagementType","com.azure.resourcemanager.cognitiveservices.models.IdentityProvisioningState":"Microsoft.CognitiveServices.IdentityProvisioningState","com.azure.resourcemanager.cognitiveservices.models.IpRule":"Microsoft.CognitiveServices.IpRule","com.azure.resourcemanager.cognitiveservices.models.IsolationMode":"Microsoft.CognitiveServices.IsolationMode","com.azure.resourcemanager.cognitiveservices.models.KeyName":"Microsoft.CognitiveServices.KeyName","com.azure.resourcemanager.cognitiveservices.models.KeySource":"Microsoft.CognitiveServices.KeySource","com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties":"Microsoft.CognitiveServices.KeyVaultProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedAgentDeployment":"Microsoft.CognitiveServices.ManagedAgentDeployment","com.azure.resourcemanager.cognitiveservices.models.ManagedClusterAgentHostingConfiguration":"Microsoft.CognitiveServices.ManagedClusterAgentHostingConfiguration","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacityProperties":"Microsoft.CognitiveServices.ManagedComputeCapacityProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentInfo":"Microsoft.CognitiveServices.ManagedComputeDeploymentInfo","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties":"Microsoft.CognitiveServices.ManagedComputeDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProvisioningDetails":"Microsoft.CognitiveServices.ManagedComputeDeploymentProvisioningDetails","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentRoutes":"Microsoft.CognitiveServices.ManagedComputeDeploymentRoutes","com.azure.resourcemanager.cognitiveservices.models.ManagedIdentityAuthTypeConnectionProperties":"Microsoft.CognitiveServices.ManagedIdentityAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkKind":"Microsoft.CognitiveServices.ManagedNetworkKind","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisionOptions":"Microsoft.CognitiveServices.ManagedNetworkProvisionOptions","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisioningState":"Microsoft.CognitiveServices.ManagedNetworkProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsEx":"Microsoft.CognitiveServices.ManagedNetworkSettingsEx","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsProperties":"Microsoft.CognitiveServices.ManagedNetworkSettingsProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkStatus":"Microsoft.CognitiveServices.ManagedNetworkStatus","com.azure.resourcemanager.cognitiveservices.models.ManagedPERequirement":"Microsoft.CognitiveServices.ManagedPERequirement","com.azure.resourcemanager.cognitiveservices.models.ManagedPEStatus":"Microsoft.CognitiveServices.ManagedPEStatus","com.azure.resourcemanager.cognitiveservices.models.MetricName":"Microsoft.CognitiveServices.MetricName","com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkload":"Microsoft.CognitiveServices.ModelCapacityCalculatorWorkload","com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkloadRequestParam":"Microsoft.CognitiveServices.ModelCapacityCalculatorWorkloadRequestParam","com.azure.resourcemanager.cognitiveservices.models.ModelDeprecationInfo":"Microsoft.CognitiveServices.ModelDeprecationInfo","com.azure.resourcemanager.cognitiveservices.models.ModelLifecycleStatus":"Microsoft.CognitiveServices.ModelLifecycleStatus","com.azure.resourcemanager.cognitiveservices.models.ModelSku":"Microsoft.CognitiveServices.ModelSku","com.azure.resourcemanager.cognitiveservices.models.ModelSkuCapacityProperties":"Microsoft.CognitiveServices.ModelSkuCapacityProperties","com.azure.resourcemanager.cognitiveservices.models.MultiRegionSettings":"Microsoft.CognitiveServices.MultiRegionSettings","com.azure.resourcemanager.cognitiveservices.models.NetworkInjection":"Microsoft.CognitiveServices.NetworkInjection","com.azure.resourcemanager.cognitiveservices.models.NetworkRuleAction":"Microsoft.CognitiveServices.NetworkRuleAction","com.azure.resourcemanager.cognitiveservices.models.NetworkRuleSet":"Microsoft.CognitiveServices.NetworkRuleSet","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter":"Microsoft.CognitiveServices.NetworkSecurityPerimeter","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRule","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRuleProperties","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationAssociationInfo","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo":"Microsoft.CognitiveServices.NetworkSecurityPerimeterProfileInfo","com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties":"Microsoft.CognitiveServices.NoneAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection":"Microsoft.CognitiveServices.NspAccessRuleDirection","com.azure.resourcemanager.cognitiveservices.models.OAuth2AuthTypeConnectionProperties":"Microsoft.CognitiveServices.OAuth2AuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.cognitiveservices.models.OrganizationSharedBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.OrganizationSharedBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.cognitiveservices.models.OutboundRule":"Microsoft.CognitiveServices.OutboundRule","com.azure.resourcemanager.cognitiveservices.models.PatAuthTypeConnectionProperties":"Microsoft.CognitiveServices.PATAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.PatchResourceSku":"Microsoft.CognitiveServices.PatchResourceSku","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTags":"Microsoft.CognitiveServices.PatchResourceTags","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku":"Microsoft.CognitiveServices.PatchResourceTagsAndSku","com.azure.resourcemanager.cognitiveservices.models.PolicyAssignmentEvaluationDetails":"Microsoft.CognitiveServices.PolicyAssignmentEvaluationDetails","com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome":"Microsoft.CognitiveServices.PolicyEvaluationOutcome","com.azure.resourcemanager.cognitiveservices.models.PolicyExpressionEvaluationDetails":"Microsoft.CognitiveServices.PolicyExpressionEvaluationDetails","com.azure.resourcemanager.cognitiveservices.models.Pool":"Microsoft.CognitiveServices.Pool","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProperties":"Microsoft.CognitiveServices.PrivateEndpointConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointOutboundRule":"Microsoft.CognitiveServices.PrivateEndpointOutboundRule","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointOutboundRuleDestination":"Microsoft.CognitiveServices.PrivateEndpointOutboundRuleDestination","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResource":"Microsoft.CognitiveServices.PrivateLinkResource","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResourceProperties":"Microsoft.CognitiveServices.PrivateLinkResourceProperties","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.cognitiveservices.models.ProjectCapabilityHostProperties":"Microsoft.CognitiveServices.ProjectCapabilityHostProperties","com.azure.resourcemanager.cognitiveservices.models.ProjectProperties":"Microsoft.CognitiveServices.ProjectProperties","com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue":"Microsoft.CognitiveServices.ProvisioningIssue","com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties":"Microsoft.CognitiveServices.ProvisioningIssueProperties","com.azure.resourcemanager.cognitiveservices.models.ProvisioningState":"Microsoft.CognitiveServices.ProvisioningState","com.azure.resourcemanager.cognitiveservices.models.PublicNetworkAccess":"Microsoft.CognitiveServices.PublicNetworkAccess","com.azure.resourcemanager.cognitiveservices.models.QuotaLimit":"Microsoft.CognitiveServices.QuotaLimit","com.azure.resourcemanager.cognitiveservices.models.QuotaScopeType":"Microsoft.CognitiveServices.QuotaScopeType","com.azure.resourcemanager.cognitiveservices.models.QuotaTierProperties":"Microsoft.CognitiveServices.QuotaTierProperties","com.azure.resourcemanager.cognitiveservices.models.QuotaTierUpgradeEligibilityInfo":"Microsoft.CognitiveServices.QuotaTierUpgradeEligibilityInfo","com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus":"Microsoft.CognitiveServices.QuotaUsageStatus","com.azure.resourcemanager.cognitiveservices.models.RaiActionType":"Microsoft.CognitiveServices.RaiActionType","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistConfig":"Microsoft.CognitiveServices.RaiBlocklistConfig","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest":"Microsoft.CognitiveServices.RaiBlocklistItemBulkRequest","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties":"Microsoft.CognitiveServices.RaiBlocklistItemProperties","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties":"Microsoft.CognitiveServices.RaiBlocklistProperties","com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties":"Microsoft.CognitiveServices.RaiContentFilterProperties","com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction":"Microsoft.CognitiveServices.RaiEgressDefaultAction","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation":"Microsoft.CognitiveServices.RaiEgressHeaderOperation","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform":"Microsoft.CognitiveServices.RaiEgressHeaderTransform","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderValueRef":"Microsoft.CognitiveServices.RaiEgressHeaderValueRef","com.azure.resourcemanager.cognitiveservices.models.RaiEgressManagedIdentityRef":"Microsoft.CognitiveServices.RaiEgressManagedIdentityRef","com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode":"Microsoft.CognitiveServices.RaiEgressMode","com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig":"Microsoft.CognitiveServices.RaiEgressPolicyConfig","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget":"Microsoft.CognitiveServices.RaiEgressRewriteTarget","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule":"Microsoft.CognitiveServices.RaiEgressRule","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction":"Microsoft.CognitiveServices.RaiEgressRuleAction","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType":"Microsoft.CognitiveServices.RaiEgressRuleActionType","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch":"Microsoft.CognitiveServices.RaiEgressRuleMatch","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType":"Microsoft.CognitiveServices.RaiEgressRuleType","com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme":"Microsoft.CognitiveServices.RaiEgressScheme","com.azure.resourcemanager.cognitiveservices.models.RaiEgressSecretRef":"Microsoft.CognitiveServices.RaiEgressSecretRef","com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProviderSchemaProperties":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemaProperties","com.azure.resourcemanager.cognitiveservices.models.RaiMonitorConfig":"Microsoft.CognitiveServices.RaiMonitorConfig","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter":"Microsoft.CognitiveServices.RaiPolicyContentFilter","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource":"Microsoft.CognitiveServices.RaiPolicyContentSource","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode":"Microsoft.CognitiveServices.RaiPolicyMode","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties":"Microsoft.CognitiveServices.RaiPolicyProperties","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyType":"Microsoft.CognitiveServices.RaiPolicyType","com.azure.resourcemanager.cognitiveservices.models.RaiSafetyProviderConfig":"Microsoft.CognitiveServices.RaiSafetyProviderConfig","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelProperties":"Microsoft.CognitiveServices.RaiToolLabelProperties","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesAccountScope":"Microsoft.CognitiveServices.RaiToolLabelPropertiesAccountScope","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesProjectScopesItem":"Microsoft.CognitiveServices.RaiToolLabelPropertiesProjectScopesItem","com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties":"Microsoft.CognitiveServices.RaiTopicProperties","com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters":"Microsoft.CognitiveServices.RegenerateKeyParameters","com.azure.resourcemanager.cognitiveservices.models.RegionSetting":"Microsoft.CognitiveServices.RegionSetting","com.azure.resourcemanager.cognitiveservices.models.ReplacementConfig":"Microsoft.CognitiveServices.ReplacementConfig","com.azure.resourcemanager.cognitiveservices.models.RequestMatchPattern":"Microsoft.CognitiveServices.RequestMatchPattern","com.azure.resourcemanager.cognitiveservices.models.ResourceBase":"Microsoft.CognitiveServices.ResourceBase","com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType":"Microsoft.CognitiveServices.ResourceIdentityType","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionInfo":"Microsoft.CognitiveServices.ResourceSkuRestrictionInfo","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictions":"Microsoft.CognitiveServices.ResourceSkuRestrictions","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionsReasonCode":"Microsoft.CognitiveServices.ResourceSkuRestrictionsReasonCode","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionsType":"Microsoft.CognitiveServices.ResourceSkuRestrictionsType","com.azure.resourcemanager.cognitiveservices.models.RoleBasedBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.RoleBasedBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.RoutingMethods":"Microsoft.CognitiveServices.RoutingMethods","com.azure.resourcemanager.cognitiveservices.models.RoutingMode":"Microsoft.CognitiveServices.RoutingMode","com.azure.resourcemanager.cognitiveservices.models.RuleAction":"Microsoft.CognitiveServices.RuleAction","com.azure.resourcemanager.cognitiveservices.models.RuleCategory":"Microsoft.CognitiveServices.RuleCategory","com.azure.resourcemanager.cognitiveservices.models.RuleStatus":"Microsoft.CognitiveServices.RuleStatus","com.azure.resourcemanager.cognitiveservices.models.RuleType":"Microsoft.CognitiveServices.RuleType","com.azure.resourcemanager.cognitiveservices.models.SafetyProviderConfig":"Microsoft.CognitiveServices.SafetyProviderConfig","com.azure.resourcemanager.cognitiveservices.models.SasAuthTypeConnectionProperties":"Microsoft.CognitiveServices.SASAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ScenarioType":"Microsoft.CognitiveServices.ScenarioType","com.azure.resourcemanager.cognitiveservices.models.ServicePrincipalAuthTypeConnectionProperties":"Microsoft.CognitiveServices.ServicePrincipalAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ServiceTagOutboundRule":"Microsoft.CognitiveServices.ServiceTagOutboundRule","com.azure.resourcemanager.cognitiveservices.models.ServiceTagOutboundRuleDestination":"Microsoft.CognitiveServices.ServiceTagOutboundRuleDestination","com.azure.resourcemanager.cognitiveservices.models.ServiceTier":"Microsoft.CognitiveServices.ServiceTier","com.azure.resourcemanager.cognitiveservices.models.Sku":"Microsoft.CognitiveServices.Sku","com.azure.resourcemanager.cognitiveservices.models.SkuAvailability":"Microsoft.CognitiveServices.SkuAvailability","com.azure.resourcemanager.cognitiveservices.models.SkuCapability":"Microsoft.CognitiveServices.SkuCapability","com.azure.resourcemanager.cognitiveservices.models.SkuChangeInfo":"Microsoft.CognitiveServices.SkuChangeInfo","com.azure.resourcemanager.cognitiveservices.models.SkuTier":"Microsoft.CognitiveServices.SkuTier","com.azure.resourcemanager.cognitiveservices.models.SshSettings":"Microsoft.CognitiveServices.SshSettings","com.azure.resourcemanager.cognitiveservices.models.ThrottlingRule":"Microsoft.CognitiveServices.ThrottlingRule","com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy":"Microsoft.CognitiveServices.TierUpgradePolicy","com.azure.resourcemanager.cognitiveservices.models.TrafficRoutingProtocol":"Microsoft.CognitiveServices.TrafficRoutingProtocol","com.azure.resourcemanager.cognitiveservices.models.TrafficRoutingRule":"Microsoft.CognitiveServices.TrafficRoutingRule","com.azure.resourcemanager.cognitiveservices.models.UnitType":"Microsoft.CognitiveServices.UnitType","com.azure.resourcemanager.cognitiveservices.models.UpgradeAvailabilityStatus":"Microsoft.CognitiveServices.UpgradeAvailabilityStatus","com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity":"Microsoft.CognitiveServices.UserAssignedIdentity","com.azure.resourcemanager.cognitiveservices.models.UserOwnedAmlWorkspace":"Microsoft.CognitiveServices.UserOwnedAmlWorkspace","com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage":"Microsoft.CognitiveServices.UserOwnedStorage","com.azure.resourcemanager.cognitiveservices.models.UsernamePasswordAuthTypeConnectionProperties":"Microsoft.CognitiveServices.UsernamePasswordAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.VersionedAgentReference":"Microsoft.CognitiveServices.VersionedAgentReference","com.azure.resourcemanager.cognitiveservices.models.VirtualNetworkRule":"Microsoft.CognitiveServices.VirtualNetworkRule","com.azure.resourcemanager.cognitiveservices.models.VmPriority":"Microsoft.CognitiveServices.VmPriority","com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties":"Microsoft.CognitiveServices.WorkbenchProperties"},"generatedFiles":["src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentApplicationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ArcDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputeOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeletedAccountsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkProvisionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkSettingsOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiToolLabelsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiTopicsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/SubscriptionRaiPoliciesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/TestRaiExternalSafetyProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentApplicationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentReferenceResourceArmPaginatedResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ArcDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentTierInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeOperationStatusInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ConnectionPropertiesV2BasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DomainAvailabilityInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkProvisionStatusInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsPropertiesBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/OutboundRuleBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateEndpointConnectionListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateLinkResourceListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ProjectCapabilityHostInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ProjectInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/QuotaTierInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiExternalSafetyProviderSchemaInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiToolLabelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiTopicInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ResourceSkuInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuAvailabilityListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountCapabilityHostsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountCapabilityHostsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountSkuListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentReferenceResourceArmPaginatedResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ApiKeysImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ArcDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CapabilityHostImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlansClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlansImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTierImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTiersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTiersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationStatusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeletedAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeletedAccountsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DomainAvailabilityImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionStatusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsPropertiesBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRuleBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourceListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTierImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTiersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTiersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProviderSchemaImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkuImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkusClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuAvailabilityListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SubscriptionRaiPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SubscriptionRaiPoliciesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/TestRaiExternalSafetyProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/TestRaiExternalSafetyProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AccountListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AccountModelListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AgentApplicationResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AgentDeploymentResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ArcDeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CapabilityHostResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentPlanAccountAssociationListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentPlanListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentTierListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ConnectionPropertiesV2BasicResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DefenderForAISettingResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DeploymentSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/EncryptionScopeListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedNetworkListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ModelCapacityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ModelListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/NetworkSecurityPerimeterConfigurationList.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/OutboundRuleListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ProjectCapabilityHostResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ProjectListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/QuotaTierListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiBlockListItemsResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiBlockListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiContentFilterListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiExternalSafetyProviderResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiPolicyListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiToolLabelResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiTopicResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ResourceSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AadAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AbusePenalty.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AbusePenaltyAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccessKeyAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountCapabilityHosts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountKeyAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentApplication.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentApplications.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingConfiguration.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentHostingType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentProtocol.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentProtocolVersion.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReference.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReferenceProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReferenceResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgenticApplicationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgenticApplicationProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiKeyAuthConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiKeys.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApplicationAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApplicationTrafficRoutingPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentComputeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentCpuMemoryResourceRequirements.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentKubernetesResources.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchCpuMemoryResourceRequirements.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentPatchKubernetesResources.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentProvisioningDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentResourceRequirements.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentRuntime.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentSkuName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdate.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentUpdateProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeploymentVllmParameters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ArcDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AssignedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/BuiltInAuthorizationScheme.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CallRateLimit.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilitySettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ChannelsBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckDomainAvailabilityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentCost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPeriod.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlan.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAssociation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlans.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentQuota.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentTiers.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAccessKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAccountKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionApiKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAuthType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionCategory.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionGroup.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionManagedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionOAuth2.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPersonalAccessToken.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionServicePrincipal.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionSharedAccessSignature.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionUpdateContent.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionUsernamePassword.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomKeys.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomKeysConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeletedAccounts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModelVersionUpgradeOption.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentRouting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSpeculativeDecoding.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeprecationStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DomainAvailability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FirewallSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgrade.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgradeMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FqdnOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostingModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Identity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityManagementType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IpRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IsolationMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeyName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeySource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedClusterAgentHostingConfiguration.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedIdentityAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisionOptions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisionStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsEx.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsPropertiesBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedPERequirement.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedPEStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/MetricName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelDeprecationInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Models.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/MultiRegionSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkInjection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NoneAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OAuth2AuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Operation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Operations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OrganizationSharedBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Origin.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRuleBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRules.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRulesOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTags.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTagsAndSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointOutboundRuleDestination.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Project.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHostProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHosts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Projects.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaLimit.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaScopeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTierProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTierUpgradeEligibilityInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTiers.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaUsageStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressDefaultAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderOperation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderTransform.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderValueRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressManagedIdentityRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressPolicyConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRewriteTarget.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleMatch.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressScheme.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressSecretRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviderSchema.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviderSchemaProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProvidersOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiSafetyProviderConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelPropertiesAccountScope.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelPropertiesProjectScopesItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabels.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopic.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopicProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopics.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RegenerateKeyParameters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RegionSetting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ReplacementConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RequestMatchPattern.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceBase.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionsReasonCode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionsType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoleBasedBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoutingMethods.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoutingMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleCategory.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SafetyProviderConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SasAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ScenarioType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServicePrincipalAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTagOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTagOutboundRuleDestination.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Sku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuAvailability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuAvailabilityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuCapability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuChangeInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SubscriptionRaiPolicies.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TestRaiExternalSafetyProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ThrottlingRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TierUpgradePolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TrafficRoutingProtocol.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TrafficRoutingRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UnitType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UpgradeAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UsageListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usages.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedStorage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UsernamePasswordAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VersionedAgentReference.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VirtualNetworkRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json index 7434ab0c14a8..70c01bdb6226 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.cognitiveservices.implementation.AccountCapabilityHostsClientImpl$AccountCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountConnectionsClientImpl$AccountConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentApplicationsClientImpl$AgentApplicationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentDeploymentsClientImpl$AgentDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansClientImpl$CommitmentPlansService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersClientImpl$CommitmentTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ComputeOperationsClientImpl$ComputeOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ComputesClientImpl$ComputesService"],["com.azure.resourcemanager.cognitiveservices.implementation.DefenderForAISettingsClientImpl$DefenderForAISettingsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsClientImpl$DeletedAccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsClientImpl$DeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesClientImpl$EncryptionScopesService"],["com.azure.resourcemanager.cognitiveservices.implementation.LocationBasedModelCapacitiesClientImpl$LocationBasedModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeCapacitiesClientImpl$ManagedComputeCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeDeploymentsClientImpl$ManagedComputeDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeUsagesOperationGroupsClientImpl$ManagedComputeUsagesOperationGroupsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkProvisionsClientImpl$ManagedNetworkProvisionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkSettingsOperationsClientImpl$ManagedNetworkSettingsOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesClientImpl$ModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelsClientImpl$ModelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.NetworkSecurityPerimeterConfigurationsClientImpl$NetworkSecurityPerimeterConfigurationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesClientImpl$OutboundRulesService"],["com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesOperationsClientImpl$OutboundRulesOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectCapabilityHostsClientImpl$ProjectCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectConnectionsClientImpl$ProjectConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectsClientImpl$ProjectsService"],["com.azure.resourcemanager.cognitiveservices.implementation.QuotaTiersClientImpl$QuotaTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsClientImpl$RaiBlocklistItemsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsClientImpl$RaiBlocklistsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersClientImpl$RaiContentFiltersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersClientImpl$RaiExternalSafetyProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersOperationsClientImpl$RaiExternalSafetyProvidersOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesClientImpl$RaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiToolLabelsClientImpl$RaiToolLabelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiTopicsClientImpl$RaiTopicsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.cognitiveservices.implementation.SubscriptionRaiPoliciesClientImpl$SubscriptionRaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.TestRaiExternalSafetyProvidersClientImpl$TestRaiExternalSafetyProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.UsagesClientImpl$UsagesService"],["com.azure.resourcemanager.cognitiveservices.implementation.WorkbenchesClientImpl$WorkbenchesService"]] \ No newline at end of file +[["com.azure.resourcemanager.cognitiveservices.implementation.AccountCapabilityHostsClientImpl$AccountCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountConnectionsClientImpl$AccountConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentApplicationsClientImpl$AgentApplicationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentDeploymentsClientImpl$AgentDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ArcDeploymentsClientImpl$ArcDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansClientImpl$CommitmentPlansService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersClientImpl$CommitmentTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ComputeOperationsClientImpl$ComputeOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ComputesClientImpl$ComputesService"],["com.azure.resourcemanager.cognitiveservices.implementation.DefenderForAISettingsClientImpl$DefenderForAISettingsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsClientImpl$DeletedAccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsClientImpl$DeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesClientImpl$EncryptionScopesService"],["com.azure.resourcemanager.cognitiveservices.implementation.LocationBasedModelCapacitiesClientImpl$LocationBasedModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeCapacitiesClientImpl$ManagedComputeCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeDeploymentsClientImpl$ManagedComputeDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeUsagesOperationGroupsClientImpl$ManagedComputeUsagesOperationGroupsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkProvisionsClientImpl$ManagedNetworkProvisionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkSettingsOperationsClientImpl$ManagedNetworkSettingsOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesClientImpl$ModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelsClientImpl$ModelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.NetworkSecurityPerimeterConfigurationsClientImpl$NetworkSecurityPerimeterConfigurationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesClientImpl$OutboundRulesService"],["com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesOperationsClientImpl$OutboundRulesOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectCapabilityHostsClientImpl$ProjectCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectConnectionsClientImpl$ProjectConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectsClientImpl$ProjectsService"],["com.azure.resourcemanager.cognitiveservices.implementation.QuotaTiersClientImpl$QuotaTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsClientImpl$RaiBlocklistItemsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsClientImpl$RaiBlocklistsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersClientImpl$RaiContentFiltersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersClientImpl$RaiExternalSafetyProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersOperationsClientImpl$RaiExternalSafetyProvidersOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesClientImpl$RaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiToolLabelsClientImpl$RaiToolLabelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiTopicsClientImpl$RaiTopicsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.cognitiveservices.implementation.SubscriptionRaiPoliciesClientImpl$SubscriptionRaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.TestRaiExternalSafetyProvidersClientImpl$TestRaiExternalSafetyProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.UsagesClientImpl$UsagesService"],["com.azure.resourcemanager.cognitiveservices.implementation.WorkbenchesClientImpl$WorkbenchesService"]] \ No newline at end of file diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java index e6fa5d8e32d9..5d254dbf3c07 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class AccountCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Account CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java index 2fed637ce7ef..671ce356f055 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/delete.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/delete.json */ /** * Sample code: Delete Account CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java index 517bdaa7c131..6a3a782bdc6f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AccountCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/get.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/get.json */ /** * Sample code: Get Account CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java index 005c5e96abd0..fbedf2b6b13f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/list.json + * x-ms-original-file: 2026-07-15-preview/AccountCapabilityHost/list.json */ /** * Sample code: List Account CapabilityHosts. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java index 7a95ca3b5647..5c5fc92248a4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.cognitiveservices.generated; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -14,7 +13,7 @@ */ public final class AccountConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/create.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/create.json */ /** * Sample code: CreateAccountConnection. @@ -24,11 +23,11 @@ public final class AccountConnectionsCreateSamples { public static void createAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.accountConnections() - .createWithResponse("resourceGroup-1", "account-1", "connection-1", - new ConnectionPropertiesV2BasicResourceInner().withProperties( - new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")), - com.azure.core.util.Context.NONE); + .define("connection-1") + .withExistingAccount("resourceGroup-1", "account-1") + .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")) + .create(); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java index 24ddb0def666..f492ac9cb791 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/delete.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/delete.json */ /** * Sample code: DeleteAccountConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java index e744c303ab23..ecfe3e702a49 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AccountConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/get.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/get.json */ /** * Sample code: GetAccountConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java index 7813c3811137..1636e774d06c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/list.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/list.json */ /** * Sample code: ListAccountConnections. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java index f9cc388920c3..cc695fa918bd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java @@ -7,7 +7,7 @@ import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -17,7 +17,7 @@ */ public final class AccountConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/update.json + * x-ms-original-file: 2026-07-15-preview/AccountConnection/update.json */ /** * Sample code: UpdateAccountConnection. @@ -26,16 +26,17 @@ public final class AccountConnectionsUpdateSamples { */ public static void updateAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.accountConnections() - .updateWithResponse("test-rg", "account-1", "connection-1", - new ConnectionUpdateContent().withProperties( - new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))), - com.azure.core.util.Context.NONE); + ConnectionPropertiesV2BasicResource resource = manager.accountConnections() + .getWithResponse("test-rg", "account-1", "connection-1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))) + .apply(); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java index 56a3ea94e5a3..19b8557cc0ad 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.cognitiveservices.generated; import com.azure.resourcemanager.cognitiveservices.models.AccountProperties; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.Encryption; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.KeySource; import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; +import com.azure.resourcemanager.cognitiveservices.models.ManagedClusterAgentHostingConfiguration; import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity; import com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; /** * Samples for Accounts Create. */ public final class AccountsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateAccountMin.json + * x-ms-original-file: 2026-07-15-preview/CreateAccountMin.json */ /** * Sample code: Create Account Min. @@ -39,7 +44,7 @@ public static void createAccountMin(com.azure.resourcemanager.cognitiveservices. } /* - * x-ms-original-file: 2026-05-15-preview/CreateAccount.json + * x-ms-original-file: 2026-07-15-preview/CreateAccount.json */ /** * Sample code: Create Account. @@ -57,10 +62,61 @@ public static void createAccount(com.azure.resourcemanager.cognitiveservices.Cog .withKeyVersion("fakeTokenPlaceholder") .withKeyVaultUri("fakeTokenPlaceholder")).withKeySource(KeySource.MICROSOFT_KEY_VAULT)) .withUserOwnedStorage(Arrays.asList(new UserOwnedStorage().withResourceId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount")))) + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"))) + .withCapabilitySettings(new CapabilitySettings().withDocumentStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myCosmosAccount") + .withVectorStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Search/searchServices/mySearchService") + .withBlobStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"))) .withKind("Emotion") .withSku(new Sku().withName("S0")) .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .create(); } + + /* + * x-ms-original-file: 2026-07-15-preview/CreateAccountWithAgentHostingConfiguration.json + */ + /** + * Sample code: Create a Foundry account with customer-owned AKS hosting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createAFoundryAccountWithCustomerOwnedAKSHosting( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.accounts() + .define("foundryByocAccount") + .withExistingResourceGroup("myResourceGroup") + .withRegion("West US") + .withProperties(new AccountProperties().withAgentHostingConfigurations( + Arrays.asList(new ManagedClusterAgentHostingConfiguration().withName("default") + .withHostingManagementIdentityResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/account-control-plane") + .withWorkloadIdentityResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aks-workload") + .withClusterResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/cluster1") + .withStorageAccountResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/storage1")))) + .withKind("AIServices") + .withSku(new Sku().withName("S0")) + .withIdentity(new Identity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/account-control-plane", + new UserAssignedIdentity()))) + .create(); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java index 7a9820aebea2..0339d756b2cf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteAccount.json + * x-ms-original-file: 2026-07-15-preview/DeleteAccount.json */ /** * Sample code: Delete Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java index ead084195a58..804478e798d0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java @@ -15,7 +15,7 @@ */ public final class AccountsEvaluateDeploymentPoliciesSamples { /* - * x-ms-original-file: 2026-05-15-preview/EvaluateDeploymentPolicies.json + * x-ms-original-file: 2026-07-15-preview/EvaluateDeploymentPolicies.json */ /** * Sample code: EvaluateDeploymentPolicies. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java index 9c70e8e4394b..ab1548137351 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetAccount.json + * x-ms-original-file: 2026-07-15-preview/GetAccount.json */ /** * Sample code: Get Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java index dba47dd07778..2434b9accd7b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsByResourceGroup.json + * x-ms-original-file: 2026-07-15-preview/ListAccountsByResourceGroup.json */ /** * Sample code: List Accounts by Resource Group. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java index fa2dffc92a75..4352d46a42c9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListKeysSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListKeys.json + * x-ms-original-file: 2026-07-15-preview/ListKeys.json */ /** * Sample code: List Keys. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java index 6979dbbb790e..a21bc1ae403b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListModelsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountModels.json + * x-ms-original-file: 2026-07-15-preview/ListAccountModels.json */ /** * Sample code: List AccountModels. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java index 521449c942dc..58bb145adc76 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsBySubscription.json + * x-ms-original-file: 2026-07-15-preview/ListAccountsBySubscription.json */ /** * Sample code: List Accounts by Subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java index d15ff0c73d49..ba57ee59e830 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSkus.json + * x-ms-original-file: 2026-07-15-preview/ListSkus.json */ /** * Sample code: List SKUs. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java index 528140309a1e..47e1456ea5d3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListUsagesSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetUsages.json + * x-ms-original-file: 2026-07-15-preview/GetUsages.json */ /** * Sample code: Get Usages. @@ -22,7 +22,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/GetUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -36,7 +36,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/GetUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -50,7 +50,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/GetUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java index 037c89c5dce5..75edb655c10c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java @@ -12,7 +12,7 @@ */ public final class AccountsRegenerateKeySamples { /* - * x-ms-original-file: 2026-05-15-preview/RegenerateKey.json + * x-ms-original-file: 2026-07-15-preview/RegenerateKey.json */ /** * Sample code: Regenerate Keys. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java index 668ad0161777..56e6eb93a5b5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateAccount.json + * x-ms-original-file: 2026-07-15-preview/UpdateAccount.json */ /** * Sample code: Update Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java index 005e778b5cc5..d6497d03c080 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class AgentApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/createOrUpdate.json */ /** * Sample code: Create or Update Account Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java index 2bcb992adfcc..ac60bb43995e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/delete.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/delete.json */ /** * Sample code: Delete Account Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java index 870361ff4eda..7851186972f6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsDisableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/disable.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/disable.json */ /** * Sample code: Disable Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java index 905989c91951..202618de889f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsEnableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/enable.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/enable.json */ /** * Sample code: Enable Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java index 5fe70c9e4030..79f690788216 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/get.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/get.json */ /** * Sample code: Get Account Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java index adb8affe948a..5da902fafb0c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsListAgentsSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/listAgents.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/listAgents.json */ /** * Sample code: List Agents for Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java index 4c8b497e6788..bfbe608e279a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java @@ -11,7 +11,7 @@ */ public final class AgentApplicationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/list.json + * x-ms-original-file: 2026-07-15-preview/AgentApplication/list.json */ /** * Sample code: List Account Agent Applications. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java index fc34c538bb13..2d282960ee0d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class AgentDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/createOrUpdate.json */ /** * Sample code: Create or Update Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java index 64cac962aba1..bc74cafec5d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/delete.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/delete.json */ /** * Sample code: Delete Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java index 3f1d5766e9b1..8257d05ed871 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/get.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/get.json */ /** * Sample code: Get Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java index 9b0f733c410b..6adb58b85460 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/list.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/list.json */ /** * Sample code: List Agent Deployments. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java index a3a485682c9a..5444d5872429 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/start.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/start.json */ /** * Sample code: Start Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java index 964e8e12417d..bcd37941675a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/stop.json + * x-ms-original-file: 2026-07-15-preview/AgentDeployment/stop.json */ /** * Sample code: Stop Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..445f71adcba6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsCreateOrUpdateSamples.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ArcDeployments CreateOrUpdate. + */ +public final class ArcDeploymentsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateArcDeployment.json + */ + /** + * Sample code: CreateOrUpdateArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + createOrUpdateArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .define("phi-3-arc") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("OpenAI").withName("phi-3-mini")) + .withExtensionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/edge-cluster/providers/Microsoft.KubernetesConfiguration/extensions/inference-operator") + .withRuntime(ArcDeploymentRuntime.ONNX) + .withCompute(ArcDeploymentComputeType.CPU) + .withReplicas(2) + .withResources(new ArcDeploymentKubernetesResources() + .withRequests(new ArcDeploymentCpuMemoryResourceRequirements().withCpu("8").withMemory("16Gi")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("8").withMemory("16Gi"))) + .withNodeSelector(mapOf("agentpool", "cpu"))) + .withSku(new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC)) + .create(); + } + + /* + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateArcDeploymentWithTemplate.json + */ + /** + * Sample code: CreateOrUpdateArcDeploymentWithTemplate. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createOrUpdateArcDeploymentWithTemplate( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .define("qwen-template-arc") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("OpenAI").withName("qwen3")) + .withExtensionId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/edge-cluster/providers/Microsoft.KubernetesConfiguration/extensions/inference-operator") + .withRuntime(ArcDeploymentRuntime.VLLM) + .withCompute(ArcDeploymentComputeType.GPU) + .withDeploymentTemplate( + "azureml://registries/azureml-openai-oss/deploymenttemplates/vllm-qwen--qwen3-5-0-8b/versions/1") + .withReplicas(2) + .withResources(new ArcDeploymentKubernetesResources() + .withLimits(new ArcDeploymentResourceRequirements().withGpu(5))) + .withNodeSelector(mapOf("agentpool", "a100"))) + .withSku(new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC)) + .create(); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsDeleteSamples.java new file mode 100644 index 000000000000..50d69c36178a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsDeleteSamples.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.cognitiveservices.generated; + +/** + * Samples for ArcDeployments Delete. + */ +public final class ArcDeploymentsDeleteSamples { + /* + * x-ms-original-file: 2026-07-15-preview/DeleteArcDeployment.json + */ + /** + * Sample code: DeleteArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .delete("resourceGroupName", "accountName", "phi-3-arc", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsGetSamples.java new file mode 100644 index 000000000000..9dd30d6d2e98 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsGetSamples.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.cognitiveservices.generated; + +/** + * Samples for ArcDeployments Get. + */ +public final class ArcDeploymentsGetSamples { + /* + * x-ms-original-file: 2026-07-15-preview/GetArcDeployment.json + */ + /** + * Sample code: GetArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments() + .getWithResponse("resourceGroupName", "accountName", "qwen-template-arc", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsListSamples.java new file mode 100644 index 000000000000..0d23bb4c9390 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsListSamples.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.cognitiveservices.generated; + +/** + * Samples for ArcDeployments List. + */ +public final class ArcDeploymentsListSamples { + /* + * x-ms-original-file: 2026-07-15-preview/ListArcDeployments.json + */ + /** + * Sample code: ListArcDeployments. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listArcDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.arcDeployments().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsUpdateSamples.java new file mode 100644 index 000000000000..c87b64dcaabc --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsUpdateSamples.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdateProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ArcDeployments Update. + */ +public final class ArcDeploymentsUpdateSamples { + /* + * x-ms-original-file: 2026-07-15-preview/UpdateArcDeployment.json + */ + /** + * Sample code: UpdateArcDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateArcDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + ArcDeployment resource = manager.arcDeployments() + .getWithResponse("resourceGroupName", "accountName", "phi-3-arc", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ArcDeploymentUpdateProperties().withReplicas(3) + .withResources(new ArcDeploymentPatchKubernetesResources() + .withRequests( + new ArcDeploymentPatchCpuMemoryResourceRequirements().withCpu("500m").withMemory("2Gi")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("4").withMemory("16Gi"))) + .withNodeSelector(mapOf("agentpool", "cpu"))) + .apply(); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java index 70a18729b7ee..8539f46af412 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-15-preview/CreateSharedCommitmentPlanAssociation.json */ /** * Sample code: PutCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java index 3c54b759eca1..7b1e1604debf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java @@ -14,7 +14,7 @@ */ public final class CommitmentPlansCreateOrUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/CreateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java index c14eb30e3f5f..fe295d90f3d4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class CommitmentPlansCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/PutCommitmentPlan.json */ /** * Sample code: PutCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java index 06133a147fe0..1af8b587030d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansDeleteAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-15-preview/DeleteSharedCommitmentPlanAssociation.json */ /** * Sample code: DeleteCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java index fda854e13b36..59dfb22384f3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansDeletePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/DeleteSharedCommitmentPlan.json */ /** * Sample code: Delete Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java index 6b01e4a0004f..38f1df42a841 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/DeleteCommitmentPlan.json */ /** * Sample code: DeleteCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java index 9844e44dede6..1b297d2ceb4e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansGetAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-15-preview/GetSharedCommitmentPlanAssociation.json */ /** * Sample code: GetCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java index eeae1e2158a1..2269071eb235 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/GetSharedCommitmentPlan.json */ /** * Sample code: Get Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java index 9ee169c662fb..03a5359423d7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/GetCommitmentPlan.json */ /** * Sample code: GetCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java index aafec09d56c5..94bf9da36a0a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListAssociationsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlanAssociations.json + * x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlanAssociations.json */ /** * Sample code: ListCommitmentPlans. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java index 53dfca5dfe97..c72ed290bf85 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansByResourceGroup.json + * x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlansByResourceGroup.json */ /** * Sample code: List Commitment Plans by Resource Group. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java index 30acdd54e1d2..5d15fffddf0c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListPlansBySubscriptionSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansBySubscription.json + * x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlansBySubscription.json */ /** * Sample code: List Accounts by Subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java index 723ae6fe4c70..075747ee365d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentPlans.json + * x-ms-original-file: 2026-07-15-preview/ListCommitmentPlans.json */ /** * Sample code: ListCommitmentPlans. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java index 1b2a80c73b6e..cb00f3f93747 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java @@ -13,7 +13,7 @@ */ public final class CommitmentPlansUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-15-preview/UpdateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java index cd44d809293c..a2a5ae207556 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentTiers.json + * x-ms-original-file: 2026-07-15-preview/ListCommitmentTiers.json */ /** * Sample code: ListCommitmentTiers. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputeOperationsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputeOperationsGetSamples.java index 2cb3534a9380..24f8de72b4e6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputeOperationsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputeOperationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ComputeOperationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetComputeOperationStatus.json + * x-ms-original-file: 2026-07-15-preview/GetComputeOperationStatus.json */ /** * Sample code: GetComputeOperationStatus. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java index e680d1c709c2..10102049c49c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java @@ -21,7 +21,7 @@ */ public final class ComputesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/PutContainerInstanceCompute.json */ /** * Sample code: PutContainerInstanceCompute. @@ -33,12 +33,12 @@ public final class ComputesCreateOrUpdateSamples { manager.computes() .define("myContainerInstance") .withExistingAccount("rgcognitiveservices", "myAccount") - .withProperties(new ContainerInstanceComputeProperties().withTargetClusterId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster") + .withProperties(new ContainerInstanceComputeProperties().withLocation("eastus") + .withTargetClusterId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster") .withImageLink("mcr.microsoft.com/azureml/curated/pytorch-gpu:latest") .withIdleTimeBeforeShutdown("PT30M") .withSshSettings(new SshSettings().withSshPublicKey("fakeTokenPlaceholder").withAdminEnabled(true))) - .withRegion("eastus") .withIdentity(new Identity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf( "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity", @@ -47,7 +47,7 @@ public final class ComputesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/PutCompute.json + * x-ms-original-file: 2026-07-15-preview/PutCompute.json */ /** * Sample code: PutCompute. @@ -58,14 +58,11 @@ public static void putCompute(com.azure.resourcemanager.cognitiveservices.Cognit manager.computes() .define("myCompute") .withExistingAccount("rgcognitiveservices", "myAccount") - .withProperties(new ClusterComputeProperties() + .withProperties(new ClusterComputeProperties().withLocation("eastus") .withPools(Arrays.asList(new Pool().withName("default") .withVmPriority(VmPriority.REGULAR) .withInstanceType("Standard_DS3_v2") - .withNodeCount(2))) - .withSubnetArmId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/default")) - .withRegion("eastus") + .withNodeCount(2)))) .withIdentity(new Identity().withType(ResourceIdentityType.NONE)) .create(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java index 900e213a0ec5..24a920a2f2fe 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ComputesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteCompute.json + * x-ms-original-file: 2026-07-15-preview/DeleteCompute.json */ /** * Sample code: DeleteCompute. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.java index d52c8968ddce..c33fb0ad02b0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ComputesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/GetContainerInstanceCompute.json */ /** * Sample code: GetContainerInstanceCompute. @@ -24,7 +24,7 @@ public final class ComputesGetSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetCompute.json + * x-ms-original-file: 2026-07-15-preview/GetCompute.json */ /** * Sample code: GetCompute. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.java index 6cf3db3467de..bcbf20748361 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.java @@ -9,7 +9,7 @@ */ public final class ComputesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListComputes.json + * x-ms-original-file: 2026-07-15-preview/ListComputes.json */ /** * Sample code: ListComputes. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.java index 3a1be2a008a9..ed9e6970379b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.java @@ -9,7 +9,7 @@ */ public final class ComputesRestartSamples { /* - * x-ms-original-file: 2026-05-15-preview/RestartContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/RestartContainerInstanceCompute.json */ /** * Sample code: RestartContainerInstanceCompute. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.java index 119246b41bae..313cdb6d1f45 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.java @@ -9,7 +9,7 @@ */ public final class ComputesStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/StartContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/StartContainerInstanceCompute.json */ /** * Sample code: StartContainerInstanceCompute. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.java index f5ef317c3246..2aca9192c40b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.java @@ -9,7 +9,7 @@ */ public final class ComputesStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/StopContainerInstanceCompute.json + * x-ms-original-file: 2026-07-15-preview/StopContainerInstanceCompute.json */ /** * Sample code: StopContainerInstanceCompute. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesUpdateSamples.java deleted file mode 100644 index 0c73cef94d1d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesUpdateSamples.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties; -import com.azure.resourcemanager.cognitiveservices.models.Compute; -import com.azure.resourcemanager.cognitiveservices.models.Pool; -import com.azure.resourcemanager.cognitiveservices.models.VmPriority; -import java.util.Arrays; - -/** - * Samples for Computes Update. - */ -public final class ComputesUpdateSamples { - /* - * x-ms-original-file: 2026-05-15-preview/UpdateCompute.json - */ - /** - * Sample code: UpdateCompute. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void updateCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - Compute resource = manager.computes() - .getWithResponse("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ClusterComputeProperties().withPools(Arrays.asList(new Pool().withName("default") - .withVmPriority(VmPriority.REGULAR) - .withInstanceType("Standard_DS3_v2") - .withNodeCount(4)))) - .apply(); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java index b0075d79184a..2613226553c1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class DefenderForAISettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/PutDefenderForAISetting.json */ /** * Sample code: PutDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java index 34bde5e1687a..a54d38923216 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DefenderForAISettingsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/GetDefenderForAISetting.json */ /** * Sample code: GetDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java index ce81fbc73c68..c8eccc4f7448 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java @@ -9,7 +9,7 @@ */ public final class DefenderForAISettingsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/ListDefenderForAISetting.json */ /** * Sample code: ListDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java index 6be3ed539a60..2eea08b864f9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class DefenderForAISettingsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDefenderForAISetting.json + * x-ms-original-file: 2026-07-15-preview/UpdateDefenderForAISetting.json */ /** * Sample code: UpdateDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java index 2ef3062452b9..221cf829a493 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedAccountsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeletedAccount.json + * x-ms-original-file: 2026-07-15-preview/GetDeletedAccount.json */ /** * Sample code: Get Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java index 2f51c8843bcb..9b35695aa670 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedAccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeletedAccountsBySubscription.json + * x-ms-original-file: 2026-07-15-preview/ListDeletedAccountsBySubscription.json */ /** * Sample code: List Deleted Accounts by Subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java index a763818cbc4d..2fcf14c9aed9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedAccountsPurgeSamples { /* - * x-ms-original-file: 2026-05-15-preview/PurgeDeletedAccount.json + * x-ms-original-file: 2026-07-15-preview/PurgeDeletedAccount.json */ /** * Sample code: Delete Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java index 84ec2ee0000b..3d4d285a6a86 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDeployment.json + * x-ms-original-file: 2026-07-15-preview/PutDeployment.json */ /** * Sample code: PutDeployment. @@ -36,7 +36,7 @@ public static void putDeployment(com.azure.resourcemanager.cognitiveservices.Cog } /* - * x-ms-original-file: 2026-05-15-preview/PutDeploymentWithSpeculativeDecoding.json + * x-ms-original-file: 2026-07-15-preview/PutDeploymentWithSpeculativeDecoding.json */ /** * Sample code: PutDeploymentWithSpeculativeDecoding. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java index 327e79bd5dca..b02d666c743b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteDeployment.json + * x-ms-original-file: 2026-07-15-preview/DeleteDeployment.json */ /** * Sample code: DeleteDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java index f70e1d93c3dd..7bf71cb22867 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeployment.json + * x-ms-original-file: 2026-07-15-preview/GetDeployment.json */ /** * Sample code: GetDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java index 89eee765f7ca..3faf2f75ede1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeployments.json + * x-ms-original-file: 2026-07-15-preview/ListDeployments.json */ /** * Sample code: ListDeployments. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java index 4d18fc093149..1889d8f60864 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeploymentSkus.json + * x-ms-original-file: 2026-07-15-preview/ListDeploymentSkus.json */ /** * Sample code: ListDeploymentSkus. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java index 66ec3d91b2e0..44b950a95fa7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsPauseSamples { /* - * x-ms-original-file: 2026-05-15-preview/PauseDeployment.json + * x-ms-original-file: 2026-07-15-preview/PauseDeployment.json */ /** * Sample code: PauseDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java index fec046cc4fcb..12e960947794 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsResumeSamples { /* - * x-ms-original-file: 2026-05-15-preview/ResumeDeployment.json + * x-ms-original-file: 2026-07-15-preview/ResumeDeployment.json */ /** * Sample code: ResumeDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java index 5cc991bb07d1..62845e0cf85d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class DeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDeployment.json + * x-ms-original-file: 2026-07-15-preview/UpdateDeployment.json */ /** * Sample code: UpdateDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java index 1aba783397d5..d480d2189085 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class EncryptionScopesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutEncryptionScope.json + * x-ms-original-file: 2026-07-15-preview/PutEncryptionScope.json */ /** * Sample code: PutEncryptionScope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java index a280d483512b..474bf19a06ad 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteEncryptionScope.json + * x-ms-original-file: 2026-07-15-preview/DeleteEncryptionScope.json */ /** * Sample code: DeleteEncryptionScope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java index 51720b53352e..15122c738c60 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetEncryptionScope.json + * x-ms-original-file: 2026-07-15-preview/GetEncryptionScope.json */ /** * Sample code: GetEncryptionScope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java index a4572e6ff23f..e253cdb5d64a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListEncryptionScopes.json + * x-ms-original-file: 2026-07-15-preview/ListEncryptionScopes.json */ /** * Sample code: ListEncryptionScopes. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java index e71539cc8ee0..92fe4d0d9d3c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java @@ -9,7 +9,7 @@ */ public final class LocationBasedModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json */ /** * Sample code: ListLocationBasedModelCapacities Global Scope. @@ -22,7 +22,7 @@ public static void listLocationBasedModelCapacitiesGlobalScope( } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesClassicScope.json */ /** * Sample code: ListLocationBasedModelCapacities Classic Scope. @@ -35,7 +35,7 @@ public static void listLocationBasedModelCapacitiesClassicScope( } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json */ /** * Sample code: ListLocationBasedModelCapacities DataZone Scope. @@ -48,7 +48,7 @@ public static void listLocationBasedModelCapacitiesDataZoneScope( } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacities.json + * x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacities.json */ /** * Sample code: ListLocationBasedModelCapacities. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.java index ab0da1850021..226b09ed281f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedComputeCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeCapacities.json + * x-ms-original-file: 2026-07-15-preview/ListManagedComputeCapacities.json */ /** * Sample code: List Managed Compute Capacities. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.java index f2a5b297d96a..407addcf4f0e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ManagedComputeDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateManagedComputeDeployment.json */ /** * Sample code: CreateOrUpdateManagedComputeDeployment. @@ -36,7 +36,7 @@ public static void createOrUpdateManagedComputeDeployment( } /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateVmManagedComputeDeployment.json */ /** * Sample code: CreateOrUpdateVmManagedComputeDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.java index 4fda929c504a..bf9707989bf0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedComputeDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/DeleteManagedComputeDeployment.json */ /** * Sample code: DeleteManagedComputeDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.java index 3a29b93864dc..779d250794c7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedComputeDeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/GetVmManagedComputeDeployment.json */ /** * Sample code: GetVmManagedComputeDeployment. @@ -23,7 +23,7 @@ public final class ManagedComputeDeploymentsGetSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/GetManagedComputeDeployment.json */ /** * Sample code: GetManagedComputeDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java index 94e893fcfcff..065718505450 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedComputeDeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListVmManagedComputeDeployments.json + * x-ms-original-file: 2026-07-15-preview/ListVmManagedComputeDeployments.json */ /** * Sample code: ListVmManagedComputeDeployments. @@ -22,7 +22,7 @@ public final class ManagedComputeDeploymentsListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeDeployments.json + * x-ms-original-file: 2026-07-15-preview/ListManagedComputeDeployments.json */ /** * Sample code: ListManagedComputeDeployments. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java index 98cb7c2fb52e..242ed9c26efe 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class ManagedComputeDeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/UpdateVmManagedComputeDeployment.json */ /** * Sample code: UpdateVmManagedComputeDeployment. @@ -28,7 +28,7 @@ public final class ManagedComputeDeploymentsUpdateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/UpdateManagedComputeDeployment.json + * x-ms-original-file: 2026-07-15-preview/UpdateManagedComputeDeployment.json */ /** * Sample code: UpdateManagedComputeDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.java index 0ac8a1c2bb88..e3008cfbd683 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedComputeUsagesOperationGroupListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeUsages.json + * x-ms-original-file: 2026-07-15-preview/ListManagedComputeUsages.json */ /** * Sample code: List Managed Compute Usages. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkSamples.java index adea972c557e..685fc28c7609 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/provisionManagedNetwork.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/provisionManagedNetwork.json */ /** * Sample code: Provision ManagedNetwork. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java index b41ed3982216..85e6a9d549f4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNetworkSettingsOperationDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/deleteManagedNetworkV2.json */ /** * Sample code: Delete ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java index 9e3ab67ef844..6b1e29591b24 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNetworkSettingsOperationGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/getManagedNetworkV2.json */ /** * Sample code: Get ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java index 7689969894d2..e1b91f328c00 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNetworkSettingsOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/listManagedNetworkV2.json */ /** * Sample code: List ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java index 5a9af27fe7af..ccf27d51808b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java @@ -19,7 +19,7 @@ */ public final class ManagedNetworkSettingsOperationPatchSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/patchManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/patchManagedNetworkV2.json */ /** * Sample code: Patch ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java index 9db5dac9be85..2be6245340c1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java @@ -18,7 +18,7 @@ */ public final class ManagedNetworkSettingsOperationPutSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json */ /** * Sample code: Put ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java index e36a2b7883f8..381204bce43d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java @@ -9,7 +9,7 @@ */ public final class ModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacities.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacities.json */ /** * Sample code: ListModelCapacities. @@ -22,7 +22,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesDataZoneScope.json */ /** * Sample code: ListModelCapacities DataZone Scope. @@ -35,7 +35,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesGlobalScope.json */ /** * Sample code: ListModelCapacities Global Scope. @@ -48,7 +48,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesClassicScope.json */ /** * Sample code: ListModelCapacities Classic Scope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java index 9b4c4c12104f..05aaf205547a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java @@ -9,7 +9,7 @@ */ public final class ModelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationModels.json + * x-ms-original-file: 2026-07-15-preview/ListLocationModels.json */ /** * Sample code: ListLocationModels. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java index 561f2f55cdee..1fb54eb7ba0e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-15-preview/GetNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: GetNetworkSecurityPerimeterConfigurations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java index d22d1477926d..78e826b3308e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-15-preview/ListNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ListNetworkSecurityPerimeterConfigurations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java index ee1a1df24a59..e8fee56b2352 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: 2026-05-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java index 4c241603fd5a..90883da2f7f0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetOperations.json + * x-ms-original-file: 2026-07-15-preview/GetOperations.json */ /** * Sample code: Get Operations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java index 0cdbc3655b26..53cfdbc7fdc7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class OutboundRuleCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/createOrUpdateRuleV2.json */ /** * Sample code: CreateOrUpdate OutboundRule. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java index 7b9aad9899f5..41f259a93073 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class OutboundRuleDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/deleteRuleV2.json */ /** * Sample code: Delete OutboundRule. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java index d06ec96179d1..533b737cf31c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java @@ -9,7 +9,7 @@ */ public final class OutboundRuleGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/getRuleV2.json */ /** * Sample code: Get OutboundRule. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java index 9f7610ceaf40..83283b86e143 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java @@ -9,7 +9,7 @@ */ public final class OutboundRuleListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listRuleV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/listRuleV2.json */ /** * Sample code: List OutboundRules. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java index 56f7a8d94ecf..89b6737b55a7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java @@ -18,7 +18,7 @@ */ public final class OutboundRulesOperationPostSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/postOutboundRulesV2.json + * x-ms-original-file: 2026-07-15-preview/ManagedNetwork/postOutboundRulesV2.json */ /** * Sample code: Post OutboundRules. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 648317812cfe..69b62707fe4f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-15-preview/PutPrivateEndpointConnection.json */ /** * Sample code: PutPrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java index c4891524ac73..d2e53036b4c8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-07-15-preview/DeletePrivateEndpointConnection.json */ /** * Sample code: DeletePrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java index 981d76d9a1fd..c6848d0f04d8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-15-preview/GetPrivateEndpointConnection.json */ /** * Sample code: GetPrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java index 20c652388774..980414346b1a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateEndpointConnections.json + * x-ms-original-file: 2026-07-15-preview/ListPrivateEndpointConnections.json */ /** * Sample code: GetPrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java index e250dfeb8403..ff6a6110aa10 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateLinkResources.json + * x-ms-original-file: 2026-07-15-preview/ListPrivateLinkResources.json */ /** * Sample code: ListPrivateLinkResources. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java index 712dfece8a49..bfdfbc7a88a1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class ProjectCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Project CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java index 45b435c82213..071d389248b0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/delete.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/delete.json */ /** * Sample code: Delete Project CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java index 1ef7be9c70ad..89d955f3c9e7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/get.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/get.json */ /** * Sample code: Get Project CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java index 379a8d0eb687..838613baf633 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/list.json + * x-ms-original-file: 2026-07-15-preview/ProjectCapabilityHost/list.json */ /** * Sample code: List Project CapabilityHosts. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java index da72125cc0bd..d28421dcbab4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.cognitiveservices.generated; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -13,7 +14,7 @@ */ public final class ProjectConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/create.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/create.json */ /** * Sample code: CreateProjectConnection. @@ -23,11 +24,11 @@ public final class ProjectConnectionsCreateSamples { public static void createProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.projectConnections() - .define("connection-1") - .withExistingProject("resourceGroup-1", "account-1", "project-1") - .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")) - .create(); + .createWithResponse("resourceGroup-1", "account-1", "project-1", "connection-1", + new ConnectionPropertiesV2BasicResourceInner().withProperties( + new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java index 859d51d68ba3..fab801fd0ac3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/delete.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/delete.json */ /** * Sample code: DeleteProjectConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java index 99479ee3c96f..3a21da874f30 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/get.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/get.json */ /** * Sample code: GetProjectConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java index 870a98ee592e..a72f02732f45 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/list.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/list.json */ /** * Sample code: ListProjectConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java index e77449052710..83118dd6ba08 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java @@ -7,7 +7,7 @@ import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -17,7 +17,7 @@ */ public final class ProjectConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/update.json + * x-ms-original-file: 2026-07-15-preview/ProjectConnection/update.json */ /** * Sample code: UpdateProjectConnection. @@ -26,17 +26,16 @@ public final class ProjectConnectionsUpdateSamples { */ public static void updateProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - ConnectionPropertiesV2BasicResource resource = manager.projectConnections() - .getWithResponse("test-rg", "account-1", "project-1", "connection-1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))) - .apply(); + manager.projectConnections() + .updateWithResponse("test-rg", "account-1", "project-1", "connection-1", + new ConnectionUpdateContent().withProperties( + new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateSamples.java index 3c8140ae8e3d..b5b01437ae69 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateSamples.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.cognitiveservices.generated; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; @@ -13,7 +14,7 @@ */ public final class ProjectsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateProjectMin.json + * x-ms-original-file: 2026-07-15-preview/CreateProjectMin.json */ /** * Sample code: Create Project Min. @@ -31,7 +32,7 @@ public static void createProjectMin(com.azure.resourcemanager.cognitiveservices. } /* - * x-ms-original-file: 2026-05-15-preview/CreateProject.json + * x-ms-original-file: 2026-07-15-preview/CreateProject.json */ /** * Sample code: Create Project. @@ -43,8 +44,12 @@ public static void createProject(com.azure.resourcemanager.cognitiveservices.Cog .define("testProject1") .withExistingAccount("myResourceGroup", "testCreate1") .withRegion("West US") - .withProperties( - new ProjectProperties().withDisplayName("p1").withDescription("Description of this project")) + .withProperties(new ProjectProperties().withDisplayName("p1") + .withDescription("Description of this project") + .withCapabilitySettings(new CapabilitySettings().withDocumentStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myProjectCosmosAccount") + .withVectorStore( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Search/searchServices/myProjectSearchService"))) .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .create(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteSamples.java index aac9ce10b85d..56c3b147fd77 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteProject.json + * x-ms-original-file: 2026-07-15-preview/DeleteProject.json */ /** * Sample code: Delete Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java index dcf6761f5f12..2eabbd3a52f5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetProject.json + * x-ms-original-file: 2026-07-15-preview/GetProject.json */ /** * Sample code: Get Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java index 8ee37e1f0e43..e470e30f56d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListProjects.json + * x-ms-original-file: 2026-07-15-preview/ListProjects.json */ /** * Sample code: List Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java index 70f0a267950f..585e7866b345 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateProjects.json + * x-ms-original-file: 2026-07-15-preview/UpdateProjects.json */ /** * Sample code: Update Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java index aef91d3dc38d..41223c5a4a61 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class QuotaTiersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateQuotaTier.json + * x-ms-original-file: 2026-07-15-preview/CreateOrUpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java index 446dd11746ec..07851d5aed6f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java @@ -9,7 +9,7 @@ */ public final class QuotaTiersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetQuotaTier.json + * x-ms-original-file: 2026-07-15-preview/GetQuotaTier.json */ /** * Sample code: Get the Quota Tier information for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java index 10492b2b47e8..eac1d7c0dfa8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java @@ -9,7 +9,7 @@ */ public final class QuotaTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListQuotaTiers.json + * x-ms-original-file: 2026-07-15-preview/ListQuotaTiers.json */ /** * Sample code: List the Quota Tier for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java index f0c58cd816dd..7056e687005b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class QuotaTiersUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateQuotaTier.json + * x-ms-original-file: 2026-07-15-preview/UpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java index d00db0349b7b..0a8f3c75a014 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java @@ -13,7 +13,7 @@ */ public final class RaiBlocklistItemsBatchAddSamples { /* - * x-ms-original-file: 2026-05-15-preview/AddRaiBlocklistItems.json + * x-ms-original-file: 2026-07-15-preview/AddRaiBlocklistItems.json */ /** * Sample code: AddRaiBlocklistItems. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java index bd16721490a7..629948d94328 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class RaiBlocklistItemsBatchDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItems.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklistItems.json */ /** * Sample code: DeleteRaiBlocklistItems. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java index 51c488fe1bf4..65a8f0bac6ef 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class RaiBlocklistItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklistItem.json + * x-ms-original-file: 2026-07-15-preview/PutRaiBlocklistItem.json */ /** * Sample code: PutRaiBlocklistItem. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java index 1d626146124d..cfecf60ae5d0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistItemsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItem.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklistItem.json */ /** * Sample code: DeleteRaiBlocklistItem. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java index bd89db1e5028..234b20805887 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistItemsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklistItem.json + * x-ms-original-file: 2026-07-15-preview/GetRaiBlocklistItem.json */ /** * Sample code: GetRaiBlocklistItem. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java index a234e1e2b5c6..c6bce5e4c3a6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistItemsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklistItems.json + * x-ms-original-file: 2026-07-15-preview/ListBlocklistItems.json */ /** * Sample code: ListBlocklistItems. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java index 2f1963039d7b..7e6459bd126f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class RaiBlocklistsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklist.json + * x-ms-original-file: 2026-07-15-preview/PutRaiBlocklist.json */ /** * Sample code: PutRaiBlocklist. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java index 75aa966dc026..fa4285a6c059 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklist.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklist.json */ /** * Sample code: DeleteRaiBlocklist. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java index 24ebd6f18bd0..090d51fe0321 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklist.json + * x-ms-original-file: 2026-07-15-preview/GetRaiBlocklist.json */ /** * Sample code: GetRaiBlocklist. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java index 94cb32b5048c..68b5192dd5fb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklists.json + * x-ms-original-file: 2026-07-15-preview/ListBlocklists.json */ /** * Sample code: ListBlocklists. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java index 18c4184e1981..c8da20242841 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiContentFiltersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiContentFilter.json + * x-ms-original-file: 2026-07-15-preview/GetRaiContentFilter.json */ /** * Sample code: GetRaiContentFilters. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java index d6654b37a2cd..0c5d2a1dade2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiContentFiltersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiContentFilters.json + * x-ms-original-file: 2026-07-15-preview/ListRaiContentFilters.json */ /** * Sample code: ListRaiContentFilters. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java index bc4420390c8b..de3e757a670d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/PutRaiExternalSafetyProvider.json */ /** * Sample code: PutRaiExternalSafetyProvider. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java index b46796a417ae..52854a0719c2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiExternalSafetyProviderDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiExternalSafetyProvider.json */ /** * Sample code: DeleteRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java index 7d4e691d521d..733e562199f5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiExternalSafetyProviderGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/GetRaiExternalSafetyProvider.json */ /** * Sample code: GetRaiExternalSafetyProvider. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java index 539b08b7bbbf..09f9800495d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiExternalSafetyProvidersOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiExternalSafetyProviders.json + * x-ms-original-file: 2026-07-15-preview/ListRaiExternalSafetyProviders.json */ /** * Sample code: ListRaiExternalSafetyProviders. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java index a59fc375612b..89d8af3fd2f4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java @@ -30,7 +30,7 @@ */ public final class RaiPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/PutRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -104,7 +104,7 @@ public static void putRaiPolicy(com.azure.resourcemanager.cognitiveservices.Cogn } /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicyWithEgress.json + * x-ms-original-file: 2026-07-15-preview/PutRaiPolicyWithEgress.json */ /** * Sample code: PutRaiPolicyWithEgress. @@ -117,6 +117,7 @@ public static void putRaiPolicy(com.azure.resourcemanager.cognitiveservices.Cogn .define("egress-baseline") .withExistingAccount("resourceGroupName", "accountName") .withProperties(new RaiPolicyProperties().withBasePolicyName("Microsoft.Default") + .withContentFilters(Arrays.asList()) .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) .withDefaultAction(RaiEgressDefaultAction.DENY) .withDescription("Corporate baseline egress policy for sandboxed agents") diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java index 865743577f7e..aa2fbbf1cef7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java index c5ccc5d2cc9e..1a0ee3ab2dbf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiPoliciesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/GetRaiPolicy.json */ /** * Sample code: GetRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java index 5c26ad1240cb..3e7fe14b1363 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiPoliciesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiPolicies.json + * x-ms-original-file: 2026-07-15-preview/ListRaiPolicies.json */ /** * Sample code: ListRaiPolicies. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java index 1085d2232ab6..62dda7f0b22d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class RaiToolLabelsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiToolLabel.json + * x-ms-original-file: 2026-07-15-preview/PutRaiToolLabel.json */ /** * Sample code: PutRaiToolLabel. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java index cc4e9ef2fb77..5f5e2a08ec0e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiToolLabelsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiToolLabel.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiToolLabel.json */ /** * Sample code: DeleteRaiToolLabel. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java index f0ce017e4f16..8c4183392995 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiToolLabelsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiToolLabel.json + * x-ms-original-file: 2026-07-15-preview/GetRaiToolLabel.json */ /** * Sample code: GetRaiToolLabel. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java index 747158538fbe..b31e3e3edddd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiToolLabelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiToolLabels.json + * x-ms-original-file: 2026-07-15-preview/ListRaiToolLabels.json */ /** * Sample code: ListRaiToolLabels. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java index 368df7aee44c..56477725935a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class RaiTopicsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiTopic.json + * x-ms-original-file: 2026-07-15-preview/PutRaiTopic.json */ /** * Sample code: PutRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java index e6bd2e47f436..affcf515ed1a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiTopicsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiTopic.json + * x-ms-original-file: 2026-07-15-preview/DeleteRaiTopic.json */ /** * Sample code: DeleteRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java index 02a3f0f6f792..5992d1959ae6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiTopicsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiTopic.json + * x-ms-original-file: 2026-07-15-preview/GetRaiTopic.json */ /** * Sample code: GetRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java index 1b9e2a0c14b6..d0eec72ee1e3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiTopicsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiTopics.json + * x-ms-original-file: 2026-07-15-preview/ListRaiTopics.json */ /** * Sample code: ListRaiTopics. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java index a335e372482d..56d321001d91 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java @@ -15,7 +15,7 @@ */ public final class ResourceProviderCalculateModelCapacitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CalculateModelCapacity.json + * x-ms-original-file: 2026-07-15-preview/CalculateModelCapacity.json */ /** * Sample code: Calculate Model Capacity. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java index 520efa6c8735..93e815b4fed7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class ResourceProviderCheckDomainAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckDomainAvailability.json + * x-ms-original-file: 2026-07-15-preview/CheckDomainAvailability.json */ /** * Sample code: Check SKU Availability. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java index c136cb191cc7..29232471dcdc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java @@ -12,7 +12,7 @@ */ public final class ResourceProviderCheckSkuAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckSkuAvailability.json + * x-ms-original-file: 2026-07-15-preview/CheckSkuAvailability.json */ /** * Sample code: Check SKU Availability. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java index cee9b81cd76f..1ebf8702a768 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceSkusListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSkus.json + * x-ms-original-file: 2026-07-15-preview/GetSkus.json */ /** * Sample code: Regenerate Keys. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java index a2807fd65e24..adbe7f7b41f3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/PutSubscriptionRaiPolicy.json */ /** * Sample code: PutRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java index b0b880f6e72c..b24e2c9d2384 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SubscriptionRaiPolicyDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/DeleteSubscriptionRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java index 8f34c5a2edae..ee362b07f887 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java @@ -9,7 +9,7 @@ */ public final class SubscriptionRaiPolicyGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-15-preview/GetSubscriptionRaiPolicy.json */ /** * Sample code: GetRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java index daa2ff61146d..8fc619137a27 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/TestRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-15-preview/TestRaiExternalSafetyProvider.json */ /** * Sample code: TestRaiExternalSafetyProvider. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java index b660f07a3424..d9e5d4c9cf0f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java @@ -9,7 +9,7 @@ */ public final class UsagesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListUsages.json + * x-ms-original-file: 2026-07-15-preview/ListUsages.json */ /** * Sample code: Get Usages. @@ -21,7 +21,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesClassicScope.json + * x-ms-original-file: 2026-07-15-preview/ListUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -34,7 +34,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-15-preview/ListUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -47,7 +47,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesGlobalScope.json + * x-ms-original-file: 2026-07-15-preview/ListUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java index 3c4486bda22a..ad2bbb767add 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class WorkbenchesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutWorkbench.json + * x-ms-original-file: 2026-07-15-preview/PutWorkbench.json */ /** * Sample code: PutWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java index 453deb29073f..5003a3185ae7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class WorkbenchesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteWorkbench.json + * x-ms-original-file: 2026-07-15-preview/DeleteWorkbench.json */ /** * Sample code: DeleteWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.java index 82df37617257..dc1a8d4a4afd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.java @@ -9,7 +9,7 @@ */ public final class WorkbenchesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetWorkbench.json + * x-ms-original-file: 2026-07-15-preview/GetWorkbench.json */ /** * Sample code: GetWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.java index b41d381eb5bb..1a72a2562bbf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkbenchesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListWorkbenches.json + * x-ms-original-file: 2026-07-15-preview/ListWorkbenches.json */ /** * Sample code: ListWorkbenches. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.java index 3be963cff4ff..1cc12ce90ac9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.java @@ -9,7 +9,7 @@ */ public final class WorkbenchesRestartSamples { /* - * x-ms-original-file: 2026-05-15-preview/RestartWorkbench.json + * x-ms-original-file: 2026-07-15-preview/RestartWorkbench.json */ /** * Sample code: RestartWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.java index e46f58229d75..4f61d9270357 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.java @@ -9,7 +9,7 @@ */ public final class WorkbenchesStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/StartWorkbench.json + * x-ms-original-file: 2026-07-15-preview/StartWorkbench.json */ /** * Sample code: StartWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.java index 87ff3e416903..dc322ab61a4b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.java @@ -9,7 +9,7 @@ */ public final class WorkbenchesStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/StopWorkbench.json + * x-ms-original-file: 2026-07-15-preview/StopWorkbench.json */ /** * Sample code: StopWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java index 0898f67b6097..f570575401f4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class WorkbenchesUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateWorkbench.json + * x-ms-original-file: 2026-07-15-preview/UpdateWorkbench.json */ /** * Sample code: UpdateWorkbench. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AadAuthTypeConnectionPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AadAuthTypeConnectionPropertiesTests.java index d22f800ec605..e914d5f55930 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AadAuthTypeConnectionPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AadAuthTypeConnectionPropertiesTests.java @@ -19,44 +19,43 @@ public final class AadAuthTypeConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AadAuthTypeConnectionProperties model = BinaryData.fromString( - "{\"authType\":\"AAD\",\"category\":\"AzureKeyVault\",\"createdByWorkspaceArmId\":\"fhjirwgdnqzbrfk\",\"error\":\"zhzmtksjci\",\"expiryTime\":\"2021-07-31T03:36:59Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"plkeuachtomflryt\":\"l\",\"mskwhqjjysl\":\"wfpfmdgycx\",\"edwqslsrh\":\"rlpshhkv\",\"wwsko\":\"pq\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"muvqejosovyr\",\"leaesi\",\"uqtljqobbpih\",\"hcecybmrqbr\"],\"target\":\"bmpxdlvykfrexc\",\"useWorkspaceManagedIdentity\":false}") + "{\"authType\":\"AAD\",\"category\":\"Couchbase\",\"createdByWorkspaceArmId\":\"pirpiwrqof\",\"error\":\"o\",\"expiryTime\":\"2021-06-19T10:30:26Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":false,\"metadata\":{\"erctatoyin\":\"cbjpibkephuu\",\"rduczkgofxyfs\":\"qpbrlc\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"pcjttbstvjeaqn\",\"mvvfko\",\"mlghktuidvrmazlp\",\"wwexymzvlazipbh\"],\"target\":\"vqs\",\"useWorkspaceManagedIdentity\":false}") .toObject(AadAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.AZURE_KEY_VAULT, model.category()); - Assertions.assertEquals("zhzmtksjci", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T03:36:59Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("l", model.metadata().get("plkeuachtomflryt")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("muvqejosovyr", model.sharedUserList().get(0)); - Assertions.assertEquals("bmpxdlvykfrexc", model.target()); + Assertions.assertEquals(ConnectionCategory.COUCHBASE, model.category()); + Assertions.assertEquals("o", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T10:30:26Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("cbjpibkephuu", model.metadata().get("erctatoyin")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); + Assertions.assertEquals("pcjttbstvjeaqn", model.sharedUserList().get(0)); + Assertions.assertEquals("vqs", model.target()); Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AadAuthTypeConnectionProperties model - = new AadAuthTypeConnectionProperties().withCategory(ConnectionCategory.AZURE_KEY_VAULT) - .withError("zhzmtksjci") - .withExpiryTime(OffsetDateTime.parse("2021-07-31T03:36:59Z")) - .withIsSharedToAll(true) - .withMetadata( - mapOf("plkeuachtomflryt", "l", "mskwhqjjysl", "wfpfmdgycx", "edwqslsrh", "rlpshhkv", "wwsko", "pq")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("muvqejosovyr", "leaesi", "uqtljqobbpih", "hcecybmrqbr")) - .withTarget("bmpxdlvykfrexc") + = new AadAuthTypeConnectionProperties().withCategory(ConnectionCategory.COUCHBASE) + .withError("o") + .withExpiryTime(OffsetDateTime.parse("2021-06-19T10:30:26Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("erctatoyin", "cbjpibkephuu", "rduczkgofxyfs", "qpbrlc")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) + .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) + .withSharedUserList(Arrays.asList("pcjttbstvjeaqn", "mvvfko", "mlghktuidvrmazlp", "wwexymzvlazipbh")) + .withTarget("vqs") .withUseWorkspaceManagedIdentity(false); model = BinaryData.fromObject(model).toObject(AadAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.AZURE_KEY_VAULT, model.category()); - Assertions.assertEquals("zhzmtksjci", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T03:36:59Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("l", model.metadata().get("plkeuachtomflryt")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("muvqejosovyr", model.sharedUserList().get(0)); - Assertions.assertEquals("bmpxdlvykfrexc", model.target()); + Assertions.assertEquals(ConnectionCategory.COUCHBASE, model.category()); + Assertions.assertEquals("o", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T10:30:26Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("cbjpibkephuu", model.metadata().get("erctatoyin")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); + Assertions.assertEquals("pcjttbstvjeaqn", model.sharedUserList().get(0)); + Assertions.assertEquals("vqs", model.target()); Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java index ae164e775f8e..42a784d21003 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class AccountCapabilityHostsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"dpu\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"gefxlieggo\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"ss\",\"nwhz\"],\"threadStorageConnections\":[\"hecknfmkcuft\"],\"vectorStoreConnections\":[\"wuzrono\",\"vhzfkdnwy\",\"odcikgxk\"],\"enablePublicHostingEnvironment\":true,\"description\":\"zdjekebawnx\",\"tags\":{\"gcjf\":\"wyfixi\",\"pjkakrxifqnf\":\"iwu\"}},\"id\":\"rxsqtz\",\"name\":\"gxbsal\",\"type\":\"wguxcmmhipbvskci\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"bk\",\"ftusdwmnrt\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"cnnrovome\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"cvwqzocs\",\"shennmsgpywdib\"],\"threadStorageConnections\":[\"nr\",\"alvwrh\"],\"vectorStoreConnections\":[\"brbknuubxcwoj\",\"upqdv\",\"py\"],\"enablePublicHostingEnvironment\":true,\"description\":\"fifujg\",\"tags\":{\"ybpchrtczwjcujyz\":\"wlxmwefc\",\"i\":\"vyrjqdjlgk\"}},\"id\":\"xeuwiiircvnfg\",\"name\":\"dviw\",\"type\":\"ohktxagfujdbqjny\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,27 +36,27 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapabilityHost response = manager.accountCapabilityHosts() - .define("wlbg") - .withExistingAccount("komwdzpzlhcuexlq", "wwvmbjec") - .withProperties(new CapabilityHostProperties().withDescription("mkiqhypwtmz") - .withTags(mapOf("mzqlnaag", "yut")) - .withAiServicesConnections(Arrays.asList("frwxohlydsn", "zpchiy", "bfhmihi", "tqozewbrsrjzgkbr")) + .define("esbomphz") + .withExistingAccount("ufl", "syzzdcrolr") + .withProperties(new CapabilityHostProperties().withDescription("cydjh") + .withTags(mapOf("bxblrdol", "serwiyndurdonkg")) + .withAiServicesConnections(Arrays.asList("u", "wjivtbuszbdjrdfe", "jywdalis", "eqngcayd")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("oufq") - .withStorageConnections(Arrays.asList("xg", "wsrerukbuu")) - .withThreadStorageConnections(Arrays.asList("zwkwkjxla", "cedikqelssyb")) - .withVectorStoreConnections(Arrays.asList("vgb")) + .withCustomerSubnet("ooulpoz") + .withStorageConnections(Arrays.asList("cl", "rsi")) + .withThreadStorageConnections(Arrays.asList("bldpoiaffjkrtn", "revimxmaxcj")) + .withVectorStoreConnections(Arrays.asList("tygvdwd", "oqtbfkvuozbzc", "nqekwankl")) .withEnablePublicHostingEnvironment(false)) .create(); - Assertions.assertEquals("zdjekebawnx", response.properties().description()); - Assertions.assertEquals("wyfixi", response.properties().tags().get("gcjf")); - Assertions.assertEquals("dpu", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("fifujg", response.properties().description()); + Assertions.assertEquals("wlxmwefc", response.properties().tags().get("ybpchrtczwjcujyz")); + Assertions.assertEquals("bk", response.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.properties().capabilityHostKind()); - Assertions.assertEquals("gefxlieggo", response.properties().customerSubnet()); - Assertions.assertEquals("ss", response.properties().storageConnections().get(0)); - Assertions.assertEquals("hecknfmkcuft", response.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("wuzrono", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("cnnrovome", response.properties().customerSubnet()); + Assertions.assertEquals("cvwqzocs", response.properties().storageConnections().get(0)); + Assertions.assertEquals("nr", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("brbknuubxcwoj", response.properties().vectorStoreConnections().get(0)); Assertions.assertTrue(response.properties().enablePublicHostingEnvironment()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java index b92ac13b2943..2600d67dd39c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class AccountCapabilityHostsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"epkwzzzkueruwcj\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"vwkaujttwyk\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"ofxxdplrelfk\",\"gahcbt\",\"xlbpxrhrfjenrazw\"],\"threadStorageConnections\":[\"ktlhqash\",\"ostjixyz\"],\"vectorStoreConnections\":[\"i\"],\"enablePublicHostingEnvironment\":true,\"description\":\"wjtacfvv\",\"tags\":{\"mcsaugbr\":\"cbpzf\",\"te\":\"fiwltkfysu\"}},\"id\":\"klx\",\"name\":\"hcvasyy\",\"type\":\"gqokjbmsrk\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"ylmnqunkygb\",\"tmsgkwedwl\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"gbg\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"rpjimvrrqfi\",\"pkwmamrlfizjud\"],\"threadStorageConnections\":[\"ih\"],\"vectorStoreConnections\":[\"gyhylqyafewcmod\"],\"enablePublicHostingEnvironment\":false,\"description\":\"ytxnxrqx\",\"tags\":{\"vpjxsdhweignybff\":\"eargvfvkhbjh\",\"vconysebjijfhp\":\"cwwynepktvmw\",\"alokb\":\"nikouox\"}},\"id\":\"kyporsynieunby\",\"name\":\"lgfaphwuu\",\"type\":\"wtsaynrtvj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapabilityHost response = manager.accountCapabilityHosts() - .getWithResponse("laqcwggchxvlqg", "brveci", "aovphirlzbipi", com.azure.core.util.Context.NONE) + .getWithResponse("dwvog", "ffjdhgslormhbt", "fcvxkylhc", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wjtacfvv", response.properties().description()); - Assertions.assertEquals("cbpzf", response.properties().tags().get("mcsaugbr")); - Assertions.assertEquals("epkwzzzkueruwcj", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("ytxnxrqx", response.properties().description()); + Assertions.assertEquals("eargvfvkhbjh", response.properties().tags().get("vpjxsdhweignybff")); + Assertions.assertEquals("ylmnqunkygb", response.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.properties().capabilityHostKind()); - Assertions.assertEquals("vwkaujttwyk", response.properties().customerSubnet()); - Assertions.assertEquals("ofxxdplrelfk", response.properties().storageConnections().get(0)); - Assertions.assertEquals("ktlhqash", response.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("i", response.properties().vectorStoreConnections().get(0)); - Assertions.assertTrue(response.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("gbg", response.properties().customerSubnet()); + Assertions.assertEquals("rpjimvrrqfi", response.properties().storageConnections().get(0)); + Assertions.assertEquals("ih", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("gyhylqyafewcmod", response.properties().vectorStoreConnections().get(0)); + Assertions.assertFalse(response.properties().enablePublicHostingEnvironment()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java index c53dc7ffae60..ea0528719fe1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java @@ -23,7 +23,7 @@ public final class AccountCapabilityHostsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"ozsxagyso\",\"liiksybv\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"hyl\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"cydyllmxv\",\"stizsyqag\",\"llcbrva\"],\"threadStorageConnections\":[\"lkyhtrrqwfyybpt\",\"jjrnogykugdlavsa\",\"gthkslgeu\",\"fkbzbfbxjblajy\"],\"vectorStoreConnections\":[\"bycsbtoi\",\"azdjmofsvpzxg\"],\"enablePublicHostingEnvironment\":true,\"description\":\"uymlfjymgw\",\"tags\":{\"e\":\"zcfyzq\",\"furdpagknxmao\":\"re\",\"kycjcg\":\"rgihlnzffewv\",\"abhgclejqzhpvh\":\"ipqxxsdyafwtydsm\"}},\"id\":\"badjze\",\"name\":\"llgfy\",\"type\":\"gtqscjpvqerq\"}]}"; + = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"bmdivixzhpjgq\",\"miaoaweacfx\",\"ubuhruetcnxriqz\",\"dckhsq\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"surnowobwx\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"kohlsfjfouqj\",\"zheahuv\"],\"threadStorageConnections\":[\"qkvadmjhymud\",\"maajzd\",\"bhsermclyqwwu\",\"yqkaaptb\"],\"vectorStoreConnections\":[\"kb\",\"bptw\",\"bloccu\"],\"enablePublicHostingEnvironment\":true,\"description\":\"zbns\",\"tags\":{\"beuybutcdzjf\":\"qnps\",\"tqmmijgpqfkwna\":\"tvpeyxdyuxurxr\",\"g\":\"ikczscymqfv\",\"zvp\":\"pqnyumzapdok\"}},\"id\":\"knfzqnzbflbqmhb\",\"name\":\"yxxvwedhagqbbse\",\"type\":\"ea\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.accountCapabilityHosts().list("xyxxhwr", "qomaqsyilpzzbrw", com.azure.core.util.Context.NONE); + = manager.accountCapabilityHosts().list("qreeo", "vqjmrnblihs", com.azure.core.util.Context.NONE); - Assertions.assertEquals("uymlfjymgw", response.iterator().next().properties().description()); - Assertions.assertEquals("zcfyzq", response.iterator().next().properties().tags().get("e")); - Assertions.assertEquals("ozsxagyso", response.iterator().next().properties().aiServicesConnections().get(0)); + Assertions.assertEquals("zbns", response.iterator().next().properties().description()); + Assertions.assertEquals("qnps", response.iterator().next().properties().tags().get("beuybutcdzjf")); + Assertions.assertEquals("bmdivixzhpjgq", + response.iterator().next().properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.iterator().next().properties().capabilityHostKind()); - Assertions.assertEquals("hyl", response.iterator().next().properties().customerSubnet()); - Assertions.assertEquals("cydyllmxv", response.iterator().next().properties().storageConnections().get(0)); - Assertions.assertEquals("lkyhtrrqwfyybpt", + Assertions.assertEquals("surnowobwx", response.iterator().next().properties().customerSubnet()); + Assertions.assertEquals("kohlsfjfouqj", response.iterator().next().properties().storageConnections().get(0)); + Assertions.assertEquals("qkvadmjhymud", response.iterator().next().properties().threadStorageConnections().get(0)); - Assertions.assertEquals("bycsbtoi", response.iterator().next().properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("kb", response.iterator().next().properties().vectorStoreConnections().get(0)); Assertions.assertTrue(response.iterator().next().properties().enablePublicHostingEnvironment()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateWithResponseMockTests.java index c50372bd34ab..89a66a99276c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateWithResponseMockTests.java @@ -10,7 +10,6 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; @@ -29,7 +28,7 @@ public final class AccountConnectionsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Netezza\",\"createdByWorkspaceArmId\":\"uvbgtzqzqweuy\",\"error\":\"bnairvhpqsv\",\"expiryTime\":\"2021-12-05T05:14:01Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"csjvjnkoiznzsqbi\":\"cnqnvncpr\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"ovjtmvwrmj\",\"y\",\"uod\"],\"target\":\"czbassqfyylwpp\",\"useWorkspaceManagedIdentity\":true},\"id\":\"bzbloasyb\",\"name\":\"h\",\"type\":\"vovdpmht\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Office365\",\"createdByWorkspaceArmId\":\"nfgvlx\",\"error\":\"mnctigp\",\"expiryTime\":\"2021-07-28T16:55:32Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"prtqjytd\":\"tgk\",\"jsbg\":\"fefuhbdwb\",\"bpbltcwsexh\":\"lamoaxcaytnpk\",\"fhdxyfhxohzbzhha\":\"eocnqoubvepvlrys\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"kdslcofuvtfu\"],\"target\":\"ouisakl\",\"useWorkspaceManagedIdentity\":true},\"id\":\"dxqfussubzssp\",\"name\":\"jvailfauyvxpqw\",\"type\":\"kqdgwbztrth\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,30 +38,30 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.accountConnections() - .createWithResponse("hdyxz", "vwywjvrlgqpwwlzp", "darcb", - new ConnectionPropertiesV2BasicResourceInner() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.FTP_SERVER) - .withError("mstbdoprwk") - .withExpiryTime(OffsetDateTime.parse("2020-12-24T16:42:16Z")) - .withIsSharedToAll(false) - .withMetadata(mapOf("udrcycm", "dzn", "l", "huzymhlhihqk", "aiildcpud", "kmnbzko")) - .withPeRequirement(ManagedPERequirement.REQUIRED) - .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("jofpg", "edrobujnjgybuxm", "xigi", "ullnjgcpskgrhny")) - .withTarget("lgsazuqzn") - .withUseWorkspaceManagedIdentity(true)), - com.azure.core.util.Context.NONE) - .getValue(); + .define("ajrfgimom") + .withExistingAccount("ahwcorewcnn", "axqjf") + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.AZURE_MY_SQL_DB) + .withError("nvussuqk") + .withExpiryTime(OffsetDateTime.parse("2021-09-13T06:00:23Z")) + .withIsSharedToAll(true) + .withMetadata(mapOf("rtlikff", "qbyeywpmoh", "qrf", "dzt", "zdteqjmyqxuhg", "gynzfw", "wrrlccklyf", + "axnyprijyoxxjxbs")) + .withPeRequirement(ManagedPERequirement.REQUIRED) + .withPeStatus(ManagedPEStatus.ACTIVE) + .withSharedUserList(Arrays.asList("emqom")) + .withTarget("alknuyapvibzic") + .withUseWorkspaceManagedIdentity(false)) + .create(); - Assertions.assertEquals(ConnectionCategory.NETEZZA, response.properties().category()); - Assertions.assertEquals("bnairvhpqsv", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-05T05:14:01Z"), response.properties().expiryTime()); - Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("cnqnvncpr", response.properties().metadata().get("csjvjnkoiznzsqbi")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ConnectionCategory.OFFICE365, response.properties().category()); + Assertions.assertEquals("mnctigp", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-28T16:55:32Z"), response.properties().expiryTime()); + Assertions.assertFalse(response.properties().isSharedToAll()); + Assertions.assertEquals("tgk", response.properties().metadata().get("prtqjytd")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); - Assertions.assertEquals("ovjtmvwrmj", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("czbassqfyylwpp", response.properties().target()); + Assertions.assertEquals("kdslcofuvtfu", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("ouisakl", response.properties().target()); Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteWithResponseMockTests.java index b7d515b2c7a8..31293d0a46ed 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteWithResponseMockTests.java @@ -27,8 +27,7 @@ public void testDeleteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.accountConnections() - .deleteWithResponse("hrvybn", "bnvmshfuzzlapy", "xlvzcgulaebxiauq", com.azure.core.util.Context.NONE); + manager.accountConnections().deleteWithResponse("ypb", "imh", "bozvo", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java index 117484a9feb2..faedd0ba0db9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class AccountConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MongoDbV2\",\"createdByWorkspaceArmId\":\"eqvhskbmpw\",\"error\":\"lajggfzgae\",\"expiryTime\":\"2021-08-16T17:13:53Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"wi\":\"y\",\"vj\":\"rnicupdyttqmi\",\"s\":\"l\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"qmtxynoflqobf\",\"xngxebihexhnkin\",\"iqcdolrpg\"],\"target\":\"sjlbsmndaf\",\"useWorkspaceManagedIdentity\":true},\"id\":\"yjeykcnhpplzhc\",\"name\":\"zxjziuu\",\"type\":\"rlnewnuwkkfzzetl\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SalesforceServiceCloud\",\"createdByWorkspaceArmId\":\"ouan\",\"error\":\"u\",\"expiryTime\":\"2021-08-29T07:55:21Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"ti\":\"wb\",\"hfljeyodpiovn\":\"qbzbwbgwzh\",\"yakzuafapwxsvd\":\"hr\",\"wtgntimznupb\":\"atjiobnirgoextqd\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"odsqv\",\"edaakghcrzmm\",\"jyvdhdgdiwmlg\",\"tmfetqjisjmolzca\"],\"target\":\"kakhgkrv\",\"useWorkspaceManagedIdentity\":false},\"id\":\"vytvjejq\",\"name\":\"wfusqp\",\"type\":\"zxkczb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.accountConnections() - .getWithResponse("zfaxskdvu", "lumodpegqxsorc", "azrqoxz", com.azure.core.util.Context.NONE) + .getWithResponse("gkwxjsjquvohufzd", "srpjuv", "zacrzhnsbylgmgbh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.MONGO_DB_V2, response.properties().category()); - Assertions.assertEquals("lajggfzgae", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-16T17:13:53Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.SALESFORCE_SERVICE_CLOUD, response.properties().category()); + Assertions.assertEquals("u", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T07:55:21Z"), response.properties().expiryTime()); Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("y", response.properties().metadata().get("wi")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); - Assertions.assertEquals("qmtxynoflqobf", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("sjlbsmndaf", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("wb", response.properties().metadata().get("ti")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); + Assertions.assertEquals("odsqv", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("kakhgkrv", response.properties().target()); + Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java index 87e7385ca561..ac7b5a489d78 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java @@ -25,7 +25,7 @@ public final class AccountConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"CustomKeys\",\"createdByWorkspaceArmId\":\"jwjkqonbwhiiey\",\"error\":\"vrc\",\"expiryTime\":\"2021-03-16T16:02:25Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"oarx\":\"gqefgzjvbxqcb\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"vkdlhuduklbjoafm\",\"fex\",\"lvoepknarse\"],\"target\":\"ncsqoacbuqd\",\"useWorkspaceManagedIdentity\":false},\"id\":\"leqfgkxenvszg\",\"name\":\"vya\",\"type\":\"eszsuuv\"}]}"; + = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureTableStorage\",\"createdByWorkspaceArmId\":\"nviulbylmgjzr\",\"error\":\"wpbgumwhmxp\",\"expiryTime\":\"2021-08-01T16:06:08Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"c\":\"psmgom\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"j\",\"xok\",\"xamqecjrzvlcivqx\"],\"target\":\"mklphxwww\",\"useWorkspaceManagedIdentity\":false},\"id\":\"bgnfbrzj\",\"name\":\"fsunh\",\"type\":\"evlahxczywyw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,18 +35,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.accountConnections() - .list("uptessjlwjta", "pv", "lskxgxqaygaslkv", "vwpvlcj", false, com.azure.core.util.Context.NONE); + .list("rtcl", "h", "jcyuzlybqsci", "vylkvckcafnwq", true, com.azure.core.util.Context.NONE); - Assertions.assertEquals(ConnectionCategory.CUSTOM_KEYS, response.iterator().next().properties().category()); - Assertions.assertEquals("vrc", response.iterator().next().properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-16T16:02:25Z"), + Assertions.assertEquals(ConnectionCategory.AZURE_TABLE_STORAGE, + response.iterator().next().properties().category()); + Assertions.assertEquals("wpbgumwhmxp", response.iterator().next().properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-01T16:06:08Z"), response.iterator().next().properties().expiryTime()); Assertions.assertFalse(response.iterator().next().properties().isSharedToAll()); - Assertions.assertEquals("gqefgzjvbxqcb", response.iterator().next().properties().metadata().get("oarx")); + Assertions.assertEquals("psmgom", response.iterator().next().properties().metadata().get("c")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.iterator().next().properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.iterator().next().properties().peStatus()); - Assertions.assertEquals("vkdlhuduklbjoafm", response.iterator().next().properties().sharedUserList().get(0)); - Assertions.assertEquals("ncsqoacbuqd", response.iterator().next().properties().target()); + Assertions.assertEquals("j", response.iterator().next().properties().sharedUserList().get(0)); + Assertions.assertEquals("mklphxwww", response.iterator().next().properties().target()); Assertions.assertFalse(response.iterator().next().properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java index 75032e5addd1..388622860887 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java @@ -13,13 +13,13 @@ public final class AccountSkuListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AccountSkuListResultInner model = BinaryData.fromString( - "{\"value\":[{\"resourceType\":\"qgtz\",\"sku\":{\"name\":\"pnqbqqwxrjfe\",\"tier\":\"Basic\",\"size\":\"wsubisnja\",\"family\":\"mngnzscxaqw\",\"capacity\":2024300309}},{\"resourceType\":\"cbonqvpk\",\"sku\":{\"name\":\"rxnjeaseipheofl\",\"tier\":\"Basic\",\"size\":\"y\",\"family\":\"nj\",\"capacity\":147839675}},{\"resourceType\":\"tgrhpdjpjumas\",\"sku\":{\"name\":\"zj\",\"tier\":\"Premium\",\"size\":\"gual\",\"family\":\"xxhejjzzvd\",\"capacity\":572482803}}]}") + "{\"value\":[{\"resourceType\":\"pheoflokeyy\",\"sku\":{\"name\":\"nj\",\"tier\":\"Basic\",\"size\":\"tgrhpdjpjumas\",\"family\":\"zj\",\"capacity\":1063088657}},{\"resourceType\":\"gual\",\"sku\":{\"name\":\"xxhejjzzvd\",\"tier\":\"Free\",\"size\":\"dslfhotwmcy\",\"family\":\"wlbjnpgacftade\",\"capacity\":2035779275}},{\"resourceType\":\"tyfsoppusuesn\",\"sku\":{\"name\":\"dejbavo\",\"tier\":\"Standard\",\"size\":\"mohctb\",\"family\":\"udwxdndnvowguj\",\"capacity\":408024361}},{\"resourceType\":\"dkcglhsl\",\"sku\":{\"name\":\"jdyggdtji\",\"tier\":\"Free\",\"size\":\"uofqwe\",\"family\":\"hmenevfyexfwhybc\",\"capacity\":1547255739}}]}") .toObject(AccountSkuListResultInner.class); - Assertions.assertEquals("qgtz", model.value().get(0).resourceType()); - Assertions.assertEquals("pnqbqqwxrjfe", model.value().get(0).sku().name()); + Assertions.assertEquals("pheoflokeyy", model.value().get(0).resourceType()); + Assertions.assertEquals("nj", model.value().get(0).sku().name()); Assertions.assertEquals(SkuTier.BASIC, model.value().get(0).sku().tier()); - Assertions.assertEquals("wsubisnja", model.value().get(0).sku().size()); - Assertions.assertEquals("mngnzscxaqw", model.value().get(0).sku().family()); - Assertions.assertEquals(2024300309, model.value().get(0).sku().capacity()); + Assertions.assertEquals("tgrhpdjpjumas", model.value().get(0).sku().size()); + Assertions.assertEquals("zj", model.value().get(0).sku().family()); + Assertions.assertEquals(1063088657, model.value().get(0).sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java index 81db6c9f35c1..15da2e367c98 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java @@ -13,13 +13,13 @@ public final class AccountSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AccountSku model = BinaryData.fromString( - "{\"resourceType\":\"dslfhotwmcy\",\"sku\":{\"name\":\"wlbjnpgacftade\",\"tier\":\"Basic\",\"size\":\"tyfsoppusuesn\",\"family\":\"dejbavo\",\"capacity\":669466066}}") + "{\"resourceType\":\"vdcsitynn\",\"sku\":{\"name\":\"mdectehfiqscjey\",\"tier\":\"Premium\",\"size\":\"zrkgqhcjrefovg\",\"family\":\"qsl\",\"capacity\":1641560645}}") .toObject(AccountSku.class); - Assertions.assertEquals("dslfhotwmcy", model.resourceType()); - Assertions.assertEquals("wlbjnpgacftade", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("tyfsoppusuesn", model.sku().size()); - Assertions.assertEquals("dejbavo", model.sku().family()); - Assertions.assertEquals(669466066, model.sku().capacity()); + Assertions.assertEquals("vdcsitynn", model.resourceType()); + Assertions.assertEquals("mdectehfiqscjey", model.sku().name()); + Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); + Assertions.assertEquals("zrkgqhcjrefovg", model.sku().size()); + Assertions.assertEquals("qsl", model.sku().family()); + Assertions.assertEquals(1641560645, model.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java index 63b704134169..66614b024334 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.accounts().delete("ci", "kwdvbtb", com.azure.core.util.Context.NONE); + manager.accounts().delete("uoxudnmckaprh", "nqi", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java index 32ebea3d734c..a8b165669c7c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class AccountsEvaluateDeploymentPoliciesWithResponseMockTests { @Test public void testEvaluateDeploymentPoliciesWithResponse() throws Exception { String responseStr - = "{\"results\":{\"yfgwewqkj\":{\"evaluationOutcome\":\"Error\",\"errorMessage\":\"pvckojazbbgs\",\"nonCompliantAssignments\":[{\"assignmentId\":\"subzp\",\"policyDefinitionId\":\"vdylytcovqseusrf\",\"policySetDefinitionId\":\"d\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"nxmlbmuoswk\",\"effect\":\"dihdcyyyzlwhb\",\"expressionEvaluations\":[{},{}]},{\"assignmentId\":\"ufzrfgmdqgnnbzrt\",\"policyDefinitionId\":\"edzuub\",\"policySetDefinitionId\":\"vgjs\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"jjvavdpww\",\"effect\":\"tdp\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"sffofwanmhksca\",\"policyDefinitionId\":\"azcg\",\"policySetDefinitionId\":\"friwgybjp\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"scvgl\",\"effect\":\"x\",\"expressionEvaluations\":[{}]}]},\"pcs\":{\"evaluationOutcome\":\"NonCompliant\",\"errorMessage\":\"wpxsoo\",\"nonCompliantAssignments\":[{\"assignmentId\":\"lcsklt\",\"policyDefinitionId\":\"uugggzlfbgrd\",\"policySetDefinitionId\":\"ubsrtmdylperpilt\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"czfcmfpfbod\",\"effect\":\"resrgvtshuvft\",\"expressionEvaluations\":[{},{},{},{}]},{\"assignmentId\":\"muqkevzgjypanhx\",\"policyDefinitionId\":\"dxxzetwwzjwotn\",\"policySetDefinitionId\":\"kf\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"rfo\",\"effect\":\"wecr\",\"expressionEvaluations\":[{},{},{}]}]},\"socwiqbuout\":{\"evaluationOutcome\":\"Compliant\",\"errorMessage\":\"ovppqibukklvzrlr\",\"nonCompliantAssignments\":[{\"assignmentId\":\"metjs\",\"policyDefinitionId\":\"ivfqbqnasdsy\",\"policySetDefinitionId\":\"zsieuscplhyvd\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"zkxitd\",\"effect\":\"ezsvkolrupjov\",\"expressionEvaluations\":[{},{},{}]},{\"assignmentId\":\"ayeb\",\"policyDefinitionId\":\"zwzlp\",\"policySetDefinitionId\":\"tzuykykipfsdye\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"cmbezac\",\"effect\":\"ztgaz\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"jga\",\"policyDefinitionId\":\"kctgkp\",\"policySetDefinitionId\":\"kqzkcyzmff\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"fcixrh\",\"effect\":\"qvhoej\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"tgwrmkahpqha\",\"policyDefinitionId\":\"ntacih\",\"policySetDefinitionId\":\"ogmipnmliqmvl\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"eaqgrvgpomxpupd\",\"effect\":\"dfj\",\"expressionEvaluations\":[{},{},{}]}]}}}"; + = "{\"results\":{\"tgirnb\":{\"evaluationOutcome\":\"NonCompliant\",\"errorMessage\":\"xi\",\"nonCompliantAssignments\":[{\"assignmentId\":\"fyzavfrbypicdb\",\"policyDefinitionId\":\"dj\",\"policySetDefinitionId\":\"qh\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"zpdgonjhxshthmgp\",\"effect\":\"qulpt\",\"expressionEvaluations\":[{},{},{},{}]},{\"assignmentId\":\"pxtzhigqqbtimpk\",\"policyDefinitionId\":\"lornsihqh\",\"policySetDefinitionId\":\"smusuaawj\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"jnfczmnniixy\",\"effect\":\"qban\",\"expressionEvaluations\":[{},{}]}]}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,67 +36,34 @@ public void testEvaluateDeploymentPoliciesWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - EvaluateDeploymentPoliciesResponse response - = manager.accounts() - .evaluateDeploymentPoliciesWithResponse("giomqo", "pepiaeapfs", - new EvaluateDeploymentPoliciesRequest() - .withDeployments( - Arrays - .asList( - new EvaluateDeploymentPoliciesDeployment().withName("gdtpe") - .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("acyh") - .withFormat("wbpqqncjubkhjoz") - .withName("mcwmbup") - .withVersion("qyvliqiipsejbsvs") - .withSource("ieswhddzydisn") - .withSourceAccount("pywyjlnld")) - .withRaiPolicyName("ttdiia")), - new EvaluateDeploymentPoliciesDeployment().withName("cqibzj") - .withProperties( - new EvaluateDeploymentPoliciesDeploymentProperties().withModel( - new DeploymentModel().withPublisher("weebiphryv") - .withFormat("wqwoqsratjhdhzyb") - .withName("ijh") - .withVersion("zgdkkagvwu") - .withSource("susmmorfmzhwi") - .withSourceAccount("zhnijmr")) - .withRaiPolicyName("lk")), - new EvaluateDeploymentPoliciesDeployment().withName("neyttl") - .withProperties( - new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("xivcbkutpumlt") - .withFormat("fluxynbpvz") - .withName("ywauyqnjckhm") - .withVersion("gjs") - .withSource("ouarhwvixqqggljk") - .withSourceAccount("sjrclrvtzq")) - .withRaiPolicyName("ctbhpjhxpcvrd")), - new EvaluateDeploymentPoliciesDeployment().withName("y") - .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("taneqadynzja") - .withFormat("riuomzczfkic") - .withName("vsaaxwsp") - .withVersion("xikhfj") - .withSource("bglcxkxgzzromvy") - .withSourceAccount("sem")) - .withRaiPolicyName("srfsvpinkzpatqt")))), - com.azure.core.util.Context.NONE) - .getValue(); + EvaluateDeploymentPoliciesResponse response = manager.accounts() + .evaluateDeploymentPoliciesWithResponse("ztsdetjygow", "fcqpol", + new EvaluateDeploymentPoliciesRequest() + .withDeployments(Arrays.asList(new EvaluateDeploymentPoliciesDeployment().withName("gysdgzyyb") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withPublisher("xlvocptvdx") + .withFormat("eigmlil") + .withName("ghjhjvmabzzbwa") + .withVersion("fmdafbgymqtnap") + .withSource("ojxrjnbsconxavi") + .withSourceAccount("eychbji")) + .withRaiPolicyName("sgnwdxzedpq")))), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(PolicyEvaluationOutcome.ERROR, response.results().get("yfgwewqkj").evaluationOutcome()); - Assertions.assertEquals("pvckojazbbgs", response.results().get("yfgwewqkj").errorMessage()); - Assertions.assertEquals("subzp", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).assignmentId()); - Assertions.assertEquals("vdylytcovqseusrf", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).policyDefinitionId()); - Assertions.assertEquals("d", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).policySetDefinitionId()); Assertions.assertEquals(PolicyEvaluationOutcome.NON_COMPLIANT, - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).evaluationOutcome()); - Assertions.assertEquals("nxmlbmuoswk", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).nonComplianceReason()); - Assertions.assertEquals("dihdcyyyzlwhb", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).effect()); + response.results().get("tgirnb").evaluationOutcome()); + Assertions.assertEquals("xi", response.results().get("tgirnb").errorMessage()); + Assertions.assertEquals("fyzavfrbypicdb", + response.results().get("tgirnb").nonCompliantAssignments().get(0).assignmentId()); + Assertions.assertEquals("dj", + response.results().get("tgirnb").nonCompliantAssignments().get(0).policyDefinitionId()); + Assertions.assertEquals("qh", + response.results().get("tgirnb").nonCompliantAssignments().get(0).policySetDefinitionId()); + Assertions.assertEquals(PolicyEvaluationOutcome.COMPLIANT, + response.results().get("tgirnb").nonCompliantAssignments().get(0).evaluationOutcome()); + Assertions.assertEquals("zpdgonjhxshthmgp", + response.results().get("tgirnb").nonCompliantAssignments().get(0).nonComplianceReason()); + Assertions.assertEquals("qulpt", response.results().get("tgirnb").nonCompliantAssignments().get(0).effect()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java index 360864cfc774..b13b7a873097 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class AccountsListSkusWithResponseMockTests { @Test public void testListSkusWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"jhvvlrlo\",\"sku\":{\"name\":\"wjjmajnkdflqi\",\"tier\":\"Enterprise\",\"size\":\"aeqkzfzqxjoshoh\",\"family\":\"tryegpkh\",\"capacity\":79529746}},{\"resourceType\":\"xznlwkbfokxk\",\"sku\":{\"name\":\"p\",\"tier\":\"Premium\",\"size\":\"fgjblcd\",\"family\":\"yfcemftz\",\"capacity\":226597669}},{\"resourceType\":\"y\",\"sku\":{\"name\":\"ugekdfqn\",\"tier\":\"Free\",\"size\":\"do\",\"family\":\"czfjjnn\",\"capacity\":351138135}},{\"resourceType\":\"kkmhm\",\"sku\":{\"name\":\"lwe\",\"tier\":\"Free\",\"size\":\"ifrhjulrsul\",\"family\":\"pflu\",\"capacity\":1134501499}}]}"; + = "{\"value\":[{\"resourceType\":\"cbjqqwmtqsm\",\"sku\":{\"name\":\"sazuxejgwecywnfy\",\"tier\":\"Enterprise\",\"size\":\"czs\",\"family\":\"q\",\"capacity\":574281119}},{\"resourceType\":\"dbbo\",\"sku\":{\"name\":\"yvrmkjm\",\"tier\":\"Free\",\"size\":\"chwudlxee\",\"family\":\"tpmnoe\",\"capacity\":1026884990}},{\"resourceType\":\"fmsibzoyrfgxkyd\",\"sku\":{\"name\":\"yp\",\"tier\":\"Premium\",\"size\":\"mtywhla\",\"family\":\"p\",\"capacity\":1568923478}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testListSkusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AccountSkuListResult response - = manager.accounts().listSkusWithResponse("awi", "bmom", com.azure.core.util.Context.NONE).getValue(); + = manager.accounts().listSkusWithResponse("vgjbfio", "pn", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("jhvvlrlo", response.value().get(0).resourceType()); - Assertions.assertEquals("wjjmajnkdflqi", response.value().get(0).sku().name()); + Assertions.assertEquals("cbjqqwmtqsm", response.value().get(0).resourceType()); + Assertions.assertEquals("sazuxejgwecywnfy", response.value().get(0).sku().name()); Assertions.assertEquals(SkuTier.ENTERPRISE, response.value().get(0).sku().tier()); - Assertions.assertEquals("aeqkzfzqxjoshoh", response.value().get(0).sku().size()); - Assertions.assertEquals("tryegpkh", response.value().get(0).sku().family()); - Assertions.assertEquals(79529746, response.value().get(0).sku().capacity()); + Assertions.assertEquals("czs", response.value().get(0).sku().size()); + Assertions.assertEquals("q", response.value().get(0).sku().family()); + Assertions.assertEquals(574281119, response.value().get(0).sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java index e724d5d269db..719894548853 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class AccountsListUsagesWithResponseMockTests { @Test public void testListUsagesWithResponse() throws Exception { String responseStr - = "{\"nextLink\":\"pcqydeykvsk\",\"value\":[{\"unit\":\"Bytes\",\"name\":{\"value\":\"eizikgqaboohxbms\",\"localizedValue\":\"cqsxrmdvewu\"},\"quotaPeriod\":\"aeohpjhgejkbvhh\",\"limit\":36.396393370026814,\"currentValue\":16.961813759748978,\"nextResetTime\":\"xaex\",\"status\":\"Unknown\",\"scopeType\":\"Global\",\"scopeId\":\"joezlqxrkdknkobe\"},{\"unit\":\"Bytes\",\"name\":{\"value\":\"z\",\"localizedValue\":\"tzamicbig\"},\"quotaPeriod\":\"dgzsez\",\"limit\":14.188725307797224,\"currentValue\":75.54402214953816,\"nextResetTime\":\"raabmdlqjb\",\"status\":\"InOverage\",\"scopeType\":\"Global\",\"scopeId\":\"lhupmomihzbdnpxp\"},{\"unit\":\"CountPerSecond\",\"name\":{\"value\":\"eyxel\",\"localizedValue\":\"cghf\"},\"quotaPeriod\":\"ufssjyghsfxr\",\"limit\":78.65387903381382,\"currentValue\":49.44907921858409,\"nextResetTime\":\"qfmefgvqcpdwj\",\"status\":\"InOverage\",\"scopeType\":\"Classic\",\"scopeId\":\"ysla\"}]}"; + = "{\"nextLink\":\"atwfauj\",\"value\":[{\"unit\":\"Milliseconds\",\"name\":{\"value\":\"r\",\"localizedValue\":\"gddhjkrukizyhgs\"},\"quotaPeriod\":\"nqskt\",\"limit\":52.50280800542966,\"currentValue\":25.39356583900255,\"nextResetTime\":\"gweeiwd\",\"status\":\"Included\",\"scopeType\":\"DataZone\",\"scopeId\":\"bf\"},{\"unit\":\"Seconds\",\"name\":{\"value\":\"tunmlhxd\",\"localizedValue\":\"klciichgjsysm\"},\"quotaPeriod\":\"o\",\"limit\":99.37963130435838,\"currentValue\":53.5735232788603,\"nextResetTime\":\"ifc\",\"status\":\"Unknown\",\"scopeType\":\"Regional\",\"scopeId\":\"gcwx\"},{\"unit\":\"Count\",\"name\":{\"value\":\"wjtrdxriza\",\"localizedValue\":\"bgiark\"},\"quotaPeriod\":\"kpgdqxwabzrwiq\",\"limit\":12.102028897079531,\"currentValue\":55.41303683641783,\"nextResetTime\":\"osqkptjqgk\",\"status\":\"Blocked\",\"scopeType\":\"DataZone\",\"scopeId\":\"nwhedxkpbqwun\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,19 @@ public void testListUsagesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); UsageListResult response = manager.accounts() - .listUsagesWithResponse("wmh", "gzotfriyrgkoekvz", "xxyxhighctxbxm", com.azure.core.util.Context.NONE) + .listUsagesWithResponse("ewp", "jlfxampqcrzgeuq", "b", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pcqydeykvsk", response.nextLink()); - Assertions.assertEquals(UnitType.BYTES, response.value().get(0).unit()); - Assertions.assertEquals("eizikgqaboohxbms", response.value().get(0).name().value()); - Assertions.assertEquals("cqsxrmdvewu", response.value().get(0).name().localizedValue()); - Assertions.assertEquals("aeohpjhgejkbvhh", response.value().get(0).quotaPeriod()); - Assertions.assertEquals(36.396393370026814D, response.value().get(0).limit()); - Assertions.assertEquals(16.961813759748978D, response.value().get(0).currentValue()); - Assertions.assertEquals("xaex", response.value().get(0).nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.UNKNOWN, response.value().get(0).status()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, response.value().get(0).scopeType()); - Assertions.assertEquals("joezlqxrkdknkobe", response.value().get(0).scopeId()); + Assertions.assertEquals("atwfauj", response.nextLink()); + Assertions.assertEquals(UnitType.MILLISECONDS, response.value().get(0).unit()); + Assertions.assertEquals("r", response.value().get(0).name().value()); + Assertions.assertEquals("gddhjkrukizyhgs", response.value().get(0).name().localizedValue()); + Assertions.assertEquals("nqskt", response.value().get(0).quotaPeriod()); + Assertions.assertEquals(52.50280800542966D, response.value().get(0).limit()); + Assertions.assertEquals(25.39356583900255D, response.value().get(0).currentValue()); + Assertions.assertEquals("gweeiwd", response.value().get(0).nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.INCLUDED, response.value().get(0).status()); + Assertions.assertEquals(QuotaScopeType.DATA_ZONE, response.value().get(0).scopeType()); + Assertions.assertEquals("bf", response.value().get(0).scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java index 6175c3edfd4f..77cb66ba7ddf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDisableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentApplications() - .disableWithResponse("lbadp", "sjdle", "jvm", "vl", com.azure.core.util.Context.NONE); + .disableWithResponse("iunnep", "wz", "zkueruwcjomipvw", "a", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java index bc20e17d8310..55f66b5c5d01 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java @@ -28,7 +28,8 @@ public void testEnableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentApplications() - .enableWithResponse("vuqoqjrkblndyc", "wgycvtqnzjc", "qqzhem", "tbwn", com.azure.core.util.Context.NONE); + .enableWithResponse("akeszsuuvul", "qcwggchxvl", "gfbrv", "cicaovphirlzbi", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java index 6d08dee168b5..73bc94b5b0e2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class AgentApplicationsListAgentsWithResponseMockTests { @Test public void testListAgentsWithResponse() throws Exception { String responseStr - = "{\"nextLink\":\"ftyaphq\",\"value\":[{\"properties\":{\"agentId\":\"tlsnlowmcmc\",\"agentName\":\"xuanccqvjfdgfq\"},\"id\":\"quxpjhcfaara\",\"name\":\"ci\",\"type\":\"vmufzgug\"},{\"properties\":{\"agentId\":\"lwalaossnqe\",\"agentName\":\"otbptg\"},\"id\":\"manxx\",\"name\":\"wqfmdqecvta\",\"type\":\"qwzmnobfewwpsibx\"}]}"; + = "{\"nextLink\":\"rcmelycpgokut\",\"value\":[{\"properties\":{\"agentId\":\"bn\",\"agentName\":\"nv\"},\"id\":\"hfuzzlapyixlvz\",\"name\":\"gulaebxiauqs\",\"type\":\"ptessjlw\"},{\"properties\":{\"agentId\":\"atpvbl\",\"agentName\":\"xgxqayga\"},\"id\":\"kvc\",\"name\":\"wpvlcjbvyezjwjkq\",\"type\":\"nbwhiieyoz\"},{\"properties\":{\"agentId\":\"cwf\",\"agentName\":\"cwnbcgqefgzjvbx\"},\"id\":\"bg\",\"name\":\"arxt\",\"type\":\"uc\"},{\"properties\":{\"agentId\":\"gvkdlhuduk\",\"agentName\":\"joafm\"},\"id\":\"exulvoepknarseia\",\"name\":\"csqoacbuqdgs\",\"type\":\"pleqfgkxenvszglv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,12 @@ public void testListAgentsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentReferenceResourceArmPaginatedResult response = manager.agentApplications() - .listAgentsWithResponse("qid", "imlgbbfjmdg", "v", "lhmpm", com.azure.core.util.Context.NONE) + .listAgentsWithResponse("aphifkfrpm", "lubpebrmjjnfpght", "ttpkims", "hnkkhbykrs", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ftyaphq", response.nextLink()); - Assertions.assertEquals("tlsnlowmcmc", response.value().get(0).properties().agentId()); - Assertions.assertEquals("xuanccqvjfdgfq", response.value().get(0).properties().agentName()); + Assertions.assertEquals("rcmelycpgokut", response.nextLink()); + Assertions.assertEquals("bn", response.value().get(0).properties().agentId()); + Assertions.assertEquals("nv", response.value().get(0).properties().agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java index 26f4562a4d34..34510a6b6d94 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java @@ -20,55 +20,47 @@ public final class AgentDeploymentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentInner model = BinaryData.fromString( - "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"xawqy\",\"deploymentId\":\"lhdyzmyckzex\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ymx\"},{\"protocol\":\"A2A\",\"version\":\"jkdtfoh\"},{\"protocol\":\"A2A\",\"version\":\"zvkiwrsiwdy\"}],\"agents\":[{\"agentVersion\":\"ykcrraue\",\"agentId\":\"csuehogddac\",\"agentName\":\"bgydlqidywm\"},{\"agentVersion\":\"ptyrilkfbnrqqxv\",\"agentId\":\"pbnfnqtx\",\"agentName\":\"omals\"},{\"agentVersion\":\"nfddepldwqjns\",\"agentId\":\"ygleexa\",\"agentName\":\"mywhsb\"},{\"agentVersion\":\"arycsjjzyvoaqa\",\"agentId\":\"vehzp\",\"agentName\":\"mk\"}],\"provisioningState\":\"Failed\",\"description\":\"mpfu\",\"tags\":{\"krvfyifkdschl\":\"efgybpmfbfununmp\"}},\"id\":\"fict\",\"name\":\"kjjwgcwn\",\"type\":\"hbkgfyrt\"}") + "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"nygnxcgjtfrnquk\",\"deploymentId\":\"fnslnlrxsmy\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"tbgwjdxwnazkur\"}],\"agents\":[{\"agentVersion\":\"yzjwhsetwwjwzzq\",\"agentId\":\"uzu\",\"agentName\":\"y\"},{\"agentVersion\":\"yqhyqqzzdcykey\",\"agentId\":\"ewfopazdazg\",\"agentName\":\"qgpewqcfutmdpvoz\"}],\"provisioningState\":\"Failed\",\"description\":\"bknlzcl\",\"tags\":{\"zqauxzan\":\"eyowmndcovd\",\"fruwkud\":\"mk\",\"ucmci\":\"bcpftxudqyemebun\",\"ohaitranizerwgud\":\"tneemmjauwcgxef\"}},\"id\":\"mxubvfbngfcoce\",\"name\":\"hpriylfm\",\"type\":\"ztraud\"}") .toObject(AgentDeploymentInner.class); - Assertions.assertEquals("mpfu", model.properties().description()); - Assertions.assertEquals("efgybpmfbfununmp", model.properties().tags().get("krvfyifkdschl")); - Assertions.assertEquals("xawqy", model.properties().displayName()); - Assertions.assertEquals("lhdyzmyckzex", model.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPED, model.properties().state()); - Assertions.assertEquals(AgentProtocol.A2A, model.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ymx", model.properties().protocols().get(0).version()); - Assertions.assertEquals("csuehogddac", model.properties().agents().get(0).agentId()); - Assertions.assertEquals("bgydlqidywm", model.properties().agents().get(0).agentName()); - Assertions.assertEquals("ykcrraue", model.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("bknlzcl", model.properties().description()); + Assertions.assertEquals("eyowmndcovd", model.properties().tags().get("zqauxzan")); + Assertions.assertEquals("nygnxcgjtfrnquk", model.properties().displayName()); + Assertions.assertEquals("fnslnlrxsmy", model.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STOPPING, model.properties().state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.properties().protocols().get(0).protocol()); + Assertions.assertEquals("tbgwjdxwnazkur", model.properties().protocols().get(0).version()); + Assertions.assertEquals("uzu", model.properties().agents().get(0).agentId()); + Assertions.assertEquals("y", model.properties().agents().get(0).agentName()); + Assertions.assertEquals("yzjwhsetwwjwzzq", model.properties().agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentDeploymentInner model = new AgentDeploymentInner().withProperties(new AgentDeploymentProperties() - .withDescription("mpfu") - .withTags(mapOf("krvfyifkdschl", "efgybpmfbfununmp")) - .withDisplayName("xawqy") - .withDeploymentId("lhdyzmyckzex") - .withState(AgentDeploymentState.STOPPED) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ymx"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("jkdtfoh"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("zvkiwrsiwdy"))) + .withDescription("bknlzcl") + .withTags(mapOf("zqauxzan", "eyowmndcovd", "fruwkud", "mk", "ucmci", "bcpftxudqyemebun", "ohaitranizerwgud", + "tneemmjauwcgxef")) + .withDisplayName("nygnxcgjtfrnquk") + .withDeploymentId("fnslnlrxsmy") + .withState(AgentDeploymentState.STOPPING) + .withProtocols(Arrays + .asList(new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("tbgwjdxwnazkur"))) .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("csuehogddac") - .withAgentName("bgydlqidywm") - .withAgentVersion("ykcrraue"), - new VersionedAgentReference().withAgentId("pbnfnqtx") - .withAgentName("omals") - .withAgentVersion("ptyrilkfbnrqqxv"), - new VersionedAgentReference().withAgentId("ygleexa") - .withAgentName("mywhsb") - .withAgentVersion("nfddepldwqjns"), - new VersionedAgentReference().withAgentId("vehzp") - .withAgentName("mk") - .withAgentVersion("arycsjjzyvoaqa")))); + new VersionedAgentReference().withAgentId("uzu").withAgentName("y").withAgentVersion("yzjwhsetwwjwzzq"), + new VersionedAgentReference().withAgentId("ewfopazdazg") + .withAgentName("qgpewqcfutmdpvoz") + .withAgentVersion("yqhyqqzzdcykey")))); model = BinaryData.fromObject(model).toObject(AgentDeploymentInner.class); - Assertions.assertEquals("mpfu", model.properties().description()); - Assertions.assertEquals("efgybpmfbfununmp", model.properties().tags().get("krvfyifkdschl")); - Assertions.assertEquals("xawqy", model.properties().displayName()); - Assertions.assertEquals("lhdyzmyckzex", model.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPED, model.properties().state()); - Assertions.assertEquals(AgentProtocol.A2A, model.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ymx", model.properties().protocols().get(0).version()); - Assertions.assertEquals("csuehogddac", model.properties().agents().get(0).agentId()); - Assertions.assertEquals("bgydlqidywm", model.properties().agents().get(0).agentName()); - Assertions.assertEquals("ykcrraue", model.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("bknlzcl", model.properties().description()); + Assertions.assertEquals("eyowmndcovd", model.properties().tags().get("zqauxzan")); + Assertions.assertEquals("nygnxcgjtfrnquk", model.properties().displayName()); + Assertions.assertEquals("fnslnlrxsmy", model.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STOPPING, model.properties().state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.properties().protocols().get(0).protocol()); + Assertions.assertEquals("tbgwjdxwnazkur", model.properties().protocols().get(0).version()); + Assertions.assertEquals("uzu", model.properties().agents().get(0).agentId()); + Assertions.assertEquals("y", model.properties().agents().get(0).agentName()); + Assertions.assertEquals("yzjwhsetwwjwzzq", model.properties().agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java index cbb79700fe7e..5400f0ada3b9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java @@ -19,54 +19,50 @@ public final class AgentDeploymentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentProperties model = BinaryData.fromString( - "{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"mhmjpjs\",\"deploymentId\":\"fp\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"gwmseharxifv\"},{\"protocol\":\"Responses\",\"version\":\"tmbpjp\"},{\"protocol\":\"A2A\",\"version\":\"jhrsidqpxlb\"},{\"protocol\":\"Agent\",\"version\":\"f\"}],\"agents\":[{\"agentVersion\":\"twmykyut\",\"agentId\":\"mdwmf\",\"agentName\":\"pycvjqdvdwkqpldr\"},{\"agentVersion\":\"fgnaavuagnteta\",\"agentId\":\"tnpdctuhspfefy\",\"agentName\":\"duyeuyl\"},{\"agentVersion\":\"hmtybkcgsuthhll\",\"agentId\":\"wynefx\",\"agentName\":\"lf\"}],\"provisioningState\":\"Canceled\",\"description\":\"xtjrrlk\",\"tags\":{\"xcxscvslxlh\":\"kjhhxdlajf\"}}") + "{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"hlcdc\",\"deploymentId\":\"regp\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ztnvgy\"},{\"protocol\":\"Agent\",\"version\":\"dgrtwmew\"},{\"protocol\":\"Agent\",\"version\":\"ykcfazz\"},{\"protocol\":\"Agent\",\"version\":\"yerzrransybyl\"}],\"agents\":[{\"agentVersion\":\"zrghsrleink\",\"agentId\":\"cjfncjwvuagfq\",\"agentName\":\"ltngvmreupt\"},{\"agentVersion\":\"lzmijajwolxfsv\",\"agentId\":\"h\",\"agentName\":\"ynwlslrcigtzjcv\"}],\"provisioningState\":\"Creating\",\"description\":\"a\",\"tags\":{\"xpavid\":\"ssov\",\"fcvvy\":\"ievw\",\"xgcbdsvalpnpt\":\"zslp\"}}") .toObject(AgentDeploymentProperties.class); - Assertions.assertEquals("xtjrrlk", model.description()); - Assertions.assertEquals("kjhhxdlajf", model.tags().get("xcxscvslxlh")); - Assertions.assertEquals("mhmjpjs", model.displayName()); - Assertions.assertEquals("fp", model.deploymentId()); + Assertions.assertEquals("a", model.description()); + Assertions.assertEquals("ssov", model.tags().get("xpavid")); + Assertions.assertEquals("hlcdc", model.displayName()); + Assertions.assertEquals("regp", model.deploymentId()); Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("gwmseharxifv", model.protocols().get(0).version()); - Assertions.assertEquals("mdwmf", model.agents().get(0).agentId()); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.agents().get(0).agentName()); - Assertions.assertEquals("twmykyut", model.agents().get(0).agentVersion()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); + Assertions.assertEquals("ztnvgy", model.protocols().get(0).version()); + Assertions.assertEquals("cjfncjwvuagfq", model.agents().get(0).agentId()); + Assertions.assertEquals("ltngvmreupt", model.agents().get(0).agentName()); + Assertions.assertEquals("zrghsrleink", model.agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentDeploymentProperties model - = new AgentDeploymentProperties().withDescription("xtjrrlk") - .withTags(mapOf("xcxscvslxlh", "kjhhxdlajf")) - .withDisplayName("mhmjpjs") - .withDeploymentId("fp") - .withState(AgentDeploymentState.RUNNING) - .withProtocols(Arrays.asList( - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("gwmseharxifv"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("tmbpjp"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("jhrsidqpxlb"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("f"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("mdwmf") - .withAgentName("pycvjqdvdwkqpldr") - .withAgentVersion("twmykyut"), - new VersionedAgentReference().withAgentId("tnpdctuhspfefy") - .withAgentName("duyeuyl") - .withAgentVersion("fgnaavuagnteta"), - new VersionedAgentReference().withAgentId("wynefx") - .withAgentName("lf") - .withAgentVersion("hmtybkcgsuthhll"))); + AgentDeploymentProperties model = new AgentDeploymentProperties().withDescription("a") + .withTags(mapOf("xpavid", "ssov", "fcvvy", "ievw", "xgcbdsvalpnpt", "zslp")) + .withDisplayName("hlcdc") + .withDeploymentId("regp") + .withState(AgentDeploymentState.RUNNING) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ztnvgy"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("dgrtwmew"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("ykcfazz"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("yerzrransybyl"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("cjfncjwvuagfq") + .withAgentName("ltngvmreupt") + .withAgentVersion("zrghsrleink"), + new VersionedAgentReference().withAgentId("h") + .withAgentName("ynwlslrcigtzjcv") + .withAgentVersion("lzmijajwolxfsv"))); model = BinaryData.fromObject(model).toObject(AgentDeploymentProperties.class); - Assertions.assertEquals("xtjrrlk", model.description()); - Assertions.assertEquals("kjhhxdlajf", model.tags().get("xcxscvslxlh")); - Assertions.assertEquals("mhmjpjs", model.displayName()); - Assertions.assertEquals("fp", model.deploymentId()); + Assertions.assertEquals("a", model.description()); + Assertions.assertEquals("ssov", model.tags().get("xpavid")); + Assertions.assertEquals("hlcdc", model.displayName()); + Assertions.assertEquals("regp", model.deploymentId()); Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("gwmseharxifv", model.protocols().get(0).version()); - Assertions.assertEquals("mdwmf", model.agents().get(0).agentId()); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.agents().get(0).agentName()); - Assertions.assertEquals("twmykyut", model.agents().get(0).agentVersion()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); + Assertions.assertEquals("ztnvgy", model.protocols().get(0).version()); + Assertions.assertEquals("cjfncjwvuagfq", model.agents().get(0).agentId()); + Assertions.assertEquals("ltngvmreupt", model.agents().get(0).agentName()); + Assertions.assertEquals("zrghsrleink", model.agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentResourceArmPaginatedResultTests.java index cb1f770b27c8..542cab91742c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentResourceArmPaginatedResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentResourceArmPaginatedResultTests.java @@ -14,18 +14,18 @@ public final class AgentDeploymentResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"arvsx\",\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"lcjkayspthzodub\",\"deploymentId\":\"mjtgblioskkfmkm\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"kkqvjcteoedl\"},{\"protocol\":\"Agent\",\"version\":\"kk\"},{\"protocol\":\"Agent\",\"version\":\"jnzdpvocojhpcna\"},{\"protocol\":\"Agent\",\"version\":\"snggytexvzilmhiv\"}],\"agents\":[{\"agentVersion\":\"wncknr\",\"agentId\":\"ajlskzptj\",\"agentName\":\"lwe\"},{\"agentVersion\":\"yrth\",\"agentId\":\"lehmcgcjeinueho\",\"agentName\":\"mvfejvqnttmbqd\"}],\"provisioningState\":\"Failed\",\"description\":\"ivfokpysthhzagj\",\"tags\":{\"g\":\"yrl\",\"qszllrz\":\"nuzejgvkveb\",\"gmihzpimcqr\":\"smmd\"}},\"id\":\"xtminklogxsvtzar\",\"name\":\"zvqnsqktcmbjwzzo\",\"type\":\"lpky\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"glwkzpgajsqj\",\"deploymentId\":\"mqbmfuvqarwz\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"immbwxsfgtdm\"},{\"protocol\":\"A2A\",\"version\":\"kraokq\"},{\"protocol\":\"A2A\",\"version\":\"btwa\"}],\"agents\":[{\"agentVersion\":\"vlyttaaknwfrke\",\"agentId\":\"mhpdu\",\"agentName\":\"igatolekscbctna\"},{\"agentVersion\":\"imwbzxpdcldpk\",\"agentId\":\"n\",\"agentName\":\"laimouxwk\"}],\"provisioningState\":\"Canceled\",\"description\":\"dmfcoibicziusws\",\"tags\":{\"fwbivqvo\":\"kbqsjhbtqqvyfscy\"}},\"id\":\"uyzwvbhlimbyqecr\",\"name\":\"odlikcdrdaasax\",\"type\":\"obsmf\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"iyjvz\",\"deploymentId\":\"osrnawnvzmlnkoy\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"qqax\"},{\"protocol\":\"Responses\",\"version\":\"mc\"}],\"agents\":[{\"agentVersion\":\"doabhj\",\"agentId\":\"xqweu\",\"agentName\":\"mp\"},{\"agentVersion\":\"smitnsqxtlt\",\"agentId\":\"krdpqgfhyrfr\",\"agentName\":\"kldgrcwfcmfc\"},{\"agentVersion\":\"jajqmatxjt\",\"agentId\":\"ln\",\"agentName\":\"gxxgfb\"}],\"provisioningState\":\"Updating\",\"description\":\"pqagynoiprn\",\"tags\":{\"ryqxzxa\":\"lin\"}},\"id\":\"ibmq\",\"name\":\"miymqruqguhfupet\",\"type\":\"svvoqsbpkflanfk\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"syaowuzowp\",\"deploymentId\":\"hdkcprgu\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"hlutixmqrudjizc\"},{\"protocol\":\"Agent\",\"version\":\"crunfhi\"},{\"protocol\":\"A2A\",\"version\":\"fbcpaqktkrumzu\"},{\"protocol\":\"A2A\",\"version\":\"zbfvxovqkxiu\"}],\"agents\":[{\"agentVersion\":\"vqrnhyhlwcjsqgg\",\"agentId\":\"ffbxrqrkij\",\"agentName\":\"uqlsdx\"},{\"agentVersion\":\"ztv\",\"agentId\":\"mwwmjswenaww\",\"agentName\":\"ecleqioulndhzyo\"},{\"agentVersion\":\"jhtollh\",\"agentId\":\"idmytzln\",\"agentName\":\"xpno\"},{\"agentVersion\":\"oanfbcswqagyw\",\"agentId\":\"xigvjrktpgaeuk\",\"agentName\":\"wohpmwhqnucs\"}],\"provisioningState\":\"Creating\",\"description\":\"i\",\"tags\":{\"njg\":\"tdlpbn\",\"jcciklhsyek\":\"zlsvbzfcpuoeed\"}},\"id\":\"renxolriyehqbe\",\"name\":\"vdlhydwbdbfgr\",\"type\":\"punytjl\"}]}") + "{\"nextLink\":\"chp\",\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"ehzl\",\"deploymentId\":\"gfquwz\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"cerwkwbpjxljtxbu\"},{\"protocol\":\"Agent\",\"version\":\"xxniuisdzhgbd\"}],\"agents\":[{\"agentVersion\":\"gsecnadbuwqrgx\",\"agentId\":\"lmqiynezoel\",\"agentName\":\"kki\"},{\"agentVersion\":\"vmtumxpym\",\"agentId\":\"fua\",\"agentName\":\"oqvqpilr\"},{\"agentVersion\":\"ncanlduwzor\",\"agentId\":\"bm\",\"agentName\":\"qk\"}],\"provisioningState\":\"Creating\",\"description\":\"x\",\"tags\":{\"xcltuubwyvp\":\"fqep\",\"exkydfb\":\"bowcpjqduqgi\"}},\"id\":\"javh\",\"name\":\"erkjddv\",\"type\":\"gliegftcvbiif\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"sdwgdnkefgmwd\",\"deploymentId\":\"eb\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"lzoutbaaqgzekaj\"},{\"protocol\":\"Agent\",\"version\":\"gsnorbjgmnzjotv\"},{\"protocol\":\"A2A\",\"version\":\"hlobvvjbhv\"}],\"agents\":[{\"agentVersion\":\"ayfluiyuosnu\",\"agentId\":\"t\",\"agentName\":\"vhyibdrqrsw\"},{\"agentVersion\":\"uubpyrow\",\"agentId\":\"oxztfwfqch\",\"agentName\":\"zevjnnctag\"}],\"provisioningState\":\"Updating\",\"description\":\"tpqpemhzcgkrep\",\"tags\":{\"xqabckmzeoxi\":\"qyhwqwem\",\"pceeznzangprbf\":\"hgreohtwhlpuz\"}},\"id\":\"yxzlbciphmse\",\"name\":\"roqr\",\"type\":\"dktxfv\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"feeqgpkrietbgnix\",\"deploymentId\":\"wwzkyf\",\"state\":\"Deleted\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"ii\"},{\"protocol\":\"Responses\",\"version\":\"e\"},{\"protocol\":\"Agent\",\"version\":\"maxxijvskwsdgkjg\"}],\"agents\":[{\"agentVersion\":\"rasek\",\"agentId\":\"fcvoinwoqar\",\"agentName\":\"yxqicladv\"},{\"agentVersion\":\"davuqmcbyms\",\"agentId\":\"bjlquv\",\"agentName\":\"zcjumvpsimioyoig\"}],\"provisioningState\":\"Canceled\",\"description\":\"q\",\"tags\":{\"ydgnha\":\"raclibbfqpspkla\",\"gpmnmabe\":\"twukex\"}},\"id\":\"qilwgdfpfqfpcvs\",\"name\":\"clg\",\"type\":\"rvwerfwxbsmtb\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"jehhci\",\"deploymentId\":\"wdv\",\"state\":\"Deleting\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"sqhtfpw\"},{\"protocol\":\"Agent\",\"version\":\"ejuwyqwdqigmghgi\"}],\"agents\":[{\"agentVersion\":\"lujkhn\",\"agentId\":\"mrnkfmkhcqtwml\",\"agentName\":\"jnqtqe\"},{\"agentVersion\":\"j\",\"agentId\":\"vragpokddx\",\"agentName\":\"hhkvguavtptbk\"},{\"agentVersion\":\"kqynspgbvo\",\"agentId\":\"bkkwvdxae\",\"agentName\":\"okmyr\"}],\"provisioningState\":\"Failed\",\"description\":\"lzbnobrqlpbcjt\",\"tags\":{\"aeonqelwgdh\":\"uyudivbxnhsq\",\"atmoljiywmpinmzv\":\"ruzytzaro\",\"lugdybnhrxlelf\":\"kneerzztrknsj\"}},\"id\":\"k\",\"name\":\"izcpihtdmiw\",\"type\":\"ekpt\"}]}") .toObject(AgentDeploymentResourceArmPaginatedResult.class); - Assertions.assertEquals("arvsx", model.nextLink()); - Assertions.assertEquals("ivfokpysthhzagj", model.value().get(0).properties().description()); - Assertions.assertEquals("yrl", model.value().get(0).properties().tags().get("g")); - Assertions.assertEquals("lcjkayspthzodub", model.value().get(0).properties().displayName()); - Assertions.assertEquals("mjtgblioskkfmkm", model.value().get(0).properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPING, model.value().get(0).properties().state()); + Assertions.assertEquals("chp", model.nextLink()); + Assertions.assertEquals("x", model.value().get(0).properties().description()); + Assertions.assertEquals("fqep", model.value().get(0).properties().tags().get("xcltuubwyvp")); + Assertions.assertEquals("ehzl", model.value().get(0).properties().displayName()); + Assertions.assertEquals("gfquwz", model.value().get(0).properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.FAILED, model.value().get(0).properties().state()); Assertions.assertEquals(AgentProtocol.AGENT, model.value().get(0).properties().protocols().get(0).protocol()); - Assertions.assertEquals("kkqvjcteoedl", model.value().get(0).properties().protocols().get(0).version()); - Assertions.assertEquals("ajlskzptj", model.value().get(0).properties().agents().get(0).agentId()); - Assertions.assertEquals("lwe", model.value().get(0).properties().agents().get(0).agentName()); - Assertions.assertEquals("wncknr", model.value().get(0).properties().agents().get(0).agentVersion()); + Assertions.assertEquals("cerwkwbpjxljtxbu", model.value().get(0).properties().protocols().get(0).version()); + Assertions.assertEquals("lmqiynezoel", model.value().get(0).properties().agents().get(0).agentId()); + Assertions.assertEquals("kki", model.value().get(0).properties().agents().get(0).agentName()); + Assertions.assertEquals("gsecnadbuwqrgx", model.value().get(0).properties().agents().get(0).agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java index 72eb430cbcaa..a299eda4b930 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java @@ -29,7 +29,7 @@ public final class AgentDeploymentsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"amoaxcaytnpk\",\"deploymentId\":\"pbltc\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"cnqoubvepvlryszf\"},{\"protocol\":\"A2A\",\"version\":\"fhxohz\"},{\"protocol\":\"A2A\",\"version\":\"avzfuxnv\"}],\"agents\":[{\"agentVersion\":\"cofuvtfu\",\"agentId\":\"ouisakl\",\"agentName\":\"fddxqfussub\"},{\"agentVersion\":\"spmjvailfauyv\",\"agentId\":\"q\",\"agentName\":\"kqdgwbztrth\"}],\"provisioningState\":\"Succeeded\",\"description\":\"og\",\"tags\":{\"btofcvxkyl\":\"jdhgslorm\",\"m\":\"cnsdy\",\"tmsgkwedwl\":\"qunkygb\"}},\"id\":\"zhgbgbhudh\",\"name\":\"pjimvrrqfibpkwm\",\"type\":\"mrlfizjuddndi\"}"; + = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"rqvelrmdcizhvksb\",\"deploymentId\":\"klwjpz\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"pyeyzolbfnflytf\"},{\"protocol\":\"Responses\",\"version\":\"iqoomiswkqw\"},{\"protocol\":\"A2A\",\"version\":\"nliyznghuq\"}],\"agents\":[{\"agentVersion\":\"glkfvdwrgav\",\"agentId\":\"yzse\",\"agentName\":\"m\"},{\"agentVersion\":\"kryxpi\",\"agentId\":\"apeakfdmcedl\",\"agentName\":\"lxkyoddoq\"}],\"provisioningState\":\"Succeeded\",\"description\":\"trkicwhqyr\",\"tags\":{\"urhvifqeqfs\":\"ndkrww\",\"ebylpzjelda\":\"nackitlw\",\"cbrdsypotn\":\"wjunilnijh\",\"jgsbtwgnld\":\"kbvzpkodngvnq\"}},\"id\":\"czlh\",\"name\":\"b\",\"type\":\"ycznrirpii\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,30 +39,39 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentDeployment response = manager.agentDeployments() - .define("gkaxnypr") - .withExistingApplication("wpmohnrtlikffyd", "tkqrfbgyn", "fwvzdteqjm", "qxu") - .withProperties(new AgentDeploymentProperties().withDescription("ccklzhzn") - .withTags(mapOf("tigpksywicklktg", "lxyxmn")) - .withDisplayName("yo") - .withDeploymentId("jxbsowrrl") - .withState(AgentDeploymentState.STOPPED) - .withProtocols( - Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("ms"))) - .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("vibzicy") - .withAgentName("chcaptkhjxnrk") - .withAgentVersion("mqomxoalknuy")))) + .define("yiog") + .withExistingApplication("volxtqmricdsflzb", "i", "mjfgoxedrmra", "hvchvv") + .withProperties(new AgentDeploymentProperties().withDescription("edeuenthshnf") + .withTags(mapOf("h", "pgpkkhpjnglaqlm", "ecpvfpnrzikvo", "mtrdlpxiww", "ivxdifbwblijhp", "loeohy", "xr", + "ukxgoyxontbwdq")) + .withDisplayName("tnwzruzs") + .withDeploymentId("wxcsmx") + .withState(AgentDeploymentState.STOPPING) + .withProtocols(Arrays.asList( + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("cebspc"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("mhkdwuwedupbkm"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("jjsqwhaefefv"), + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("bnmcvaqycd"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("pfdfu").withAgentName("tw").withAgentVersion("uesdyvfx"), + new VersionedAgentReference().withAgentId("vytabvbbk") + .withAgentName("ewgs") + .withAgentVersion("pse"), + new VersionedAgentReference().withAgentId("bmenxcqs") + .withAgentName("clykcrudekkbnjre") + .withAgentVersion("utbuvedwu")))) .create(); - Assertions.assertEquals("og", response.properties().description()); - Assertions.assertEquals("jdhgslorm", response.properties().tags().get("btofcvxkyl")); - Assertions.assertEquals("amoaxcaytnpk", response.properties().displayName()); - Assertions.assertEquals("pbltc", response.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.FAILED, response.properties().state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, response.properties().protocols().get(0).protocol()); - Assertions.assertEquals("cnqoubvepvlryszf", response.properties().protocols().get(0).version()); - Assertions.assertEquals("ouisakl", response.properties().agents().get(0).agentId()); - Assertions.assertEquals("fddxqfussub", response.properties().agents().get(0).agentName()); - Assertions.assertEquals("cofuvtfu", response.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("trkicwhqyr", response.properties().description()); + Assertions.assertEquals("ndkrww", response.properties().tags().get("urhvifqeqfs")); + Assertions.assertEquals("rqvelrmdcizhvksb", response.properties().displayName()); + Assertions.assertEquals("klwjpz", response.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.RUNNING, response.properties().state()); + Assertions.assertEquals(AgentProtocol.A2A, response.properties().protocols().get(0).protocol()); + Assertions.assertEquals("pyeyzolbfnflytf", response.properties().protocols().get(0).version()); + Assertions.assertEquals("yzse", response.properties().agents().get(0).agentId()); + Assertions.assertEquals("m", response.properties().agents().get(0).agentName()); + Assertions.assertEquals("glkfvdwrgav", response.properties().agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java index 0adae81d8568..3f305b042189 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class AgentDeploymentsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"qswxhqhgkhtbzvul\",\"deploymentId\":\"vvjncpmyhtxgdmv\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"wkfefbcyjr\"},{\"protocol\":\"Responses\",\"version\":\"eebu\"}],\"agents\":[{\"agentVersion\":\"m\",\"agentId\":\"aezktomsgoihlqw\",\"agentName\":\"waazbaeeek\"},{\"agentVersion\":\"t\",\"agentId\":\"ab\",\"agentName\":\"btownoljdkx\"},{\"agentVersion\":\"ewy\",\"agentId\":\"lclzxkrdpuy\",\"agentName\":\"bpkrpk\"}],\"provisioningState\":\"Succeeded\",\"description\":\"poenefnoafpcnrxi\",\"tags\":{\"vhufc\":\"o\",\"ozfrfawtnnsv\":\"uajwblxph\",\"qzhluctblfehbg\":\"fajynihtibufg\"}},\"id\":\"yohrcmeqljxdum\",\"name\":\"ycxone\",\"type\":\"ldxagmdfj\"}"; + = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"lks\",\"deploymentId\":\"sutacuctihavish\",\"state\":\"Deleting\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"qququxlph\"}],\"agents\":[{\"agentVersion\":\"lexoweorocr\",\"agentId\":\"cgym\",\"agentName\":\"bqpfyrv\"},{\"agentVersion\":\"vijvwmrgcnzhr\",\"agentId\":\"cxfmbzquuutqmhb\",\"agentName\":\"yzycgcmbkygv\"},{\"agentVersion\":\"dqosxzmdzly\",\"agentId\":\"fufkekzfk\",\"agentName\":\"xh\"},{\"agentVersion\":\"vmnkgghvsryjok\",\"agentId\":\"wvb\",\"agentName\":\"arxsvmfpabw\"}],\"provisioningState\":\"Failed\",\"description\":\"fgqpud\",\"tags\":{\"x\":\"gieabbf\",\"gsnuhwy\":\"avlozu\",\"skemqqerw\":\"jsfmaxcebnbe\"}},\"id\":\"pjpvemdfkhttu\",\"name\":\"brxz\",\"type\":\"hyt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentDeployment response = manager.agentDeployments() - .getWithResponse("usdmtxq", "ef", "oheywvfopky", "lreyenjpwdm", "fwtwrsvevc", + .getWithResponse("tcqxmyvkxixypavi", "jczgohv", "suwichmxczbyfkoc", "mzdctsnlwscrngt", "gxrolw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("poenefnoafpcnrxi", response.properties().description()); - Assertions.assertEquals("o", response.properties().tags().get("vhufc")); - Assertions.assertEquals("qswxhqhgkhtbzvul", response.properties().displayName()); - Assertions.assertEquals("vvjncpmyhtxgdmv", response.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.UPDATING, response.properties().state()); - Assertions.assertEquals(AgentProtocol.AGENT, response.properties().protocols().get(0).protocol()); - Assertions.assertEquals("wkfefbcyjr", response.properties().protocols().get(0).version()); - Assertions.assertEquals("aezktomsgoihlqw", response.properties().agents().get(0).agentId()); - Assertions.assertEquals("waazbaeeek", response.properties().agents().get(0).agentName()); - Assertions.assertEquals("m", response.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("fgqpud", response.properties().description()); + Assertions.assertEquals("gieabbf", response.properties().tags().get("x")); + Assertions.assertEquals("lks", response.properties().displayName()); + Assertions.assertEquals("sutacuctihavish", response.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETING, response.properties().state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, response.properties().protocols().get(0).protocol()); + Assertions.assertEquals("qququxlph", response.properties().protocols().get(0).version()); + Assertions.assertEquals("cgym", response.properties().agents().get(0).agentId()); + Assertions.assertEquals("bqpfyrv", response.properties().agents().get(0).agentName()); + Assertions.assertEquals("lexoweorocr", response.properties().agents().get(0).agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java index 8054a42df58e..4ce29562986b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java @@ -25,7 +25,7 @@ public final class AgentDeploymentsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"od\",\"deploymentId\":\"ovnlhrwya\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"xsvdeatjiobnirg\"},{\"protocol\":\"Responses\",\"version\":\"qdnwtgntimznupbm\"},{\"protocol\":\"Responses\",\"version\":\"tkodsqvhedaakg\"},{\"protocol\":\"Agent\",\"version\":\"mmm\"}],\"agents\":[{\"agentVersion\":\"hdgdiwmlgstmfet\",\"agentId\":\"isjmo\",\"agentName\":\"caqfkakh\"},{\"agentVersion\":\"rvty\",\"agentId\":\"vytvjejq\",\"agentName\":\"fu\"},{\"agentVersion\":\"pfzxkczbdypbbim\",\"agentId\":\"bozvo\",\"agentName\":\"tclnh\"}],\"provisioningState\":\"Creating\",\"description\":\"uzlybqs\",\"tags\":{\"awvcnviulbylmg\":\"vylkvckcafnwq\",\"bgumwhmxpuckns\":\"zrycw\",\"lpsm\":\"s\"}},\"id\":\"micttrvl\",\"name\":\"vjmxokxxamq\",\"type\":\"cjrzvlcivqx\"}]}"; + = "{\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"uwozfvz\",\"deploymentId\":\"upcvq\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"hcmcgm\"}],\"agents\":[{\"agentVersion\":\"vqxuyiarznhdqse\",\"agentId\":\"dlmajpuyxo\",\"agentName\":\"rmzgccynb\"},{\"agentVersion\":\"msiehedmmvoneeyr\",\"agentId\":\"a\",\"agentName\":\"tzayqw\"},{\"agentVersion\":\"igeblsp\",\"agentId\":\"d\",\"agentName\":\"iwwveeozbjk\"},{\"agentVersion\":\"p\",\"agentId\":\"dnuehxwltssjdywb\",\"agentName\":\"lgerxactsawvxci\"}],\"provisioningState\":\"Failed\",\"description\":\"jrmplzmsl\",\"tags\":{\"lfswarmybwmro\":\"knyfuysjhvrr\"}},\"id\":\"eysyqnipehfwwcbf\",\"name\":\"xia\",\"type\":\"uvjucfjisosfzlnr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,21 +35,20 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.agentDeployments() - .list("cngkwxjsjqu", "ohufzdtsrpjuvgz", "crzhnsbylg", "gbhuqczou", 1382619109, "bfulvcx", - Arrays.asList("xoqwbztilqbzbwbg"), "zhbhfl", true, com.azure.core.util.Context.NONE); + .list("bjkjge", "cwtfmabvbmn", "twofxfmhlvy", "nslbqr", 1078631113, "qkie", Arrays.asList("jgqqrugwesps"), + "vsms", true, com.azure.core.util.Context.NONE); - Assertions.assertEquals("uzlybqs", response.iterator().next().properties().description()); - Assertions.assertEquals("vylkvckcafnwq", response.iterator().next().properties().tags().get("awvcnviulbylmg")); - Assertions.assertEquals("od", response.iterator().next().properties().displayName()); - Assertions.assertEquals("ovnlhrwya", response.iterator().next().properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.UPDATING, response.iterator().next().properties().state()); - Assertions.assertEquals(AgentProtocol.AGENT, + Assertions.assertEquals("jrmplzmsl", response.iterator().next().properties().description()); + Assertions.assertEquals("knyfuysjhvrr", response.iterator().next().properties().tags().get("lfswarmybwmro")); + Assertions.assertEquals("uwozfvz", response.iterator().next().properties().displayName()); + Assertions.assertEquals("upcvq", response.iterator().next().properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STOPPING, response.iterator().next().properties().state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, response.iterator().next().properties().protocols().get(0).protocol()); - Assertions.assertEquals("xsvdeatjiobnirg", - response.iterator().next().properties().protocols().get(0).version()); - Assertions.assertEquals("isjmo", response.iterator().next().properties().agents().get(0).agentId()); - Assertions.assertEquals("caqfkakh", response.iterator().next().properties().agents().get(0).agentName()); - Assertions.assertEquals("hdgdiwmlgstmfet", + Assertions.assertEquals("hcmcgm", response.iterator().next().properties().protocols().get(0).version()); + Assertions.assertEquals("dlmajpuyxo", response.iterator().next().properties().agents().get(0).agentId()); + Assertions.assertEquals("rmzgccynb", response.iterator().next().properties().agents().get(0).agentName()); + Assertions.assertEquals("vqxuyiarznhdqse", response.iterator().next().properties().agents().get(0).agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartWithResponseMockTests.java index c0e9d8eece49..4e125b7f76a6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testStartWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentDeployments() - .startWithResponse("emklphx", "wwlojkbgnf", "rzjv", "sunhaevlah", "czywywuahwc", + .startWithResponse("xnfyzgu", "xfh", "jixgofqdqws", "mihuvrqp", "xdoicqpkntly", com.azure.core.util.Context.NONE); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java index 64370d789ecd..5b1e8a931d98 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testStopWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentDeployments() - .stopWithResponse("rewcnnaaxqjfda", "rfgimomggewdqbxe", "fyznvussuqksl", "sfx", "yzqbye", + .stopWithResponse("prpensbmz", "ritukoym", "bfex", "izzjxwj", "qfzwanduhduw", com.azure.core.util.Context.NONE); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentHostingConfigurationTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentHostingConfigurationTests.java new file mode 100644 index 000000000000..bff7d99df2b9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentHostingConfigurationTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.AgentHostingConfiguration; +import org.junit.jupiter.api.Assertions; + +public final class AgentHostingConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AgentHostingConfiguration model + = BinaryData.fromString("{\"hostingType\":\"AgentHostingConfiguration\",\"name\":\"i\"}") + .toObject(AgentHostingConfiguration.class); + Assertions.assertEquals("i", model.name()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + AgentHostingConfiguration model = new AgentHostingConfiguration().withName("i"); + model = BinaryData.fromObject(model).toObject(AgentHostingConfiguration.class); + Assertions.assertEquals("i", model.name()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentProtocolVersionTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentProtocolVersionTests.java index ed61606f144e..d0031f521a97 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentProtocolVersionTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentProtocolVersionTests.java @@ -12,18 +12,18 @@ public final class AgentProtocolVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AgentProtocolVersion model = BinaryData.fromString("{\"protocol\":\"Responses\",\"version\":\"ryeyngjgv\"}") + AgentProtocolVersion model = BinaryData.fromString("{\"protocol\":\"A2A\",\"version\":\"yanxkvvcs\"}") .toObject(AgentProtocolVersion.class); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocol()); - Assertions.assertEquals("ryeyngjgv", model.version()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocol()); + Assertions.assertEquals("yanxkvvcs", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentProtocolVersion model - = new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("ryeyngjgv"); + = new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("yanxkvvcs"); model = BinaryData.fromObject(model).toObject(AgentProtocolVersion.class); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocol()); - Assertions.assertEquals("ryeyngjgv", model.version()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocol()); + Assertions.assertEquals("yanxkvvcs", model.version()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java index be67a63039dd..68e98df792bd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java @@ -12,18 +12,18 @@ public final class AgentReferencePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentReferenceProperties model - = BinaryData.fromString("{\"agentId\":\"qejpmvssehaepwa\",\"agentName\":\"xtczhupeuknijd\"}") + = BinaryData.fromString("{\"agentId\":\"uatbwbqamteuliy\",\"agentName\":\"pkcvmwf\"}") .toObject(AgentReferenceProperties.class); - Assertions.assertEquals("qejpmvssehaepwa", model.agentId()); - Assertions.assertEquals("xtczhupeuknijd", model.agentName()); + Assertions.assertEquals("uatbwbqamteuliy", model.agentId()); + Assertions.assertEquals("pkcvmwf", model.agentName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentReferenceProperties model - = new AgentReferenceProperties().withAgentId("qejpmvssehaepwa").withAgentName("xtczhupeuknijd"); + = new AgentReferenceProperties().withAgentId("uatbwbqamteuliy").withAgentName("pkcvmwf"); model = BinaryData.fromObject(model).toObject(AgentReferenceProperties.class); - Assertions.assertEquals("qejpmvssehaepwa", model.agentId()); - Assertions.assertEquals("xtczhupeuknijd", model.agentName()); + Assertions.assertEquals("uatbwbqamteuliy", model.agentId()); + Assertions.assertEquals("pkcvmwf", model.agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java index 5eb78ed43f4b..ccbf266555a4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java @@ -12,10 +12,10 @@ public final class AgentReferenceResourceArmPaginatedResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentReferenceResourceArmPaginatedResultInner model = BinaryData.fromString( - "{\"nextLink\":\"jkgqxnhmbkez\",\"value\":[{\"properties\":{\"agentId\":\"jvaannggiycwkd\",\"agentName\":\"awxwfek\"},\"id\":\"mrrqmbzmqkratb\",\"name\":\"xwbjs\",\"type\":\"dbirkfpksokdgo\"},{\"properties\":{\"agentId\":\"wijymr\",\"agentName\":\"guzozkyew\"},\"id\":\"nzhhhqos\",\"name\":\"ffjkutycyarnroo\",\"type\":\"g\"}]}") + "{\"nextLink\":\"yzeyuubeid\",\"value\":[{\"properties\":{\"agentId\":\"ytoithgygvfl\",\"agentName\":\"vdihoynkrx\"},\"id\":\"twk\",\"name\":\"rcyrucpcunnu\",\"type\":\"dqumoenodnai\"}]}") .toObject(AgentReferenceResourceArmPaginatedResultInner.class); - Assertions.assertEquals("jkgqxnhmbkez", model.nextLink()); - Assertions.assertEquals("jvaannggiycwkd", model.value().get(0).properties().agentId()); - Assertions.assertEquals("awxwfek", model.value().get(0).properties().agentName()); + Assertions.assertEquals("yzeyuubeid", model.nextLink()); + Assertions.assertEquals("ytoithgygvfl", model.value().get(0).properties().agentId()); + Assertions.assertEquals("vdihoynkrx", model.value().get(0).properties().agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java index 6e8691651ece..2d016503997a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java @@ -12,9 +12,9 @@ public final class AgentReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentReference model = BinaryData.fromString( - "{\"properties\":{\"agentId\":\"bzog\",\"agentName\":\"t\"},\"id\":\"yczhco\",\"name\":\"ocnhzqrottjzcfyj\",\"type\":\"pt\"}") + "{\"properties\":{\"agentId\":\"hqhsknd\",\"agentName\":\"lqkaadlknwf\"},\"id\":\"nniyopetxi\",\"name\":\"cnrly\",\"type\":\"nucaephblkwqpat\"}") .toObject(AgentReference.class); - Assertions.assertEquals("bzog", model.properties().agentId()); - Assertions.assertEquals("t", model.properties().agentName()); + Assertions.assertEquals("hqhsknd", model.properties().agentId()); + Assertions.assertEquals("lqkaadlknwf", model.properties().agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java index 05f6a0f4692c..749dc3d72cb5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java @@ -15,13 +15,13 @@ public final class ApplicationTrafficRoutingPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTrafficRoutingPolicy model = BinaryData.fromString( - "{\"protocol\":\"FixedRatio\",\"rules\":[{\"ruleId\":\"bhgau\",\"description\":\"dixmxufrsryjq\",\"deploymentId\":\"kfnozoeoqbvj\",\"trafficPercentage\":264605971},{\"ruleId\":\"gwbmqj\",\"description\":\"ntasfaymxbu\",\"deploymentId\":\"zealbmqkyo\",\"trafficPercentage\":1976793148},{\"ruleId\":\"fkmbtsuahxsgxj\",\"description\":\"mzrrscubiwsdrn\",\"deploymentId\":\"qwodiffjx\",\"trafficPercentage\":891955631}]}") + "{\"protocol\":\"FixedRatio\",\"rules\":[{\"ruleId\":\"qwixvcpwnk\",\"description\":\"wzwofalickduo\",\"deploymentId\":\"tamtyv\",\"trafficPercentage\":384634481},{\"ruleId\":\"rwzawnvs\",\"description\":\"fhzag\",\"deploymentId\":\"vhycvdimwrzregzg\",\"trafficPercentage\":1808851477},{\"ruleId\":\"trwpw\",\"description\":\"ye\",\"deploymentId\":\"kdhmeottawjyosx\",\"trafficPercentage\":1246274609},{\"ruleId\":\"h\",\"description\":\"fv\",\"deploymentId\":\"dpmiljpn\",\"trafficPercentage\":1686524732}]}") .toObject(ApplicationTrafficRoutingPolicy.class); Assertions.assertEquals(TrafficRoutingProtocol.FIXED_RATIO, model.protocol()); - Assertions.assertEquals("bhgau", model.rules().get(0).ruleId()); - Assertions.assertEquals("dixmxufrsryjq", model.rules().get(0).description()); - Assertions.assertEquals("kfnozoeoqbvj", model.rules().get(0).deploymentId()); - Assertions.assertEquals(264605971, model.rules().get(0).trafficPercentage()); + Assertions.assertEquals("qwixvcpwnk", model.rules().get(0).ruleId()); + Assertions.assertEquals("wzwofalickduo", model.rules().get(0).description()); + Assertions.assertEquals("tamtyv", model.rules().get(0).deploymentId()); + Assertions.assertEquals(384634481, model.rules().get(0).trafficPercentage()); } @org.junit.jupiter.api.Test @@ -29,23 +29,27 @@ public void testSerialize() throws Exception { ApplicationTrafficRoutingPolicy model = new ApplicationTrafficRoutingPolicy().withProtocol(TrafficRoutingProtocol.FIXED_RATIO) .withRules(Arrays.asList( - new TrafficRoutingRule().withRuleId("bhgau") - .withDescription("dixmxufrsryjq") - .withDeploymentId("kfnozoeoqbvj") - .withTrafficPercentage(264605971), - new TrafficRoutingRule().withRuleId("gwbmqj") - .withDescription("ntasfaymxbu") - .withDeploymentId("zealbmqkyo") - .withTrafficPercentage(1976793148), - new TrafficRoutingRule().withRuleId("fkmbtsuahxsgxj") - .withDescription("mzrrscubiwsdrn") - .withDeploymentId("qwodiffjx") - .withTrafficPercentage(891955631))); + new TrafficRoutingRule().withRuleId("qwixvcpwnk") + .withDescription("wzwofalickduo") + .withDeploymentId("tamtyv") + .withTrafficPercentage(384634481), + new TrafficRoutingRule().withRuleId("rwzawnvs") + .withDescription("fhzag") + .withDeploymentId("vhycvdimwrzregzg") + .withTrafficPercentage(1808851477), + new TrafficRoutingRule().withRuleId("trwpw") + .withDescription("ye") + .withDeploymentId("kdhmeottawjyosx") + .withTrafficPercentage(1246274609), + new TrafficRoutingRule().withRuleId("h") + .withDescription("fv") + .withDeploymentId("dpmiljpn") + .withTrafficPercentage(1686524732))); model = BinaryData.fromObject(model).toObject(ApplicationTrafficRoutingPolicy.class); Assertions.assertEquals(TrafficRoutingProtocol.FIXED_RATIO, model.protocol()); - Assertions.assertEquals("bhgau", model.rules().get(0).ruleId()); - Assertions.assertEquals("dixmxufrsryjq", model.rules().get(0).description()); - Assertions.assertEquals("kfnozoeoqbvj", model.rules().get(0).deploymentId()); - Assertions.assertEquals(264605971, model.rules().get(0).trafficPercentage()); + Assertions.assertEquals("qwixvcpwnk", model.rules().get(0).ruleId()); + Assertions.assertEquals("wzwofalickduo", model.rules().get(0).description()); + Assertions.assertEquals("tamtyv", model.rules().get(0).deploymentId()); + Assertions.assertEquals(384634481, model.rules().get(0).trafficPercentage()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentCpuMemoryResourceRequirementsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentCpuMemoryResourceRequirementsTests.java new file mode 100644 index 000000000000..e29478af6539 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentCpuMemoryResourceRequirementsTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentCpuMemoryResourceRequirementsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentCpuMemoryResourceRequirements model + = BinaryData.fromString("{\"cpu\":\"brnnhjxsqw\",\"memory\":\"hqkb\"}") + .toObject(ArcDeploymentCpuMemoryResourceRequirements.class); + Assertions.assertEquals("brnnhjxsqw", model.cpu()); + Assertions.assertEquals("hqkb", model.memory()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentCpuMemoryResourceRequirements model + = new ArcDeploymentCpuMemoryResourceRequirements().withCpu("brnnhjxsqw").withMemory("hqkb"); + model = BinaryData.fromObject(model).toObject(ArcDeploymentCpuMemoryResourceRequirements.class); + Assertions.assertEquals("brnnhjxsqw", model.cpu()); + Assertions.assertEquals("hqkb", model.memory()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentInnerTests.java new file mode 100644 index 000000000000..847496201329 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentInnerTests.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ArcDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentInner model = BinaryData.fromString( + "{\"properties\":{\"model\":{\"format\":\"kwiswskukjtas\",\"name\":\"vwisp\"},\"extensionId\":\"xkdtxfkndlqvtwkn\",\"runtime\":\"vllm\",\"compute\":\"cpu\",\"deploymentTemplate\":\"bugtywatmqa\",\"vllmParameters\":{\"tensorParallelSize\":783807092,\"maxModelLen\":1683033093,\"gpuMemoryUtilization\":60.073463,\"enforceEager\":true},\"replicas\":98605712,\"resources\":{\"requests\":{\"cpu\":\"oygzcbyfqxkfao\",\"memory\":\"tehqpuvjmvq\"},\"limits\":{\"cpu\":\"wckygr\",\"memory\":\"jn\",\"gpu\":1138069123}},\"nodeSelector\":{\"ceysfaqeg\":\"juskbrreqyn\"},\"deploymentState\":\"Running\",\"raiPolicyName\":\"ysh\",\"provisioningState\":\"Canceled\",\"provisioningDetails\":{\"message\":\"bxgkqusy\",\"lastOperationTimestamp\":\"2020-12-26T05:36:32Z\"},\"inferenceEndpoint\":\"dacarvvlfnty\",\"capabilities\":{\"lsxkd\":\"oiwenazerohzrsq\"}},\"sku\":{\"name\":\"Arc\"},\"etag\":\"apfgsdpcvessm\",\"id\":\"h\",\"name\":\"uuipldq\",\"type\":\"ctekval\"}") + .toObject(ArcDeploymentInner.class); + Assertions.assertEquals("kwiswskukjtas", model.properties().model().format()); + Assertions.assertEquals("vwisp", model.properties().model().name()); + Assertions.assertEquals("xkdtxfkndlqvtwkn", model.properties().extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.VLLM, model.properties().runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.CPU, model.properties().compute()); + Assertions.assertEquals("bugtywatmqa", model.properties().deploymentTemplate()); + Assertions.assertEquals(98605712, model.properties().replicas()); + Assertions.assertEquals("oygzcbyfqxkfao", model.properties().resources().requests().cpu()); + Assertions.assertEquals("tehqpuvjmvq", model.properties().resources().requests().memory()); + Assertions.assertEquals("wckygr", model.properties().resources().limits().cpu()); + Assertions.assertEquals("jn", model.properties().resources().limits().memory()); + Assertions.assertEquals(1138069123, model.properties().resources().limits().gpu()); + Assertions.assertEquals("juskbrreqyn", model.properties().nodeSelector().get("ceysfaqeg")); + Assertions.assertEquals(DeploymentState.RUNNING, model.properties().deploymentState()); + Assertions.assertEquals("ysh", model.properties().raiPolicyName()); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, model.sku().name()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentInner model = new ArcDeploymentInner().withProperties(new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("kwiswskukjtas").withName("vwisp")) + .withExtensionId("xkdtxfkndlqvtwkn") + .withRuntime(ArcDeploymentRuntime.VLLM) + .withCompute(ArcDeploymentComputeType.CPU) + .withDeploymentTemplate("bugtywatmqa") + .withReplicas(98605712) + .withResources(new ArcDeploymentKubernetesResources() + .withRequests(new ArcDeploymentCpuMemoryResourceRequirements().withCpu("oygzcbyfqxkfao") + .withMemory("tehqpuvjmvq")) + .withLimits( + new ArcDeploymentResourceRequirements().withCpu("wckygr").withMemory("jn").withGpu(1138069123))) + .withNodeSelector(mapOf("ceysfaqeg", "juskbrreqyn")) + .withDeploymentState(DeploymentState.RUNNING) + .withRaiPolicyName("ysh")).withSku(new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC)); + model = BinaryData.fromObject(model).toObject(ArcDeploymentInner.class); + Assertions.assertEquals("kwiswskukjtas", model.properties().model().format()); + Assertions.assertEquals("vwisp", model.properties().model().name()); + Assertions.assertEquals("xkdtxfkndlqvtwkn", model.properties().extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.VLLM, model.properties().runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.CPU, model.properties().compute()); + Assertions.assertEquals("bugtywatmqa", model.properties().deploymentTemplate()); + Assertions.assertEquals(98605712, model.properties().replicas()); + Assertions.assertEquals("oygzcbyfqxkfao", model.properties().resources().requests().cpu()); + Assertions.assertEquals("tehqpuvjmvq", model.properties().resources().requests().memory()); + Assertions.assertEquals("wckygr", model.properties().resources().limits().cpu()); + Assertions.assertEquals("jn", model.properties().resources().limits().memory()); + Assertions.assertEquals(1138069123, model.properties().resources().limits().gpu()); + Assertions.assertEquals("juskbrreqyn", model.properties().nodeSelector().get("ceysfaqeg")); + Assertions.assertEquals(DeploymentState.RUNNING, model.properties().deploymentState()); + Assertions.assertEquals("ysh", model.properties().raiPolicyName()); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, model.sku().name()); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentKubernetesResourcesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentKubernetesResourcesTests.java new file mode 100644 index 000000000000..2eee1bc0cddd --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentKubernetesResourcesTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentKubernetesResourcesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentKubernetesResources model = BinaryData.fromString( + "{\"requests\":{\"cpu\":\"yay\",\"memory\":\"mmfz\"},\"limits\":{\"cpu\":\"wxrzxmdewsrsxkrp\",\"memory\":\"jazejwwviyoyp\",\"gpu\":2055673505}}") + .toObject(ArcDeploymentKubernetesResources.class); + Assertions.assertEquals("yay", model.requests().cpu()); + Assertions.assertEquals("mmfz", model.requests().memory()); + Assertions.assertEquals("wxrzxmdewsrsxkrp", model.limits().cpu()); + Assertions.assertEquals("jazejwwviyoyp", model.limits().memory()); + Assertions.assertEquals(2055673505, model.limits().gpu()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentKubernetesResources model = new ArcDeploymentKubernetesResources() + .withRequests(new ArcDeploymentCpuMemoryResourceRequirements().withCpu("yay").withMemory("mmfz")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("wxrzxmdewsrsxkrp") + .withMemory("jazejwwviyoyp") + .withGpu(2055673505)); + model = BinaryData.fromObject(model).toObject(ArcDeploymentKubernetesResources.class); + Assertions.assertEquals("yay", model.requests().cpu()); + Assertions.assertEquals("mmfz", model.requests().memory()); + Assertions.assertEquals("wxrzxmdewsrsxkrp", model.limits().cpu()); + Assertions.assertEquals("jazejwwviyoyp", model.limits().memory()); + Assertions.assertEquals(2055673505, model.limits().gpu()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentListResultTests.java new file mode 100644 index 000000000000..e162aa88ef71 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.implementation.models.ArcDeploymentListResult; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentListResult model = BinaryData.fromString( + "{\"nextLink\":\"gzv\",\"value\":[{\"properties\":{\"model\":{\"format\":\"ij\",\"name\":\"kzuqnwsith\"},\"extensionId\":\"q\",\"runtime\":\"vllm\",\"compute\":\"cpu\",\"deploymentTemplate\":\"hluqwquls\",\"vllmParameters\":{\"tensorParallelSize\":342595066,\"maxModelLen\":456770215,\"gpuMemoryUtilization\":95.208206,\"enforceEager\":true},\"replicas\":1990714971,\"resources\":{\"requests\":{\"cpu\":\"qezv\",\"memory\":\"qugdrftbcvexreuq\"},\"limits\":{\"cpu\":\"tljvfwhreagkhyx\",\"memory\":\"qtvbczsu\",\"gpu\":588050684}},\"nodeSelector\":{\"eykgsangpszngaf\":\"lmepjpf\",\"lkvec\":\"g\"},\"deploymentState\":\"Paused\",\"raiPolicyName\":\"ngoadyedmzr\",\"provisioningState\":\"ResolvingDNS\",\"provisioningDetails\":{\"message\":\"nub\",\"lastOperationTimestamp\":\"2021-11-26T00:13:36Z\"},\"inferenceEndpoint\":\"pkpztrg\",\"capabilities\":{\"we\":\"vcoqraswugyxpqi\"}},\"sku\":{\"name\":\"Arc\"},\"etag\":\"wvskbuhzacaqtylt\",\"id\":\"qcujpd\",\"name\":\"xzak\",\"type\":\"ejkm\"}]}") + .toObject(ArcDeploymentListResult.class); + Assertions.assertEquals("gzv", model.nextLink()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentModelTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentModelTests.java new file mode 100644 index 000000000000..f6eb95d871e9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentModelTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentModelTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentModel model + = BinaryData.fromString("{\"format\":\"bpkuwxeoio\",\"name\":\"fiz\"}").toObject(ArcDeploymentModel.class); + Assertions.assertEquals("bpkuwxeoio", model.format()); + Assertions.assertEquals("fiz", model.name()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentModel model = new ArcDeploymentModel().withFormat("bpkuwxeoio").withName("fiz"); + model = BinaryData.fromObject(model).toObject(ArcDeploymentModel.class); + Assertions.assertEquals("bpkuwxeoio", model.format()); + Assertions.assertEquals("fiz", model.name()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPatchCpuMemoryResourceRequirementsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPatchCpuMemoryResourceRequirementsTests.java new file mode 100644 index 000000000000..f688345873dd --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPatchCpuMemoryResourceRequirementsTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentPatchCpuMemoryResourceRequirementsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentPatchCpuMemoryResourceRequirements model + = BinaryData.fromString("{\"cpu\":\"jascowvfdjkpd\",\"memory\":\"hlkks\"}") + .toObject(ArcDeploymentPatchCpuMemoryResourceRequirements.class); + Assertions.assertEquals("jascowvfdjkpd", model.cpu()); + Assertions.assertEquals("hlkks", model.memory()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentPatchCpuMemoryResourceRequirements model + = new ArcDeploymentPatchCpuMemoryResourceRequirements().withCpu("jascowvfdjkpd").withMemory("hlkks"); + model = BinaryData.fromObject(model).toObject(ArcDeploymentPatchCpuMemoryResourceRequirements.class); + Assertions.assertEquals("jascowvfdjkpd", model.cpu()); + Assertions.assertEquals("hlkks", model.memory()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPatchKubernetesResourcesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPatchKubernetesResourcesTests.java new file mode 100644 index 000000000000..1f94670e5206 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPatchKubernetesResourcesTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentPatchKubernetesResourcesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentPatchKubernetesResources model = BinaryData.fromString( + "{\"requests\":{\"cpu\":\"knlccrmmkyup\",\"memory\":\"ubyqj\"},\"limits\":{\"cpu\":\"kfq\",\"memory\":\"kemyil\",\"gpu\":1066286485}}") + .toObject(ArcDeploymentPatchKubernetesResources.class); + Assertions.assertEquals("knlccrmmkyup", model.requests().cpu()); + Assertions.assertEquals("ubyqj", model.requests().memory()); + Assertions.assertEquals("kfq", model.limits().cpu()); + Assertions.assertEquals("kemyil", model.limits().memory()); + Assertions.assertEquals(1066286485, model.limits().gpu()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentPatchKubernetesResources model = new ArcDeploymentPatchKubernetesResources() + .withRequests( + new ArcDeploymentPatchCpuMemoryResourceRequirements().withCpu("knlccrmmkyup").withMemory("ubyqj")) + .withLimits( + new ArcDeploymentResourceRequirements().withCpu("kfq").withMemory("kemyil").withGpu(1066286485)); + model = BinaryData.fromObject(model).toObject(ArcDeploymentPatchKubernetesResources.class); + Assertions.assertEquals("knlccrmmkyup", model.requests().cpu()); + Assertions.assertEquals("ubyqj", model.requests().memory()); + Assertions.assertEquals("kfq", model.limits().cpu()); + Assertions.assertEquals("kemyil", model.limits().memory()); + Assertions.assertEquals(1066286485, model.limits().gpu()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPropertiesTests.java new file mode 100644 index 000000000000..c6d276be78bb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentPropertiesTests.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentProperties model = BinaryData.fromString( + "{\"model\":{\"format\":\"l\",\"name\":\"tjqvqyvweht\"},\"extensionId\":\"emxhzzy\",\"runtime\":\"vllm\",\"compute\":\"gpu\",\"deploymentTemplate\":\"sxivzrrryvei\",\"vllmParameters\":{\"tensorParallelSize\":346536506,\"maxModelLen\":682586629,\"gpuMemoryUtilization\":56.047173,\"enforceEager\":false},\"replicas\":1347350770,\"resources\":{\"requests\":{\"cpu\":\"uzkaftjvvruxwi\",\"memory\":\"syeipqd\"},\"limits\":{\"cpu\":\"tgrqgdgkkile\",\"memory\":\"kcsmk\",\"gpu\":1416929583}},\"nodeSelector\":{\"ygbdgwumgxdgdhpa\":\"baedorvvmqfl\",\"vjsaqwotm\":\"gdexjd\",\"xaptefhexcgjok\":\"wllcolsr\"},\"deploymentState\":\"Paused\",\"raiPolicyName\":\"hv\",\"provisioningState\":\"Accepted\",\"provisioningDetails\":{\"message\":\"kpeeksnbksdqhj\",\"lastOperationTimestamp\":\"2021-06-27T10:41:24Z\"},\"inferenceEndpoint\":\"xeslkhhustcpoqm\",\"capabilities\":{\"lejjjkxy\":\"wqjwgok\",\"kjbztensvkzykj\":\"wfd\",\"hcdpkupnqrmgj\":\"jknsxfwu\"}}") + .toObject(ArcDeploymentProperties.class); + Assertions.assertEquals("l", model.model().format()); + Assertions.assertEquals("tjqvqyvweht", model.model().name()); + Assertions.assertEquals("emxhzzy", model.extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.VLLM, model.runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.GPU, model.compute()); + Assertions.assertEquals("sxivzrrryvei", model.deploymentTemplate()); + Assertions.assertEquals(1347350770, model.replicas()); + Assertions.assertEquals("uzkaftjvvruxwi", model.resources().requests().cpu()); + Assertions.assertEquals("syeipqd", model.resources().requests().memory()); + Assertions.assertEquals("tgrqgdgkkile", model.resources().limits().cpu()); + Assertions.assertEquals("kcsmk", model.resources().limits().memory()); + Assertions.assertEquals(1416929583, model.resources().limits().gpu()); + Assertions.assertEquals("baedorvvmqfl", model.nodeSelector().get("ygbdgwumgxdgdhpa")); + Assertions.assertEquals(DeploymentState.PAUSED, model.deploymentState()); + Assertions.assertEquals("hv", model.raiPolicyName()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentProperties model = new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("l").withName("tjqvqyvweht")) + .withExtensionId("emxhzzy") + .withRuntime(ArcDeploymentRuntime.VLLM) + .withCompute(ArcDeploymentComputeType.GPU) + .withDeploymentTemplate("sxivzrrryvei") + .withReplicas(1347350770) + .withResources(new ArcDeploymentKubernetesResources() + .withRequests( + new ArcDeploymentCpuMemoryResourceRequirements().withCpu("uzkaftjvvruxwi").withMemory("syeipqd")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("tgrqgdgkkile") + .withMemory("kcsmk") + .withGpu(1416929583))) + .withNodeSelector( + mapOf("ygbdgwumgxdgdhpa", "baedorvvmqfl", "vjsaqwotm", "gdexjd", "xaptefhexcgjok", "wllcolsr")) + .withDeploymentState(DeploymentState.PAUSED) + .withRaiPolicyName("hv"); + model = BinaryData.fromObject(model).toObject(ArcDeploymentProperties.class); + Assertions.assertEquals("l", model.model().format()); + Assertions.assertEquals("tjqvqyvweht", model.model().name()); + Assertions.assertEquals("emxhzzy", model.extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.VLLM, model.runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.GPU, model.compute()); + Assertions.assertEquals("sxivzrrryvei", model.deploymentTemplate()); + Assertions.assertEquals(1347350770, model.replicas()); + Assertions.assertEquals("uzkaftjvvruxwi", model.resources().requests().cpu()); + Assertions.assertEquals("syeipqd", model.resources().requests().memory()); + Assertions.assertEquals("tgrqgdgkkile", model.resources().limits().cpu()); + Assertions.assertEquals("kcsmk", model.resources().limits().memory()); + Assertions.assertEquals(1416929583, model.resources().limits().gpu()); + Assertions.assertEquals("baedorvvmqfl", model.nodeSelector().get("ygbdgwumgxdgdhpa")); + Assertions.assertEquals(DeploymentState.PAUSED, model.deploymentState()); + Assertions.assertEquals("hv", model.raiPolicyName()); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentProvisioningDetailsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentProvisioningDetailsTests.java new file mode 100644 index 000000000000..9b2739d35f4d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentProvisioningDetailsTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProvisioningDetails; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentProvisioningDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentProvisioningDetails model = BinaryData + .fromString("{\"message\":\"pziuwfbzkkdtnh\",\"lastOperationTimestamp\":\"2021-09-26T00:23:44Z\"}") + .toObject(ArcDeploymentProvisioningDetails.class); + Assertions.assertEquals("pziuwfbzkkdtnh", model.message()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-26T00:23:44Z"), model.lastOperationTimestamp()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentResourceRequirementsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentResourceRequirementsTests.java new file mode 100644 index 000000000000..8c888ac73162 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentResourceRequirementsTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentResourceRequirementsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentResourceRequirements model + = BinaryData.fromString("{\"cpu\":\"etpozycyqiq\",\"memory\":\"gfsetzlexbsfled\",\"gpu\":246722999}") + .toObject(ArcDeploymentResourceRequirements.class); + Assertions.assertEquals("etpozycyqiq", model.cpu()); + Assertions.assertEquals("gfsetzlexbsfled", model.memory()); + Assertions.assertEquals(246722999, model.gpu()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentResourceRequirements model = new ArcDeploymentResourceRequirements().withCpu("etpozycyqiq") + .withMemory("gfsetzlexbsfled") + .withGpu(246722999); + model = BinaryData.fromObject(model).toObject(ArcDeploymentResourceRequirements.class); + Assertions.assertEquals("etpozycyqiq", model.cpu()); + Assertions.assertEquals("gfsetzlexbsfled", model.memory()); + Assertions.assertEquals(246722999, model.gpu()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentSkuTests.java new file mode 100644 index 000000000000..426e37b2bfac --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentSkuTests.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.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentSkuTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentSku model = BinaryData.fromString("{\"name\":\"Arc\"}").toObject(ArcDeploymentSku.class); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, model.name()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentSku model = new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC); + model = BinaryData.fromObject(model).toObject(ArcDeploymentSku.class); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, model.name()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentUpdatePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentUpdatePropertiesTests.java new file mode 100644 index 000000000000..cb4cf6e51fb5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentUpdatePropertiesTests.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdateProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentUpdatePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentUpdateProperties model = BinaryData.fromString( + "{\"replicas\":308344292,\"resources\":{\"requests\":{\"cpu\":\"mtggmu\",\"memory\":\"ch\"},\"limits\":{\"cpu\":\"nkf\",\"memory\":\"lv\",\"gpu\":133463775}},\"nodeSelector\":{\"uyxlykwphvxzcw\":\"izvoaiknaqlnuwi\",\"vkcqhr\":\"hmpejtlkexaonw\"}}") + .toObject(ArcDeploymentUpdateProperties.class); + Assertions.assertEquals(308344292, model.replicas()); + Assertions.assertEquals("mtggmu", model.resources().requests().cpu()); + Assertions.assertEquals("ch", model.resources().requests().memory()); + Assertions.assertEquals("nkf", model.resources().limits().cpu()); + Assertions.assertEquals("lv", model.resources().limits().memory()); + Assertions.assertEquals(133463775, model.resources().limits().gpu()); + Assertions.assertEquals("izvoaiknaqlnuwi", model.nodeSelector().get("uyxlykwphvxzcw")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentUpdateProperties model = new ArcDeploymentUpdateProperties().withReplicas(308344292) + .withResources(new ArcDeploymentPatchKubernetesResources() + .withRequests(new ArcDeploymentPatchCpuMemoryResourceRequirements().withCpu("mtggmu").withMemory("ch")) + .withLimits(new ArcDeploymentResourceRequirements().withCpu("nkf").withMemory("lv").withGpu(133463775))) + .withNodeSelector(mapOf("uyxlykwphvxzcw", "izvoaiknaqlnuwi", "vkcqhr", "hmpejtlkexaonw")); + model = BinaryData.fromObject(model).toObject(ArcDeploymentUpdateProperties.class); + Assertions.assertEquals(308344292, model.replicas()); + Assertions.assertEquals("mtggmu", model.resources().requests().cpu()); + Assertions.assertEquals("ch", model.resources().requests().memory()); + Assertions.assertEquals("nkf", model.resources().limits().cpu()); + Assertions.assertEquals("lv", model.resources().limits().memory()); + Assertions.assertEquals(133463775, model.resources().limits().gpu()); + Assertions.assertEquals("izvoaiknaqlnuwi", model.nodeSelector().get("uyxlykwphvxzcw")); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentUpdateTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentUpdateTests.java new file mode 100644 index 000000000000..1609e98dc570 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentUpdateTests.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentPatchKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdate; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentUpdateProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentUpdate model = BinaryData.fromString( + "{\"properties\":{\"replicas\":149068707,\"resources\":{\"requests\":{\"cpu\":\"kpbafvafhl\",\"memory\":\"lc\"},\"limits\":{\"cpu\":\"vxrh\",\"memory\":\"d\",\"gpu\":1616798113}},\"nodeSelector\":{\"bmairrhvhfnracwn\":\"fplt\",\"grbjbxsjybvitvqk\":\"qigtuujwouhdaws\"}}}") + .toObject(ArcDeploymentUpdate.class); + Assertions.assertEquals(149068707, model.properties().replicas()); + Assertions.assertEquals("kpbafvafhl", model.properties().resources().requests().cpu()); + Assertions.assertEquals("lc", model.properties().resources().requests().memory()); + Assertions.assertEquals("vxrh", model.properties().resources().limits().cpu()); + Assertions.assertEquals("d", model.properties().resources().limits().memory()); + Assertions.assertEquals(1616798113, model.properties().resources().limits().gpu()); + Assertions.assertEquals("fplt", model.properties().nodeSelector().get("bmairrhvhfnracwn")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ArcDeploymentUpdate model + = new ArcDeploymentUpdate().withProperties(new ArcDeploymentUpdateProperties().withReplicas(149068707) + .withResources(new ArcDeploymentPatchKubernetesResources() + .withRequests( + new ArcDeploymentPatchCpuMemoryResourceRequirements().withCpu("kpbafvafhl").withMemory("lc")) + .withLimits( + new ArcDeploymentResourceRequirements().withCpu("vxrh").withMemory("d").withGpu(1616798113))) + .withNodeSelector(mapOf("bmairrhvhfnracwn", "fplt", "grbjbxsjybvitvqk", "qigtuujwouhdaws"))); + model = BinaryData.fromObject(model).toObject(ArcDeploymentUpdate.class); + Assertions.assertEquals(149068707, model.properties().replicas()); + Assertions.assertEquals("kpbafvafhl", model.properties().resources().requests().cpu()); + Assertions.assertEquals("lc", model.properties().resources().requests().memory()); + Assertions.assertEquals("vxrh", model.properties().resources().limits().cpu()); + Assertions.assertEquals("d", model.properties().resources().limits().memory()); + Assertions.assertEquals(1616798113, model.properties().resources().limits().gpu()); + Assertions.assertEquals("fplt", model.properties().nodeSelector().get("bmairrhvhfnracwn")); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentVllmParametersTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentVllmParametersTests.java new file mode 100644 index 000000000000..03a5b230fa83 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentVllmParametersTests.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.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentVllmParameters; +import org.junit.jupiter.api.Assertions; + +public final class ArcDeploymentVllmParametersTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ArcDeploymentVllmParameters model = BinaryData.fromString( + "{\"tensorParallelSize\":1229023980,\"maxModelLen\":1191862536,\"gpuMemoryUtilization\":90.277695,\"enforceEager\":true}") + .toObject(ArcDeploymentVllmParameters.class); + Assertions.assertEquals(1229023980, model.tensorParallelSize()); + Assertions.assertEquals(1191862536, model.maxModelLen()); + Assertions.assertEquals(90.277695F, model.gpuMemoryUtilization()); + Assertions.assertTrue(model.enforceEager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsCreateOrUpdateMockTests.java new file mode 100644 index 000000000000..70b43fd07d9a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsCreateOrUpdateMockTests.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentKubernetesResources; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentResourceRequirements; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSku; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ArcDeploymentsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"model\":{\"format\":\"avv\",\"name\":\"vxwve\"},\"extensionId\":\"enlrjcsmwevgu\",\"runtime\":\"onnx-genai\",\"compute\":\"gpu\",\"deploymentTemplate\":\"xelrjk\",\"vllmParameters\":{\"tensorParallelSize\":2118676021,\"maxModelLen\":1981453249,\"gpuMemoryUtilization\":70.24505,\"enforceEager\":false},\"replicas\":1599065009,\"resources\":{\"requests\":{\"cpu\":\"yfkd\",\"memory\":\"lbwqlq\"},\"limits\":{\"cpu\":\"fqbir\",\"memory\":\"bcel\",\"gpu\":80272315}},\"nodeSelector\":{\"kdv\":\"dnjyhzfax\",\"modpe\":\"el\",\"qoxzyhlbeqvhskb\":\"qxsorchaz\",\"gf\":\"pwxslaj\"},\"deploymentState\":\"Running\",\"raiPolicyName\":\"fha\",\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"uydwiurnicu\",\"lastOperationTimestamp\":\"2021-05-24T22:24:07Z\"},\"inferenceEndpoint\":\"tqmiuvjplosebm\",\"capabilities\":{\"qobfixngxebihe\":\"uqmtxynof\",\"pgup\":\"hnkingiqcdol\",\"ykcnhpplzhc\":\"jlbsmndafbncuyj\",\"rlnewnuwkkfzzetl\":\"zxjziuu\"}},\"sku\":{\"name\":\"Arc\"},\"etag\":\"yxzlv\",\"id\":\"wjvrlgqpwwlzpd\",\"name\":\"arcbcdwhslxebaja\",\"type\":\"knmstbdoprwkamp\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ArcDeployment response = manager.arcDeployments() + .define("cfferznzc") + .withExistingAccount("kiy", "qbjsdjpgxeysgw") + .withProperties(new ArcDeploymentProperties() + .withModel(new ArcDeploymentModel().withFormat("ivoveomkhfeqcoop").withName("fpohimgckycjpeeb")) + .withExtensionId("nbz") + .withRuntime(ArcDeploymentRuntime.ONNX) + .withCompute(ArcDeploymentComputeType.GPU) + .withDeploymentTemplate("loutnp") + .withReplicas(1653260262) + .withResources(new ArcDeploymentKubernetesResources() + .withRequests(new ArcDeploymentCpuMemoryResourceRequirements().withCpu("dmwk").withMemory("upf")) + .withLimits( + new ArcDeploymentResourceRequirements().withCpu("d").withMemory("zaui").withGpu(1086143371))) + .withNodeSelector(mapOf("cikswhcamwu", "dyzdsy")) + .withDeploymentState(DeploymentState.PAUSED) + .withRaiPolicyName("kcgsfcmvh")) + .withSku(new ArcDeploymentSku().withName(ArcDeploymentSkuName.ARC)) + .create(); + + Assertions.assertEquals("avv", response.properties().model().format()); + Assertions.assertEquals("vxwve", response.properties().model().name()); + Assertions.assertEquals("enlrjcsmwevgu", response.properties().extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.ONNX, response.properties().runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.GPU, response.properties().compute()); + Assertions.assertEquals("xelrjk", response.properties().deploymentTemplate()); + Assertions.assertEquals(1599065009, response.properties().replicas()); + Assertions.assertEquals("yfkd", response.properties().resources().requests().cpu()); + Assertions.assertEquals("lbwqlq", response.properties().resources().requests().memory()); + Assertions.assertEquals("fqbir", response.properties().resources().limits().cpu()); + Assertions.assertEquals("bcel", response.properties().resources().limits().memory()); + Assertions.assertEquals(80272315, response.properties().resources().limits().gpu()); + Assertions.assertEquals("dnjyhzfax", response.properties().nodeSelector().get("kdv")); + Assertions.assertEquals(DeploymentState.RUNNING, response.properties().deploymentState()); + Assertions.assertEquals("fha", response.properties().raiPolicyName()); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, response.sku().name()); + } + + // 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/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsGetWithResponseMockTests.java new file mode 100644 index 000000000000..fdc01521ea62 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsGetWithResponseMockTests.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ArcDeploymentsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"model\":{\"format\":\"swxvjelei\",\"name\":\"qhdxtwwulkryb\"},\"extensionId\":\"aevyk\",\"runtime\":\"onnx-genai\",\"compute\":\"gpu\",\"deploymentTemplate\":\"crqkwakkc\",\"vllmParameters\":{\"tensorParallelSize\":1885531635,\"maxModelLen\":296640333,\"gpuMemoryUtilization\":2.098912,\"enforceEager\":false},\"replicas\":1622415709,\"resources\":{\"requests\":{\"cpu\":\"ibsdqbdyblpe\",\"memory\":\"t\"},\"limits\":{\"cpu\":\"pgweoqhbjqlqf\",\"memory\":\"erufollcshjuc\",\"gpu\":467385506}},\"nodeSelector\":{\"jeazrahelhbimyii\":\"jjvtpnerx\",\"osizk\":\"qamcthtpqgfz\",\"xofgrutvnpccxz\":\"iuvflgzhcwjgwahc\",\"mhzghhhkvnnjdtu\":\"vx\"},\"deploymentState\":\"Running\",\"raiPolicyName\":\"hnjvpmxnhtmzstql\",\"provisioningState\":\"Failed\",\"provisioningDetails\":{\"message\":\"wvtlgxy\",\"lastOperationTimestamp\":\"2021-10-19T13:07:53Z\"},\"inferenceEndpoint\":\"equ\",\"capabilities\":{\"ubotbvufrkw\":\"yyopoaytwwgw\",\"owewjskr\":\"iemimdtn\",\"p\":\"eedddrftfquu\",\"igeeuwbr\":\"lhs\"}},\"sku\":{\"name\":\"Arc\"},\"etag\":\"xfedqnetdqw\",\"id\":\"xoqgvbzpggpw\",\"name\":\"eyobqaj\",\"type\":\"jirvavrvkgpo\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ArcDeployment response = manager.arcDeployments() + .getWithResponse("vyvuoikdlpsx", "tug", "wimqnryclocfm", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("swxvjelei", response.properties().model().format()); + Assertions.assertEquals("qhdxtwwulkryb", response.properties().model().name()); + Assertions.assertEquals("aevyk", response.properties().extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.ONNX, response.properties().runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.GPU, response.properties().compute()); + Assertions.assertEquals("crqkwakkc", response.properties().deploymentTemplate()); + Assertions.assertEquals(1622415709, response.properties().replicas()); + Assertions.assertEquals("ibsdqbdyblpe", response.properties().resources().requests().cpu()); + Assertions.assertEquals("t", response.properties().resources().requests().memory()); + Assertions.assertEquals("pgweoqhbjqlqf", response.properties().resources().limits().cpu()); + Assertions.assertEquals("erufollcshjuc", response.properties().resources().limits().memory()); + Assertions.assertEquals(467385506, response.properties().resources().limits().gpu()); + Assertions.assertEquals("jjvtpnerx", response.properties().nodeSelector().get("jeazrahelhbimyii")); + Assertions.assertEquals(DeploymentState.RUNNING, response.properties().deploymentState()); + Assertions.assertEquals("hnjvpmxnhtmzstql", response.properties().raiPolicyName()); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, response.sku().name()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsListMockTests.java new file mode 100644 index 000000000000..51d62185d1e1 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ArcDeploymentsListMockTests.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentComputeType; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentRuntime; +import com.azure.resourcemanager.cognitiveservices.models.ArcDeploymentSkuName; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ArcDeploymentsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"model\":{\"format\":\"epqmjmoplukfykk\",\"name\":\"hsovadkrmj\"},\"extensionId\":\"mwqpdkesjqbzkqm\",\"runtime\":\"onnx-genai\",\"compute\":\"cpu\",\"deploymentTemplate\":\"riwbwggij\",\"vllmParameters\":{\"tensorParallelSize\":654093679,\"maxModelLen\":665702563,\"gpuMemoryUtilization\":81.03699,\"enforceEager\":true},\"replicas\":1255377388,\"resources\":{\"requests\":{\"cpu\":\"sbzrhdugquhtrgzf\",\"memory\":\"unjf\"},\"limits\":{\"cpu\":\"hiycbause\",\"memory\":\"czkvihvtuw\",\"gpu\":1287551818}},\"nodeSelector\":{\"wwunqhc\":\"zszoszjgzunkfnys\",\"slhip\":\"avoj\",\"vchyluqalpcufj\":\"ukvbljpxpr\",\"tiztqds\":\"f\"},\"deploymentState\":\"Running\",\"raiPolicyName\":\"hs\",\"provisioningState\":\"Canceled\",\"provisioningDetails\":{\"message\":\"ritrcwb\",\"lastOperationTimestamp\":\"2020-12-25T06:15:34Z\"},\"inferenceEndpoint\":\"yyefmxwoqotiiqb\",\"capabilities\":{\"mtistyikjh\":\"srv\",\"pypkennycntrq\":\"rlx\",\"oxtdyqavfx\":\"xwtdmbqjtsuhqh\"}},\"sku\":{\"name\":\"Arc\"},\"etag\":\"zxsyaks\",\"id\":\"paamihwb\",\"name\":\"hvwt\",\"type\":\"pbgchcgsfzhb\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.arcDeployments().list("plbjuvlnhxnr", "jhinaegesbx", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("epqmjmoplukfykk", response.iterator().next().properties().model().format()); + Assertions.assertEquals("hsovadkrmj", response.iterator().next().properties().model().name()); + Assertions.assertEquals("mwqpdkesjqbzkqm", response.iterator().next().properties().extensionId()); + Assertions.assertEquals(ArcDeploymentRuntime.ONNX, response.iterator().next().properties().runtime()); + Assertions.assertEquals(ArcDeploymentComputeType.CPU, response.iterator().next().properties().compute()); + Assertions.assertEquals("riwbwggij", response.iterator().next().properties().deploymentTemplate()); + Assertions.assertEquals(1255377388, response.iterator().next().properties().replicas()); + Assertions.assertEquals("sbzrhdugquhtrgzf", + response.iterator().next().properties().resources().requests().cpu()); + Assertions.assertEquals("unjf", response.iterator().next().properties().resources().requests().memory()); + Assertions.assertEquals("hiycbause", response.iterator().next().properties().resources().limits().cpu()); + Assertions.assertEquals("czkvihvtuw", response.iterator().next().properties().resources().limits().memory()); + Assertions.assertEquals(1287551818, response.iterator().next().properties().resources().limits().gpu()); + Assertions.assertEquals("zszoszjgzunkfnys", + response.iterator().next().properties().nodeSelector().get("wwunqhc")); + Assertions.assertEquals(DeploymentState.RUNNING, response.iterator().next().properties().deploymentState()); + Assertions.assertEquals("hs", response.iterator().next().properties().raiPolicyName()); + Assertions.assertEquals(ArcDeploymentSkuName.ARC, response.iterator().next().sku().name()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java index 30b80d1663bf..ba1ade0e25c0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java @@ -14,30 +14,30 @@ public final class AssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AssignedIdentity model = BinaryData.fromString( - "{\"kind\":\"AgentInstance\",\"type\":\"System\",\"clientId\":\"es\",\"principalId\":\"ydjfb\",\"tenantId\":\"c\",\"subject\":\"hhulrtywikdm\",\"provisioningState\":\"Failed\"}") + "{\"kind\":\"AgentInstance\",\"type\":\"System\",\"clientId\":\"xe\",\"principalId\":\"myw\",\"tenantId\":\"ormcqmic\",\"subject\":\"jqpkzfbo\",\"provisioningState\":\"Deleting\"}") .toObject(AssignedIdentity.class); Assertions.assertEquals(IdentityKind.AGENT_INSTANCE, model.kind()); Assertions.assertEquals(IdentityManagementType.SYSTEM, model.type()); - Assertions.assertEquals("es", model.clientId()); - Assertions.assertEquals("ydjfb", model.principalId()); - Assertions.assertEquals("c", model.tenantId()); - Assertions.assertEquals("hhulrtywikdm", model.subject()); + Assertions.assertEquals("xe", model.clientId()); + Assertions.assertEquals("myw", model.principalId()); + Assertions.assertEquals("ormcqmic", model.tenantId()); + Assertions.assertEquals("jqpkzfbo", model.subject()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AssignedIdentity model = new AssignedIdentity().withKind(IdentityKind.AGENT_INSTANCE) .withType(IdentityManagementType.SYSTEM) - .withClientId("es") - .withPrincipalId("ydjfb") - .withTenantId("c") - .withSubject("hhulrtywikdm"); + .withClientId("xe") + .withPrincipalId("myw") + .withTenantId("ormcqmic") + .withSubject("jqpkzfbo"); model = BinaryData.fromObject(model).toObject(AssignedIdentity.class); Assertions.assertEquals(IdentityKind.AGENT_INSTANCE, model.kind()); Assertions.assertEquals(IdentityManagementType.SYSTEM, model.type()); - Assertions.assertEquals("es", model.clientId()); - Assertions.assertEquals("ydjfb", model.principalId()); - Assertions.assertEquals("c", model.tenantId()); - Assertions.assertEquals("hhulrtywikdm", model.subject()); + Assertions.assertEquals("xe", model.clientId()); + Assertions.assertEquals("myw", model.principalId()); + Assertions.assertEquals("ormcqmic", model.tenantId()); + Assertions.assertEquals("jqpkzfbo", model.subject()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java index 6cc8ab533cad..0e0d0237e980 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java @@ -12,10 +12,10 @@ public final class BillingMeterInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BillingMeterInfo model - = BinaryData.fromString("{\"name\":\"jljyoxgv\",\"meterId\":\"tbgsncghkj\",\"unit\":\"zz\"}") + = BinaryData.fromString("{\"name\":\"t\",\"meterId\":\"wwrq\",\"unit\":\"edckzywbiexzfey\"}") .toObject(BillingMeterInfo.class); - Assertions.assertEquals("jljyoxgv", model.name()); - Assertions.assertEquals("tbgsncghkj", model.meterId()); - Assertions.assertEquals("zz", model.unit()); + Assertions.assertEquals("t", model.name()); + Assertions.assertEquals("wwrq", model.meterId()); + Assertions.assertEquals("edckzywbiexzfey", model.unit()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java index e48c881a3e52..bd5c5f540266 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java @@ -17,41 +17,41 @@ public final class CapabilityHostInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostInner model = BinaryData.fromString( - "{\"properties\":{\"aiServicesConnections\":[\"zvbrzcdbanfzndsc\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"atkdbmwnrd\",\"provisioningState\":\"Canceled\",\"storageConnections\":[\"bnaomhjrmkuhmax\"],\"threadStorageConnections\":[\"lfihcj\",\"obcancdexxqcw\",\"a\",\"fgvaknokzwj\"],\"vectorStoreConnections\":[\"ltixldzyyfytpq\"],\"enablePublicHostingEnvironment\":false,\"description\":\"mmpuj\",\"tags\":{\"mbmslzoyov\":\"qlkjuv\",\"befgvmxn\":\"zdbpqv\"}},\"id\":\"cvtlubseskvc\",\"name\":\"artr\",\"type\":\"unlpirykycndz\"}") + "{\"properties\":{\"aiServicesConnections\":[\"ksk\",\"i\",\"bs\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"qfukpeexpgeumi\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"trdexyionofnin\",\"dbzsx\"],\"threadStorageConnections\":[\"qrs\",\"pcbbprtugav\",\"zbcyksiv\",\"fogdrtbfcm\"],\"vectorStoreConnections\":[\"tsjcwjjxs\",\"mb\"],\"enablePublicHostingEnvironment\":true,\"description\":\"fdxkecifhocjxwkl\",\"tags\":{\"xxvir\":\"rvtxvcmufunlc\",\"rquv\":\"eyngjg\"}},\"id\":\"gglpmcrdcuelj\",\"name\":\"iahxmfqryarvs\",\"type\":\"zqbglcjkays\"}") .toObject(CapabilityHostInner.class); - Assertions.assertEquals("mmpuj", model.properties().description()); - Assertions.assertEquals("qlkjuv", model.properties().tags().get("mbmslzoyov")); - Assertions.assertEquals("zvbrzcdbanfzndsc", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("fdxkecifhocjxwkl", model.properties().description()); + Assertions.assertEquals("rvtxvcmufunlc", model.properties().tags().get("xxvir")); + Assertions.assertEquals("ksk", model.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.properties().capabilityHostKind()); - Assertions.assertEquals("atkdbmwnrd", model.properties().customerSubnet()); - Assertions.assertEquals("bnaomhjrmkuhmax", model.properties().storageConnections().get(0)); - Assertions.assertEquals("lfihcj", model.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("ltixldzyyfytpq", model.properties().vectorStoreConnections().get(0)); - Assertions.assertFalse(model.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("qfukpeexpgeumi", model.properties().customerSubnet()); + Assertions.assertEquals("trdexyionofnin", model.properties().storageConnections().get(0)); + Assertions.assertEquals("qrs", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("tsjcwjjxs", model.properties().vectorStoreConnections().get(0)); + Assertions.assertTrue(model.properties().enablePublicHostingEnvironment()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapabilityHostInner model - = new CapabilityHostInner().withProperties(new CapabilityHostProperties().withDescription("mmpuj") - .withTags(mapOf("mbmslzoyov", "qlkjuv", "befgvmxn", "zdbpqv")) - .withAiServicesConnections(Arrays.asList("zvbrzcdbanfzndsc")) + CapabilityHostInner model = new CapabilityHostInner() + .withProperties(new CapabilityHostProperties().withDescription("fdxkecifhocjxwkl") + .withTags(mapOf("xxvir", "rvtxvcmufunlc", "rquv", "eyngjg")) + .withAiServicesConnections(Arrays.asList("ksk", "i", "bs")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("atkdbmwnrd") - .withStorageConnections(Arrays.asList("bnaomhjrmkuhmax")) - .withThreadStorageConnections(Arrays.asList("lfihcj", "obcancdexxqcw", "a", "fgvaknokzwj")) - .withVectorStoreConnections(Arrays.asList("ltixldzyyfytpq")) - .withEnablePublicHostingEnvironment(false)); + .withCustomerSubnet("qfukpeexpgeumi") + .withStorageConnections(Arrays.asList("trdexyionofnin", "dbzsx")) + .withThreadStorageConnections(Arrays.asList("qrs", "pcbbprtugav", "zbcyksiv", "fogdrtbfcm")) + .withVectorStoreConnections(Arrays.asList("tsjcwjjxs", "mb")) + .withEnablePublicHostingEnvironment(true)); model = BinaryData.fromObject(model).toObject(CapabilityHostInner.class); - Assertions.assertEquals("mmpuj", model.properties().description()); - Assertions.assertEquals("qlkjuv", model.properties().tags().get("mbmslzoyov")); - Assertions.assertEquals("zvbrzcdbanfzndsc", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("fdxkecifhocjxwkl", model.properties().description()); + Assertions.assertEquals("rvtxvcmufunlc", model.properties().tags().get("xxvir")); + Assertions.assertEquals("ksk", model.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.properties().capabilityHostKind()); - Assertions.assertEquals("atkdbmwnrd", model.properties().customerSubnet()); - Assertions.assertEquals("bnaomhjrmkuhmax", model.properties().storageConnections().get(0)); - Assertions.assertEquals("lfihcj", model.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("ltixldzyyfytpq", model.properties().vectorStoreConnections().get(0)); - Assertions.assertFalse(model.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("qfukpeexpgeumi", model.properties().customerSubnet()); + Assertions.assertEquals("trdexyionofnin", model.properties().storageConnections().get(0)); + Assertions.assertEquals("qrs", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("tsjcwjjxs", model.properties().vectorStoreConnections().get(0)); + Assertions.assertTrue(model.properties().enablePublicHostingEnvironment()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostPropertiesTests.java index d6b700f7b100..32299bfc2571 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostPropertiesTests.java @@ -16,40 +16,40 @@ public final class CapabilityHostPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostProperties model = BinaryData.fromString( - "{\"aiServicesConnections\":[\"vjreuykbbmnw\",\"gltbxoeeo\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"fwmyymv\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"hfckdvezcrcssbz\",\"ddubbnqfblhkal\",\"hpavawu\",\"iqjtiogqgdmin\"],\"threadStorageConnections\":[\"teajohiyg\",\"pnbonhpcz\",\"kmktpvwxqcseh\"],\"vectorStoreConnections\":[\"hufmpq\",\"mqyjgy\",\"zulo\",\"saeuzanhsfnhsenw\"],\"enablePublicHostingEnvironment\":true,\"description\":\"fngq\",\"tags\":{\"rkuorh\":\"idftujwjjufwbe\",\"tiq\":\"ssruqnmdvhazcvj\",\"ukvlb\":\"wbqerzwxiytxtd\"}}") + "{\"aiServicesConnections\":[\"zodubtlm\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"lioskkfmkmfdjx\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"kqvjcteoedlr\",\"lskkzpxvj\",\"zdpv\"],\"threadStorageConnections\":[\"jhpcn\",\"bxzfs\",\"ggytexvzilmhivz\",\"wwwncknr\"],\"vectorStoreConnections\":[\"jlskzptjxulweu\",\"yrth\",\"qlehmcgcjeinu\"],\"enablePublicHostingEnvironment\":false,\"description\":\"am\",\"tags\":{\"bqd\":\"jvqntt\",\"ysthhza\":\"bzfivfok\"}}") .toObject(CapabilityHostProperties.class); - Assertions.assertEquals("fngq", model.description()); - Assertions.assertEquals("idftujwjjufwbe", model.tags().get("rkuorh")); - Assertions.assertEquals("vjreuykbbmnw", model.aiServicesConnections().get(0)); + Assertions.assertEquals("am", model.description()); + Assertions.assertEquals("jvqntt", model.tags().get("bqd")); + Assertions.assertEquals("zodubtlm", model.aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.capabilityHostKind()); - Assertions.assertEquals("fwmyymv", model.customerSubnet()); - Assertions.assertEquals("hfckdvezcrcssbz", model.storageConnections().get(0)); - Assertions.assertEquals("teajohiyg", model.threadStorageConnections().get(0)); - Assertions.assertEquals("hufmpq", model.vectorStoreConnections().get(0)); - Assertions.assertTrue(model.enablePublicHostingEnvironment()); + Assertions.assertEquals("lioskkfmkmfdjx", model.customerSubnet()); + Assertions.assertEquals("kqvjcteoedlr", model.storageConnections().get(0)); + Assertions.assertEquals("jhpcn", model.threadStorageConnections().get(0)); + Assertions.assertEquals("jlskzptjxulweu", model.vectorStoreConnections().get(0)); + Assertions.assertFalse(model.enablePublicHostingEnvironment()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapabilityHostProperties model = new CapabilityHostProperties().withDescription("fngq") - .withTags(mapOf("rkuorh", "idftujwjjufwbe", "tiq", "ssruqnmdvhazcvj", "ukvlb", "wbqerzwxiytxtd")) - .withAiServicesConnections(Arrays.asList("vjreuykbbmnw", "gltbxoeeo")) + CapabilityHostProperties model = new CapabilityHostProperties().withDescription("am") + .withTags(mapOf("bqd", "jvqntt", "ysthhza", "bzfivfok")) + .withAiServicesConnections(Arrays.asList("zodubtlm")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("fwmyymv") - .withStorageConnections(Arrays.asList("hfckdvezcrcssbz", "ddubbnqfblhkal", "hpavawu", "iqjtiogqgdmin")) - .withThreadStorageConnections(Arrays.asList("teajohiyg", "pnbonhpcz", "kmktpvwxqcseh")) - .withVectorStoreConnections(Arrays.asList("hufmpq", "mqyjgy", "zulo", "saeuzanhsfnhsenw")) - .withEnablePublicHostingEnvironment(true); + .withCustomerSubnet("lioskkfmkmfdjx") + .withStorageConnections(Arrays.asList("kqvjcteoedlr", "lskkzpxvj", "zdpv")) + .withThreadStorageConnections(Arrays.asList("jhpcn", "bxzfs", "ggytexvzilmhivz", "wwwncknr")) + .withVectorStoreConnections(Arrays.asList("jlskzptjxulweu", "yrth", "qlehmcgcjeinu")) + .withEnablePublicHostingEnvironment(false); model = BinaryData.fromObject(model).toObject(CapabilityHostProperties.class); - Assertions.assertEquals("fngq", model.description()); - Assertions.assertEquals("idftujwjjufwbe", model.tags().get("rkuorh")); - Assertions.assertEquals("vjreuykbbmnw", model.aiServicesConnections().get(0)); + Assertions.assertEquals("am", model.description()); + Assertions.assertEquals("jvqntt", model.tags().get("bqd")); + Assertions.assertEquals("zodubtlm", model.aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.capabilityHostKind()); - Assertions.assertEquals("fwmyymv", model.customerSubnet()); - Assertions.assertEquals("hfckdvezcrcssbz", model.storageConnections().get(0)); - Assertions.assertEquals("teajohiyg", model.threadStorageConnections().get(0)); - Assertions.assertEquals("hufmpq", model.vectorStoreConnections().get(0)); - Assertions.assertTrue(model.enablePublicHostingEnvironment()); + Assertions.assertEquals("lioskkfmkmfdjx", model.customerSubnet()); + Assertions.assertEquals("kqvjcteoedlr", model.storageConnections().get(0)); + Assertions.assertEquals("jhpcn", model.threadStorageConnections().get(0)); + Assertions.assertEquals("jlskzptjxulweu", model.vectorStoreConnections().get(0)); + Assertions.assertFalse(model.enablePublicHostingEnvironment()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java index 9ff735bfa66d..a232666679c3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java @@ -13,17 +13,17 @@ public final class CapabilityHostResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"tgdstyouambe\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"moweg\",\"mut\",\"yxey\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"gijiitnspxlzd\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"ijwai\",\"fanraybfu\"],\"threadStorageConnections\":[\"rojsydg\",\"h\",\"dkygywezski\"],\"vectorStoreConnections\":[\"f\",\"gzmxieqv\",\"smaklixqcahy\",\"xalybxawoijpo\"],\"enablePublicHostingEnvironment\":true,\"description\":\"xpkk\",\"tags\":{\"emehllizh\":\"jodqhykincn\",\"adppyibn\":\"eumoqod\"}},\"id\":\"ladywrxwhyd\",\"name\":\"luvvad\",\"type\":\"wzsnuy\"}]}") + "{\"nextLink\":\"fwy\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"enuzejg\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"baqszllrzlsmmd\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"zpimcqrhn\",\"t\"],\"threadStorageConnections\":[\"klogx\",\"vtza\",\"hzvqnsqktcmbjwz\",\"oslpky\"],\"vectorStoreConnections\":[\"lwkzpgajsqjcem\",\"bmfuvqarwzxu\",\"rebluimmbwxsf\"],\"enablePublicHostingEnvironment\":true,\"description\":\"b\",\"tags\":{\"budbt\":\"kraokq\",\"ke\":\"aokbavlyttaaknwf\",\"p\":\"sm\",\"gatolekscbctnan\":\"ujd\"}},\"id\":\"mwbzxpdc\",\"name\":\"dpkawnsnl\",\"type\":\"imouxwksqmudmfco\"},{\"properties\":{\"aiServicesConnections\":[\"cziu\",\"wswjrkbqsjh\",\"tqqvy\",\"scyrfwbivqv\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"yzwvbhlimbyqec\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"ikcdrdaasax\",\"obsmf\"],\"threadStorageConnections\":[\"yjvzukosr\",\"awn\"],\"vectorStoreConnections\":[\"lnk\",\"ywsxvjabjqqaxu\",\"vym\"],\"enablePublicHostingEnvironment\":true,\"description\":\"ndoabhjxwxqweuip\",\"tags\":{\"lkrdpqgfhy\":\"ksmitnsqxtlt\"}},\"id\":\"rakkld\",\"name\":\"rcwfcmfcnrjajq\",\"type\":\"atxjtiel\"},{\"properties\":{\"aiServicesConnections\":[\"gxxgfb\",\"mtlpqagyno\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"zcalincryq\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"zi\"],\"threadStorageConnections\":[\"imiymqruqgu\",\"fupetasvv\"],\"vectorStoreConnections\":[\"bpkflanfkgxs\",\"aowuzo\"],\"enablePublicHostingEnvironment\":true,\"description\":\"hdkcprgu\",\"tags\":{\"mqrud\":\"ztiochluti\",\"mfbcpaqktkrum\":\"izcbfzmcrunfhiuc\",\"dkyzbfvxov\":\"u\",\"hyhlwcjsqg\":\"kxiuxqggvqr\"}},\"id\":\"hffbxrq\",\"name\":\"kijpeuqlsdxeqztv\",\"type\":\"wmwwmjswen\"},{\"properties\":{\"aiServicesConnections\":[\"amecle\",\"ioulndhzyoe\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"ollhsvidmyt\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"xpno\",\"yoan\",\"bcswqagyw\"],\"threadStorageConnections\":[\"igvjrktp\",\"aeukyawohpm\",\"hqnucs\",\"lhsidsjtdl\"],\"vectorStoreConnections\":[\"injgazlsvbzfcpuo\",\"e\",\"wjcciklhsy\"],\"enablePublicHostingEnvironment\":false,\"description\":\"renxolriyehqbe\",\"tags\":{\"ytjlkesmmpath\":\"lhydwbdbfgrlpu\"}},\"id\":\"ta\",\"name\":\"deani\",\"type\":\"wllbv\"}]}") .toObject(CapabilityHostResourceArmPaginatedResult.class); - Assertions.assertEquals("tgdstyouambe", model.nextLink()); - Assertions.assertEquals("xpkk", model.value().get(0).properties().description()); - Assertions.assertEquals("jodqhykincn", model.value().get(0).properties().tags().get("emehllizh")); - Assertions.assertEquals("moweg", model.value().get(0).properties().aiServicesConnections().get(0)); + Assertions.assertEquals("fwy", model.nextLink()); + Assertions.assertEquals("b", model.value().get(0).properties().description()); + Assertions.assertEquals("kraokq", model.value().get(0).properties().tags().get("budbt")); + Assertions.assertEquals("enuzejg", model.value().get(0).properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.value().get(0).properties().capabilityHostKind()); - Assertions.assertEquals("gijiitnspxlzd", model.value().get(0).properties().customerSubnet()); - Assertions.assertEquals("ijwai", model.value().get(0).properties().storageConnections().get(0)); - Assertions.assertEquals("rojsydg", model.value().get(0).properties().threadStorageConnections().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("baqszllrzlsmmd", model.value().get(0).properties().customerSubnet()); + Assertions.assertEquals("zpimcqrhn", model.value().get(0).properties().storageConnections().get(0)); + Assertions.assertEquals("klogx", model.value().get(0).properties().threadStorageConnections().get(0)); + Assertions.assertEquals("lwkzpgajsqjcem", model.value().get(0).properties().vectorStoreConnections().get(0)); Assertions.assertTrue(model.value().get(0).properties().enablePublicHostingEnvironment()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilitySettingsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilitySettingsTests.java new file mode 100644 index 000000000000..c35660d3434d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilitySettingsTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; +import org.junit.jupiter.api.Assertions; + +public final class CapabilitySettingsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CapabilitySettings model = BinaryData + .fromString( + "{\"documentStore\":\"kexxppof\",\"vectorStore\":\"axcfjpgddtocjjx\",\"blobStore\":\"pmouexhdz\"}") + .toObject(CapabilitySettings.class); + Assertions.assertEquals("kexxppof", model.documentStore()); + Assertions.assertEquals("axcfjpgddtocjjx", model.vectorStore()); + Assertions.assertEquals("pmouexhdz", model.blobStore()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CapabilitySettings model = new CapabilitySettings().withDocumentStore("kexxppof") + .withVectorStore("axcfjpgddtocjjx") + .withBlobStore("pmouexhdz"); + model = BinaryData.fromObject(model).toObject(CapabilitySettings.class); + Assertions.assertEquals("kexxppof", model.documentStore()); + Assertions.assertEquals("axcfjpgddtocjjx", model.vectorStore()); + Assertions.assertEquals("pmouexhdz", model.blobStore()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java index 90312f8e4e52..7a0d7181be48 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java @@ -12,12 +12,12 @@ public final class CapacityConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityConfig model = BinaryData.fromString( - "{\"minimum\":1238878906,\"maximum\":1975532924,\"step\":1054022835,\"default\":2065726481,\"allowedValues\":[552165564]}") + "{\"minimum\":1003967781,\"maximum\":1927626418,\"step\":801364840,\"default\":296949281,\"allowedValues\":[2042838071,1572561560,591118108,533461500]}") .toObject(CapacityConfig.class); - Assertions.assertEquals(1238878906, model.minimum()); - Assertions.assertEquals(1975532924, model.maximum()); - Assertions.assertEquals(1054022835, model.step()); - Assertions.assertEquals(2065726481, model.defaultProperty()); - Assertions.assertEquals(552165564, model.allowedValues().get(0)); + Assertions.assertEquals(1003967781, model.minimum()); + Assertions.assertEquals(1927626418, model.maximum()); + Assertions.assertEquals(801364840, model.step()); + Assertions.assertEquals(296949281, model.defaultProperty()); + Assertions.assertEquals(2042838071, model.allowedValues().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java index 9c2f89db52ee..ab6f7a6c0fb0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java @@ -12,9 +12,9 @@ public final class CommitmentCostTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentCost model - = BinaryData.fromString("{\"commitmentMeterId\":\"nqnixiezeagmce\",\"overageMeterId\":\"uugedhfp\"}") + = BinaryData.fromString("{\"commitmentMeterId\":\"ddzydisnu\",\"overageMeterId\":\"ywyjlnldpxot\"}") .toObject(CommitmentCost.class); - Assertions.assertEquals("nqnixiezeagmce", model.commitmentMeterId()); - Assertions.assertEquals("uugedhfp", model.overageMeterId()); + Assertions.assertEquals("ddzydisnu", model.commitmentMeterId()); + Assertions.assertEquals("ywyjlnldpxot", model.overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java index bf348681791c..2e957f1920b1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java @@ -12,17 +12,17 @@ public final class CommitmentPeriodTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPeriod model = BinaryData.fromString( - "{\"tier\":\"zqwhxxbuyqaxzfeq\",\"count\":1560492687,\"quota\":{\"quantity\":6081524595721581276,\"unit\":\"xorjaltolmncwsob\"},\"startDate\":\"csdbnwdcfhuc\",\"endDate\":\"pfuvglsbjjca\"}") + "{\"tier\":\"oefki\",\"count\":841009999,\"quota\":{\"quantity\":137695562924143561,\"unit\":\"jmqlgkfb\"},\"startDate\":\"doaon\",\"endDate\":\"jcntuj\"}") .toObject(CommitmentPeriod.class); - Assertions.assertEquals("zqwhxxbuyqaxzfeq", model.tier()); - Assertions.assertEquals(1560492687, model.count()); + Assertions.assertEquals("oefki", model.tier()); + Assertions.assertEquals(841009999, model.count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPeriod model = new CommitmentPeriod().withTier("zqwhxxbuyqaxzfeq").withCount(1560492687); + CommitmentPeriod model = new CommitmentPeriod().withTier("oefki").withCount(841009999); model = BinaryData.fromObject(model).toObject(CommitmentPeriod.class); - Assertions.assertEquals("zqwhxxbuyqaxzfeq", model.tier()); - Assertions.assertEquals(1560492687, model.count()); + Assertions.assertEquals("oefki", model.tier()); + Assertions.assertEquals(841009999, model.count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java index bd704ac8f34d..b55f612356c0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java @@ -14,20 +14,20 @@ public final class CommitmentPlanAccountAssociationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationInner model = BinaryData.fromString( - "{\"properties\":{\"accountId\":\"v\"},\"etag\":\"k\",\"tags\":{\"vblm\":\"qwjygvja\",\"byrqufeg\":\"vkzuhbxvvyhgso\",\"mctlpdngitv\":\"uvwzfbnh\",\"grhbpn\":\"bmhrixkwmyijejv\"},\"id\":\"xexccbdreaxhcexd\",\"name\":\"rvqahqkghtpwi\",\"type\":\"nhyjsv\"}") + "{\"properties\":{\"accountId\":\"ronzmyhgfip\"},\"etag\":\"xkmcwaekrrjre\",\"tags\":{\"lik\":\"tsgumhj\"},\"id\":\"wslolbqp\",\"name\":\"uzlm\",\"type\":\"felfktg\"}") .toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("qwjygvja", model.tags().get("vblm")); - Assertions.assertEquals("v", model.accountId()); + Assertions.assertEquals("tsgumhj", model.tags().get("lik")); + Assertions.assertEquals("ronzmyhgfip", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanAccountAssociationInner model - = new CommitmentPlanAccountAssociationInner().withTags(mapOf("vblm", "qwjygvja", "byrqufeg", - "vkzuhbxvvyhgso", "mctlpdngitv", "uvwzfbnh", "grhbpn", "bmhrixkwmyijejv")).withAccountId("v"); + = new CommitmentPlanAccountAssociationInner().withTags(mapOf("lik", "tsgumhj")) + .withAccountId("ronzmyhgfip"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("qwjygvja", model.tags().get("vblm")); - Assertions.assertEquals("v", model.accountId()); + Assertions.assertEquals("tsgumhj", model.tags().get("lik")); + Assertions.assertEquals("ronzmyhgfip", model.accountId()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java index fcacd6282ddf..e328ca8b6fd0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java @@ -12,8 +12,8 @@ public final class CommitmentPlanAccountAssociationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationListResult model = BinaryData.fromString( - "{\"nextLink\":\"t\",\"value\":[{\"properties\":{\"accountId\":\"y\"},\"etag\":\"tronzmyhgfi\",\"tags\":{\"fxtsgum\":\"xkmcwaekrrjre\"},\"id\":\"glikkxwslolb\",\"name\":\"pvuzlmv\",\"type\":\"elfk\"}]}") + "{\"nextLink\":\"eznoig\",\"value\":[{\"properties\":{\"accountId\":\"mw\"},\"etag\":\"nbsazejjoqkag\",\"tags\":{\"xdtnkdmkqjjlw\":\"xttaugzxnfaaz\",\"aysjkixqtnqttez\":\"envrkpyouaibrebq\"},\"id\":\"fffiak\",\"name\":\"jpqqmted\",\"type\":\"tmmjihyeozph\"},{\"properties\":{\"accountId\":\"uyqncygupkvipmd\"},\"etag\":\"wx\",\"tags\":{\"xhojuj\":\"evzhfsto\",\"hixbjxyfwnyl\":\"ypelmcu\"},\"id\":\"ool\",\"name\":\"ttpkiwkkbnujrywv\",\"type\":\"y\"},{\"properties\":{\"accountId\":\"pncur\"},\"etag\":\"iwii\",\"tags\":{\"cbihwqk\":\"ywub\",\"umwctondz\":\"fdntwjchrdgoih\",\"tov\":\"luudfdlwggytsb\"},\"id\":\"gseinq\",\"name\":\"iufxqknpir\",\"type\":\"nepttwqmsni\"},{\"properties\":{\"accountId\":\"dmqnrojlpij\"},\"etag\":\"rxfrddhc\",\"tags\":{\"hftwesgog\":\"izzronasxiftozqy\",\"sxkkg\":\"zhonnxkrlgnyhmo\",\"rghxjb\":\"h\"},\"id\":\"qxvcxgfrpdsofb\",\"name\":\"hrnsvbu\",\"type\":\"wdvzyy\"}]}") .toObject(CommitmentPlanAccountAssociationListResult.class); - Assertions.assertEquals("t", model.nextLink()); + Assertions.assertEquals("eznoig", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java index 1071496f915d..cdf8fc16f6b7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java @@ -11,16 +11,16 @@ public final class CommitmentPlanAccountAssociationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CommitmentPlanAccountAssociationProperties model = BinaryData.fromString("{\"accountId\":\"cxzbfvoowvr\"}") + CommitmentPlanAccountAssociationProperties model = BinaryData.fromString("{\"accountId\":\"crpw\"}") .toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("cxzbfvoowvr", model.accountId()); + Assertions.assertEquals("crpw", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanAccountAssociationProperties model - = new CommitmentPlanAccountAssociationProperties().withAccountId("cxzbfvoowvr"); + = new CommitmentPlanAccountAssociationProperties().withAccountId("crpw"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("cxzbfvoowvr", model.accountId()); + Assertions.assertEquals("crpw", model.accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java index a180704353b6..2c30ffced456 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java @@ -19,60 +19,60 @@ public final class CommitmentPlanInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"ddxbjhwuaanoz\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"hyoulpjr\",\"current\":{\"tier\":\"glrvimjwosytxi\",\"count\":835762361,\"quota\":{\"quantity\":5863811763021338884,\"unit\":\"qumiek\"},\"startDate\":\"zzikhlyfjhdg\",\"endDate\":\"gebdunygaeq\"},\"autoRenew\":true,\"next\":{\"tier\":\"atpxl\",\"count\":1652546958,\"quota\":{\"quantity\":8864644598647393386,\"unit\":\"a\"},\"startDate\":\"uvarmywdmjsjq\",\"endDate\":\"hhyxxrw\"},\"last\":{\"tier\":\"oduhp\",\"count\":1622537719,\"quota\":{\"quantity\":4645704067973725569,\"unit\":\"eqnajxqugjhkycu\"},\"startDate\":\"ddg\",\"endDate\":\"ofwq\"},\"provisioningIssues\":[\"alkrmn\"]},\"tags\":{\"yxbaaabjyvayf\":\"pxacqqudfn\",\"exn\":\"imrzrtuzqog\"},\"location\":\"fdnw\",\"etag\":\"mewzsyyc\",\"kind\":\"zsoibjudpfrxtr\",\"sku\":{\"name\":\"zvaytdwkqbr\",\"tier\":\"Basic\",\"size\":\"axhexiilivp\",\"family\":\"iirqtd\",\"capacity\":887642500},\"id\":\"oruzfgsquyfxrxx\",\"name\":\"eptra\",\"type\":\"xje\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"commitmentPlanGuid\":\"qal\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"jijpxac\",\"current\":{\"tier\":\"dfnbyxbaaabjyv\",\"count\":2087674757,\"quota\":{\"quantity\":952375100795367564,\"unit\":\"rtuzqogs\"},\"startDate\":\"nevfdnw\",\"endDate\":\"mewzsyyc\"},\"autoRenew\":true,\"next\":{\"tier\":\"i\",\"count\":414197490,\"quota\":{\"quantity\":7807862752001472042,\"unit\":\"trthzvaytdwkqbr\"},\"startDate\":\"bpaxhexiilivpdt\",\"endDate\":\"r\"},\"last\":{\"tier\":\"qoaxoruzfgs\",\"count\":1249324480,\"quota\":{\"quantity\":4821324674520333878,\"unit\":\"l\"},\"startDate\":\"tramxjez\",\"endDate\":\"wnwxuqlcvyd\"},\"provisioningIssues\":[\"tdooaoj\",\"niodkooeb\",\"nuj\",\"emmsbvdkc\"]},\"tags\":{\"jlfltkacjvefkdlf\":\"tjinf\",\"owpulpq\":\"akggkfpag\"},\"location\":\"ylsyxkqjnsje\",\"etag\":\"tiagx\",\"kind\":\"sz\",\"sku\":{\"name\":\"mpsbzkfzbeyv\",\"tier\":\"Free\",\"size\":\"cvinvkjjxdxrbuuk\",\"family\":\"lewyhmlwpaz\",\"capacity\":1765730251},\"id\":\"fn\",\"name\":\"ckw\",\"type\":\"fz\"}") .toObject(CommitmentPlanInner.class); - Assertions.assertEquals("ddxbjhwuaanoz", model.properties().commitmentPlanGuid()); + Assertions.assertEquals("qal", model.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.properties().hostingModel()); - Assertions.assertEquals("hyoulpjr", model.properties().planType()); - Assertions.assertEquals("glrvimjwosytxi", model.properties().current().tier()); - Assertions.assertEquals(835762361, model.properties().current().count()); + Assertions.assertEquals("jijpxac", model.properties().planType()); + Assertions.assertEquals("dfnbyxbaaabjyv", model.properties().current().tier()); + Assertions.assertEquals(2087674757, model.properties().current().count()); Assertions.assertTrue(model.properties().autoRenew()); - Assertions.assertEquals("atpxl", model.properties().next().tier()); - Assertions.assertEquals(1652546958, model.properties().next().count()); - Assertions.assertEquals("pxacqqudfn", model.tags().get("yxbaaabjyvayf")); - Assertions.assertEquals("fdnw", model.location()); - Assertions.assertEquals("zsoibjudpfrxtr", model.kind()); - Assertions.assertEquals("zvaytdwkqbr", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("axhexiilivp", model.sku().size()); - Assertions.assertEquals("iirqtd", model.sku().family()); - Assertions.assertEquals(887642500, model.sku().capacity()); + Assertions.assertEquals("i", model.properties().next().tier()); + Assertions.assertEquals(414197490, model.properties().next().count()); + Assertions.assertEquals("tjinf", model.tags().get("jlfltkacjvefkdlf")); + Assertions.assertEquals("ylsyxkqjnsje", model.location()); + Assertions.assertEquals("sz", model.kind()); + Assertions.assertEquals("mpsbzkfzbeyv", model.sku().name()); + Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); + Assertions.assertEquals("cvinvkjjxdxrbuuk", model.sku().size()); + Assertions.assertEquals("lewyhmlwpaz", model.sku().family()); + Assertions.assertEquals(1765730251, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanInner model = new CommitmentPlanInner() - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("ddxbjhwuaanoz") + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("qal") .withHostingModel(HostingModel.PROVISIONED_WEB) - .withPlanType("hyoulpjr") - .withCurrent(new CommitmentPeriod().withTier("glrvimjwosytxi").withCount(835762361)) + .withPlanType("jijpxac") + .withCurrent(new CommitmentPeriod().withTier("dfnbyxbaaabjyv").withCount(2087674757)) .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("atpxl").withCount(1652546958))) - .withTags(mapOf("yxbaaabjyvayf", "pxacqqudfn", "exn", "imrzrtuzqog")) - .withLocation("fdnw") - .withKind("zsoibjudpfrxtr") - .withSku(new Sku().withName("zvaytdwkqbr") - .withTier(SkuTier.BASIC) - .withSize("axhexiilivp") - .withFamily("iirqtd") - .withCapacity(887642500)); + .withNext(new CommitmentPeriod().withTier("i").withCount(414197490))) + .withTags(mapOf("jlfltkacjvefkdlf", "tjinf", "owpulpq", "akggkfpag")) + .withLocation("ylsyxkqjnsje") + .withKind("sz") + .withSku(new Sku().withName("mpsbzkfzbeyv") + .withTier(SkuTier.FREE) + .withSize("cvinvkjjxdxrbuuk") + .withFamily("lewyhmlwpaz") + .withCapacity(1765730251)); model = BinaryData.fromObject(model).toObject(CommitmentPlanInner.class); - Assertions.assertEquals("ddxbjhwuaanoz", model.properties().commitmentPlanGuid()); + Assertions.assertEquals("qal", model.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.properties().hostingModel()); - Assertions.assertEquals("hyoulpjr", model.properties().planType()); - Assertions.assertEquals("glrvimjwosytxi", model.properties().current().tier()); - Assertions.assertEquals(835762361, model.properties().current().count()); + Assertions.assertEquals("jijpxac", model.properties().planType()); + Assertions.assertEquals("dfnbyxbaaabjyv", model.properties().current().tier()); + Assertions.assertEquals(2087674757, model.properties().current().count()); Assertions.assertTrue(model.properties().autoRenew()); - Assertions.assertEquals("atpxl", model.properties().next().tier()); - Assertions.assertEquals(1652546958, model.properties().next().count()); - Assertions.assertEquals("pxacqqudfn", model.tags().get("yxbaaabjyvayf")); - Assertions.assertEquals("fdnw", model.location()); - Assertions.assertEquals("zsoibjudpfrxtr", model.kind()); - Assertions.assertEquals("zvaytdwkqbr", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("axhexiilivp", model.sku().size()); - Assertions.assertEquals("iirqtd", model.sku().family()); - Assertions.assertEquals(887642500, model.sku().capacity()); + Assertions.assertEquals("i", model.properties().next().tier()); + Assertions.assertEquals(414197490, model.properties().next().count()); + Assertions.assertEquals("tjinf", model.tags().get("jlfltkacjvefkdlf")); + Assertions.assertEquals("ylsyxkqjnsje", model.location()); + Assertions.assertEquals("sz", model.kind()); + Assertions.assertEquals("mpsbzkfzbeyv", model.sku().name()); + Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); + Assertions.assertEquals("cvinvkjjxdxrbuuk", model.sku().size()); + Assertions.assertEquals("lewyhmlwpaz", model.sku().family()); + Assertions.assertEquals(1765730251, model.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java index 9fcc584f120c..c8f9c28cfc36 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java @@ -12,8 +12,8 @@ public final class CommitmentPlanListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanListResult model = BinaryData.fromString( - "{\"nextLink\":\"dut\",\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"xqtvcofu\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"kgjubgdknnqvsazn\",\"current\":{\"tier\":\"orudsgsa\",\"count\":220532000,\"quota\":{\"quantity\":6438368271325429857,\"unit\":\"uwjuetaeburuvdmo\"},\"startDate\":\"mz\",\"endDate\":\"wabm\"},\"autoRenew\":false,\"next\":{\"tier\":\"ifrvtpu\",\"count\":2034144205,\"quota\":{\"quantity\":5941269250406348563,\"unit\":\"fbtndoaong\"},\"startDate\":\"cn\",\"endDate\":\"jitcjedftwwaez\"},\"last\":{\"tier\":\"v\",\"count\":2090841381,\"quota\":{\"quantity\":8938255747572389920,\"unit\":\"uicybxarzgszuf\"},\"startDate\":\"ciqopidoa\",\"endDate\":\"iodhkhazxkhnz\"},\"provisioningIssues\":[\"lwntoego\",\"dwbwhkszzcmrvexz\"]},\"tags\":{\"gsfraoyzkoow\":\"t\"},\"location\":\"mnguxawqaldsyu\",\"etag\":\"imerqfobwyznk\",\"kind\":\"kutwpf\",\"sku\":{\"name\":\"a\",\"tier\":\"Free\",\"size\":\"skdsnfdsdoakg\",\"family\":\"lmkk\",\"capacity\":1673981436},\"id\":\"l\",\"name\":\"ewpusdsttwvogvb\",\"type\":\"ejdcngqqmoakuf\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"wr\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"wae\",\"current\":{\"tier\":\"zkopb\",\"count\":1224978784,\"quota\":{\"quantity\":7603359604703643778,\"unit\":\"yuhhziu\"},\"startDate\":\"fozbhdmsmlmzqhof\",\"endDate\":\"maequiahxicslfa\"},\"autoRenew\":false,\"next\":{\"tier\":\"yylhalnswhccsp\",\"count\":896458989,\"quota\":{\"quantity\":8715023220847253417,\"unit\":\"qscywu\"},\"startDate\":\"woluhczbwemhair\",\"endDate\":\"rgzdwmsweyp\"},\"last\":{\"tier\":\"xggicccnxqhuexmk\",\"count\":171161135,\"quota\":{\"quantity\":3065309169479098927,\"unit\":\"ywemhzrn\"},\"startDate\":\"dtclusiypb\",\"endDate\":\"gytguslfead\"},\"provisioningIssues\":[\"qukyhejhzi\"]},\"tags\":{\"lppvksrpq\":\"fpel\",\"htwdwrftswibyrcd\":\"ujzra\",\"hevxcced\":\"bhshfwpracstwity\",\"hlt\":\"pnmdyodnwzxltjcv\"},\"location\":\"gcxn\",\"etag\":\"vwxqibyqunyo\",\"kind\":\"wlmdjrkv\",\"sku\":{\"name\":\"bvfvpdbod\",\"tier\":\"Enterprise\",\"size\":\"sjq\",\"family\":\"krribdeibqi\",\"capacity\":840101476},\"id\":\"hvxndzwmkrefajpj\",\"name\":\"rwkq\",\"type\":\"yhgbijtjivfx\"},{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"ibsystawf\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"vkvp\",\"current\":{\"tier\":\"bkzbzkd\",\"count\":1416328683,\"quota\":{\"quantity\":2475119579213351662,\"unit\":\"urgkakmokzhjjk\"},\"startDate\":\"fhmouwq\",\"endDate\":\"zrfze\"},\"autoRenew\":true,\"next\":{\"tier\":\"zi\",\"count\":2103532940,\"quota\":{\"quantity\":6792043721583941357,\"unit\":\"jbsybbqw\"},\"startDate\":\"t\",\"endDate\":\"gmfpgvmp\"},\"last\":{\"tier\":\"slthaq\",\"count\":461827334,\"quota\":{\"quantity\":152886456423473805,\"unit\":\"wbdsr\"},\"startDate\":\"pdrhne\",\"endDate\":\"owqkdwytisi\"},\"provisioningIssues\":[\"cgpik\"]},\"tags\":{\"rmbzo\":\"mejzanlfzxia\",\"zpfrla\":\"okixrjqcir\"},\"location\":\"zrnw\",\"etag\":\"indfpwpjyl\",\"kind\":\"tlhflsjcdhszf\",\"sku\":{\"name\":\"fbgofeljagrqmqh\",\"tier\":\"Free\",\"size\":\"iiiojnalghf\",\"family\":\"tvsexsowuel\",\"capacity\":1968234640},\"id\":\"ahhxvrh\",\"name\":\"zkw\",\"type\":\"jgwwspughftq\"},{\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"ujxukndxd\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"guufzd\",\"current\":{\"tier\":\"qtfihwhbotzinga\",\"count\":547890191,\"quota\":{\"quantity\":449816124137860976,\"unit\":\"qzudphq\"},\"startDate\":\"vdkfwynwcvtbvk\",\"endDate\":\"hmtnvy\"},\"autoRenew\":true,\"next\":{\"tier\":\"zwpcnpwzcjaesg\",\"count\":298074003,\"quota\":{\"quantity\":6313040866507251264,\"unit\":\"g\"},\"startDate\":\"fhwygzlvdnkfxus\",\"endDate\":\"dwzrmuh\"},\"last\":{\"tier\":\"cqdpsqxqvpsvuoym\",\"count\":1300685521,\"quota\":{\"quantity\":4509499977856951739,\"unit\":\"rypqlmfeo\"},\"startDate\":\"rqwky\",\"endDate\":\"ob\"},\"provisioningIssues\":[\"xedk\",\"wep\"]},\"tags\":{\"kbwcc\":\"cr\"},\"location\":\"jvcdwxlpqekf\",\"etag\":\"khtj\",\"kind\":\"i\",\"sku\":{\"name\":\"wfqatmtd\",\"tier\":\"Premium\",\"size\":\"vypgikdg\",\"family\":\"ywkbirryuzhlhkjo\",\"capacity\":1145336567},\"id\":\"qaatjinrv\",\"name\":\"oupmfii\",\"type\":\"fggjioolvr\"}]}") + "{\"nextLink\":\"waezkojvd\",\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"uicybxarzgszuf\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"q\",\"current\":{\"tier\":\"doamciodhkha\",\"count\":157531111,\"quota\":{\"quantity\":8226405962302008930,\"unit\":\"nlwntoe\"},\"startDate\":\"kdwbwhkszz\",\"endDate\":\"rvexztvb\"},\"autoRenew\":true,\"next\":{\"tier\":\"ra\",\"count\":2100359325,\"quota\":{\"quantity\":6934781293491405600,\"unit\":\"lmnguxaw\"},\"startDate\":\"ldsyuuximerqfob\",\"endDate\":\"znkbykutwpfhpagm\"},\"last\":{\"tier\":\"kdsnfdsdoakgtdl\",\"count\":1535187364,\"quota\":{\"quantity\":7189695523322242946,\"unit\":\"hewpusdsttwv\"},\"startDate\":\"vbbejdcng\",\"endDate\":\"m\"},\"provisioningIssues\":[\"ufgmjzrwrdg\",\"twaenuuzko\"]},\"tags\":{\"hziuiefozbhdms\":\"inrfdwoyu\",\"zqhof\":\"l\"},\"location\":\"maequiahxicslfa\",\"etag\":\"z\",\"kind\":\"yylhalnswhccsp\",\"sku\":{\"name\":\"aivwitqscywu\",\"tier\":\"Standard\",\"size\":\"luhczbw\",\"family\":\"hairsbrgzdwms\",\"capacity\":893814048},\"id\":\"qwdxggicc\",\"name\":\"n\",\"type\":\"qhuexm\"},{\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"tvlz\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"hz\",\"current\":{\"tier\":\"sdtclusiypbs\",\"count\":1861224364,\"quota\":{\"quantity\":7838664702645676425,\"unit\":\"feadcygq\"},\"startDate\":\"yhejhzisxgfp\",\"endDate\":\"olppvksrpqvujz\"},\"autoRenew\":true,\"next\":{\"tier\":\"w\",\"count\":234231133,\"quota\":{\"quantity\":6178652880729547644,\"unit\":\"byrcdlbhshfwp\"},\"startDate\":\"cstwity\",\"endDate\":\"evxccedcp\"},\"last\":{\"tier\":\"yodnwzxltj\",\"count\":424916927,\"quota\":{\"quantity\":598622795111508954,\"unit\":\"gcxn\"},\"startDate\":\"vwxqibyqunyo\",\"endDate\":\"wlmdjrkv\"},\"provisioningIssues\":[\"vfvpdbodaciz\",\"j\",\"lhkrribdeibqipqk\"]},\"tags\":{\"refajpjorwkqnyh\":\"xndzwm\",\"j\":\"b\"},\"location\":\"ivfxzsjabibsyst\",\"etag\":\"fsdjpvkvp\",\"kind\":\"xbkzbzkdvncj\",\"sku\":{\"name\":\"udurgkakmokz\",\"tier\":\"Premium\",\"size\":\"lffhmouwqlg\",\"family\":\"fzeeyebizik\",\"capacity\":2107900105},\"id\":\"qlbjbsybbqwrvt\",\"name\":\"dgmfpgvmpipasl\",\"type\":\"haq\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"wutwbdsre\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"hneuyowqkd\",\"current\":{\"tier\":\"i\",\"count\":431891008,\"quota\":{\"quantity\":4920144220560546408,\"unit\":\"ikpzimejza\"},\"startDate\":\"fzxiavrmb\",\"endDate\":\"nokixrjqcirgz\"},\"autoRenew\":true,\"next\":{\"tier\":\"zszrnwoiindfpw\",\"count\":2003190846,\"quota\":{\"quantity\":1464641146056052310,\"unit\":\"h\"},\"startDate\":\"sj\",\"endDate\":\"hszfjvfb\"},\"last\":{\"tier\":\"eljag\",\"count\":128121457,\"quota\":{\"quantity\":8325086939855725582,\"unit\":\"riiiojnalghfkv\"},\"startDate\":\"sexso\",\"endDate\":\"el\"},\"provisioningIssues\":[\"hahhxvrhmzkwpj\",\"wws\",\"ughftqsx\",\"qxujxukndxd\"]},\"tags\":{\"yqtfihwh\":\"jguufzdm\",\"gamv\":\"otzi\",\"dphqamv\":\"phoszqz\",\"vtbvkayh\":\"kfwynw\"},\"location\":\"nvyq\",\"etag\":\"tkzwpcnpwzc\",\"kind\":\"esgvvsccyaj\",\"sku\":{\"name\":\"qfhwyg\",\"tier\":\"Standard\",\"size\":\"nk\",\"family\":\"usemdwzrmuhap\",\"capacity\":857980637},\"id\":\"psqxq\",\"name\":\"psvuoymgc\",\"type\":\"elvezrypq\"},{\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"kerqwkyh\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"pg\",\"current\":{\"tier\":\"k\",\"count\":615107136,\"quota\":{\"quantity\":5074641707512401409,\"unit\":\"rfkbwccsnjvcdwxl\"},\"startDate\":\"ekftnkhtj\",\"endDate\":\"i\"},\"autoRenew\":false,\"next\":{\"tier\":\"atmtdhtmdvy\",\"count\":932898449,\"quota\":{\"quantity\":6469861763062162700,\"unit\":\"ywkbirryuzhlhkjo\"},\"startDate\":\"vqqaatjinrvgo\",\"endDate\":\"mfiibfggj\"},\"last\":{\"tier\":\"lvrwxkvtkk\",\"count\":1409023771,\"quota\":{\"quantity\":1471495737284359378,\"unit\":\"vjayvblmhvkzu\"},\"startDate\":\"xvvy\",\"endDate\":\"s\"},\"provisioningIssues\":[\"yrqufegxuvwz\",\"bnhlmc\"]},\"tags\":{\"itvgbmhrixkwm\":\"dn\"},\"location\":\"jejveg\",\"etag\":\"bpnaixexccbdre\",\"kind\":\"hcexdrrvqa\",\"sku\":{\"name\":\"kghtpwijnh\",\"tier\":\"Premium\",\"size\":\"f\",\"family\":\"xzb\",\"capacity\":1564652638},\"id\":\"wvrvmtg\",\"name\":\"qp\",\"type\":\"y\"}]}") .toObject(CommitmentPlanListResult.class); - Assertions.assertEquals("dut", model.nextLink()); + Assertions.assertEquals("waezkojvd", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java index 26db8861ed8e..2cdecb9a079d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java @@ -14,34 +14,34 @@ public final class CommitmentPlanPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"nwxuqlcvydyp\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"oa\",\"current\":{\"tier\":\"niodkooeb\",\"count\":2091031438,\"quota\":{\"quantity\":919711763556230893,\"unit\":\"sbvdkcrodtjinfw\"},\"startDate\":\"fltkacjv\",\"endDate\":\"kdlfoa\"},\"autoRenew\":false,\"next\":{\"tier\":\"pagao\",\"count\":1739461107,\"quota\":{\"quantity\":2549901410987606373,\"unit\":\"ylsyxkqjnsje\"},\"startDate\":\"tiagx\",\"endDate\":\"sz\"},\"last\":{\"tier\":\"psbzkfzbeyvpn\",\"count\":2090410653,\"quota\":{\"quantity\":8477504172478535951,\"unit\":\"jjxd\"},\"startDate\":\"buukzclewyhml\",\"endDate\":\"aztz\"},\"provisioningIssues\":[\"ncckw\"]}") + "{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"xbuy\",\"hostingModel\":\"Web\",\"planType\":\"feqztppriol\",\"current\":{\"tier\":\"jaltolmnc\",\"count\":1429171965,\"quota\":{\"quantity\":6340441917616417480,\"unit\":\"dbnw\"},\"startDate\":\"fhucqdpfuv\",\"endDate\":\"sbjjc\"},\"autoRenew\":false,\"next\":{\"tier\":\"vtvudutncormr\",\"count\":1360670450,\"quota\":{\"quantity\":5281574535669148481,\"unit\":\"udflvkgjubgdknn\"},\"startDate\":\"saznqntoruds\",\"endDate\":\"a\"},\"last\":{\"tier\":\"yc\",\"count\":698533794,\"quota\":{\"quantity\":346907447541912599,\"unit\":\"taeburuvdm\"},\"startDate\":\"s\",\"endDate\":\"l\"},\"provisioningIssues\":[\"b\"]}") .toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("nwxuqlcvydyp", model.commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); - Assertions.assertEquals("oa", model.planType()); - Assertions.assertEquals("niodkooeb", model.current().tier()); - Assertions.assertEquals(2091031438, model.current().count()); + Assertions.assertEquals("xbuy", model.commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, model.hostingModel()); + Assertions.assertEquals("feqztppriol", model.planType()); + Assertions.assertEquals("jaltolmnc", model.current().tier()); + Assertions.assertEquals(1429171965, model.current().count()); Assertions.assertFalse(model.autoRenew()); - Assertions.assertEquals("pagao", model.next().tier()); - Assertions.assertEquals(1739461107, model.next().count()); + Assertions.assertEquals("vtvudutncormr", model.next().tier()); + Assertions.assertEquals(1360670450, model.next().count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("nwxuqlcvydyp") - .withHostingModel(HostingModel.PROVISIONED_WEB) - .withPlanType("oa") - .withCurrent(new CommitmentPeriod().withTier("niodkooeb").withCount(2091031438)) + CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("xbuy") + .withHostingModel(HostingModel.WEB) + .withPlanType("feqztppriol") + .withCurrent(new CommitmentPeriod().withTier("jaltolmnc").withCount(1429171965)) .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("pagao").withCount(1739461107)); + .withNext(new CommitmentPeriod().withTier("vtvudutncormr").withCount(1360670450)); model = BinaryData.fromObject(model).toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("nwxuqlcvydyp", model.commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); - Assertions.assertEquals("oa", model.planType()); - Assertions.assertEquals("niodkooeb", model.current().tier()); - Assertions.assertEquals(2091031438, model.current().count()); + Assertions.assertEquals("xbuy", model.commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, model.hostingModel()); + Assertions.assertEquals("feqztppriol", model.planType()); + Assertions.assertEquals("jaltolmnc", model.current().tier()); + Assertions.assertEquals(1429171965, model.current().count()); Assertions.assertFalse(model.autoRenew()); - Assertions.assertEquals("pagao", model.next().tier()); - Assertions.assertEquals(1739461107, model.next().count()); + Assertions.assertEquals("vtvudutncormr", model.next().tier()); + Assertions.assertEquals(1360670450, model.next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java index 83731ee00c19..8defb0fd2fa0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansCreateOrUpdateAssociationMockTests { @Test public void testCreateOrUpdateAssociation() throws Exception { String responseStr - = "{\"properties\":{\"accountId\":\"mxlpnerxrz\"},\"etag\":\"ylcurz\",\"tags\":{\"bjmbnvynfaooeac\":\"nbxqaeht\"},\"id\":\"dcglskakddid\",\"name\":\"hzllrqmtlpbyxro\",\"type\":\"duyqypf\"}"; + = "{\"properties\":{\"accountId\":\"chgy\"},\"etag\":\"zdqekivycpzcvd\",\"tags\":{\"lpryf\":\"lrqtbhtrezp\",\"ccgndjgdprig\":\"xmdutzfkgilnou\"},\"id\":\"qyeqfcbuulpyuflq\",\"name\":\"fsh\",\"type\":\"ujcyohigimwdc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testCreateOrUpdateAssociation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .defineAssociation("l") - .withExistingCommitmentPlan("smcolmugpy", "aosd") - .withTags(mapOf("mioyjpn", "qisqsqkp", "qdvrdmvxyrxdh", "lviqcpszpmc", "mbtple", "vqojbxaotcgbz")) - .withAccountId("x") + .defineAssociation("ykdnonaaxwmg") + .withExistingCommitmentPlan("cqikclsm", "lnssw") + .withTags(mapOf("uvjhxmnrqstjc", "bgvsbtsertoxadh", "vdhgjnaqyqip", "etwmlgicvnp")) + .withAccountId("jlqcwny") .create(); - Assertions.assertEquals("nbxqaeht", response.tags().get("bjmbnvynfaooeac")); - Assertions.assertEquals("mxlpnerxrz", response.accountId()); + Assertions.assertEquals("lrqtbhtrezp", response.tags().get("lpryf")); + Assertions.assertEquals("chgy", response.accountId()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java index f0a6d83a9c70..c1c5f5969f8f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java @@ -28,7 +28,7 @@ public final class CommitmentPlansCreateOrUpdatePlanMockTests { @Test public void testCreateOrUpdatePlan() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"vfcck\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"letyvesz\",\"current\":{\"tier\":\"hpdhwynctaczcnjf\",\"count\":103185318,\"quota\":{\"quantity\":4145098543965437482,\"unit\":\"itzovnkr\"},\"startDate\":\"kls\",\"endDate\":\"ihqlcoqks\"},\"autoRenew\":false,\"next\":{\"tier\":\"yxwb\",\"count\":269745686,\"quota\":{\"quantity\":2863058872645277107,\"unit\":\"orbccqcdhth\"},\"startDate\":\"vlirknuc\",\"endDate\":\"awrdt\"},\"last\":{\"tier\":\"zl\",\"count\":223590127,\"quota\":{\"quantity\":596366605743279566,\"unit\":\"zqjjt\"},\"startDate\":\"uy\",\"endDate\":\"fttkacybdueu\"},\"provisioningIssues\":[\"cdcpkshloj\",\"rmhzicsbf\",\"jhyaaknyuki\"]},\"tags\":{\"tej\":\"glhphzwx\"},\"location\":\"ilhvtozyagjj\",\"etag\":\"k\",\"kind\":\"lh\",\"sku\":{\"name\":\"xgffklvq\",\"tier\":\"Premium\",\"size\":\"rdgscnvqeonsgn\",\"family\":\"lwmezyohxpthceop\",\"capacity\":1614228249},\"id\":\"wfvesobpbok\",\"name\":\"mmlcdyarng\",\"type\":\"cjfwblqhxk\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"kbnzxbypfq\",\"hostingModel\":\"Web\",\"planType\":\"xwrgrkkderfr\",\"current\":{\"tier\":\"ikwepwogggicw\",\"count\":1352786731,\"quota\":{\"quantity\":5507767180935367692,\"unit\":\"bsudzpgchzpgfqu\"},\"startDate\":\"djxh\",\"endDate\":\"hgod\"},\"autoRenew\":true,\"next\":{\"tier\":\"eqavfdbdfmmxj\",\"count\":1336586550,\"quota\":{\"quantity\":5774923470651910813,\"unit\":\"y\"},\"startDate\":\"mk\",\"endDate\":\"hvcw\"},\"last\":{\"tier\":\"dejkluxxrwzobuz\",\"count\":681387184,\"quota\":{\"quantity\":5392724913502171925,\"unit\":\"tkwppthuzd\"},\"startDate\":\"mimrljdpoqfxyemh\",\"endDate\":\"tbaewhte\"},\"provisioningIssues\":[\"amfmxtllfl\",\"ymqcnrrfijhgga\",\"qbgamkli\",\"irw\"]},\"tags\":{\"rxqwqnjxrd\":\"fhsdpzouhkt\",\"czcxdfw\":\"ddtullygta\",\"yf\":\"a\"},\"location\":\"xrljphraspi\",\"etag\":\"eimixlmdbgicehf\",\"kind\":\"mdrjuqbpxt\",\"sku\":{\"name\":\"lj\",\"tier\":\"Basic\",\"size\":\"paxwfqty\",\"family\":\"iprclt\",\"capacity\":1610316502},\"id\":\"s\",\"name\":\"ljckmiigz\",\"type\":\"kuckgkdskswtiiq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,40 +38,40 @@ public void testCreateOrUpdatePlan() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .definePlan("dxomrawppk") - .withExistingResourceGroup("ygvthrmxkbcjw") - .withRegion("yiulayno") - .withTags(mapOf("nh", "q", "mzngocfrjuy", "nmotpuwnnoh")) - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("fly") + .definePlan("sfpnimt") + .withExistingResourceGroup("moeobdoe") + .withRegion("cweakfec") + .withTags(mapOf("jadhfztl", "hjdqltdeluqr", "udbkuwpzq", "aysrkgzky")) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("uegn") .withHostingModel(HostingModel.CONNECTED_CONTAINER) - .withPlanType("aeda") - .withCurrent(new CommitmentPeriod().withTier("clmgdtw").withCount(476346624)) + .withPlanType("feu") + .withCurrent(new CommitmentPeriod().withTier("jyrkwfug").withCount(932903430)) .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("pyfaofdfp").withCount(1994379023))) - .withKind("ttpfsmwgsgh") - .withSku(new Sku().withName("cum") + .withNext(new CommitmentPeriod().withTier("tjdqumqvfm").withCount(352920520))) + .withKind("ooajeyyjmjjx") + .withSku(new Sku().withName("xpxhnzlslekc") .withTier(SkuTier.PREMIUM) - .withSize("uqmllfeothxu") - .withFamily("igrjdljlkqhvkrbz") - .withCapacity(1085067244)) + .withSize("kj") + .withFamily("qpdwad") + .withCapacity(360604152)) .create(); - Assertions.assertEquals("vfcck", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("letyvesz", response.properties().planType()); - Assertions.assertEquals("hpdhwynctaczcnjf", response.properties().current().tier()); - Assertions.assertEquals(103185318, response.properties().current().count()); - Assertions.assertFalse(response.properties().autoRenew()); - Assertions.assertEquals("yxwb", response.properties().next().tier()); - Assertions.assertEquals(269745686, response.properties().next().count()); - Assertions.assertEquals("glhphzwx", response.tags().get("tej")); - Assertions.assertEquals("ilhvtozyagjj", response.location()); - Assertions.assertEquals("lh", response.kind()); - Assertions.assertEquals("xgffklvq", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("rdgscnvqeonsgn", response.sku().size()); - Assertions.assertEquals("lwmezyohxpthceop", response.sku().family()); - Assertions.assertEquals(1614228249, response.sku().capacity()); + Assertions.assertEquals("kbnzxbypfq", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, response.properties().hostingModel()); + Assertions.assertEquals("xwrgrkkderfr", response.properties().planType()); + Assertions.assertEquals("ikwepwogggicw", response.properties().current().tier()); + Assertions.assertEquals(1352786731, response.properties().current().count()); + Assertions.assertTrue(response.properties().autoRenew()); + Assertions.assertEquals("eqavfdbdfmmxj", response.properties().next().tier()); + Assertions.assertEquals(1336586550, response.properties().next().count()); + Assertions.assertEquals("fhsdpzouhkt", response.tags().get("rxqwqnjxrd")); + Assertions.assertEquals("xrljphraspi", response.location()); + Assertions.assertEquals("mdrjuqbpxt", response.kind()); + Assertions.assertEquals("lj", response.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); + Assertions.assertEquals("paxwfqty", response.sku().size()); + Assertions.assertEquals("iprclt", response.sku().family()); + Assertions.assertEquals(1610316502, response.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java index c05a7185038f..a254495692b5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class CommitmentPlansCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"kzkdtzxsoednlwg\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"zomucmqgisnionet\",\"current\":{\"tier\":\"rdpuenxkgtlzl\",\"count\":151759882,\"quota\":{\"quantity\":726614950131051820,\"unit\":\"nhzk\"},\"startDate\":\"bmxlxm\",\"endDate\":\"ygeqzusito\"},\"autoRenew\":false,\"next\":{\"tier\":\"sgbjmlree\",\"count\":1012257594,\"quota\":{\"quantity\":7620535772837855128,\"unit\":\"lc\"},\"startDate\":\"isolntfxxcrqmip\",\"endDate\":\"wfo\"},\"last\":{\"tier\":\"zms\",\"count\":1756374823,\"quota\":{\"quantity\":2257696943692994145,\"unit\":\"bulnvgskjtoxjdz\"},\"startDate\":\"jznvhxqqmq\",\"endDate\":\"aydhf\"},\"provisioningIssues\":[\"c\"]},\"tags\":{\"m\":\"fshksnyzmspamwb\",\"qdktwtkvihlp\":\"nlslcef\",\"zhwv\":\"liwoyngu\"},\"location\":\"dpcmhjh\",\"etag\":\"sybkekymffzt\",\"kind\":\"lscvqsyeiihf\",\"sku\":{\"name\":\"kouihyeseuugcig\",\"tier\":\"Enterprise\",\"size\":\"smg\",\"family\":\"mt\",\"capacity\":1401150784},\"id\":\"bebjn\",\"name\":\"veglabtvkbiwzn\",\"type\":\"tfgfic\"}"; + = "{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"ghnysvlpyeuu\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ixqbolxvhhyqqeg\",\"current\":{\"tier\":\"grznmginmtsd\",\"count\":1395159631,\"quota\":{\"quantity\":314595308736482845,\"unit\":\"m\"},\"startDate\":\"ymncjc\",\"endDate\":\"airwcqzoofj\"},\"autoRenew\":true,\"next\":{\"tier\":\"epfbhtleberpylje\",\"count\":1905710795,\"quota\":{\"quantity\":4716995123278594660,\"unit\":\"qxowkdn\"},\"startDate\":\"xgkrh\",\"endDate\":\"ehycpn\"},\"last\":{\"tier\":\"wonoehr\",\"count\":1876292693,\"quota\":{\"quantity\":7132888662744661758,\"unit\":\"fbjzmpyr\"},\"startDate\":\"yfazbkocb\",\"endDate\":\"vthrmxkb\"},\"provisioningIssues\":[\"wdxomrawp\",\"keboo\",\"fly\"]},\"tags\":{\"lm\":\"gaedaoiq\",\"cooyvhtuqb\":\"dtwgabdxfkuzbwj\"},\"location\":\"lniibncg\",\"etag\":\"dvcdq\",\"kind\":\"tzbpyfao\",\"sku\":{\"name\":\"f\",\"tier\":\"Standard\",\"size\":\"cwmhjobzrfpr\",\"family\":\"dc\",\"capacity\":810182715},\"id\":\"tcvbzwgwhgk\",\"name\":\"soauoorssatfyb\",\"type\":\"pufdmxuqbdqn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,42 +39,41 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .createOrUpdateWithResponse("eubanlxunpqcc", "qiawzl", "klaslga", + .createOrUpdateWithResponse("xq", "wrswyiljp", "bkgx", new CommitmentPlanInner() - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("lrarwpewsaudo") - .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) - .withPlanType("ghsxjpyt") - .withCurrent(new CommitmentPeriod().withTier("bala").withCount(76421440)) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("xre") + .withHostingModel(HostingModel.WEB) + .withPlanType("mcnltmwytkujsqyc") + .withCurrent(new CommitmentPeriod().withTier("xfabl").withCount(115043021)) .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("etwilyrzoxpd").withCount(601671597))) - .withTags(mapOf("jp", "ycpawm", "fpcfjf", "dpwrp", "mnnidmdia", "zlgzawkgyepey", "huosgwqpsqaz", - "pzxkzrntmkct")) - .withLocation("qodvqgcnbhcbmj") - .withKind("iynt") - .withSku(new Sku().withName("jmfmeftvhkm") - .withTier(SkuTier.ENTERPRISE) - .withSize("rh") - .withFamily("bwgmjgrul") - .withCapacity(1820087059)), + .withNext(new CommitmentPeriod().withTier("vumspbfsf").withCount(1780620224))) + .withTags(mapOf("trhthvazjpwex", "wugexojfccyl", "probzzxezmnrkjgp", "dr")) + .withLocation("uxsphlokfpm") + .withKind("vfbhwb") + .withSku(new Sku().withName("ufvcgnrgl") + .withTier(SkuTier.BASIC) + .withSize("yambhb") + .withFamily("ebzx") + .withCapacity(1013124028)), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kzkdtzxsoednlwg", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.properties().hostingModel()); - Assertions.assertEquals("zomucmqgisnionet", response.properties().planType()); - Assertions.assertEquals("rdpuenxkgtlzl", response.properties().current().tier()); - Assertions.assertEquals(151759882, response.properties().current().count()); - Assertions.assertFalse(response.properties().autoRenew()); - Assertions.assertEquals("sgbjmlree", response.properties().next().tier()); - Assertions.assertEquals(1012257594, response.properties().next().count()); - Assertions.assertEquals("fshksnyzmspamwb", response.tags().get("m")); - Assertions.assertEquals("dpcmhjh", response.location()); - Assertions.assertEquals("lscvqsyeiihf", response.kind()); - Assertions.assertEquals("kouihyeseuugcig", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("smg", response.sku().size()); - Assertions.assertEquals("mt", response.sku().family()); - Assertions.assertEquals(1401150784, response.sku().capacity()); + Assertions.assertEquals("ghnysvlpyeuu", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); + Assertions.assertEquals("ixqbolxvhhyqqeg", response.properties().planType()); + Assertions.assertEquals("grznmginmtsd", response.properties().current().tier()); + Assertions.assertEquals(1395159631, response.properties().current().count()); + Assertions.assertTrue(response.properties().autoRenew()); + Assertions.assertEquals("epfbhtleberpylje", response.properties().next().tier()); + Assertions.assertEquals(1905710795, response.properties().next().count()); + Assertions.assertEquals("gaedaoiq", response.tags().get("lm")); + Assertions.assertEquals("lniibncg", response.location()); + Assertions.assertEquals("tzbpyfao", response.kind()); + Assertions.assertEquals("f", response.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals("cwmhjobzrfpr", response.sku().size()); + Assertions.assertEquals("dc", response.sku().family()); + Assertions.assertEquals(810182715, response.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java index 64b758590a89..12aa180b5687 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java @@ -28,7 +28,7 @@ public void testDeleteAssociation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.commitmentPlans() - .deleteAssociation("ukppdixqbo", "xvhhyqq", "gatxgrznmginmtsd", com.azure.core.util.Context.NONE); + .deleteAssociation("mjpequlr", "zaudgjtfbclakkuc", "dwnhczbutoucgjti", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java index cbdb981dd29a..8c57ffe04b13 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.commitmentPlans().delete("dyhi", "paczmuh", "cakznhokhoitwhrj", com.azure.core.util.Context.NONE); + manager.commitmentPlans().delete("sttuxv", "fqayopbtsix", "gvbhxmndztgs", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java index 78f270f642b3..e25ac93d1271 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java @@ -27,7 +27,7 @@ public void testDeletePlan() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.commitmentPlans().deletePlan("nsnaajphmp", "ejnglpwsadaxjsum", com.azure.core.util.Context.NONE); + manager.commitmentPlans().deletePlan("udyhbrj", "talxrdsj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java index 8862541133ec..44b8d82d8296 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CommitmentPlansGetAssociationWithResponseMockTests { @Test public void testGetAssociationWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"accountId\":\"fccylhtrh\"},\"etag\":\"vazjpwexcd\",\"tags\":{\"uxsphlokfpm\":\"robzzxezmnrkjgpj\",\"cgnrglaqrwy\":\"jpdvzvfbhwbdquf\",\"jqut\":\"mbhbafebzxf\",\"u\":\"bhlenntrvrkpsab\"},\"id\":\"zmlghny\",\"name\":\"v\",\"type\":\"pye\"}"; + = "{\"properties\":{\"accountId\":\"ac\"},\"etag\":\"kvnrpbjrmvgoqpl\",\"tags\":{\"llcz\":\"umkz\"},\"id\":\"rwnhkgqggoxsst\",\"name\":\"ivrakfrryn\",\"type\":\"cwmhlymgnukxrk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetAssociationWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .getAssociationWithResponse("atpf", "saebwfwhxorpwal", "zwuge", com.azure.core.util.Context.NONE) + .getAssociationWithResponse("wlyeyz", "udsqcmhnx", "zbuw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("robzzxezmnrkjgpj", response.tags().get("uxsphlokfpm")); - Assertions.assertEquals("fccylhtrh", response.accountId()); + Assertions.assertEquals("umkz", response.tags().get("llcz")); + Assertions.assertEquals("ac", response.accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java index 6bf7a89a9620..357fe4ffa253 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"wuzvcmcokxize\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"rjwuca\",\"current\":{\"tier\":\"vajbvbnkrdemdid\",\"count\":429467980,\"quota\":{\"quantity\":7931143304832540150,\"unit\":\"wdydamisvpzt\"},\"startDate\":\"vykpxkqe\",\"endDate\":\"pjfojiunrls\"},\"autoRenew\":true,\"next\":{\"tier\":\"sykdtoi\",\"count\":1554888273,\"quota\":{\"quantity\":7871773899152316862,\"unit\":\"o\"},\"startDate\":\"vx\",\"endDate\":\"dxonckbn\"},\"last\":{\"tier\":\"fxlupibaq\",\"count\":7828384,\"quota\":{\"quantity\":3361211370082697174,\"unit\":\"eghlw\"},\"startDate\":\"ogvgfklqiyn\",\"endDate\":\"eqelsb\"},\"provisioningIssues\":[\"strkzxsgtznsvl\",\"dsmovpimy\",\"dnox\"]},\"tags\":{\"dxolousdv\":\"rqaqotn\"},\"location\":\"ptqmawzjdrpiz\",\"etag\":\"l\",\"kind\":\"ctsdbtqgkujds\",\"sku\":{\"name\":\"xrqwo\",\"tier\":\"Standard\",\"size\":\"tigapd\",\"family\":\"rikeejdpdfht\",\"capacity\":1245637277},\"id\":\"fqbriqu\",\"name\":\"wwtrjm\",\"type\":\"qkvyhzokpoyuohu\"}"; + = "{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"qt\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ilhvtozyagjj\",\"current\":{\"tier\":\"bylhy\",\"count\":225747362,\"quota\":{\"quantity\":5888657924737855461,\"unit\":\"q\"},\"startDate\":\"wtrdgs\",\"endDate\":\"vq\"},\"autoRenew\":true,\"next\":{\"tier\":\"nwxlwm\",\"count\":1689763711,\"quota\":{\"quantity\":3736560033386256218,\"unit\":\"hceopvkvtwf\"},\"startDate\":\"sobpbo\",\"endDate\":\"mmlcdyarng\"},\"last\":{\"tier\":\"fwblqhxka\",\"count\":1866211644,\"quota\":{\"quantity\":8716346518382932716,\"unit\":\"pyvaosdkluwzx\"},\"startDate\":\"gzvtyevjhubno\",\"endDate\":\"uqisqsqkpd\"},\"provisioningIssues\":[\"y\",\"pnml\",\"iqcpszpmcvq\"]},\"tags\":{\"aotcgbzxmbtp\":\"dmvxyrxdhgvqojb\",\"yidoxznvg\":\"efoi\",\"wsxmrszb\":\"dtmuuvd\"},\"location\":\"imxlpnerxrzuty\",\"etag\":\"urzaqmn\",\"kind\":\"qaeht\",\"sku\":{\"name\":\"jmbnvynf\",\"tier\":\"Standard\",\"size\":\"actedcglskak\",\"family\":\"id\",\"capacity\":270132942},\"id\":\"lrqmtlp\",\"name\":\"yxroiduyqypffmno\",\"type\":\"ic\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,24 +33,24 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .getByResourceGroupWithResponse("jparda", "sjcfma", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("ukib", "iglh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wuzvcmcokxize", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("rjwuca", response.properties().planType()); - Assertions.assertEquals("vajbvbnkrdemdid", response.properties().current().tier()); - Assertions.assertEquals(429467980, response.properties().current().count()); + Assertions.assertEquals("qt", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); + Assertions.assertEquals("ilhvtozyagjj", response.properties().planType()); + Assertions.assertEquals("bylhy", response.properties().current().tier()); + Assertions.assertEquals(225747362, response.properties().current().count()); Assertions.assertTrue(response.properties().autoRenew()); - Assertions.assertEquals("sykdtoi", response.properties().next().tier()); - Assertions.assertEquals(1554888273, response.properties().next().count()); - Assertions.assertEquals("rqaqotn", response.tags().get("dxolousdv")); - Assertions.assertEquals("ptqmawzjdrpiz", response.location()); - Assertions.assertEquals("ctsdbtqgkujds", response.kind()); - Assertions.assertEquals("xrqwo", response.sku().name()); + Assertions.assertEquals("nwxlwm", response.properties().next().tier()); + Assertions.assertEquals(1689763711, response.properties().next().count()); + Assertions.assertEquals("dmvxyrxdhgvqojb", response.tags().get("aotcgbzxmbtp")); + Assertions.assertEquals("imxlpnerxrzuty", response.location()); + Assertions.assertEquals("qaeht", response.kind()); + Assertions.assertEquals("jmbnvynf", response.sku().name()); Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); - Assertions.assertEquals("tigapd", response.sku().size()); - Assertions.assertEquals("rikeejdpdfht", response.sku().family()); - Assertions.assertEquals(1245637277, response.sku().capacity()); + Assertions.assertEquals("actedcglskak", response.sku().size()); + Assertions.assertEquals("id", response.sku().family()); + Assertions.assertEquals(270132942, response.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java index 036788f85801..2c62bf414244 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"mynltwmpftmfoeaj\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"xwet\",\"current\":{\"tier\":\"ddrvlkpzwbhnrecc\",\"count\":420450011,\"quota\":{\"quantity\":7701334975605924576,\"unit\":\"kahmjedbiucvkhhw\"},\"startDate\":\"pjbweunxcq\",\"endDate\":\"ihufoihp\"},\"autoRenew\":false,\"next\":{\"tier\":\"vgnzuzpbgkzcsc\",\"count\":1145172696,\"quota\":{\"quantity\":2041996886864295768,\"unit\":\"hdimjuktirzkau\"},\"startDate\":\"u\",\"endDate\":\"ocf\"},\"last\":{\"tier\":\"wgofmhx\",\"count\":1780419974,\"quota\":{\"quantity\":5319938023711388095,\"unit\":\"k\"},\"startDate\":\"gikyjtkak\",\"endDate\":\"bishjvpzaptuo\"},\"provisioningIssues\":[\"oizjixwfgcdiyk\",\"c\"]},\"tags\":{\"dmuqohhi\":\"ujvqynvavit\",\"ddrwjcljbrhlhpvz\":\"raxq\",\"inafhxrzfrm\":\"dbwen\"},\"location\":\"tiucwv\",\"etag\":\"llukhkrcqxgcbvz\",\"kind\":\"mqcbpokstsinv\",\"sku\":{\"name\":\"ovjyhd\",\"tier\":\"Enterprise\",\"size\":\"dvcehqw\",\"family\":\"txnmxgnmguz\",\"capacity\":1018288584},\"id\":\"orbalkj\",\"name\":\"bkbdhlltqstqkqs\",\"type\":\"gxiynecovagzk\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"cvcewb\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"gsjs\",\"current\":{\"tier\":\"rncmazdfsqxh\",\"count\":982275641,\"quota\":{\"quantity\":7906872327025920638,\"unit\":\"r\"},\"startDate\":\"vgrszr\",\"endDate\":\"tdrcwgzwl\"},\"autoRenew\":false,\"next\":{\"tier\":\"hfixa\",\"count\":175973002,\"quota\":{\"quantity\":5695898263810949122,\"unit\":\"mhpfywvy\"},\"startDate\":\"qpzfzxsoxin\",\"endDate\":\"jlzkdrocqsxy\"},\"last\":{\"tier\":\"tcmiwd\",\"count\":1711042937,\"quota\":{\"quantity\":3118135325605234660,\"unit\":\"lajamca\"},\"startDate\":\"hftpzcrrykll\",\"endDate\":\"nqanhkigglclwal\"},\"provisioningIssues\":[\"bhgzphetxdq\"]},\"tags\":{\"qzjval\":\"cta\",\"ibiwksdegyxsb\":\"cx\"},\"location\":\"zvoikvntwczf\",\"etag\":\"ushlcxpblalh\",\"kind\":\"zpfkis\",\"sku\":{\"name\":\"idqzsaaoqdsgpto\",\"tier\":\"Standard\",\"size\":\"fiafc\",\"family\":\"r\",\"capacity\":1211454767},\"id\":\"jzzca\",\"name\":\"ijolbuauktwieope\",\"type\":\"e\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,24 +33,24 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .getWithResponse("yxvqbanosj", "gir", "bgmgm", com.azure.core.util.Context.NONE) + .getWithResponse("bjop", "ouhbq", "zkqxsalu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("mynltwmpftmfoeaj", response.properties().commitmentPlanGuid()); + Assertions.assertEquals("cvcewb", response.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("xwet", response.properties().planType()); - Assertions.assertEquals("ddrvlkpzwbhnrecc", response.properties().current().tier()); - Assertions.assertEquals(420450011, response.properties().current().count()); + Assertions.assertEquals("gsjs", response.properties().planType()); + Assertions.assertEquals("rncmazdfsqxh", response.properties().current().tier()); + Assertions.assertEquals(982275641, response.properties().current().count()); Assertions.assertFalse(response.properties().autoRenew()); - Assertions.assertEquals("vgnzuzpbgkzcsc", response.properties().next().tier()); - Assertions.assertEquals(1145172696, response.properties().next().count()); - Assertions.assertEquals("ujvqynvavit", response.tags().get("dmuqohhi")); - Assertions.assertEquals("tiucwv", response.location()); - Assertions.assertEquals("mqcbpokstsinv", response.kind()); - Assertions.assertEquals("ovjyhd", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("dvcehqw", response.sku().size()); - Assertions.assertEquals("txnmxgnmguz", response.sku().family()); - Assertions.assertEquals(1018288584, response.sku().capacity()); + Assertions.assertEquals("hfixa", response.properties().next().tier()); + Assertions.assertEquals(175973002, response.properties().next().count()); + Assertions.assertEquals("cta", response.tags().get("qzjval")); + Assertions.assertEquals("zvoikvntwczf", response.location()); + Assertions.assertEquals("zpfkis", response.kind()); + Assertions.assertEquals("idqzsaaoqdsgpto", response.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals("fiafc", response.sku().size()); + Assertions.assertEquals("r", response.sku().family()); + Assertions.assertEquals(1211454767, response.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java index 89dfd9f02f10..85dc401af598 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java @@ -22,7 +22,7 @@ public final class CommitmentPlansListAssociationsMockTests { @Test public void testListAssociations() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"accountId\":\"agairwcqzoofjnqj\"},\"etag\":\"epfbhtleberpylje\",\"tags\":{\"owkdnjr\":\"qnwjjq\",\"wiehycpn\":\"gkr\"},\"id\":\"awonoehrguqlhfw\",\"name\":\"fbjzmpyr\",\"type\":\"uyfazbkoc\"}]}"; + = "{\"value\":[{\"properties\":{\"accountId\":\"izedvbiabvns\"},\"etag\":\"ekzyqxadyfhb\",\"tags\":{\"aqjsgyzstujr\":\"hojqttbspvkhg\",\"sf\":\"xrk\",\"qwrldaxur\":\"rlduyehiiittugy\"},\"id\":\"azcsozjvx\",\"name\":\"zciggbnvtxofwa\",\"type\":\"zyxwhoe\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListAssociations() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().listAssociations("xch", "kibmgjymn", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listAssociations("jwayhi", "qqwwvgwks", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qnwjjq", response.iterator().next().tags().get("owkdnjr")); - Assertions.assertEquals("agairwcqzoofjnqj", response.iterator().next().accountId()); + Assertions.assertEquals("hojqttbspvkhg", response.iterator().next().tags().get("aqjsgyzstujr")); + Assertions.assertEquals("izedvbiabvns", response.iterator().next().accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java index 39621cdfe37f..1b545e7ba0d8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"mfqzwqdnx\",\"hostingModel\":\"Web\",\"planType\":\"c\",\"current\":{\"tier\":\"yw\",\"count\":1535571219,\"quota\":{\"quantity\":9211781434738718590,\"unit\":\"yz\"},\"startDate\":\"czaqpqifdbmpt\",\"endDate\":\"txzuisamonatnize\"},\"autoRenew\":false,\"next\":{\"tier\":\"qjghrmthsplwst\",\"count\":1476415299,\"quota\":{\"quantity\":4189558770153768694,\"unit\":\"paniceo\"},\"startDate\":\"gzwhsxyrujmtik\",\"endDate\":\"likyohz\"},\"last\":{\"tier\":\"qhfnkvycqqqds\",\"count\":575770484,\"quota\":{\"quantity\":6790072487934176345,\"unit\":\"xhrptyodlh\"},\"startDate\":\"ktltddsobjopnouh\",\"endDate\":\"ezkqxsalu\"},\"provisioningIssues\":[\"gfcvcewbwq\",\"dgsjsat\",\"rncmazdfsqxh\",\"qmr\"]},\"tags\":{\"bwtdr\":\"arnpvgrsz\"},\"location\":\"gz\",\"etag\":\"l\",\"kind\":\"lhhfi\",\"sku\":{\"name\":\"cfculzj\",\"tier\":\"Enterprise\",\"size\":\"fywvyldqpzfzx\",\"family\":\"xi\",\"capacity\":536579616},\"id\":\"lzkdrocqsxy\",\"name\":\"qqt\",\"type\":\"miwdwisvnme\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"gusxxhdod\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"blvtb\",\"current\":{\"tier\":\"sbyidaelqpv\",\"count\":71103289,\"quota\":{\"quantity\":3319809436356294651,\"unit\":\"o\"},\"startDate\":\"oggdusxursui\",\"endDate\":\"xcjkcoqwczsy\"},\"autoRenew\":true,\"next\":{\"tier\":\"fwihvaan\",\"count\":384790753,\"quota\":{\"quantity\":1717661200146183306,\"unit\":\"dmfdvbbaexxjfwtg\"},\"startDate\":\"kkauigvmuafmc\",\"endDate\":\"edyueps\"},\"last\":{\"tier\":\"tidajjvyweocf\",\"count\":860123281,\"quota\":{\"quantity\":8583730318789378707,\"unit\":\"kyelsyasvfnkwmy\"},\"startDate\":\"jekrknfd\",\"endDate\":\"gjqyckgtxkrdtulc\"},\"provisioningIssues\":[\"dklotcsubmzo\"]},\"tags\":{\"chkxfpwhdysl\":\"vo\",\"qshwyqxridt\":\"klglmnnkkwa\",\"gxq\":\"bsaqjm\"},\"location\":\"ueuuylztpz\",\"etag\":\"zevjykofve\",\"kind\":\"fkhkqtwqlep\",\"sku\":{\"name\":\"zkca\",\"tier\":\"Free\",\"size\":\"c\",\"family\":\"o\",\"capacity\":1982419722},\"id\":\"wajnrtwzvaqkifm\",\"name\":\"awostfzknhr\",\"type\":\"m\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +34,24 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().listByResourceGroup("pezco", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listByResourceGroup("h", com.azure.core.util.Context.NONE); - Assertions.assertEquals("mfqzwqdnx", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("c", response.iterator().next().properties().planType()); - Assertions.assertEquals("yw", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1535571219, response.iterator().next().properties().current().count()); - Assertions.assertFalse(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("qjghrmthsplwst", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1476415299, response.iterator().next().properties().next().count()); - Assertions.assertEquals("arnpvgrsz", response.iterator().next().tags().get("bwtdr")); - Assertions.assertEquals("gz", response.iterator().next().location()); - Assertions.assertEquals("lhhfi", response.iterator().next().kind()); - Assertions.assertEquals("cfculzj", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.iterator().next().sku().tier()); - Assertions.assertEquals("fywvyldqpzfzx", response.iterator().next().sku().size()); - Assertions.assertEquals("xi", response.iterator().next().sku().family()); - Assertions.assertEquals(536579616, response.iterator().next().sku().capacity()); + Assertions.assertEquals("gusxxhdod", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, + response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("blvtb", response.iterator().next().properties().planType()); + Assertions.assertEquals("sbyidaelqpv", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(71103289, response.iterator().next().properties().current().count()); + Assertions.assertTrue(response.iterator().next().properties().autoRenew()); + Assertions.assertEquals("fwihvaan", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(384790753, response.iterator().next().properties().next().count()); + Assertions.assertEquals("vo", response.iterator().next().tags().get("chkxfpwhdysl")); + Assertions.assertEquals("ueuuylztpz", response.iterator().next().location()); + Assertions.assertEquals("fkhkqtwqlep", response.iterator().next().kind()); + Assertions.assertEquals("zkca", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("c", response.iterator().next().sku().size()); + Assertions.assertEquals("o", response.iterator().next().sku().family()); + Assertions.assertEquals(1982419722, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java index b4da0137bd8d..d0ae0ba2456d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"zqpxzbawkikcd\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ssdpjeyoqxded\",\"current\":{\"tier\":\"iwhagxsur\",\"count\":1878759214,\"quota\":{\"quantity\":4857184166189728487,\"unit\":\"bgullc\"},\"startDate\":\"qqzjkoxdu\",\"endDate\":\"amglrouig\"},\"autoRenew\":true,\"next\":{\"tier\":\"j\",\"count\":1944632599,\"quota\":{\"quantity\":1499823684392724560,\"unit\":\"gd\"},\"startDate\":\"kghpcv\",\"endDate\":\"qirvtk\"},\"last\":{\"tier\":\"hmvfxlapjajodm\",\"count\":480333031,\"quota\":{\"quantity\":6812003311431684914,\"unit\":\"vqokql\"},\"startDate\":\"qg\",\"endDate\":\"abwlyvx\"},\"provisioningIssues\":[\"qvctsfa\",\"uhwwsknstvz\",\"zhasupmlppdpgzvz\",\"azvbkar\"]},\"tags\":{\"atsyiysjqhenig\":\"gongr\",\"gubabyjde\":\"eq\"},\"location\":\"sc\",\"etag\":\"ydzjemexm\",\"kind\":\"kvmuwrxlniwmcp\",\"sku\":{\"name\":\"rdlhvdvmiphbe\",\"tier\":\"Basic\",\"size\":\"zmhkdclacroczfmu\",\"family\":\"rkeluxzshxzezbzu\",\"capacity\":955799432},\"id\":\"evzske\",\"name\":\"cgwfsgqkstyecu\",\"type\":\"yu\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"pgbrhbjdqknhq\",\"hostingModel\":\"Web\",\"planType\":\"puwnnohmmzngocfr\",\"current\":{\"tier\":\"pwyiulayno\",\"count\":946012017,\"quota\":{\"quantity\":7150761293896543518,\"unit\":\"ttpfsmwgsgh\"},\"startDate\":\"cum\",\"endDate\":\"dau\"},\"autoRenew\":false,\"next\":{\"tier\":\"eot\",\"count\":1721265983,\"quota\":{\"quantity\":8612690025875075532,\"unit\":\"jdljlkqhvkrb\"},\"startDate\":\"uast\",\"endDate\":\"klpruulhglt\"},\"last\":{\"tier\":\"wx\",\"count\":987112633,\"quota\":{\"quantity\":4872804332618414524,\"unit\":\"yskye\"},\"startDate\":\"afxcz\",\"endDate\":\"cckwrtwle\"},\"provisioningIssues\":[\"eszr\",\"lhpdhwynctaczcnj\",\"mbbfnv\"]},\"tags\":{\"nkrtikl\":\"tzo\",\"hql\":\"mn\"},\"location\":\"qksyiibhyxwbgbu\",\"etag\":\"vqdorbccqcd\",\"kind\":\"hojvlirkn\",\"sku\":{\"name\":\"osa\",\"tier\":\"Enterprise\",\"size\":\"nagzlg\",\"family\":\"aixihzqjjtsmuyd\",\"capacity\":1244552542},\"id\":\"kacybdueurgmcdcp\",\"name\":\"shlojermh\",\"type\":\"icsbfdjhyaakn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,23 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().list("dmmazdnc", "idb", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().list("jay", "mar", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zqpxzbawkikcd", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, - response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("ssdpjeyoqxded", response.iterator().next().properties().planType()); - Assertions.assertEquals("iwhagxsur", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1878759214, response.iterator().next().properties().current().count()); - Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("j", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1944632599, response.iterator().next().properties().next().count()); - Assertions.assertEquals("gongr", response.iterator().next().tags().get("atsyiysjqhenig")); - Assertions.assertEquals("sc", response.iterator().next().location()); - Assertions.assertEquals("kvmuwrxlniwmcp", response.iterator().next().kind()); - Assertions.assertEquals("rdlhvdvmiphbe", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals("zmhkdclacroczfmu", response.iterator().next().sku().size()); - Assertions.assertEquals("rkeluxzshxzezbzu", response.iterator().next().sku().family()); - Assertions.assertEquals(955799432, response.iterator().next().sku().capacity()); + Assertions.assertEquals("pgbrhbjdqknhq", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("puwnnohmmzngocfr", response.iterator().next().properties().planType()); + Assertions.assertEquals("pwyiulayno", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(946012017, response.iterator().next().properties().current().count()); + Assertions.assertFalse(response.iterator().next().properties().autoRenew()); + Assertions.assertEquals("eot", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(1721265983, response.iterator().next().properties().next().count()); + Assertions.assertEquals("tzo", response.iterator().next().tags().get("nkrtikl")); + Assertions.assertEquals("qksyiibhyxwbgbu", response.iterator().next().location()); + Assertions.assertEquals("hojvlirkn", response.iterator().next().kind()); + Assertions.assertEquals("osa", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.ENTERPRISE, response.iterator().next().sku().tier()); + Assertions.assertEquals("nagzlg", response.iterator().next().sku().size()); + Assertions.assertEquals("aixihzqjjtsmuyd", response.iterator().next().sku().family()); + Assertions.assertEquals(1244552542, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java index 411a92a6ebd9..97d3250e0d99 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListPlansBySubscriptionMockTests { @Test public void testListPlansBySubscription() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"m\",\"hostingModel\":\"Web\",\"planType\":\"hftpzcrrykll\",\"current\":{\"tier\":\"qanhkigg\",\"count\":1710211884,\"quota\":{\"quantity\":2657944861470820502,\"unit\":\"ubhg\"},\"startDate\":\"hetxdqcmyctajqz\",\"endDate\":\"alec\"},\"autoRenew\":true,\"next\":{\"tier\":\"wksdegyxsbfpzvo\",\"count\":873335912,\"quota\":{\"quantity\":4183388609452860640,\"unit\":\"fzwush\"},\"startDate\":\"xpblalh\",\"endDate\":\"zpfkis\"},\"last\":{\"tier\":\"dqzsaaoqdsgp\",\"count\":222070113,\"quota\":{\"quantity\":1226286358954663513,\"unit\":\"afcnlrtb\"},\"startDate\":\"jzzca\",\"endDate\":\"jolb\"},\"provisioningIssues\":[\"ktwieope\",\"e\",\"xq\",\"wrswyiljp\"]},\"tags\":{\"bmcnltmwytku\":\"gxyxyauxredd\",\"wbmwhrialiwr\":\"sqycmmoxfablqg\",\"bibticuhqvum\":\"cgnwplrrbphcts\"},\"location\":\"bfs\",\"etag\":\"qbbewfcuqfpyyxm\",\"kind\":\"mtmvwituwey\",\"sku\":{\"name\":\"shcybwfuppox\",\"tier\":\"Free\",\"size\":\"vo\",\"family\":\"jxdiikmoxrezsv\",\"capacity\":1518144879},\"id\":\"xikjm\",\"name\":\"ywlunpipcwybs\",\"type\":\"fncn\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"vdscnhemv\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"qwypvndrwb\",\"current\":{\"tier\":\"tggrss\",\"count\":1869224076,\"quota\":{\"quantity\":2080855753944211216,\"unit\":\"jmu\"},\"startDate\":\"vecvzts\",\"endDate\":\"gmusaictdscnkzzo\"},\"autoRenew\":true,\"next\":{\"tier\":\"clzeq\",\"count\":855961418,\"quota\":{\"quantity\":2685772204942604455,\"unit\":\"qixbnjrqvzyuexo\"},\"startDate\":\"nynpameudpabcre\",\"endDate\":\"zosgyjxvcvasorm\"},\"last\":{\"tier\":\"zvdube\",\"count\":1122211076,\"quota\":{\"quantity\":4468547287343585935,\"unit\":\"uvecovsd\"},\"startDate\":\"zrtdbakr\",\"endDate\":\"mz\"},\"provisioningIssues\":[\"pkeqsifj\",\"clngy\",\"nhr\",\"ombcdtajdopggo\"]},\"tags\":{\"yrlmwkptsk\":\"oqtrotpvclpo\"},\"location\":\"jgvhxcc\",\"etag\":\"kakmkookbputmgvm\",\"kind\":\"akmlwktfowzkroyr\",\"sku\":{\"name\":\"r\",\"tier\":\"Basic\",\"size\":\"qjimejtgzjxxlfej\",\"family\":\"uqloiwyayyzivrmi\",\"capacity\":801413968},\"id\":\"lhchwhrktjleif\",\"name\":\"bfi\",\"type\":\"lhxfnsmycj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,21 +36,22 @@ public void testListPlansBySubscription() throws Exception { PagedIterable response = manager.commitmentPlans().listPlansBySubscription(com.azure.core.util.Context.NONE); - Assertions.assertEquals("m", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("hftpzcrrykll", response.iterator().next().properties().planType()); - Assertions.assertEquals("qanhkigg", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1710211884, response.iterator().next().properties().current().count()); + Assertions.assertEquals("vdscnhemv", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, + response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("qwypvndrwb", response.iterator().next().properties().planType()); + Assertions.assertEquals("tggrss", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(1869224076, response.iterator().next().properties().current().count()); Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("wksdegyxsbfpzvo", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(873335912, response.iterator().next().properties().next().count()); - Assertions.assertEquals("gxyxyauxredd", response.iterator().next().tags().get("bmcnltmwytku")); - Assertions.assertEquals("bfs", response.iterator().next().location()); - Assertions.assertEquals("mtmvwituwey", response.iterator().next().kind()); - Assertions.assertEquals("shcybwfuppox", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); - Assertions.assertEquals("vo", response.iterator().next().sku().size()); - Assertions.assertEquals("jxdiikmoxrezsv", response.iterator().next().sku().family()); - Assertions.assertEquals(1518144879, response.iterator().next().sku().capacity()); + Assertions.assertEquals("clzeq", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(855961418, response.iterator().next().properties().next().count()); + Assertions.assertEquals("oqtrotpvclpo", response.iterator().next().tags().get("yrlmwkptsk")); + Assertions.assertEquals("jgvhxcc", response.iterator().next().location()); + Assertions.assertEquals("akmlwktfowzkroyr", response.iterator().next().kind()); + Assertions.assertEquals("r", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); + Assertions.assertEquals("qjimejtgzjxxlfej", response.iterator().next().sku().size()); + Assertions.assertEquals("uqloiwyayyzivrmi", response.iterator().next().sku().family()); + Assertions.assertEquals(801413968, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java index b38e5dcb7328..6f9da6fe2e87 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java @@ -11,9 +11,9 @@ public final class CommitmentQuotaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CommitmentQuota model = BinaryData.fromString("{\"quantity\":8572095075412575290,\"unit\":\"t\"}") + CommitmentQuota model = BinaryData.fromString("{\"quantity\":456815432362653733,\"unit\":\"df\"}") .toObject(CommitmentQuota.class); - Assertions.assertEquals(8572095075412575290L, model.quantity()); - Assertions.assertEquals("t", model.unit()); + Assertions.assertEquals(456815432362653733L, model.quantity()); + Assertions.assertEquals("df", model.unit()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java index 958e7414743f..cdc5c67405da 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java @@ -13,17 +13,17 @@ public final class CommitmentTierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentTierInner model = BinaryData.fromString( - "{\"kind\":\"kwseivmakxhyso\",\"skuName\":\"juxlkbectvtfjm\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"hmaiubavlzwpvg\",\"tier\":\"a\",\"maxCount\":1236246981,\"quota\":{\"quantity\":3753007374917287428,\"unit\":\"kedgj\"},\"cost\":{\"commitmentMeterId\":\"kmkrokzrth\",\"overageMeterId\":\"twpqrtva\"}}") + "{\"kind\":\"l\",\"skuName\":\"iomqoqpepiaea\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"rgdtpeqnacyheqw\",\"tier\":\"qq\",\"maxCount\":1737059096,\"quota\":{\"quantity\":4637890487093031437,\"unit\":\"ozf\"},\"cost\":{\"commitmentMeterId\":\"wmbupyvqyvliq\",\"overageMeterId\":\"psejbsvsiaies\"}}") .toObject(CommitmentTierInner.class); - Assertions.assertEquals("kwseivmakxhyso", model.kind()); - Assertions.assertEquals("juxlkbectvtfjm", model.skuName()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.hostingModel()); - Assertions.assertEquals("hmaiubavlzwpvg", model.planType()); - Assertions.assertEquals("a", model.tier()); - Assertions.assertEquals(1236246981, model.maxCount()); - Assertions.assertEquals(3753007374917287428L, model.quota().quantity()); - Assertions.assertEquals("kedgj", model.quota().unit()); - Assertions.assertEquals("kmkrokzrth", model.cost().commitmentMeterId()); - Assertions.assertEquals("twpqrtva", model.cost().overageMeterId()); + Assertions.assertEquals("l", model.kind()); + Assertions.assertEquals("iomqoqpepiaea", model.skuName()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, model.hostingModel()); + Assertions.assertEquals("rgdtpeqnacyheqw", model.planType()); + Assertions.assertEquals("qq", model.tier()); + Assertions.assertEquals(1737059096, model.maxCount()); + Assertions.assertEquals(4637890487093031437L, model.quota().quantity()); + Assertions.assertEquals("ozf", model.quota().unit()); + Assertions.assertEquals("wmbupyvqyvliq", model.cost().commitmentMeterId()); + Assertions.assertEquals("psejbsvsiaies", model.cost().overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java index afdb0a0e7fec..f9d650dd6a47 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java @@ -12,8 +12,8 @@ public final class CommitmentTierListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentTierListResult model = BinaryData.fromString( - "{\"nextLink\":\"qotwfh\",\"value\":[{\"kind\":\"gsabvcipowzafc\",\"skuName\":\"umljcirvpef\",\"hostingModel\":\"Web\",\"planType\":\"ei\",\"tier\":\"tjnsx\",\"maxCount\":1266964296,\"quota\":{\"quantity\":213770050562741377,\"unit\":\"wjuyxx\"},\"cost\":{\"commitmentMeterId\":\"vmv\",\"overageMeterId\":\"ytuadxkxeqbwp\"}},{\"kind\":\"ghyksarcdrnxs\",\"skuName\":\"vlzladl\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"bqhvfdqqjwkr\",\"tier\":\"zdanojis\",\"maxCount\":1762220888,\"quota\":{\"quantity\":5021634765672700621,\"unit\":\"tuz\"},\"cost\":{\"commitmentMeterId\":\"tibpv\",\"overageMeterId\":\"aehxsmzygdf\"}}]}") + "{\"nextLink\":\"mefgvqcpdwjgqux\",\"value\":[{\"kind\":\"landkdcdjhunhgh\",\"skuName\":\"awnrrnquoxsotir\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"eobfsxstcyilbvzm\",\"tier\":\"cjzlquzexokjxebj\",\"maxCount\":1964355203,\"quota\":{\"quantity\":8319276055113449087,\"unit\":\"wmvogljsv\"},\"cost\":{\"commitmentMeterId\":\"idnwceha\",\"overageMeterId\":\"do\"}}]}") .toObject(CommitmentTierListResult.class); - Assertions.assertEquals("qotwfh", model.nextLink()); + Assertions.assertEquals("mefgvqcpdwjgqux", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java index b1302ba76633..0e19d48aa835 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentTiersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"kind\":\"qxqkv\",\"skuName\":\"mjhymudjma\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ebhsermclyqw\",\"tier\":\"hyqkaaptbssvkbcb\",\"maxCount\":1798263571,\"quota\":{\"quantity\":577834154400477682,\"unit\":\"cuhp\"},\"cost\":{\"commitmentMeterId\":\"bnsshvq\",\"overageMeterId\":\"szbeuybutcdzjf\"}}]}"; + = "{\"value\":[{\"kind\":\"dwz\",\"skuName\":\"gkw\",\"hostingModel\":\"Web\",\"planType\":\"mz\",\"tier\":\"yfiqiidxcorjvudy\",\"maxCount\":804075156,\"quota\":{\"quantity\":122012109169706075,\"unit\":\"ayiq\"},\"cost\":{\"commitmentMeterId\":\"kmmxzifbqgqexo\",\"overageMeterId\":\"zrt\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentTiers().list("pzheahu", com.azure.core.util.Context.NONE); + = manager.commitmentTiers().list("ukfaj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qxqkv", response.iterator().next().kind()); - Assertions.assertEquals("mjhymudjma", response.iterator().next().skuName()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.iterator().next().hostingModel()); - Assertions.assertEquals("ebhsermclyqw", response.iterator().next().planType()); - Assertions.assertEquals("hyqkaaptbssvkbcb", response.iterator().next().tier()); - Assertions.assertEquals(1798263571, response.iterator().next().maxCount()); - Assertions.assertEquals(577834154400477682L, response.iterator().next().quota().quantity()); - Assertions.assertEquals("cuhp", response.iterator().next().quota().unit()); - Assertions.assertEquals("bnsshvq", response.iterator().next().cost().commitmentMeterId()); - Assertions.assertEquals("szbeuybutcdzjf", response.iterator().next().cost().overageMeterId()); + Assertions.assertEquals("dwz", response.iterator().next().kind()); + Assertions.assertEquals("gkw", response.iterator().next().skuName()); + Assertions.assertEquals(HostingModel.WEB, response.iterator().next().hostingModel()); + Assertions.assertEquals("mz", response.iterator().next().planType()); + Assertions.assertEquals("yfiqiidxcorjvudy", response.iterator().next().tier()); + Assertions.assertEquals(804075156, response.iterator().next().maxCount()); + Assertions.assertEquals(122012109169706075L, response.iterator().next().quota().quantity()); + Assertions.assertEquals("ayiq", response.iterator().next().quota().unit()); + Assertions.assertEquals("kmmxzifbqgqexo", response.iterator().next().cost().commitmentMeterId()); + Assertions.assertEquals("zrt", response.iterator().next().cost().overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionManagedIdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionManagedIdentityTests.java index 1a447a36904f..986395bb0de9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionManagedIdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionManagedIdentityTests.java @@ -12,18 +12,18 @@ public final class ConnectionManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionManagedIdentity model - = BinaryData.fromString("{\"clientId\":\"uzzjgnrefq\",\"resourceId\":\"qotoihiqakydiwfb\"}") + = BinaryData.fromString("{\"clientId\":\"mbscbbx\",\"resourceId\":\"dhxiidlopedbwd\"}") .toObject(ConnectionManagedIdentity.class); - Assertions.assertEquals("uzzjgnrefq", model.clientId()); - Assertions.assertEquals("qotoihiqakydiwfb", model.resourceId()); + Assertions.assertEquals("mbscbbx", model.clientId()); + Assertions.assertEquals("dhxiidlopedbwd", model.resourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConnectionManagedIdentity model - = new ConnectionManagedIdentity().withClientId("uzzjgnrefq").withResourceId("qotoihiqakydiwfb"); + = new ConnectionManagedIdentity().withClientId("mbscbbx").withResourceId("dhxiidlopedbwd"); model = BinaryData.fromObject(model).toObject(ConnectionManagedIdentity.class); - Assertions.assertEquals("uzzjgnrefq", model.clientId()); - Assertions.assertEquals("qotoihiqakydiwfb", model.resourceId()); + Assertions.assertEquals("mbscbbx", model.clientId()); + Assertions.assertEquals("dhxiidlopedbwd", model.resourceId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java index adc358b3904d..b31b44687c45 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java @@ -12,14 +12,14 @@ public final class ConnectionPersonalAccessTokenTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPersonalAccessToken model - = BinaryData.fromString("{\"pat\":\"jxsglhsr\"}").toObject(ConnectionPersonalAccessToken.class); - Assertions.assertEquals("jxsglhsr", model.pat()); + = BinaryData.fromString("{\"pat\":\"hhltnjadhqo\"}").toObject(ConnectionPersonalAccessToken.class); + Assertions.assertEquals("hhltnjadhqo", model.pat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionPersonalAccessToken model = new ConnectionPersonalAccessToken().withPat("jxsglhsr"); + ConnectionPersonalAccessToken model = new ConnectionPersonalAccessToken().withPat("hhltnjadhqo"); model = BinaryData.fromObject(model).toObject(ConnectionPersonalAccessToken.class); - Assertions.assertEquals("jxsglhsr", model.pat()); + Assertions.assertEquals("hhltnjadhqo", model.pat()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceArmPaginatedResultTests.java index c7aebb606d72..153f590f01b1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceArmPaginatedResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceArmPaginatedResultTests.java @@ -16,19 +16,19 @@ public final class ConnectionPropertiesV2BasicResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2BasicResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"twvc\",\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Spark\",\"createdByWorkspaceArmId\":\"cvejyfdvlvhbwrn\",\"error\":\"tgddpqthehnmnaoy\",\"expiryTime\":\"2021-10-27T17:47:39Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"droznn\":\"ankltytm\",\"csgguxhemlw\":\"drlktg\",\"kklelssxblycs\":\"waeeczgfb\",\"plpvm\":\"zujksrlsmdes\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"idyvteow\",\"vgp\"],\"target\":\"deugf\",\"useWorkspaceManagedIdentity\":false},\"id\":\"c\",\"name\":\"axwk\",\"type\":\"fykhvuhxepmru\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"OpenAI\",\"createdByWorkspaceArmId\":\"baobn\",\"error\":\"ujdjltymkmvg\",\"expiryTime\":\"2021-05-16T09:26:28Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"j\":\"pphkixkykxds\",\"kkflrmymyincqlhr\":\"emmucfxh\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"iiovgqcgxu\",\"gqkctotiowlxte\",\"dptjgwdtgukranb\",\"wphqlkccuzgygqw\"],\"target\":\"oiulwgniipr\",\"useWorkspaceManagedIdentity\":true},\"id\":\"w\",\"name\":\"wzdufypivlsbb\",\"type\":\"pmcubkmifoxxkub\"}]}") + "{\"nextLink\":\"tmoqqtlffhzb\",\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Square\",\"createdByWorkspaceArmId\":\"avfqnvhnqoewdogi\",\"error\":\"tesypvidbztjh\",\"expiryTime\":\"2021-02-22T18:19:17Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"hpsprkzyaupiac\":\"kbwetnj\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"qroohtu\"],\"target\":\"maonurj\",\"useWorkspaceManagedIdentity\":false},\"id\":\"hihpvecmsl\",\"name\":\"lbl\",\"type\":\"jxl\"}]}") .toObject(ConnectionPropertiesV2BasicResourceArmPaginatedResult.class); - Assertions.assertEquals("twvc", model.nextLink()); - Assertions.assertEquals(ConnectionCategory.SPARK, model.value().get(0).properties().category()); - Assertions.assertEquals("tgddpqthehnmnaoy", model.value().get(0).properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T17:47:39Z"), + Assertions.assertEquals("tmoqqtlffhzb", model.nextLink()); + Assertions.assertEquals(ConnectionCategory.SQUARE, model.value().get(0).properties().category()); + Assertions.assertEquals("tesypvidbztjh", model.value().get(0).properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T18:19:17Z"), model.value().get(0).properties().expiryTime()); - Assertions.assertTrue(model.value().get(0).properties().isSharedToAll()); - Assertions.assertEquals("ankltytm", model.value().get(0).properties().metadata().get("droznn")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.value().get(0).properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.value().get(0).properties().peStatus()); - Assertions.assertEquals("idyvteow", model.value().get(0).properties().sharedUserList().get(0)); - Assertions.assertEquals("deugf", model.value().get(0).properties().target()); + Assertions.assertFalse(model.value().get(0).properties().isSharedToAll()); + Assertions.assertEquals("kbwetnj", model.value().get(0).properties().metadata().get("hpsprkzyaupiac")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.value().get(0).properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.value().get(0).properties().peStatus()); + Assertions.assertEquals("qroohtu", model.value().get(0).properties().sharedUserList().get(0)); + Assertions.assertEquals("maonurj", model.value().get(0).properties().target()); Assertions.assertFalse(model.value().get(0).properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceInnerTests.java index 0ddcc37d4abf..4ddc7d171750 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceInnerTests.java @@ -20,45 +20,44 @@ public final class ConnectionPropertiesV2BasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2BasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Spark\",\"createdByWorkspaceArmId\":\"xkumasjcaac\",\"error\":\"mmcpug\",\"expiryTime\":\"2021-09-14T23:55:36Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"hnl\":\"hbzehewho\",\"clgsc\":\"qnbldxe\",\"rsrrmoucsofldp\":\"orim\",\"mxuq\":\"viyfcaabeolhbhlv\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"udfbsfarf\",\"iowl\",\"jxnqp\",\"wgfstmhqykizm\"],\"target\":\"saoafcluqvox\",\"useWorkspaceManagedIdentity\":true},\"id\":\"im\",\"name\":\"yvwgcwwpbmzgwe\",\"type\":\"ydsx\"}") + "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Office365\",\"createdByWorkspaceArmId\":\"gmsplzgaufcshhv\",\"error\":\"wgnxkympqanxrj\",\"expiryTime\":\"2021-11-18T11:18:58Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"lhkgmnsghp\":\"ypnyghshxc\",\"ac\":\"ycphdrwjjkhvyo\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"mhrpqpdfw\",\"kois\"],\"target\":\"ssffxuifmc\",\"useWorkspaceManagedIdentity\":false},\"id\":\"bkdq\",\"name\":\"rdzsylollgtrczzy\",\"type\":\"mxzjijpvua\"}") .toObject(ConnectionPropertiesV2BasicResourceInner.class); - Assertions.assertEquals(ConnectionCategory.SPARK, model.properties().category()); - Assertions.assertEquals("mmcpug", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T23:55:36Z"), model.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.OFFICE365, model.properties().category()); + Assertions.assertEquals("wgnxkympqanxrj", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T11:18:58Z"), model.properties().expiryTime()); Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("hbzehewho", model.properties().metadata().get("hnl")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.properties().peStatus()); - Assertions.assertEquals("udfbsfarf", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("saoafcluqvox", model.properties().target()); - Assertions.assertTrue(model.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("ypnyghshxc", model.properties().metadata().get("lhkgmnsghp")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); + Assertions.assertEquals("mhrpqpdfw", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("ssffxuifmc", model.properties().target()); + Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConnectionPropertiesV2BasicResourceInner model = new ConnectionPropertiesV2BasicResourceInner() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.SPARK) - .withError("mmcpug") - .withExpiryTime(OffsetDateTime.parse("2021-09-14T23:55:36Z")) + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.OFFICE365) + .withError("wgnxkympqanxrj") + .withExpiryTime(OffsetDateTime.parse("2021-11-18T11:18:58Z")) .withIsSharedToAll(true) - .withMetadata( - mapOf("hnl", "hbzehewho", "clgsc", "qnbldxe", "rsrrmoucsofldp", "orim", "mxuq", "viyfcaabeolhbhlv")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("udfbsfarf", "iowl", "jxnqp", "wgfstmhqykizm")) - .withTarget("saoafcluqvox") - .withUseWorkspaceManagedIdentity(true)); + .withMetadata(mapOf("lhkgmnsghp", "ypnyghshxc", "ac", "ycphdrwjjkhvyo")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("mhrpqpdfw", "kois")) + .withTarget("ssffxuifmc") + .withUseWorkspaceManagedIdentity(false)); model = BinaryData.fromObject(model).toObject(ConnectionPropertiesV2BasicResourceInner.class); - Assertions.assertEquals(ConnectionCategory.SPARK, model.properties().category()); - Assertions.assertEquals("mmcpug", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T23:55:36Z"), model.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.OFFICE365, model.properties().category()); + Assertions.assertEquals("wgnxkympqanxrj", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T11:18:58Z"), model.properties().expiryTime()); Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("hbzehewho", model.properties().metadata().get("hnl")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.properties().peStatus()); - Assertions.assertEquals("udfbsfarf", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("saoafcluqvox", model.properties().target()); - Assertions.assertTrue(model.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("ypnyghshxc", model.properties().metadata().get("lhkgmnsghp")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); + Assertions.assertEquals("mhrpqpdfw", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("ssffxuifmc", model.properties().target()); + Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2Tests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2Tests.java index 09c0ac007e96..e9730f4e76b9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2Tests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2Tests.java @@ -19,43 +19,43 @@ public final class ConnectionPropertiesV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2 model = BinaryData.fromString( - "{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Concur\",\"createdByWorkspaceArmId\":\"hecbvopwndyq\",\"error\":\"allklmtkhlowk\",\"expiryTime\":\"2021-07-25T00:57:05Z\",\"group\":\"Azure\",\"isSharedToAll\":true,\"metadata\":{\"ikcyyc\":\"mzsyzfhotl\",\"c\":\"unsjlpjrtwszhvvu\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"hwrbfdpyflubh\",\"jgl\"],\"target\":\"cuyzlwhhmemhoocl\",\"useWorkspaceManagedIdentity\":false}") + "{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Salesforce\",\"createdByWorkspaceArmId\":\"hci\",\"error\":\"defxrdc\",\"expiryTime\":\"2021-10-21T15:59:45Z\",\"group\":\"Database\",\"isSharedToAll\":false,\"metadata\":{\"qltgrd\":\"urnnqbnqbpiz\",\"a\":\"gypxrxvbfihwuhvc\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"lmliowxihspnxwqa\"],\"target\":\"epzwaklsbsbqq\",\"useWorkspaceManagedIdentity\":true}") .toObject(ConnectionPropertiesV2.class); - Assertions.assertEquals(ConnectionCategory.CONCUR, model.category()); - Assertions.assertEquals("allklmtkhlowk", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T00:57:05Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("mzsyzfhotl", model.metadata().get("ikcyyc")); + Assertions.assertEquals(ConnectionCategory.SALESFORCE, model.category()); + Assertions.assertEquals("defxrdc", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T15:59:45Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("urnnqbnqbpiz", model.metadata().get("qltgrd")); Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("hwrbfdpyflubh", model.sharedUserList().get(0)); - Assertions.assertEquals("cuyzlwhhmemhoocl", model.target()); - Assertions.assertFalse(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); + Assertions.assertEquals("lmliowxihspnxwqa", model.sharedUserList().get(0)); + Assertions.assertEquals("epzwaklsbsbqq", model.target()); + Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionPropertiesV2 model = new ConnectionPropertiesV2().withCategory(ConnectionCategory.CONCUR) - .withError("allklmtkhlowk") - .withExpiryTime(OffsetDateTime.parse("2021-07-25T00:57:05Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("ikcyyc", "mzsyzfhotl", "c", "unsjlpjrtwszhvvu")) + ConnectionPropertiesV2 model = new ConnectionPropertiesV2().withCategory(ConnectionCategory.SALESFORCE) + .withError("defxrdc") + .withExpiryTime(OffsetDateTime.parse("2021-10-21T15:59:45Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("qltgrd", "urnnqbnqbpiz", "a", "gypxrxvbfihwuhvc")) .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("hwrbfdpyflubh", "jgl")) - .withTarget("cuyzlwhhmemhoocl") - .withUseWorkspaceManagedIdentity(false); + .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) + .withSharedUserList(Arrays.asList("lmliowxihspnxwqa")) + .withTarget("epzwaklsbsbqq") + .withUseWorkspaceManagedIdentity(true); model = BinaryData.fromObject(model).toObject(ConnectionPropertiesV2.class); - Assertions.assertEquals(ConnectionCategory.CONCUR, model.category()); - Assertions.assertEquals("allklmtkhlowk", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T00:57:05Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("mzsyzfhotl", model.metadata().get("ikcyyc")); + Assertions.assertEquals(ConnectionCategory.SALESFORCE, model.category()); + Assertions.assertEquals("defxrdc", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T15:59:45Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("urnnqbnqbpiz", model.metadata().get("qltgrd")); Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("hwrbfdpyflubh", model.sharedUserList().get(0)); - Assertions.assertEquals("cuyzlwhhmemhoocl", model.target()); - Assertions.assertFalse(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); + Assertions.assertEquals("lmliowxihspnxwqa", model.sharedUserList().get(0)); + Assertions.assertEquals("epzwaklsbsbqq", model.target()); + Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java index f54bb7a9c9b0..16e8c1fe003e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java @@ -12,14 +12,14 @@ public final class ConnectionSharedAccessSignatureTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionSharedAccessSignature model - = BinaryData.fromString("{\"sas\":\"iblkujr\"}").toObject(ConnectionSharedAccessSignature.class); - Assertions.assertEquals("iblkujr", model.sas()); + = BinaryData.fromString("{\"sas\":\"zxojpslsv\"}").toObject(ConnectionSharedAccessSignature.class); + Assertions.assertEquals("zxojpslsv", model.sas()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionSharedAccessSignature model = new ConnectionSharedAccessSignature().withSas("iblkujr"); + ConnectionSharedAccessSignature model = new ConnectionSharedAccessSignature().withSas("zxojpslsv"); model = BinaryData.fromObject(model).toObject(ConnectionSharedAccessSignature.class); - Assertions.assertEquals("iblkujr", model.sas()); + Assertions.assertEquals("zxojpslsv", model.sas()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionUpdateContentTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionUpdateContentTests.java index eb158d09131e..5dbd34831045 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionUpdateContentTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionUpdateContentTests.java @@ -20,43 +20,43 @@ public final class ConnectionUpdateContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionUpdateContent model = BinaryData.fromString( - "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Oracle\",\"createdByWorkspaceArmId\":\"s\",\"error\":\"udgzhxogjgg\",\"expiryTime\":\"2021-06-10T02:57:11Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"mdyomkxfbvfbh\":\"dafhr\",\"rhpw\":\"y\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"awzovgkk\",\"muikjcjcaztbws\"],\"target\":\"qowxwcom\",\"useWorkspaceManagedIdentity\":false}}") + "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"GoogleCloudStorage\",\"createdByWorkspaceArmId\":\"ivensrpmeyyvpk\",\"error\":\"tlbijpzg\",\"expiryTime\":\"2021-10-22T08:48:44Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"pvfqawz\":\"lmknbnxwcdom\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"iac\",\"kiexhajlfnthiq\",\"yuttdiygbpvnwswm\",\"xkyctwwgzwx\"],\"target\":\"mecvogygzyvneeza\",\"useWorkspaceManagedIdentity\":false}}") .toObject(ConnectionUpdateContent.class); - Assertions.assertEquals(ConnectionCategory.ORACLE, model.properties().category()); - Assertions.assertEquals("udgzhxogjgg", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T02:57:11Z"), model.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.GOOGLE_CLOUD_STORAGE, model.properties().category()); + Assertions.assertEquals("tlbijpzg", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T08:48:44Z"), model.properties().expiryTime()); Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("dafhr", model.properties().metadata().get("mdyomkxfbvfbh")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals("lmknbnxwcdom", model.properties().metadata().get("pvfqawz")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); - Assertions.assertEquals("awzovgkk", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("qowxwcom", model.properties().target()); + Assertions.assertEquals("iac", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("mecvogygzyvneeza", model.properties().target()); Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConnectionUpdateContent model = new ConnectionUpdateContent() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.ORACLE) - .withError("udgzhxogjgg") - .withExpiryTime(OffsetDateTime.parse("2021-06-10T02:57:11Z")) + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.GOOGLE_CLOUD_STORAGE) + .withError("tlbijpzg") + .withExpiryTime(OffsetDateTime.parse("2021-10-22T08:48:44Z")) .withIsSharedToAll(true) - .withMetadata(mapOf("mdyomkxfbvfbh", "dafhr", "rhpw", "y")) - .withPeRequirement(ManagedPERequirement.REQUIRED) + .withMetadata(mapOf("pvfqawz", "lmknbnxwcdom")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) - .withSharedUserList(Arrays.asList("awzovgkk", "muikjcjcaztbws")) - .withTarget("qowxwcom") + .withSharedUserList(Arrays.asList("iac", "kiexhajlfnthiq", "yuttdiygbpvnwswm", "xkyctwwgzwx")) + .withTarget("mecvogygzyvneeza") .withUseWorkspaceManagedIdentity(false)); model = BinaryData.fromObject(model).toObject(ConnectionUpdateContent.class); - Assertions.assertEquals(ConnectionCategory.ORACLE, model.properties().category()); - Assertions.assertEquals("udgzhxogjgg", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T02:57:11Z"), model.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.GOOGLE_CLOUD_STORAGE, model.properties().category()); + Assertions.assertEquals("tlbijpzg", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T08:48:44Z"), model.properties().expiryTime()); Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("dafhr", model.properties().metadata().get("mdyomkxfbvfbh")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals("lmknbnxwcdom", model.properties().metadata().get("pvfqawz")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); - Assertions.assertEquals("awzovgkk", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("qowxwcom", model.properties().target()); + Assertions.assertEquals("iac", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("mecvogygzyvneeza", model.properties().target()); Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java index 89eb203fcd6d..1b42c69b2778 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java @@ -10,8 +10,7 @@ public final class ConnectivityEndpointsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ConnectivityEndpoints model - = BinaryData.fromString("{\"publicIpAddress\":\"rgjfoknubnoi\",\"sshPort\":1854107559}") - .toObject(ConnectivityEndpoints.class); + ConnectivityEndpoints model = BinaryData.fromString("{\"publicIpAddress\":\"bgvopemt\",\"sshPort\":219160192}") + .toObject(ConnectivityEndpoints.class); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java index 50ab56310029..0d403d913884 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java @@ -13,21 +13,21 @@ public final class CustomBlocklistConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CustomBlocklistConfig model - = BinaryData.fromString("{\"source\":\"PreToolCall\",\"blocklistName\":\"wqiok\",\"blocking\":false}") + = BinaryData.fromString("{\"source\":\"PostToolCall\",\"blocklistName\":\"alywjhhgdn\",\"blocking\":false}") .toObject(CustomBlocklistConfig.class); - Assertions.assertEquals("wqiok", model.blocklistName()); + Assertions.assertEquals("alywjhhgdn", model.blocklistName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.source()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CustomBlocklistConfig model = new CustomBlocklistConfig().withBlocklistName("wqiok") + CustomBlocklistConfig model = new CustomBlocklistConfig().withBlocklistName("alywjhhgdn") .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL); + .withSource(RaiPolicyContentSource.POST_TOOL_CALL); model = BinaryData.fromObject(model).toObject(CustomBlocklistConfig.class); - Assertions.assertEquals("wqiok", model.blocklistName()); + Assertions.assertEquals("alywjhhgdn", model.blocklistName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java index e88ff9484b2a..00e2c2e3d331 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java @@ -15,20 +15,20 @@ public final class DefenderForAISettingInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DefenderForAISettingInner model = BinaryData.fromString( - "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"qhppubowsepdfgk\",\"tags\":{\"c\":\"herngb\",\"obkauxofsh\":\"uahokq\",\"whslwkoj\":\"phwpnulaiywzej\"},\"id\":\"l\",\"name\":\"dnpdwrpqaf\",\"type\":\"fugsnnfhyetefy\"}") + "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"fldpuviyfc\",\"tags\":{\"qi\":\"eolhbhlvbmx\",\"tkcudfbsfarfsiow\":\"s\"},\"id\":\"jxnqp\",\"name\":\"wgfstmhqykizm\",\"type\":\"ksaoafcluqvox\"}") .toObject(DefenderForAISettingInner.class); - Assertions.assertEquals("herngb", model.tags().get("c")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + Assertions.assertEquals("eolhbhlvbmx", model.tags().get("qi")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DefenderForAISettingInner model = new DefenderForAISettingInner() - .withTags(mapOf("c", "herngb", "obkauxofsh", "uahokq", "whslwkoj", "phwpnulaiywzej")) - .withState(DefenderForAISettingState.ENABLED); + DefenderForAISettingInner model + = new DefenderForAISettingInner().withTags(mapOf("qi", "eolhbhlvbmx", "tkcudfbsfarfsiow", "s")) + .withState(DefenderForAISettingState.DISABLED); model = BinaryData.fromObject(model).toObject(DefenderForAISettingInner.class); - Assertions.assertEquals("herngb", model.tags().get("c")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + Assertions.assertEquals("eolhbhlvbmx", model.tags().get("qi")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java index b8ab96b5f086..1ebbe2edc367 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java @@ -13,15 +13,15 @@ public final class DefenderForAISettingPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DefenderForAISettingProperties model - = BinaryData.fromString("{\"state\":\"Disabled\"}").toObject(DefenderForAISettingProperties.class); - Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); + = BinaryData.fromString("{\"state\":\"Enabled\"}").toObject(DefenderForAISettingProperties.class); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DefenderForAISettingProperties model - = new DefenderForAISettingProperties().withState(DefenderForAISettingState.DISABLED); + = new DefenderForAISettingProperties().withState(DefenderForAISettingState.ENABLED); model = BinaryData.fromObject(model).toObject(DefenderForAISettingProperties.class); - Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java index b82cd9db182f..130e0af2d05e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java @@ -13,10 +13,10 @@ public final class DefenderForAISettingResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DefenderForAISettingResult model = BinaryData.fromString( - "{\"nextLink\":\"ctfjgtixr\",\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"rmlmuowo\",\"tags\":{\"p\":\"uir\"},\"id\":\"nszonwpngaj\",\"name\":\"n\",\"type\":\"ixjawrtm\"}]}") + "{\"nextLink\":\"im\",\"value\":[{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"wpbmzgwesydsxwef\",\"tags\":{\"mtkhlowkxxpvbr\":\"cbvopwndyqleallk\"},\"id\":\"jmzsyzfh\",\"name\":\"tlhikcyychun\",\"type\":\"jlpjrtwszhv\"}]}") .toObject(DefenderForAISettingResult.class); - Assertions.assertEquals("ctfjgtixr", model.nextLink()); - Assertions.assertEquals("uir", model.value().get(0).tags().get("p")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.value().get(0).state()); + Assertions.assertEquals("im", model.nextLink()); + Assertions.assertEquals("cbvopwndyqleallk", model.value().get(0).tags().get("mtkhlowkxxpvbr")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.value().get(0).state()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java index 5e6febd5c271..abc5bd15ce43 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class DefenderForAISettingsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"eglyu\",\"tags\":{\"aexbzbqufpnez\":\"m\",\"ldrorhyogzmsimeh\":\"jzay\"},\"id\":\"uuwdhtq\",\"name\":\"hyhnimxtns\",\"type\":\"gi\"}"; + = "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"rxylaypd\",\"tags\":{\"jdfrwpsshrmnkccl\":\"velffohuriw\",\"uogkscxjfsgm\":\"c\",\"qcowscuyfql\":\"spoebnx\"},\"id\":\"fbqhsujkaf\",\"name\":\"zpnxqpwni\",\"type\":\"xkcajgrbrc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,13 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DefenderForAISetting response = manager.defenderForAISettings() - .define("xcdckixspsa") - .withExistingAccount("hxzubfjzabbw", "gvzua") - .withTags(mapOf("pzjbyetjxryo", "zerejr", "pemnrrabo", "taeitwhlbecgihz")) + .define("oq") + .withExistingAccount("xbozpcjcnwjz", "qblxrnwvds") + .withTags(mapOf("ooauffhxfqkmwzr", "hjxsa", "oybmrno", "q")) .withState(DefenderForAISettingState.ENABLED) .create(); - Assertions.assertEquals("m", response.tags().get("aexbzbqufpnez")); + Assertions.assertEquals("velffohuriw", response.tags().get("jdfrwpsshrmnkccl")); Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.state()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java index f225d112eadd..c3eb2e2b16d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class DefenderForAISettingsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"okr\",\"tags\":{\"pujzfl\":\"sgaojbtqpqsdoctp\",\"wlluunxhfwlfxz\":\"cdsgxceluji\",\"eupcknecexkgrv\":\"wu\"},\"id\":\"sjdmngsytqpdzfyx\",\"name\":\"nwaw\",\"type\":\"xcgzbejqfbifopf\"}"; + = "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"wt\",\"tags\":{\"dlkhczygpm\":\"w\"},\"id\":\"jculojhhylx\",\"name\":\"evfiyymotu\",\"type\":\"bybwjmtftcvelnir\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DefenderForAISetting response = manager.defenderForAISettings() - .getWithResponse("i", "fhok", "mmculwkq", com.azure.core.util.Context.NONE) + .getWithResponse("ounzsiywh", "bym", "popikzeb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("sgaojbtqpqsdoctp", response.tags().get("pujzfl")); + Assertions.assertEquals("w", response.tags().get("dlkhczygpm")); Assertions.assertEquals(DefenderForAISettingState.ENABLED, response.state()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java index b1b80ddd0a5c..a263cdf107c2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java @@ -23,7 +23,7 @@ public final class DefenderForAISettingsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"gp\",\"tags\":{\"zmecjjkmqenhai\":\"iawohfmhn\",\"gloiovsl\":\"zrpv\",\"pijpkhc\":\"ivqsuvwtenb\"},\"id\":\"aqxukuicjufte\",\"name\":\"iooanduewfhv\",\"type\":\"x\"}]}"; + = "{\"value\":[{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"j\",\"tags\":{\"sennqfabq\":\"swmehfxrttxb\",\"ectcxsfmbzdx\":\"ama\",\"yufxuzmsvzyq\":\"synbkdn\"},\"id\":\"rnxhjtlxfikjk\",\"name\":\"ara\",\"type\":\"wwuasnjeglht\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.defenderForAISettings().list("xdwdrpazqjkrfm", "wotfcuu", com.azure.core.util.Context.NONE); + = manager.defenderForAISettings().list("pk", "nstp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("iawohfmhn", response.iterator().next().tags().get("zmecjjkmqenhai")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, response.iterator().next().state()); + Assertions.assertEquals("swmehfxrttxb", response.iterator().next().tags().get("sennqfabq")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.iterator().next().state()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java index f74f4defbd79..0fc03a2d37fa 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java @@ -27,7 +27,7 @@ public void testPurge() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.deletedAccounts().purge("derltfokyksyim", "ccgrvkcxzznn", "i", com.azure.core.util.Context.NONE); + manager.deletedAccounts().purge("cbvzarmqcb", "okstsinvagovjyh", "rxbrdv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java index 973d18db2524..3c1ece0fe142 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java @@ -12,18 +12,18 @@ public final class DeploymentCapacitySettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentCapacitySettings model - = BinaryData.fromString("{\"designatedCapacity\":1838860649,\"priority\":11863753}") + = BinaryData.fromString("{\"designatedCapacity\":1020158274,\"priority\":1305719459}") .toObject(DeploymentCapacitySettings.class); - Assertions.assertEquals(1838860649, model.designatedCapacity()); - Assertions.assertEquals(11863753, model.priority()); + Assertions.assertEquals(1020158274, model.designatedCapacity()); + Assertions.assertEquals(1305719459, model.priority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentCapacitySettings model - = new DeploymentCapacitySettings().withDesignatedCapacity(1838860649).withPriority(11863753); + = new DeploymentCapacitySettings().withDesignatedCapacity(1020158274).withPriority(1305719459); model = BinaryData.fromObject(model).toObject(DeploymentCapacitySettings.class); - Assertions.assertEquals(1838860649, model.designatedCapacity()); - Assertions.assertEquals(11863753, model.priority()); + Assertions.assertEquals(1020158274, model.designatedCapacity()); + Assertions.assertEquals(1305719459, model.priority()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.java index 906b5d215b1f..30eaf62a986c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.java @@ -13,28 +13,28 @@ public final class DeploymentPolicyEvaluationResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentPolicyEvaluationResult model = BinaryData.fromString( - "{\"evaluationOutcome\":\"NonCompliant\",\"errorMessage\":\"ourqhakau\",\"nonCompliantAssignments\":[{\"assignmentId\":\"sfwxosowzxc\",\"policyDefinitionId\":\"i\",\"policySetDefinitionId\":\"ooxdjebwpuc\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"ovbvmeueciv\",\"effect\":\"zceuojgjrw\",\"expressionEvaluations\":[{\"expression\":\"otwmcdyt\",\"expressionKind\":\"wit\",\"operator\":\"rjaw\",\"result\":\"wgxhn\",\"targetValue\":\"kxfbkpycgklwndn\",\"expressionValue\":\"dauwhvylwzbtd\"},{\"expression\":\"ujznb\",\"expressionKind\":\"ow\",\"operator\":\"przqlveu\",\"result\":\"upjm\",\"targetValue\":\"fxobbcsws\",\"expressionValue\":\"jriplrbpbewtghf\"},{\"expression\":\"lcgwxzvlvqh\",\"expressionKind\":\"begibtnmxiebwwa\",\"operator\":\"ayqcgw\",\"result\":\"zjuzgwyz\",\"targetValue\":\"txon\",\"expressionValue\":\"ts\"}]},{\"assignmentId\":\"jcbpwxqpsrknft\",\"policyDefinitionId\":\"vriuhprwmdyvx\",\"policySetDefinitionId\":\"ayriwwroyqbexrm\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"ycnojvknmefqsg\",\"effect\":\"ah\",\"expressionEvaluations\":[{\"expression\":\"zhpvgqzcjrvxd\",\"expressionKind\":\"lmwlxkvugfhzo\",\"operator\":\"wjvzunluthnn\",\"result\":\"nxipeil\",\"targetValue\":\"zuaejxd\",\"expressionValue\":\"tskzbbtdzumveek\"},{\"expression\":\"wozuhkf\",\"expressionKind\":\"sjyofdx\",\"operator\":\"us\",\"result\":\"touwaboekqv\",\"targetValue\":\"lns\",\"expressionValue\":\"bxwyjsflhhcaa\"}]},{\"assignmentId\":\"jixisxyawjoyaqcs\",\"policyDefinitionId\":\"jpkiidzyexznelix\",\"policySetDefinitionId\":\"rzt\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"bnxknalaulppg\",\"effect\":\"tpnapnyiropuhpig\",\"expressionEvaluations\":[{\"expression\":\"lgqg\",\"expressionKind\":\"xmedjvcsly\",\"operator\":\"wwncwzzhxgk\",\"result\":\"mgucna\",\"targetValue\":\"t\",\"expressionValue\":\"ellwptfdy\"},{\"expression\":\"fqbuaceopzf\",\"expressionKind\":\"hhuao\",\"operator\":\"pcqeqx\",\"result\":\"z\",\"targetValue\":\"hzxct\",\"expressionValue\":\"gbkdmoizpos\"},{\"expression\":\"grcfb\",\"expressionKind\":\"rmfqjhhkxbpvj\",\"operator\":\"jhxxjyn\",\"result\":\"divkrt\",\"targetValue\":\"bxqz\",\"expressionValue\":\"zjf\"},{\"expression\":\"vjfdx\",\"expressionKind\":\"vetvt\",\"operator\":\"aqtdoqmcbx\",\"result\":\"vxysl\",\"targetValue\":\"hsfxoblytkb\",\"expressionValue\":\"pe\"}]},{\"assignmentId\":\"wfbkrvrns\",\"policyDefinitionId\":\"hqjohxcrsbfova\",\"policySetDefinitionId\":\"ruvw\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"fsubcgjbirxbpy\",\"effect\":\"rfbjf\",\"expressionEvaluations\":[{\"expression\":\"sotftpvj\",\"expressionKind\":\"exilzznfqqnvwpmq\",\"operator\":\"ruoujmk\",\"result\":\"hwqytj\",\"targetValue\":\"bnw\",\"expressionValue\":\"wgdrjervnaenqp\"}]}]}") + "{\"evaluationOutcome\":\"Compliant\",\"errorMessage\":\"xisxyawjoyaqcsl\",\"nonCompliantAssignments\":[{\"assignmentId\":\"iidzyexzne\",\"policyDefinitionId\":\"xhnrztfolhb\",\"policySetDefinitionId\":\"knalaulppg\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"napnyiropuhpigv\",\"effect\":\"ylgqgitxmedjvcsl\",\"expressionEvaluations\":[{\"expression\":\"wncwzzhxgktrmg\",\"expressionKind\":\"napkteoellw\",\"operator\":\"fdygpfqbuaceopz\",\"result\":\"rhhuaopppcqeqx\",\"targetValue\":\"z\",\"expressionValue\":\"hzxct\"},{\"expression\":\"gbkdmoizpos\",\"expressionKind\":\"grcfb\",\"operator\":\"rmfqjhhkxbpvj\",\"result\":\"jhxxjyn\",\"targetValue\":\"divkrt\",\"expressionValue\":\"bxqz\"}]}]}") .toObject(DeploymentPolicyEvaluationResult.class); - Assertions.assertEquals(PolicyEvaluationOutcome.NON_COMPLIANT, model.evaluationOutcome()); - Assertions.assertEquals("ourqhakau", model.errorMessage()); - Assertions.assertEquals("sfwxosowzxc", model.nonCompliantAssignments().get(0).assignmentId()); - Assertions.assertEquals("i", model.nonCompliantAssignments().get(0).policyDefinitionId()); - Assertions.assertEquals("ooxdjebwpuc", model.nonCompliantAssignments().get(0).policySetDefinitionId()); + Assertions.assertEquals(PolicyEvaluationOutcome.COMPLIANT, model.evaluationOutcome()); + Assertions.assertEquals("xisxyawjoyaqcsl", model.errorMessage()); + Assertions.assertEquals("iidzyexzne", model.nonCompliantAssignments().get(0).assignmentId()); + Assertions.assertEquals("xhnrztfolhb", model.nonCompliantAssignments().get(0).policyDefinitionId()); + Assertions.assertEquals("knalaulppg", model.nonCompliantAssignments().get(0).policySetDefinitionId()); Assertions.assertEquals(PolicyEvaluationOutcome.COMPLIANT, model.nonCompliantAssignments().get(0).evaluationOutcome()); - Assertions.assertEquals("ovbvmeueciv", model.nonCompliantAssignments().get(0).nonComplianceReason()); - Assertions.assertEquals("zceuojgjrw", model.nonCompliantAssignments().get(0).effect()); - Assertions.assertEquals("otwmcdyt", + Assertions.assertEquals("napnyiropuhpigv", model.nonCompliantAssignments().get(0).nonComplianceReason()); + Assertions.assertEquals("ylgqgitxmedjvcsl", model.nonCompliantAssignments().get(0).effect()); + Assertions.assertEquals("wncwzzhxgktrmg", model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).expression()); - Assertions.assertEquals("wit", + Assertions.assertEquals("napkteoellw", model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).expressionKind()); - Assertions.assertEquals("rjaw", + Assertions.assertEquals("fdygpfqbuaceopz", model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).operator()); - Assertions.assertEquals("wgxhn", + Assertions.assertEquals("rhhuaopppcqeqx", model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).result()); - Assertions.assertEquals("kxfbkpycgklwndn", + Assertions.assertEquals("z", model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).targetValue()); - Assertions.assertEquals("dauwhvylwzbtd", + Assertions.assertEquals("hzxct", model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).expressionValue()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java index 142a66555a4d..2c3214d217e3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java @@ -13,18 +13,18 @@ public final class DeploymentScaleSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentScaleSettings model - = BinaryData.fromString("{\"scaleType\":\"Manual\",\"capacity\":1371154692,\"activeCapacity\":326974416}") + = BinaryData.fromString("{\"scaleType\":\"Standard\",\"capacity\":164113652,\"activeCapacity\":204480929}") .toObject(DeploymentScaleSettings.class); - Assertions.assertEquals(DeploymentScaleType.MANUAL, model.scaleType()); - Assertions.assertEquals(1371154692, model.capacity()); + Assertions.assertEquals(DeploymentScaleType.STANDARD, model.scaleType()); + Assertions.assertEquals(164113652, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentScaleSettings model - = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.MANUAL).withCapacity(1371154692); + = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.STANDARD).withCapacity(164113652); model = BinaryData.fromObject(model).toObject(DeploymentScaleSettings.class); - Assertions.assertEquals(DeploymentScaleType.MANUAL, model.scaleType()); - Assertions.assertEquals(1371154692, model.capacity()); + Assertions.assertEquals(DeploymentScaleType.STANDARD, model.scaleType()); + Assertions.assertEquals(164113652, model.capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java index 545838d3d364..425eba1aa39b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java @@ -11,7 +11,7 @@ public final class DeploymentSizeCapacityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentSizeCapacity model = BinaryData.fromString( - "{\"modelInstanceAcceleratorCount\":1262406750,\"totalAvailableCapacity\":1282494344,\"largestDeploymentCapacity\":387452116}") + "{\"modelInstanceAcceleratorCount\":267543853,\"totalAvailableCapacity\":95279837,\"largestDeploymentCapacity\":2087712194}") .toObject(DeploymentSizeCapacity.class); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java index 79ada25f9dbe..39192f5cfc99 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java @@ -12,8 +12,8 @@ public final class DeploymentSkuListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentSkuListResult model = BinaryData.fromString( - "{\"nextLink\":\"uiizynke\",\"value\":[{\"resourceType\":\"rwyhqmibzyhwitsm\",\"sku\":{\"name\":\"yynpcdpumnzgmwz\",\"tier\":\"Enterprise\",\"size\":\"iknsorgjh\",\"family\":\"ldtlwwr\",\"capacity\":1202446824},\"capacity\":{\"minimum\":1488672187,\"maximum\":575537073,\"step\":874517776,\"default\":1621174416,\"allowedValues\":[643963707]}},{\"resourceType\":\"yhgsy\",\"sku\":{\"name\":\"ogjltdtbnnhad\",\"tier\":\"Enterprise\",\"size\":\"kvci\",\"family\":\"nvpamq\",\"capacity\":708415547},\"capacity\":{\"minimum\":1026255480,\"maximum\":443622503,\"step\":1292561525,\"default\":2021225461,\"allowedValues\":[33393175,1558005484]}},{\"resourceType\":\"la\",\"sku\":{\"name\":\"elwuipi\",\"tier\":\"Free\",\"size\":\"kzivgvvcnayrh\",\"family\":\"nxxmueedndrdv\",\"capacity\":928139019},\"capacity\":{\"minimum\":768624981,\"maximum\":1018889547,\"step\":1951861279,\"default\":96926313,\"allowedValues\":[1261287466,669500000,149792642,1035796586]}},{\"resourceType\":\"ygdvwv\",\"sku\":{\"name\":\"iohgwxrtfud\",\"tier\":\"Premium\",\"size\":\"gyqagvrvmnpkuk\",\"family\":\"i\",\"capacity\":2068705398},\"capacity\":{\"minimum\":1554656942,\"maximum\":261614569,\"step\":1772217773,\"default\":1697714955,\"allowedValues\":[44093722,510557599]}}]}") + "{\"nextLink\":\"g\",\"value\":[{\"resourceType\":\"fudxepxgyqagvrv\",\"sku\":{\"name\":\"pkukghi\",\"tier\":\"Enterprise\",\"size\":\"xgwim\",\"family\":\"jhfjxwm\",\"capacity\":1343784830},\"capacity\":{\"minimum\":1767053067,\"maximum\":739435613,\"step\":1563203885,\"default\":1941529863,\"allowedValues\":[508782992]}},{\"resourceType\":\"jawneaiv\",\"sku\":{\"name\":\"czelpcirel\",\"tier\":\"Free\",\"size\":\"enwabfatk\",\"family\":\"dxbjhwuaanozj\",\"capacity\":443965325},\"capacity\":{\"minimum\":1616817744,\"maximum\":113481876,\"step\":171728083,\"default\":106141655,\"allowedValues\":[1536946764]}},{\"resourceType\":\"rvimjwosytxitcsk\",\"sku\":{\"name\":\"k\",\"tier\":\"Premium\",\"size\":\"iekkezz\",\"family\":\"hlyfjhdgqgg\",\"capacity\":1278183507},\"capacity\":{\"minimum\":1747128451,\"maximum\":1375872720,\"step\":2021053825,\"default\":277220596,\"allowedValues\":[1644880180,1233334035,65677300,1541394178]}}]}") .toObject(DeploymentSkuListResult.class); - Assertions.assertEquals("uiizynke", model.nextLink()); + Assertions.assertEquals("g", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java index f74b89ce8916..e86aae1a37f6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java @@ -27,8 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.deployments() - .delete("szxvctkbbxuhar", "sirncclabvoy", "gsuxxczbmyqj", com.azure.core.util.Context.NONE); + manager.deployments().delete("urejqrshzzbg", "ll", "xiqqzjkoxdupna", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java index 1c1a48d4460c..9ab1484b5a59 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java @@ -23,7 +23,7 @@ public final class DeploymentsListSkusMockTests { @Test public void testListSkus() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"iatwfaujegqdtadr\",\"sku\":{\"name\":\"gddhjkrukizyhgs\",\"tier\":\"Basic\",\"size\":\"s\",\"family\":\"xqfpj\",\"capacity\":1700647685},\"capacity\":{\"minimum\":1566722268,\"maximum\":1205167221,\"step\":670221649,\"default\":1718194310,\"allowedValues\":[1007635827]}}]}"; + = "{\"value\":[{\"resourceType\":\"lniwmcpmrrd\",\"sku\":{\"name\":\"v\",\"tier\":\"Basic\",\"size\":\"phbeaeqjz\",\"family\":\"kdclacroczf\",\"capacity\":658643480},\"capacity\":{\"minimum\":1548447923,\"maximum\":1811102732,\"step\":729943436,\"default\":1719736823,\"allowedValues\":[1405110298,1138740146,348446577,1331091838]}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testListSkus() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.deployments().listSkus("ywhlakxpe", "pewpyj", "fxampqcrzgeuqx", com.azure.core.util.Context.NONE); + = manager.deployments().listSkus("ayscseydzje", "exmnv", "vmuw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("iatwfaujegqdtadr", response.iterator().next().resourceType()); - Assertions.assertEquals("gddhjkrukizyhgs", response.iterator().next().sku().name()); + Assertions.assertEquals("lniwmcpmrrd", response.iterator().next().resourceType()); + Assertions.assertEquals("v", response.iterator().next().sku().name()); Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals("s", response.iterator().next().sku().size()); - Assertions.assertEquals("xqfpj", response.iterator().next().sku().family()); - Assertions.assertEquals(1700647685, response.iterator().next().sku().capacity()); - Assertions.assertEquals(1566722268, response.iterator().next().capacity().minimum()); - Assertions.assertEquals(1205167221, response.iterator().next().capacity().maximum()); - Assertions.assertEquals(670221649, response.iterator().next().capacity().step()); - Assertions.assertEquals(1718194310, response.iterator().next().capacity().defaultProperty()); - Assertions.assertEquals(1007635827, response.iterator().next().capacity().allowedValues().get(0)); + Assertions.assertEquals("phbeaeqjz", response.iterator().next().sku().size()); + Assertions.assertEquals("kdclacroczf", response.iterator().next().sku().family()); + Assertions.assertEquals(658643480, response.iterator().next().sku().capacity()); + Assertions.assertEquals(1548447923, response.iterator().next().capacity().minimum()); + Assertions.assertEquals(1811102732, response.iterator().next().capacity().maximum()); + Assertions.assertEquals(729943436, response.iterator().next().capacity().step()); + Assertions.assertEquals(1719736823, response.iterator().next().capacity().defaultProperty()); + Assertions.assertEquals(1405110298, response.iterator().next().capacity().allowedValues().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java index 0ce3ac069987..bc8378f427ed 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java @@ -16,61 +16,38 @@ public final class EvaluateDeploymentPoliciesRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvaluateDeploymentPoliciesRequest model = BinaryData.fromString( - "{\"deployments\":[{\"name\":\"gr\",\"properties\":{\"model\":{\"publisher\":\"flz\",\"format\":\"bxzpuzycisp\",\"name\":\"zahmgkbrpyydhibn\",\"version\":\"qkpikadrgvtqagnb\",\"source\":\"nhijggmebfsi\",\"sourceAccount\":\"butr\",\"callRateLimit\":{\"count\":8.320559,\"renewalPeriod\":84.63215,\"rules\":[{},{},{},{}]}},\"raiPolicyName\":\"jrunmpxtt\"}},{\"name\":\"bh\",\"properties\":{\"model\":{\"publisher\":\"nlankxmyskpb\",\"format\":\"nbtkcxywnytnr\",\"name\":\"nlqidybyxczf\",\"version\":\"haaxdbabphl\",\"source\":\"qlfktsths\",\"sourceAccount\":\"ocmnyyazttbtwwrq\",\"callRateLimit\":{\"count\":64.957375,\"renewalPeriod\":48.20565,\"rules\":[{},{},{},{}]}},\"raiPolicyName\":\"biexzfeyu\"}},{\"name\":\"axibxujw\",\"properties\":{\"model\":{\"publisher\":\"qwalmuzyoxaepd\",\"format\":\"jancu\",\"name\":\"hdwbavxbniwdjs\",\"version\":\"tsdbpgn\",\"source\":\"txhp\",\"sourceAccount\":\"bzpfzab\",\"callRateLimit\":{\"count\":99.19059,\"renewalPeriod\":98.16212,\"rules\":[{}]}},\"raiPolicyName\":\"tyq\"}}]}") + "{\"deployments\":[{\"name\":\"pgn\",\"properties\":{\"model\":{\"publisher\":\"txhp\",\"format\":\"bzpfzab\",\"name\":\"cuh\",\"version\":\"tcty\",\"source\":\"klbb\",\"sourceAccount\":\"plwzbhvgyugu\",\"callRateLimit\":{\"count\":90.33446,\"renewalPeriod\":73.602875,\"rules\":[{}]}},\"raiPolicyName\":\"qukkfp\"}}]}") .toObject(EvaluateDeploymentPoliciesRequest.class); - Assertions.assertEquals("gr", model.deployments().get(0).name()); - Assertions.assertEquals("flz", model.deployments().get(0).properties().model().publisher()); - Assertions.assertEquals("bxzpuzycisp", model.deployments().get(0).properties().model().format()); - Assertions.assertEquals("zahmgkbrpyydhibn", model.deployments().get(0).properties().model().name()); - Assertions.assertEquals("qkpikadrgvtqagnb", model.deployments().get(0).properties().model().version()); - Assertions.assertEquals("nhijggmebfsi", model.deployments().get(0).properties().model().source()); - Assertions.assertEquals("butr", model.deployments().get(0).properties().model().sourceAccount()); - Assertions.assertEquals("jrunmpxtt", model.deployments().get(0).properties().raiPolicyName()); + Assertions.assertEquals("pgn", model.deployments().get(0).name()); + Assertions.assertEquals("txhp", model.deployments().get(0).properties().model().publisher()); + Assertions.assertEquals("bzpfzab", model.deployments().get(0).properties().model().format()); + Assertions.assertEquals("cuh", model.deployments().get(0).properties().model().name()); + Assertions.assertEquals("tcty", model.deployments().get(0).properties().model().version()); + Assertions.assertEquals("klbb", model.deployments().get(0).properties().model().source()); + Assertions.assertEquals("plwzbhvgyugu", model.deployments().get(0).properties().model().sourceAccount()); + Assertions.assertEquals("qukkfp", model.deployments().get(0).properties().raiPolicyName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EvaluateDeploymentPoliciesRequest model - = new EvaluateDeploymentPoliciesRequest() - .withDeployments( - Arrays - .asList( - new EvaluateDeploymentPoliciesDeployment().withName("gr") - .withProperties( - new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("flz") - .withFormat("bxzpuzycisp") - .withName("zahmgkbrpyydhibn") - .withVersion("qkpikadrgvtqagnb") - .withSource("nhijggmebfsi") - .withSourceAccount("butr")) - .withRaiPolicyName("jrunmpxtt")), - new EvaluateDeploymentPoliciesDeployment().withName("bh") - .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("nlankxmyskpb") - .withFormat("nbtkcxywnytnr") - .withName("nlqidybyxczf") - .withVersion("haaxdbabphl") - .withSource("qlfktsths") - .withSourceAccount("ocmnyyazttbtwwrq")) - .withRaiPolicyName("biexzfeyu")), - new EvaluateDeploymentPoliciesDeployment().withName("axibxujw") - .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("qwalmuzyoxaepd") - .withFormat("jancu") - .withName("hdwbavxbniwdjs") - .withVersion("tsdbpgn") - .withSource("txhp") - .withSourceAccount("bzpfzab")) - .withRaiPolicyName("tyq")))); + EvaluateDeploymentPoliciesRequest model = new EvaluateDeploymentPoliciesRequest() + .withDeployments(Arrays.asList(new EvaluateDeploymentPoliciesDeployment().withName("pgn") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withPublisher("txhp") + .withFormat("bzpfzab") + .withName("cuh") + .withVersion("tcty") + .withSource("klbb") + .withSourceAccount("plwzbhvgyugu")) + .withRaiPolicyName("qukkfp")))); model = BinaryData.fromObject(model).toObject(EvaluateDeploymentPoliciesRequest.class); - Assertions.assertEquals("gr", model.deployments().get(0).name()); - Assertions.assertEquals("flz", model.deployments().get(0).properties().model().publisher()); - Assertions.assertEquals("bxzpuzycisp", model.deployments().get(0).properties().model().format()); - Assertions.assertEquals("zahmgkbrpyydhibn", model.deployments().get(0).properties().model().name()); - Assertions.assertEquals("qkpikadrgvtqagnb", model.deployments().get(0).properties().model().version()); - Assertions.assertEquals("nhijggmebfsi", model.deployments().get(0).properties().model().source()); - Assertions.assertEquals("butr", model.deployments().get(0).properties().model().sourceAccount()); - Assertions.assertEquals("jrunmpxtt", model.deployments().get(0).properties().raiPolicyName()); + Assertions.assertEquals("pgn", model.deployments().get(0).name()); + Assertions.assertEquals("txhp", model.deployments().get(0).properties().model().publisher()); + Assertions.assertEquals("bzpfzab", model.deployments().get(0).properties().model().format()); + Assertions.assertEquals("cuh", model.deployments().get(0).properties().model().name()); + Assertions.assertEquals("tcty", model.deployments().get(0).properties().model().version()); + Assertions.assertEquals("klbb", model.deployments().get(0).properties().model().source()); + Assertions.assertEquals("plwzbhvgyugu", model.deployments().get(0).properties().model().sourceAccount()); + Assertions.assertEquals("qukkfp", model.deployments().get(0).properties().raiPolicyName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java index bc3bb2bdfd6e..e401536e3334 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java @@ -13,22 +13,19 @@ public final class EvaluateDeploymentPoliciesResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvaluateDeploymentPoliciesResponseInner model = BinaryData.fromString( - "{\"results\":{\"isgwbnbbeldawkz\":{\"evaluationOutcome\":\"NonCompliant\",\"errorMessage\":\"njbkcnxdhbttkph\",\"nonCompliantAssignments\":[{\"assignmentId\":\"vjtoqnermclfp\",\"policyDefinitionId\":\"hoxus\",\"policySetDefinitionId\":\"pabgyeps\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"zq\",\"effect\":\"xywpmueefjzwfqkq\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"suyonobglaocq\",\"policyDefinitionId\":\"ccm\",\"policySetDefinitionId\":\"udxytlmoyrx\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"dw\",\"effect\":\"ntxhdzhlrqjbhck\",\"expressionEvaluations\":[{},{},{}]},{\"assignmentId\":\"rxsbkyvp\",\"policyDefinitionId\":\"anuzbpzkafkuw\",\"policySetDefinitionId\":\"rnwb\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"seyvj\",\"effect\":\"rts\",\"expressionEvaluations\":[{},{}]},{\"assignmentId\":\"kdeemaofmxagkvtm\",\"policyDefinitionId\":\"mqkrhahvljuahaqu\",\"policySetDefinitionId\":\"dhmdua\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"qpv\",\"effect\":\"dmwsrcrgvxpvgomz\",\"expressionEvaluations\":[{},{}]}]}}}") + "{\"results\":{\"pv\":{\"evaluationOutcome\":\"Error\",\"errorMessage\":\"plpho\",\"nonCompliantAssignments\":[{\"assignmentId\":\"rpabg\",\"policyDefinitionId\":\"psbjta\",\"policySetDefinitionId\":\"ugxywpmueef\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"qkqujidsu\",\"effect\":\"nobglaocq\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"mgyudxytlmoyrxv\",\"policyDefinitionId\":\"u\",\"policySetDefinitionId\":\"pz\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"dzhlrq\",\"effect\":\"hckfrlhrx\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"vpycanuzbp\",\"policyDefinitionId\":\"afkuwb\",\"policySetDefinitionId\":\"nwbmeh\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"v\",\"effect\":\"srtslhspkdeem\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"xagkvtmelmqkrh\",\"policyDefinitionId\":\"vljua\",\"policySetDefinitionId\":\"quhcdhmduala\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"vfadmws\",\"effect\":\"r\",\"expressionEvaluations\":[{},{}]}]},\"pjmkhfxobbc\":{\"evaluationOutcome\":\"Error\",\"errorMessage\":\"lf\",\"nonCompliantAssignments\":[{\"assignmentId\":\"wbnb\",\"policyDefinitionId\":\"ldawkzbaliourqha\",\"policySetDefinitionId\":\"uhashsfwx\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"z\",\"effect\":\"ugicjooxdjebw\",\"expressionEvaluations\":[{},{},{}]},{\"assignmentId\":\"wfvovbv\",\"policyDefinitionId\":\"uecivyhz\",\"policySetDefinitionId\":\"uojgj\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"eiotwmcdytdx\",\"effect\":\"txnrjaw\",\"expressionEvaluations\":[{},{}]},{\"assignmentId\":\"xhniskxfbkpycgk\",\"policyDefinitionId\":\"ndnhj\",\"policySetDefinitionId\":\"uwhvylwzbtdhxujz\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"ow\",\"effect\":\"przqlveu\",\"expressionEvaluations\":[{}]}]},\"uthnnprnxipeilpj\":{\"evaluationOutcome\":\"NonCompliant\",\"errorMessage\":\"tjrip\",\"nonCompliantAssignments\":[{\"assignmentId\":\"bewtghfg\",\"policyDefinitionId\":\"c\",\"policySetDefinitionId\":\"xzvlvqhjkbegib\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"iebwwaloayqcgwrt\",\"effect\":\"uzgwyzmhtx\",\"expressionEvaluations\":[{},{},{},{}]},{\"assignmentId\":\"ts\",\"policyDefinitionId\":\"jcbpwxqpsrknft\",\"policySetDefinitionId\":\"vriuhprwmdyvx\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"riwwroy\",\"effect\":\"exrmcqibycnojvk\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"qsgzvahapj\",\"policyDefinitionId\":\"hpvgqz\",\"policySetDefinitionId\":\"rvxdjzlmw\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"ug\",\"effect\":\"zovawjvz\",\"expressionEvaluations\":[{},{}]}]},\"bxwyjsflhhcaa\":{\"evaluationOutcome\":\"Error\",\"errorMessage\":\"jxdultskzbbtdzu\",\"nonCompliantAssignments\":[{\"assignmentId\":\"kgpwoz\",\"policyDefinitionId\":\"kfpbs\",\"policySetDefinitionId\":\"ofd\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"sd\",\"effect\":\"ouwaboekqvkeln\",\"expressionEvaluations\":[{},{},{}]}]}}}") .toObject(EvaluateDeploymentPoliciesResponseInner.class); + Assertions.assertEquals(PolicyEvaluationOutcome.ERROR, model.results().get("pv").evaluationOutcome()); + Assertions.assertEquals("plpho", model.results().get("pv").errorMessage()); + Assertions.assertEquals("rpabg", model.results().get("pv").nonCompliantAssignments().get(0).assignmentId()); + Assertions.assertEquals("psbjta", + model.results().get("pv").nonCompliantAssignments().get(0).policyDefinitionId()); + Assertions.assertEquals("ugxywpmueef", + model.results().get("pv").nonCompliantAssignments().get(0).policySetDefinitionId()); Assertions.assertEquals(PolicyEvaluationOutcome.NON_COMPLIANT, - model.results().get("isgwbnbbeldawkz").evaluationOutcome()); - Assertions.assertEquals("njbkcnxdhbttkph", model.results().get("isgwbnbbeldawkz").errorMessage()); - Assertions.assertEquals("vjtoqnermclfp", - model.results().get("isgwbnbbeldawkz").nonCompliantAssignments().get(0).assignmentId()); - Assertions.assertEquals("hoxus", - model.results().get("isgwbnbbeldawkz").nonCompliantAssignments().get(0).policyDefinitionId()); - Assertions.assertEquals("pabgyeps", - model.results().get("isgwbnbbeldawkz").nonCompliantAssignments().get(0).policySetDefinitionId()); - Assertions.assertEquals(PolicyEvaluationOutcome.ERROR, - model.results().get("isgwbnbbeldawkz").nonCompliantAssignments().get(0).evaluationOutcome()); - Assertions.assertEquals("zq", - model.results().get("isgwbnbbeldawkz").nonCompliantAssignments().get(0).nonComplianceReason()); - Assertions.assertEquals("xywpmueefjzwfqkq", - model.results().get("isgwbnbbeldawkz").nonCompliantAssignments().get(0).effect()); + model.results().get("pv").nonCompliantAssignments().get(0).evaluationOutcome()); + Assertions.assertEquals("qkqujidsu", + model.results().get("pv").nonCompliantAssignments().get(0).nonComplianceReason()); + Assertions.assertEquals("nobglaocq", model.results().get("pv").nonCompliantAssignments().get(0).effect()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java index 1d29210e6e50..e37cef7f75b5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java @@ -14,21 +14,21 @@ public final class FqdnOutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FqdnOutboundRule model = BinaryData.fromString( - "{\"type\":\"FQDN\",\"destination\":\"d\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"yfqiuasig\",\"parentRuleNames\":[\"socnequygdjboq\",\"rmtqjkqevadr\",\"mwiuawvcm\",\"z\"]}") + "{\"type\":\"FQDN\",\"destination\":\"qnt\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"hvmaxgnuyeamcmhu\",\"parentRuleNames\":[\"ecehokw\",\"pqtwloesqrggvrb\",\"yrukoi\"]}") .toObject(FqdnOutboundRule.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); - Assertions.assertEquals(RuleStatus.DELETING, model.status()); - Assertions.assertEquals("d", model.destination()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); + Assertions.assertEquals("qnt", model.destination()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FqdnOutboundRule model = new FqdnOutboundRule().withCategory(RuleCategory.DEPENDENCY) - .withStatus(RuleStatus.DELETING) - .withDestination("d"); + FqdnOutboundRule model = new FqdnOutboundRule().withCategory(RuleCategory.RECOMMENDED) + .withStatus(RuleStatus.PROVISIONING) + .withDestination("qnt"); model = BinaryData.fromObject(model).toObject(FqdnOutboundRule.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); - Assertions.assertEquals(RuleStatus.DELETING, model.status()); - Assertions.assertEquals("d", model.destination()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); + Assertions.assertEquals("qnt", model.destination()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java index 9bafe99bf10f..eaa74f633d07 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java @@ -19,59 +19,59 @@ public final class HostedAgentDeploymentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HostedAgentDeployment model = BinaryData.fromString( - "{\"deploymentType\":\"Hosted\",\"minReplicas\":665890978,\"maxReplicas\":72207954,\"displayName\":\"tmjtsghp\",\"deploymentId\":\"bcpzarpzeqacdldt\",\"state\":\"Deleted\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"pc\"},{\"protocol\":\"Agent\",\"version\":\"uqndaizupfkhuy\"}],\"agents\":[{\"agentVersion\":\"xhmt\",\"agentId\":\"vegwqiukvz\",\"agentName\":\"dwttha\"},{\"agentVersion\":\"gkskjivbss\",\"agentId\":\"jqf\",\"agentName\":\"peexpgeumilhwuit\"},{\"agentVersion\":\"exyionofninbd\",\"agentId\":\"s\",\"agentName\":\"wqqrsmpcbbprtuga\"},{\"agentVersion\":\"zbcyksiv\",\"agentId\":\"ogd\",\"agentName\":\"bfcmkrfts\"}],\"provisioningState\":\"Succeeded\",\"description\":\"jxsgmbawvifdxke\",\"tags\":{\"xvcmufunlcp\":\"hocjxwkloozrv\"}}") + "{\"deploymentType\":\"Hosted\",\"minReplicas\":836747859,\"maxReplicas\":1807188661,\"displayName\":\"aovjow\",\"deploymentId\":\"hpa\",\"state\":\"Deleting\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"t\"},{\"protocol\":\"Agent\",\"version\":\"xns\"}],\"agents\":[{\"agentVersion\":\"cg\",\"agentId\":\"mv\",\"agentName\":\"bxeetqujxcxxqn\"},{\"agentVersion\":\"qjkedwqurc\",\"agentId\":\"jmrvvxwjongz\",\"agentName\":\"hqqrsilcch\"},{\"agentVersion\":\"xxkan\",\"agentId\":\"vri\",\"agentName\":\"gv\"},{\"agentVersion\":\"jrulfucte\",\"agentId\":\"thcfj\",\"agentName\":\"xlyubqjrostv\"}],\"provisioningState\":\"Deleting\",\"description\":\"mtzzbeq\",\"tags\":{\"srwrsnrhpqati\":\"rxalxrdha\"}}") .toObject(HostedAgentDeployment.class); - Assertions.assertEquals("jxsgmbawvifdxke", model.description()); - Assertions.assertEquals("hocjxwkloozrv", model.tags().get("xvcmufunlcp")); - Assertions.assertEquals("tmjtsghp", model.displayName()); - Assertions.assertEquals("bcpzarpzeqacdldt", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.DELETED, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("pc", model.protocols().get(0).version()); - Assertions.assertEquals("vegwqiukvz", model.agents().get(0).agentId()); - Assertions.assertEquals("dwttha", model.agents().get(0).agentName()); - Assertions.assertEquals("xhmt", model.agents().get(0).agentVersion()); - Assertions.assertEquals(665890978, model.minReplicas()); - Assertions.assertEquals(72207954, model.maxReplicas()); + Assertions.assertEquals("mtzzbeq", model.description()); + Assertions.assertEquals("rxalxrdha", model.tags().get("srwrsnrhpqati")); + Assertions.assertEquals("aovjow", model.displayName()); + Assertions.assertEquals("hpa", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETING, model.state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("t", model.protocols().get(0).version()); + Assertions.assertEquals("mv", model.agents().get(0).agentId()); + Assertions.assertEquals("bxeetqujxcxxqn", model.agents().get(0).agentName()); + Assertions.assertEquals("cg", model.agents().get(0).agentVersion()); + Assertions.assertEquals(836747859, model.minReplicas()); + Assertions.assertEquals(1807188661, model.maxReplicas()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HostedAgentDeployment model = new HostedAgentDeployment().withDescription("jxsgmbawvifdxke") - .withTags(mapOf("xvcmufunlcp", "hocjxwkloozrv")) - .withDisplayName("tmjtsghp") - .withDeploymentId("bcpzarpzeqacdldt") - .withState(AgentDeploymentState.DELETED) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("pc"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("uqndaizupfkhuy"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("vegwqiukvz") - .withAgentName("dwttha") - .withAgentVersion("xhmt"), - new VersionedAgentReference().withAgentId("jqf") - .withAgentName("peexpgeumilhwuit") - .withAgentVersion("gkskjivbss"), - new VersionedAgentReference().withAgentId("s") - .withAgentName("wqqrsmpcbbprtuga") - .withAgentVersion("exyionofninbd"), - new VersionedAgentReference().withAgentId("ogd") - .withAgentName("bfcmkrfts") - .withAgentVersion("zbcyksiv"))) - .withMinReplicas(665890978) - .withMaxReplicas(72207954); + HostedAgentDeployment model + = new HostedAgentDeployment().withDescription("mtzzbeq") + .withTags(mapOf("srwrsnrhpqati", "rxalxrdha")) + .withDisplayName("aovjow") + .withDeploymentId("hpa") + .withState(AgentDeploymentState.DELETING) + .withProtocols(Arrays.asList( + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("t"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("xns"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("mv") + .withAgentName("bxeetqujxcxxqn") + .withAgentVersion("cg"), + new VersionedAgentReference().withAgentId("jmrvvxwjongz") + .withAgentName("hqqrsilcch") + .withAgentVersion("qjkedwqurc"), + new VersionedAgentReference().withAgentId("vri").withAgentName("gv").withAgentVersion("xxkan"), + new VersionedAgentReference().withAgentId("thcfj") + .withAgentName("xlyubqjrostv") + .withAgentVersion("jrulfucte"))) + .withMinReplicas(836747859) + .withMaxReplicas(1807188661); model = BinaryData.fromObject(model).toObject(HostedAgentDeployment.class); - Assertions.assertEquals("jxsgmbawvifdxke", model.description()); - Assertions.assertEquals("hocjxwkloozrv", model.tags().get("xvcmufunlcp")); - Assertions.assertEquals("tmjtsghp", model.displayName()); - Assertions.assertEquals("bcpzarpzeqacdldt", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.DELETED, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("pc", model.protocols().get(0).version()); - Assertions.assertEquals("vegwqiukvz", model.agents().get(0).agentId()); - Assertions.assertEquals("dwttha", model.agents().get(0).agentName()); - Assertions.assertEquals("xhmt", model.agents().get(0).agentVersion()); - Assertions.assertEquals(665890978, model.minReplicas()); - Assertions.assertEquals(72207954, model.maxReplicas()); + Assertions.assertEquals("mtzzbeq", model.description()); + Assertions.assertEquals("rxalxrdha", model.tags().get("srwrsnrhpqati")); + Assertions.assertEquals("aovjow", model.displayName()); + Assertions.assertEquals("hpa", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETING, model.state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("t", model.protocols().get(0).version()); + Assertions.assertEquals("mv", model.agents().get(0).agentId()); + Assertions.assertEquals("bxeetqujxcxxqn", model.agents().get(0).agentName()); + Assertions.assertEquals("cg", model.agents().get(0).agentVersion()); + Assertions.assertEquals(836747859, model.minReplicas()); + Assertions.assertEquals(1807188661, model.maxReplicas()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java index 3fe6fd4d614a..0e8de6389b06 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java @@ -16,19 +16,17 @@ public final class IdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Identity model = BinaryData.fromString( - "{\"type\":\"UserAssigned\",\"tenantId\":\"nxqbzvddn\",\"principalId\":\"ndei\",\"userAssignedIdentities\":{\"qkwpyeicxmqc\":{\"principalId\":\"npzaoq\",\"clientId\":\"hrhcffcyddglmjth\"},\"joghmewuama\":{\"principalId\":\"q\",\"clientId\":\"khixuigdtopbo\"},\"iotkftutqxl\":{\"principalId\":\"rzayv\",\"clientId\":\"pgvdf\"},\"tthzrvqd\":{\"principalId\":\"xlefgugnxkrx\",\"clientId\":\"mi\"}}}") + "{\"type\":\"None\",\"tenantId\":\"uhrzayvvt\",\"principalId\":\"vdfgiotk\",\"userAssignedIdentities\":{\"thz\":{\"principalId\":\"qxlngx\",\"clientId\":\"fgugnxkrxdqmid\"},\"yktz\":{\"principalId\":\"qdrabhjybigehoqf\",\"clientId\":\"wska\"}}}") .toObject(Identity.class); - Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.NONE, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Identity model = new Identity().withType(ResourceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("qkwpyeicxmqc", new UserAssignedIdentity(), "joghmewuama", new UserAssignedIdentity(), - "iotkftutqxl", new UserAssignedIdentity(), "tthzrvqd", new UserAssignedIdentity())); + Identity model = new Identity().withType(ResourceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("thz", new UserAssignedIdentity(), "yktz", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(Identity.class); - Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.NONE, model.type()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java index a4f51c1f93d9..566caf871492 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java @@ -23,7 +23,7 @@ public final class LocationBasedModelCapacitiesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"vaedogzou\",\"properties\":{\"model\":{\"publisher\":\"xgjogcph\",\"format\":\"fhrmtenfdvdoe\",\"name\":\"ywusrjzhdtr\",\"version\":\"fezfsmyljdzyyr\",\"source\":\"mwtqil\",\"sourceAccount\":\"nnkynkstd\",\"callRateLimit\":{\"count\":88.78908,\"renewalPeriod\":92.99914,\"rules\":[{}]}},\"skuName\":\"xaqjyihjcwwvaos\",\"availableCapacity\":19.134933,\"availableFinetuneCapacity\":37.697582,\"scopeId\":\"khpspww\",\"scopeType\":\"Global\"},\"id\":\"yfaoexnguwnrdpu\",\"name\":\"laihsujtggybsz\",\"type\":\"mijxejpd\"}]}"; + = "{\"value\":[{\"location\":\"rtwwyjmgvrlhfxmr\",\"properties\":{\"model\":{\"publisher\":\"h\",\"format\":\"jywkdy\",\"name\":\"szavuafanefictp\",\"version\":\"l\",\"source\":\"ssjbzv\",\"sourceAccount\":\"zw\",\"callRateLimit\":{\"count\":90.5169,\"renewalPeriod\":19.60774,\"rules\":[{},{},{},{}]}},\"skuName\":\"aczhfjdccjn\",\"availableCapacity\":91.759254,\"availableFinetuneCapacity\":95.68183,\"scopeId\":\"uhjcgj\",\"scopeType\":\"Global\"},\"id\":\"tomnlzthc\",\"name\":\"bszsbzrrxey\",\"type\":\"idcow\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.locationBasedModelCapacities() - .list("gijydg", "ebjuymtevaebzm", "ywhr", "k", com.azure.core.util.Context.NONE); + .list("mpjbh", "yenfspetxeu", "wkhdlckdoxocj", "devzpfr", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vaedogzou", response.iterator().next().location()); - Assertions.assertEquals("xgjogcph", response.iterator().next().properties().model().publisher()); - Assertions.assertEquals("fhrmtenfdvdoe", response.iterator().next().properties().model().format()); - Assertions.assertEquals("ywusrjzhdtr", response.iterator().next().properties().model().name()); - Assertions.assertEquals("fezfsmyljdzyyr", response.iterator().next().properties().model().version()); - Assertions.assertEquals("mwtqil", response.iterator().next().properties().model().source()); - Assertions.assertEquals("nnkynkstd", response.iterator().next().properties().model().sourceAccount()); - Assertions.assertEquals("xaqjyihjcwwvaos", response.iterator().next().properties().skuName()); - Assertions.assertEquals(19.134933F, response.iterator().next().properties().availableCapacity()); - Assertions.assertEquals(37.697582F, response.iterator().next().properties().availableFinetuneCapacity()); - Assertions.assertEquals("khpspww", response.iterator().next().properties().scopeId()); + Assertions.assertEquals("rtwwyjmgvrlhfxmr", response.iterator().next().location()); + Assertions.assertEquals("h", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("jywkdy", response.iterator().next().properties().model().format()); + Assertions.assertEquals("szavuafanefictp", response.iterator().next().properties().model().name()); + Assertions.assertEquals("l", response.iterator().next().properties().model().version()); + Assertions.assertEquals("ssjbzv", response.iterator().next().properties().model().source()); + Assertions.assertEquals("zw", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("aczhfjdccjn", response.iterator().next().properties().skuName()); + Assertions.assertEquals(91.759254F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(95.68183F, response.iterator().next().properties().availableFinetuneCapacity()); + Assertions.assertEquals("uhjcgj", response.iterator().next().properties().scopeId()); Assertions.assertEquals(QuotaScopeType.GLOBAL, response.iterator().next().properties().scopeType()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java index 929d7bec5344..9043ef06e72f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java @@ -19,49 +19,53 @@ public final class ManagedAgentDeploymentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedAgentDeployment model = BinaryData.fromString( - "{\"deploymentType\":\"Managed\",\"displayName\":\"vkrmukmyjmkx\",\"deploymentId\":\"tcsloj\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"o\"},{\"protocol\":\"Agent\",\"version\":\"qxcsqhtkbtnqlrn\"},{\"protocol\":\"Responses\",\"version\":\"biipsnawwlqkznx\"}],\"agents\":[{\"agentVersion\":\"xricctkwmuqq\",\"agentId\":\"jxeiy\",\"agentName\":\"esrw\"},{\"agentVersion\":\"exh\",\"agentId\":\"trceqnkbrupob\",\"agentName\":\"dmljzacvumepjp\"}],\"provisioningState\":\"Succeeded\",\"description\":\"zpphepif\",\"tags\":{\"cjclykcgxv\":\"eqir\",\"punettepdjxq\":\"pjlvczuoda\",\"aewse\":\"skoynuiylpc\",\"xegqphr\":\"vesk\"}}") + "{\"deploymentType\":\"Managed\",\"displayName\":\"rkxgpazwugxyqvnj\",\"deploymentId\":\"felhldiuhzzgqlm\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"djpxpqht\"}],\"agents\":[{\"agentVersion\":\"mhk\",\"agentId\":\"zsdsuxheqdgcrux\",\"agentName\":\"inymmqgwokmikp\"},{\"agentVersion\":\"fbmjxuvji\",\"agentId\":\"dvhaxdvw\",\"agentName\":\"ehpphthdklmveta\"},{\"agentVersion\":\"akfqoixwgiksb\",\"agentId\":\"tooxrpog\",\"agentName\":\"hchgjtnhtukf\"},{\"agentVersion\":\"ihmbfntume\",\"agentId\":\"bxvqxbnuvw\",\"agentName\":\"asgom\"}],\"provisioningState\":\"Succeeded\",\"description\":\"wxuq\",\"tags\":{\"gfredmlscg\":\"sxpwwztjfmkkh\"}}") .toObject(ManagedAgentDeployment.class); - Assertions.assertEquals("zpphepif", model.description()); - Assertions.assertEquals("eqir", model.tags().get("cjclykcgxv")); - Assertions.assertEquals("vkrmukmyjmkx", model.displayName()); - Assertions.assertEquals("tcsloj", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); - Assertions.assertEquals("o", model.protocols().get(0).version()); - Assertions.assertEquals("jxeiy", model.agents().get(0).agentId()); - Assertions.assertEquals("esrw", model.agents().get(0).agentName()); - Assertions.assertEquals("xricctkwmuqq", model.agents().get(0).agentVersion()); + Assertions.assertEquals("wxuq", model.description()); + Assertions.assertEquals("sxpwwztjfmkkh", model.tags().get("gfredmlscg")); + Assertions.assertEquals("rkxgpazwugxyqvnj", model.displayName()); + Assertions.assertEquals("felhldiuhzzgqlm", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STOPPED, model.state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); + Assertions.assertEquals("djpxpqht", model.protocols().get(0).version()); + Assertions.assertEquals("zsdsuxheqdgcrux", model.agents().get(0).agentId()); + Assertions.assertEquals("inymmqgwokmikp", model.agents().get(0).agentName()); + Assertions.assertEquals("mhk", model.agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedAgentDeployment model = new ManagedAgentDeployment().withDescription("zpphepif") - .withTags( - mapOf("cjclykcgxv", "eqir", "punettepdjxq", "pjlvczuoda", "aewse", "skoynuiylpc", "xegqphr", "vesk")) - .withDisplayName("vkrmukmyjmkx") - .withDeploymentId("tcsloj") - .withState(AgentDeploymentState.RUNNING) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("o"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("qxcsqhtkbtnqlrn"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("biipsnawwlqkznx"))) + ManagedAgentDeployment model = new ManagedAgentDeployment().withDescription("wxuq") + .withTags(mapOf("gfredmlscg", "sxpwwztjfmkkh")) + .withDisplayName("rkxgpazwugxyqvnj") + .withDeploymentId("felhldiuhzzgqlm") + .withState(AgentDeploymentState.STOPPED) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("djpxpqht"))) .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("jxeiy") - .withAgentName("esrw") - .withAgentVersion("xricctkwmuqq"), - new VersionedAgentReference().withAgentId("trceqnkbrupob") - .withAgentName("dmljzacvumepjp") - .withAgentVersion("exh"))); + new VersionedAgentReference().withAgentId("zsdsuxheqdgcrux") + .withAgentName("inymmqgwokmikp") + .withAgentVersion("mhk"), + new VersionedAgentReference().withAgentId("dvhaxdvw") + .withAgentName("ehpphthdklmveta") + .withAgentVersion("fbmjxuvji"), + new VersionedAgentReference().withAgentId("tooxrpog") + .withAgentName("hchgjtnhtukf") + .withAgentVersion("akfqoixwgiksb"), + new VersionedAgentReference().withAgentId("bxvqxbnuvw") + .withAgentName("asgom") + .withAgentVersion("ihmbfntume"))); model = BinaryData.fromObject(model).toObject(ManagedAgentDeployment.class); - Assertions.assertEquals("zpphepif", model.description()); - Assertions.assertEquals("eqir", model.tags().get("cjclykcgxv")); - Assertions.assertEquals("vkrmukmyjmkx", model.displayName()); - Assertions.assertEquals("tcsloj", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); - Assertions.assertEquals("o", model.protocols().get(0).version()); - Assertions.assertEquals("jxeiy", model.agents().get(0).agentId()); - Assertions.assertEquals("esrw", model.agents().get(0).agentName()); - Assertions.assertEquals("xricctkwmuqq", model.agents().get(0).agentVersion()); + Assertions.assertEquals("wxuq", model.description()); + Assertions.assertEquals("sxpwwztjfmkkh", model.tags().get("gfredmlscg")); + Assertions.assertEquals("rkxgpazwugxyqvnj", model.displayName()); + Assertions.assertEquals("felhldiuhzzgqlm", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STOPPED, model.state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); + Assertions.assertEquals("djpxpqht", model.protocols().get(0).version()); + Assertions.assertEquals("zsdsuxheqdgcrux", model.agents().get(0).agentId()); + Assertions.assertEquals("inymmqgwokmikp", model.agents().get(0).agentName()); + Assertions.assertEquals("mhk", model.agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedClusterAgentHostingConfigurationTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedClusterAgentHostingConfigurationTests.java new file mode 100644 index 000000000000..b453731a9ddc --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedClusterAgentHostingConfigurationTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ManagedClusterAgentHostingConfiguration; +import org.junit.jupiter.api.Assertions; + +public final class ManagedClusterAgentHostingConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedClusterAgentHostingConfiguration model = BinaryData.fromString( + "{\"hostingType\":\"ManagedCluster\",\"hostingManagementIdentityResourceId\":\"qeojnxqbzvddntw\",\"workloadIdentityResourceId\":\"deicbtwnpzao\",\"clusterResourceId\":\"vuhrhcffcyddgl\",\"storageAccountResourceId\":\"jthjqkwpyei\",\"name\":\"xmqci\"}") + .toObject(ManagedClusterAgentHostingConfiguration.class); + Assertions.assertEquals("xmqci", model.name()); + Assertions.assertEquals("qeojnxqbzvddntw", model.hostingManagementIdentityResourceId()); + Assertions.assertEquals("deicbtwnpzao", model.workloadIdentityResourceId()); + Assertions.assertEquals("vuhrhcffcyddgl", model.clusterResourceId()); + Assertions.assertEquals("jthjqkwpyei", model.storageAccountResourceId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ManagedClusterAgentHostingConfiguration model = new ManagedClusterAgentHostingConfiguration().withName("xmqci") + .withHostingManagementIdentityResourceId("qeojnxqbzvddntw") + .withWorkloadIdentityResourceId("deicbtwnpzao") + .withClusterResourceId("vuhrhcffcyddgl") + .withStorageAccountResourceId("jthjqkwpyei"); + model = BinaryData.fromObject(model).toObject(ManagedClusterAgentHostingConfiguration.class); + Assertions.assertEquals("xmqci", model.name()); + Assertions.assertEquals("qeojnxqbzvddntw", model.hostingManagementIdentityResourceId()); + Assertions.assertEquals("deicbtwnpzao", model.workloadIdentityResourceId()); + Assertions.assertEquals("vuhrhcffcyddgl", model.clusterResourceId()); + Assertions.assertEquals("jthjqkwpyei", model.storageAccountResourceId()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java index 2b2ae5444ac1..52452cc9b716 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java @@ -21,7 +21,7 @@ public final class ManagedComputeCapacitiesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"acceleratorType\":\"na\",\"availableAccelerators\":1632518981,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":25042287,\"totalAvailableCapacity\":683575733,\"largestDeploymentCapacity\":1853132561}]},\"id\":\"moplukfykkfhsov\",\"name\":\"dkrmjxmwqpdk\",\"type\":\"sjqb\"}]}"; + = "{\"value\":[{\"properties\":{\"acceleratorType\":\"ffmwt\",\"availableAccelerators\":343799142,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":949275917,\"totalAvailableCapacity\":282917917,\"largestDeploymentCapacity\":837947153}]},\"id\":\"iefwlnm\",\"name\":\"kffcnuestbsl\",\"type\":\"e\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.managedComputeCapacities().list("a", "rvkgpogplbjuvl", "hxnrn", com.azure.core.util.Context.NONE); + PagedIterable response = manager.managedComputeCapacities() + .list("lxswtdapsm", "rmnrijefmrtwxc", "vdsp", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java index e318d84da96a..9e8afcf06b51 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java @@ -11,7 +11,7 @@ public final class ManagedComputeCapacityInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeCapacityInner model = BinaryData.fromString( - "{\"properties\":{\"acceleratorType\":\"mvmmagoaqylkjz\",\"availableAccelerators\":796364731,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":631894274,\"totalAvailableCapacity\":1951855208,\"largestDeploymentCapacity\":891037288},{\"modelInstanceAcceleratorCount\":1126238665,\"totalAvailableCapacity\":20819114,\"largestDeploymentCapacity\":232494385},{\"modelInstanceAcceleratorCount\":242842574,\"totalAvailableCapacity\":1700403098,\"largestDeploymentCapacity\":274573467},{\"modelInstanceAcceleratorCount\":1336825588,\"totalAvailableCapacity\":2065115467,\"largestDeploymentCapacity\":488313327}]},\"id\":\"bd\",\"name\":\"vcqguefzh\",\"type\":\"mpheqdur\"}") + "{\"properties\":{\"acceleratorType\":\"nul\",\"availableAccelerators\":639452188,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1442225209,\"totalAvailableCapacity\":1778225754,\"largestDeploymentCapacity\":748960211},{\"modelInstanceAcceleratorCount\":1183506490,\"totalAvailableCapacity\":108799022,\"largestDeploymentCapacity\":2019149203}]},\"id\":\"kmq\",\"name\":\"zzkivyhjr\",\"type\":\"iizjixlqfhefkwa\"}") .toObject(ManagedComputeCapacityInner.class); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.java index 8872bbfe6678..f66543f57b2b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.java @@ -12,8 +12,8 @@ public final class ManagedComputeCapacityListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeCapacityListResult model = BinaryData.fromString( - "{\"nextLink\":\"hiigby\",\"value\":[{\"properties\":{\"acceleratorType\":\"vxva\",\"availableAccelerators\":1630593838,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":929822978,\"totalAvailableCapacity\":1990869222,\"largestDeploymentCapacity\":1090021535},{\"modelInstanceAcceleratorCount\":872457867,\"totalAvailableCapacity\":1271280598,\"largestDeploymentCapacity\":1888869488}]},\"id\":\"zlwxaeaovur\",\"name\":\"xdndsbdweaderzm\",\"type\":\"ntopa\"}]}") + "{\"nextLink\":\"vka\",\"value\":[{\"properties\":{\"acceleratorType\":\"iswqjmdgh\",\"availableAccelerators\":329956196,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1780423084,\"totalAvailableCapacity\":1171351655,\"largestDeploymentCapacity\":191485279}]},\"id\":\"bjczjnciuiyqvlda\",\"name\":\"wvppi\",\"type\":\"qqzlgcndhz\"},{\"properties\":{\"acceleratorType\":\"fcfsrhkhgsnx\",\"availableAccelerators\":139269436,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1267562691,\"totalAvailableCapacity\":311859897,\"largestDeploymentCapacity\":1365767793},{\"modelInstanceAcceleratorCount\":764395735,\"totalAvailableCapacity\":2072400742,\"largestDeploymentCapacity\":1434461575},{\"modelInstanceAcceleratorCount\":1317450189,\"totalAvailableCapacity\":742319225,\"largestDeploymentCapacity\":1956229880}]},\"id\":\"lwzacn\",\"name\":\"wpfsuqtaaz\",\"type\":\"qbxyxoyfpuqqi\"},{\"properties\":{\"acceleratorType\":\"xlhdj\",\"availableAccelerators\":2111129704,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1475001847,\"totalAvailableCapacity\":146751507,\"largestDeploymentCapacity\":1860751032}]},\"id\":\"j\",\"name\":\"ih\",\"type\":\"riybmrz\"},{\"properties\":{\"acceleratorType\":\"nxwdvwnjkg\",\"availableAccelerators\":747264503,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1225431377,\"totalAvailableCapacity\":1366323774,\"largestDeploymentCapacity\":1962598517},{\"modelInstanceAcceleratorCount\":1995307303,\"totalAvailableCapacity\":2077014867,\"largestDeploymentCapacity\":124235200}]},\"id\":\"uyvpirf\",\"name\":\"jpnqnoowsbeden\",\"type\":\"exkxbhx\"}]}") .toObject(ManagedComputeCapacityListResult.class); - Assertions.assertEquals("hiigby", model.nextLink()); + Assertions.assertEquals("vka", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java index cdb1816b2ad5..9f481a3b41ca 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java @@ -11,7 +11,7 @@ public final class ManagedComputeCapacityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeCapacityProperties model = BinaryData.fromString( - "{\"acceleratorType\":\"yujlfyoumpckyecl\",\"availableAccelerators\":1922020394,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":564586998,\"totalAvailableCapacity\":2114479531,\"largestDeploymentCapacity\":241474802},{\"modelInstanceAcceleratorCount\":384723144,\"totalAvailableCapacity\":1663305898,\"largestDeploymentCapacity\":1302814584},{\"modelInstanceAcceleratorCount\":789295576,\"totalAvailableCapacity\":1657048191,\"largestDeploymentCapacity\":1990009612}]}") + "{\"acceleratorType\":\"olro\",\"availableAccelerators\":939213609,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":747691713,\"totalAvailableCapacity\":1765457014,\"largestDeploymentCapacity\":1608092819},{\"modelInstanceAcceleratorCount\":91707091,\"totalAvailableCapacity\":1622527750,\"largestDeploymentCapacity\":1114664926},{\"modelInstanceAcceleratorCount\":1458682570,\"totalAvailableCapacity\":819255519,\"largestDeploymentCapacity\":4557833}]}") .toObject(ManagedComputeCapacityProperties.class); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.java index 9b3f12c93f44..9390529d1896 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.java @@ -12,12 +12,12 @@ public final class ManagedComputeDeploymentInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeDeploymentInfo model = BinaryData.fromString( - "{\"deploymentId\":\"jtlkexaonwivkcqh\",\"projectId\":\"hxknlccrmmkyupi\",\"modelId\":\"byqjfkakfqfrkem\",\"acceleratorCount\":4498347556178380582,\"instanceCount\":1066286485}") + "{\"deploymentId\":\"gflwfgziiucijj\",\"projectId\":\"atlijjjr\",\"modelId\":\"am\",\"acceleratorCount\":2854978944712666849,\"instanceCount\":1253205768}") .toObject(ManagedComputeDeploymentInfo.class); - Assertions.assertEquals("jtlkexaonwivkcqh", model.deploymentId()); - Assertions.assertEquals("hxknlccrmmkyupi", model.projectId()); - Assertions.assertEquals("byqjfkakfqfrkem", model.modelId()); - Assertions.assertEquals(4498347556178380582L, model.acceleratorCount()); - Assertions.assertEquals(1066286485, model.instanceCount()); + Assertions.assertEquals("gflwfgziiucijj", model.deploymentId()); + Assertions.assertEquals("atlijjjr", model.projectId()); + Assertions.assertEquals("am", model.modelId()); + Assertions.assertEquals(2854978944712666849L, model.acceleratorCount()); + Assertions.assertEquals(1253205768, model.instanceCount()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.java index a75fd4a290ea..e20f30f27f7b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.java @@ -16,48 +16,48 @@ public final class ManagedComputeDeploymentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeDeploymentInner model = BinaryData.fromString( - "{\"properties\":{\"model\":\"lohap\",\"deploymentTemplate\":\"nfszpyglqdhmrjz\",\"acceleratorType\":\"l\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"enky\":\"yypsjoqc\",\"vsqxfxjelgcmpzqj\":\"fq\",\"s\":\"hhqxuwyvcacoyviv\",\"bscm\":\"zusjsz\"},\"computeId\":\"zijiufehgmv\",\"priority\":\"nwyvq\",\"acceleratorsPerInstance\":1693891675,\"totalAccelerators\":1520441581,\"provisioningState\":\"Moving\",\"provisioningDetails\":{\"message\":\"lylyfwxzutgqz\",\"lastOperationTimestamp\":\"2021-01-01T12:02:36Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"mupgxy\",\"swagger\":\"cdxa\",\"messagesApiScoringPath\":\"u\"}},\"sku\":{\"name\":\"tabenbbk\",\"tier\":\"Basic\",\"size\":\"zucafeddww\",\"family\":\"z\",\"capacity\":1392788602},\"etag\":\"u\",\"id\":\"nhgookrtalvnbw\",\"name\":\"pbeme\",\"type\":\"uclvdjj\"}") + "{\"properties\":{\"model\":\"qsdtcjbctvivuzq\",\"deploymentTemplate\":\"tuowogtgitsqh\",\"acceleratorType\":\"b\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"bmwnrdjyibqb\":\"anfzndscxmxeatk\"},\"computeId\":\"omhjrmkuhm\",\"priority\":\"ljalfihcjmobc\",\"acceleratorsPerInstance\":367738618,\"totalAccelerators\":1814973271,\"provisioningState\":\"ResolvingDNS\",\"provisioningDetails\":{\"message\":\"wgaxfgvaknokzwj\",\"lastOperationTimestamp\":\"2020-12-29T19:13:55Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"ixldzyyfy\",\"swagger\":\"qsix\",\"messagesApiScoringPath\":\"m\"}},\"sku\":{\"name\":\"jivyqlkjuv\",\"tier\":\"Standard\",\"size\":\"slzoyov\",\"family\":\"dbpqvybefgvm\",\"capacity\":783627315},\"etag\":\"cvtlubseskvc\",\"id\":\"rtrh\",\"name\":\"nlp\",\"type\":\"rykycndzfqivjr\"}") .toObject(ManagedComputeDeploymentInner.class); - Assertions.assertEquals("lohap", model.properties().model()); - Assertions.assertEquals("nfszpyglqdhmrjz", model.properties().deploymentTemplate()); - Assertions.assertEquals("l", model.properties().acceleratorType()); + Assertions.assertEquals("qsdtcjbctvivuzq", model.properties().model()); + Assertions.assertEquals("tuowogtgitsqh", model.properties().deploymentTemplate()); + Assertions.assertEquals("b", model.properties().acceleratorType()); Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, model.properties().versionUpgradeOption()); - Assertions.assertEquals("zijiufehgmv", model.properties().computeId()); - Assertions.assertEquals("nwyvq", model.properties().priority()); - Assertions.assertEquals("tabenbbk", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zucafeddww", model.sku().size()); - Assertions.assertEquals("z", model.sku().family()); - Assertions.assertEquals(1392788602, model.sku().capacity()); + Assertions.assertEquals("omhjrmkuhm", model.properties().computeId()); + Assertions.assertEquals("ljalfihcjmobc", model.properties().priority()); + Assertions.assertEquals("jivyqlkjuv", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("slzoyov", model.sku().size()); + Assertions.assertEquals("dbpqvybefgvm", model.sku().family()); + Assertions.assertEquals(783627315, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedComputeDeploymentInner model = new ManagedComputeDeploymentInner() - .withProperties(new ManagedComputeDeploymentProperties().withModel("lohap") - .withDeploymentTemplate("nfszpyglqdhmrjz") - .withAcceleratorType("l") + .withProperties(new ManagedComputeDeploymentProperties().withModel("qsdtcjbctvivuzq") + .withDeploymentTemplate("tuowogtgitsqh") + .withAcceleratorType("b") .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED) - .withComputeId("zijiufehgmv") - .withPriority("nwyvq")) - .withSku(new Sku().withName("tabenbbk") - .withTier(SkuTier.BASIC) - .withSize("zucafeddww") - .withFamily("z") - .withCapacity(1392788602)); + .withComputeId("omhjrmkuhm") + .withPriority("ljalfihcjmobc")) + .withSku(new Sku().withName("jivyqlkjuv") + .withTier(SkuTier.STANDARD) + .withSize("slzoyov") + .withFamily("dbpqvybefgvm") + .withCapacity(783627315)); model = BinaryData.fromObject(model).toObject(ManagedComputeDeploymentInner.class); - Assertions.assertEquals("lohap", model.properties().model()); - Assertions.assertEquals("nfszpyglqdhmrjz", model.properties().deploymentTemplate()); - Assertions.assertEquals("l", model.properties().acceleratorType()); + Assertions.assertEquals("qsdtcjbctvivuzq", model.properties().model()); + Assertions.assertEquals("tuowogtgitsqh", model.properties().deploymentTemplate()); + Assertions.assertEquals("b", model.properties().acceleratorType()); Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, model.properties().versionUpgradeOption()); - Assertions.assertEquals("zijiufehgmv", model.properties().computeId()); - Assertions.assertEquals("nwyvq", model.properties().priority()); - Assertions.assertEquals("tabenbbk", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zucafeddww", model.sku().size()); - Assertions.assertEquals("z", model.sku().family()); - Assertions.assertEquals(1392788602, model.sku().capacity()); + Assertions.assertEquals("omhjrmkuhm", model.properties().computeId()); + Assertions.assertEquals("ljalfihcjmobc", model.properties().priority()); + Assertions.assertEquals("jivyqlkjuv", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("slzoyov", model.sku().size()); + Assertions.assertEquals("dbpqvybefgvm", model.sku().family()); + Assertions.assertEquals(783627315, model.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.java index 02c9c18f866e..5085eff6cf9d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.java @@ -12,8 +12,8 @@ public final class ManagedComputeDeploymentListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeDeploymentListResult model = BinaryData.fromString( - "{\"nextLink\":\"pgvdwnapfdqw\",\"value\":[{\"properties\":{\"model\":\"ptnuwjtkschgc\",\"deploymentTemplate\":\"y\",\"acceleratorType\":\"eseyqr\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"iswskuk\":\"dotjvdk\",\"spkxkdt\":\"tasbvw\",\"vtwknvgmmbugt\":\"fkndl\",\"kueatgroeshoy\":\"watmqa\"},\"computeId\":\"cbyfqxkf\",\"priority\":\"ytehqpuvjmvqmt\",\"acceleratorsPerInstance\":1928800921,\"totalAccelerators\":636942404,\"provisioningState\":\"Moving\",\"provisioningDetails\":{\"message\":\"jn\",\"lastOperationTimestamp\":\"2021-05-14T14:46:25Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"juskbrreqyn\",\"swagger\":\"eysfaqegplw\",\"messagesApiScoringPath\":\"shwddkvbxgk\"}},\"sku\":{\"name\":\"sybwptdaca\",\"tier\":\"Standard\",\"size\":\"f\",\"family\":\"ymtpo\",\"capacity\":1736120485},\"etag\":\"azerohzrsq\",\"id\":\"sxkdnwqapfgsdpc\",\"name\":\"essmzhhku\",\"type\":\"ip\"},{\"properties\":{\"model\":\"q\",\"deploymentTemplate\":\"tekva\",\"acceleratorType\":\"l\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"eh\":\"qyv\",\"mxhzzysevus\":\"a\",\"yzatvfuzkaft\":\"ivzrrryveimipsk\",\"syeipqd\":\"vvruxwi\"},\"computeId\":\"jtgrqgdgkkileplk\",\"priority\":\"mknhwtbbaedor\",\"acceleratorsPerInstance\":961696779,\"totalAccelerators\":868137408,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"bdgwumgxdgd\",\"lastOperationTimestamp\":\"2021-01-13T19:59:53Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"dexjddvjs\",\"swagger\":\"wotmmwllcolsrsxa\",\"messagesApiScoringPath\":\"efh\"}},\"sku\":{\"name\":\"cgjokjljnhvlq\",\"tier\":\"Free\",\"size\":\"peeksnbksdqhjv\",\"family\":\"lxeslkhh\",\"capacity\":1821262908},\"etag\":\"poq\",\"id\":\"vnwqjwgo\",\"name\":\"nlejjjkxybwf\",\"type\":\"bkjbz\"}]}") + "{\"nextLink\":\"tdgukvlbp\",\"value\":[{\"properties\":{\"model\":\"styoua\",\"deploymentTemplate\":\"ewres\",\"acceleratorType\":\"owegmmutey\",\"versionUpgradeOption\":\"OnceNewDefaultVersionAvailable\",\"capabilities\":{\"ygr\":\"qigijiitnspxlzde\"},\"computeId\":\"waiufanra\",\"priority\":\"fueqfrojs\",\"acceleratorsPerInstance\":1563200607,\"totalAccelerators\":223945470,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"gywezskiec\",\"lastOperationTimestamp\":\"2021-11-27T05:54:53Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"m\",\"swagger\":\"eqvdsm\",\"messagesApiScoringPath\":\"lixqcah\"}},\"sku\":{\"name\":\"xalybxawoijpo\",\"tier\":\"Basic\",\"size\":\"xpkk\",\"family\":\"djodqhy\",\"capacity\":713961317},\"etag\":\"n\",\"id\":\"mehllizhceu\",\"name\":\"oqodkadpp\",\"type\":\"ibngqladyw\"},{\"properties\":{\"model\":\"whydt\",\"deploymentTemplate\":\"vvadswzs\",\"acceleratorType\":\"yemlowuowhlxln\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"okzkltr\":\"uvblg\",\"rqcrjidhftukvh\":\"owtdvrfmvlihcvj\"},\"computeId\":\"lwyojbfqzdkfnj\",\"priority\":\"xhafratqx\",\"acceleratorsPerInstance\":1980966470,\"totalAccelerators\":736323206,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"n\",\"lastOperationTimestamp\":\"2020-12-30T11:20:16Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"rhuzgfxonjtpu\",\"swagger\":\"l\",\"messagesApiScoringPath\":\"pvti\"}},\"sku\":{\"name\":\"zbpdbo\",\"tier\":\"Premium\",\"size\":\"yfqiuasig\",\"family\":\"wsocnequygdjbo\",\"capacity\":1020746209},\"etag\":\"tqjkqevad\",\"id\":\"mwiuawvcm\",\"name\":\"z\",\"type\":\"xiid\"},{\"properties\":{\"model\":\"czskoswoqiqazu\",\"deploymentTemplate\":\"mxzkr\",\"acceleratorType\":\"oiisbamnppcce\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"hnepkpeti\":\"sbezaxyfukzxuizh\",\"iubxdukec\":\"rx\",\"hctmmkosz\":\"xdazv\"},\"computeId\":\"blnsntrpcaqk\",\"priority\":\"f\",\"acceleratorsPerInstance\":1365764794,\"totalAccelerators\":1694520267,\"provisioningState\":\"Deleting\",\"provisioningDetails\":{\"message\":\"nldpvcbhhezyquwu\",\"lastOperationTimestamp\":\"2021-09-21T06:40:14Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"rp\",\"swagger\":\"r\",\"messagesApiScoringPath\":\"uuatvlmbjwcol\"}},\"sku\":{\"name\":\"x\",\"tier\":\"Standard\",\"size\":\"tpc\",\"family\":\"hprzrvxhmtfho\",\"capacity\":578306822},\"etag\":\"cmj\",\"id\":\"gxnoqrxtdis\",\"name\":\"jevhdlmydidw\",\"type\":\"epfwwt\"}]}") .toObject(ManagedComputeDeploymentListResult.class); - Assertions.assertEquals("pgvdwnapfdqw", model.nextLink()); + Assertions.assertEquals("tdgukvlbp", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java index 51ffb288bf42..1922cd2ac86c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java @@ -13,30 +13,32 @@ public final class ManagedComputeDeploymentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeDeploymentProperties model = BinaryData.fromString( - "{\"model\":\"kyrdnqodx\",\"deploymentTemplate\":\"h\",\"acceleratorType\":\"qfaqnvzoqg\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"zuejd\":\"chgavs\",\"ewj\":\"xptlghwzho\",\"liuhqawmoaiancz\":\"s\"},\"computeId\":\"odrrslblxyd\",\"priority\":\"rxvvbxi\",\"acceleratorsPerInstance\":207491772,\"totalAccelerators\":958439934,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"qkhychocok\",\"lastOperationTimestamp\":\"2021-10-18T00:50:01Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"rqlrqffawe\",\"swagger\":\"rkphyjdxr\",\"messagesApiScoringPath\":\"juqdbrx\"}}") + "{\"model\":\"uykbbmn\",\"deploymentTemplate\":\"gltbxoeeo\",\"acceleratorType\":\"lnf\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"vezcrcssbzhdd\":\"vqdbpbhfck\",\"nqfblhkalehpava\":\"b\",\"minict\":\"ugiqjtiogqg\",\"pnbonhpcz\":\"eajohiyg\"},\"computeId\":\"mktp\",\"priority\":\"xqcsehch\",\"acceleratorsPerInstance\":862870831,\"totalAccelerators\":1044721974,\"provisioningState\":\"ExtensionUnreachable\",\"provisioningDetails\":{\"message\":\"q\",\"lastOperationTimestamp\":\"2021-11-26T08:10:47Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"zulo\",\"swagger\":\"aeuzanh\",\"messagesApiScoringPath\":\"nhsenwphpzfng\"}}") .toObject(ManagedComputeDeploymentProperties.class); - Assertions.assertEquals("kyrdnqodx", model.model()); - Assertions.assertEquals("h", model.deploymentTemplate()); - Assertions.assertEquals("qfaqnvzoqg", model.acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, model.versionUpgradeOption()); - Assertions.assertEquals("odrrslblxyd", model.computeId()); - Assertions.assertEquals("rxvvbxi", model.priority()); + Assertions.assertEquals("uykbbmn", model.model()); + Assertions.assertEquals("gltbxoeeo", model.deploymentTemplate()); + Assertions.assertEquals("lnf", model.acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, + model.versionUpgradeOption()); + Assertions.assertEquals("mktp", model.computeId()); + Assertions.assertEquals("xqcsehch", model.priority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedComputeDeploymentProperties model = new ManagedComputeDeploymentProperties().withModel("kyrdnqodx") - .withDeploymentTemplate("h") - .withAcceleratorType("qfaqnvzoqg") - .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE) - .withComputeId("odrrslblxyd") - .withPriority("rxvvbxi"); + ManagedComputeDeploymentProperties model = new ManagedComputeDeploymentProperties().withModel("uykbbmn") + .withDeploymentTemplate("gltbxoeeo") + .withAcceleratorType("lnf") + .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED) + .withComputeId("mktp") + .withPriority("xqcsehch"); model = BinaryData.fromObject(model).toObject(ManagedComputeDeploymentProperties.class); - Assertions.assertEquals("kyrdnqodx", model.model()); - Assertions.assertEquals("h", model.deploymentTemplate()); - Assertions.assertEquals("qfaqnvzoqg", model.acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, model.versionUpgradeOption()); - Assertions.assertEquals("odrrslblxyd", model.computeId()); - Assertions.assertEquals("rxvvbxi", model.priority()); + Assertions.assertEquals("uykbbmn", model.model()); + Assertions.assertEquals("gltbxoeeo", model.deploymentTemplate()); + Assertions.assertEquals("lnf", model.acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, + model.versionUpgradeOption()); + Assertions.assertEquals("mktp", model.computeId()); + Assertions.assertEquals("xqcsehch", model.priority()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.java index d7a80f38921a..c45de6b5812a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.java @@ -13,9 +13,9 @@ public final class ManagedComputeDeploymentProvisioningDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeDeploymentProvisioningDetails model - = BinaryData.fromString("{\"message\":\"gchbapxkiy\",\"lastOperationTimestamp\":\"2021-02-28T15:19:21Z\"}") + = BinaryData.fromString("{\"message\":\"clid\",\"lastOperationTimestamp\":\"2021-11-22T02:24:35Z\"}") .toObject(ManagedComputeDeploymentProvisioningDetails.class); - Assertions.assertEquals("gchbapxkiy", model.message()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T15:19:21Z"), model.lastOperationTimestamp()); + Assertions.assertEquals("clid", model.message()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-22T02:24:35Z"), model.lastOperationTimestamp()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.java index 36f0ca7c37d9..5ad906c1ce3e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.java @@ -11,11 +11,12 @@ public final class ManagedComputeDeploymentRoutesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ManagedComputeDeploymentRoutes model = BinaryData.fromString( - "{\"chatCompletionsScoringPath\":\"bajbuscgduusi\",\"swagger\":\"cblevpmc\",\"messagesApiScoringPath\":\"jy\"}") + ManagedComputeDeploymentRoutes model = BinaryData + .fromString( + "{\"chatCompletionsScoringPath\":\"wjjufwbe\",\"swagger\":\"k\",\"messagesApiScoringPath\":\"rhtssr\"}") .toObject(ManagedComputeDeploymentRoutes.class); - Assertions.assertEquals("bajbuscgduusi", model.chatCompletionsScoringPath()); - Assertions.assertEquals("cblevpmc", model.swagger()); - Assertions.assertEquals("jy", model.messagesApiScoringPath()); + Assertions.assertEquals("wjjufwbe", model.chatCompletionsScoringPath()); + Assertions.assertEquals("k", model.swagger()); + Assertions.assertEquals("rhtssr", model.messagesApiScoringPath()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java index b95c74353f70..a4c2cbe5b2d4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java @@ -25,7 +25,7 @@ public final class ManagedComputeDeploymentsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"model\":\"egefzjx\",\"deploymentTemplate\":\"tqbgys\",\"acceleratorType\":\"thnvxwtdqtcbjd\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"vovoa\":\"kxunsaujqgbb\",\"sabdg\":\"hgjsmbcsloy\",\"onsdunr\":\"he\",\"hgzuyxtrvf\":\"zvzuat\"},\"computeId\":\"qs\",\"priority\":\"qjbvitptpvsffa\",\"acceleratorsPerInstance\":1715023602,\"totalAccelerators\":1346527238,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"wkgjwb\",\"lastOperationTimestamp\":\"2021-05-04T11:13:15Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"bwxyldqtmggcpd\",\"swagger\":\"egajrzctwymzsk\",\"messagesApiScoringPath\":\"kkgeseiphgliupq\"}},\"sku\":{\"name\":\"oobkjlca\",\"tier\":\"Enterprise\",\"size\":\"omjiqiince\",\"family\":\"xkdevpxi\",\"capacity\":954340554},\"etag\":\"zm\",\"id\":\"mduvtvodqxxp\",\"name\":\"hm\",\"type\":\"qibtblmc\"}"; + = "{\"properties\":{\"model\":\"hh\",\"deploymentTemplate\":\"fndcbsyhlud\",\"acceleratorType\":\"kkovohwv\",\"versionUpgradeOption\":\"OnceNewDefaultVersionAvailable\",\"capabilities\":{\"mdtacntjn\":\"vtdu\"},\"computeId\":\"fhvqiias\",\"priority\":\"ws\",\"acceleratorsPerInstance\":801756456,\"totalAccelerators\":741814913,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"xhhqsxjbj\",\"lastOperationTimestamp\":\"2021-05-11T23:26:14Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"gl\",\"swagger\":\"trefeclfl\",\"messagesApiScoringPath\":\"jffzwncvdefxonzt\"}},\"sku\":{\"name\":\"jptnnt\",\"tier\":\"Free\",\"size\":\"qpzjvnpjrrh\",\"family\":\"sjbi\",\"capacity\":345612933},\"etag\":\"viqehmdqvaol\",\"id\":\"xdfsfvkjc\",\"name\":\"m\",\"type\":\"rsvxphtjnhptj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,32 +35,32 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedComputeDeployment response = manager.managedComputeDeployments() - .define("xnrp") - .withExistingAccount("derjennmk", "aeuwqdwxhhlbmyph") - .withProperties(new ManagedComputeDeploymentProperties().withModel("ewokyqsfkxf") - .withDeploymentTemplate("wbihqbtodjfyxbvk") - .withAcceleratorType("zdmvdd") + .define("itlynkwfsa") + .withExistingAccount("guxcmmhip", "vsk") + .withProperties(new ManagedComputeDeploymentProperties().withModel("gfgbmcvmhidyliu") + .withDeploymentTemplate("klna") + .withAcceleratorType("dnxqeonm") .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED) - .withComputeId("rho") - .withPriority("kkvxu")) - .withSku(new Sku().withName("zevtzqwczoc") - .withTier(SkuTier.ENTERPRISE) - .withSize("k") - .withFamily("ynfpkyvnhiysdho") - .withCapacity(1469961841)) + .withComputeId("cndjzwhajo") + .withPriority("pqokhdyncra")) + .withSku(new Sku().withName("tjizwhpnbmajvvy") + .withTier(SkuTier.STANDARD) + .withSize("x") + .withFamily("kzixbk") + .withCapacity(2007505628)) .create(); - Assertions.assertEquals("egefzjx", response.properties().model()); - Assertions.assertEquals("tqbgys", response.properties().deploymentTemplate()); - Assertions.assertEquals("thnvxwtdqtcbjd", response.properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, + Assertions.assertEquals("hh", response.properties().model()); + Assertions.assertEquals("fndcbsyhlud", response.properties().deploymentTemplate()); + Assertions.assertEquals("kkovohwv", response.properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE, response.properties().versionUpgradeOption()); - Assertions.assertEquals("qs", response.properties().computeId()); - Assertions.assertEquals("qjbvitptpvsffa", response.properties().priority()); - Assertions.assertEquals("oobkjlca", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("omjiqiince", response.sku().size()); - Assertions.assertEquals("xkdevpxi", response.sku().family()); - Assertions.assertEquals(954340554, response.sku().capacity()); + Assertions.assertEquals("fhvqiias", response.properties().computeId()); + Assertions.assertEquals("ws", response.properties().priority()); + Assertions.assertEquals("jptnnt", response.sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); + Assertions.assertEquals("qpzjvnpjrrh", response.sku().size()); + Assertions.assertEquals("sjbi", response.sku().family()); + Assertions.assertEquals(345612933, response.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.java index c8f7b4a3193b..37f1967c2eaa 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.managedComputeDeployments().delete("b", "svnkxmyt", "u", com.azure.core.util.Context.NONE); + manager.managedComputeDeployments() + .delete("dsnjzpchiypb", "hmihikt", "ozewbr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java index bf622634894c..8d3c348ae9e1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ManagedComputeDeploymentsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"model\":\"zscueza\",\"deploymentTemplate\":\"vdfwgqjhewcffrx\",\"acceleratorType\":\"ezkhzp\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"syzaivnp\":\"senerr\",\"kplujyduon\":\"jnp\"},\"computeId\":\"awsaoplvvmnbkx\",\"priority\":\"rsbbd\",\"acceleratorsPerInstance\":461401130,\"totalAccelerators\":1224304593,\"provisioningState\":\"Deleting\",\"provisioningDetails\":{\"message\":\"lxqk\",\"lastOperationTimestamp\":\"2021-05-16T12:51:46Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"zvcgrdspz\",\"swagger\":\"fkq\",\"messagesApiScoringPath\":\"uhvz\"}},\"sku\":{\"name\":\"brouszxac\",\"tier\":\"Enterprise\",\"size\":\"okgoojjf\",\"family\":\"tubcmu\",\"capacity\":882961343},\"etag\":\"tzvxxvsb\",\"id\":\"ufkr\",\"name\":\"nkcnihkswxmfurq\",\"type\":\"wmwwpntumota\"}"; + = "{\"properties\":{\"model\":\"kyhtrrqwfyyb\",\"deploymentTemplate\":\"mjjrnogyk\",\"acceleratorType\":\"dlavsavgthk\",\"versionUpgradeOption\":\"OnceNewDefaultVersionAvailable\",\"capabilities\":{\"xjblajy\":\"ufkbzbf\",\"dj\":\"dnbycsbtoisa\",\"zxgnywxu\":\"ofsv\",\"mszcfy\":\"mlfjymgw\"},\"computeId\":\"peqregfur\",\"priority\":\"agknxmaovrg\",\"acceleratorsPerInstance\":638364626,\"totalAccelerators\":474739358,\"provisioningState\":\"Accepted\",\"provisioningDetails\":{\"message\":\"vqkycj\",\"lastOperationTimestamp\":\"2021-02-15T19:49:06Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"qxxsd\",\"swagger\":\"fwtyd\",\"messagesApiScoringPath\":\"mabhgc\"}},\"sku\":{\"name\":\"jqzhpvhxpba\",\"tier\":\"Standard\",\"size\":\"ullgfyogtqsc\",\"family\":\"vqerqxkomwdzpzl\",\"capacity\":1922365541},\"etag\":\"x\",\"id\":\"pwwvmbjecfw\",\"name\":\"bghnkfrwx\",\"type\":\"hl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,20 +33,20 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedComputeDeployment response = manager.managedComputeDeployments() - .getWithResponse("wgr", "ub", "udhvos", com.azure.core.util.Context.NONE) + .getWithResponse("l", "xvpstizsyqagqll", "brvaid", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zscueza", response.properties().model()); - Assertions.assertEquals("vdfwgqjhewcffrx", response.properties().deploymentTemplate()); - Assertions.assertEquals("ezkhzp", response.properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, + Assertions.assertEquals("kyhtrrqwfyyb", response.properties().model()); + Assertions.assertEquals("mjjrnogyk", response.properties().deploymentTemplate()); + Assertions.assertEquals("dlavsavgthk", response.properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE, response.properties().versionUpgradeOption()); - Assertions.assertEquals("awsaoplvvmnbkx", response.properties().computeId()); - Assertions.assertEquals("rsbbd", response.properties().priority()); - Assertions.assertEquals("brouszxac", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("okgoojjf", response.sku().size()); - Assertions.assertEquals("tubcmu", response.sku().family()); - Assertions.assertEquals(882961343, response.sku().capacity()); + Assertions.assertEquals("peqregfur", response.properties().computeId()); + Assertions.assertEquals("agknxmaovrg", response.properties().priority()); + Assertions.assertEquals("jqzhpvhxpba", response.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals("ullgfyogtqsc", response.sku().size()); + Assertions.assertEquals("vqerqxkomwdzpzl", response.sku().family()); + Assertions.assertEquals(1922365541, response.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java index 96ebc3a0736e..b730ab7d63c1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java @@ -24,7 +24,7 @@ public final class ManagedComputeDeploymentsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"model\":\"myrhkvx\",\"deploymentTemplate\":\"miemqyftgpqos\",\"acceleratorType\":\"fqvjmghpakbqyhls\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"yevztnjaw\":\"meqagkncjmyb\"},\"computeId\":\"ulem\",\"priority\":\"mbwppxirxbkitzmn\",\"acceleratorsPerInstance\":1863060049,\"totalAccelerators\":1276805401,\"provisioningState\":\"ResolvingDNS\",\"provisioningDetails\":{\"message\":\"tjlxsgcemegdzdvy\",\"lastOperationTimestamp\":\"2021-06-21T09:17:13Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"f\",\"swagger\":\"zufldifnivlutg\",\"messagesApiScoringPath\":\"aacxauhvc\"}},\"sku\":{\"name\":\"xhklsqxt\",\"tier\":\"Free\",\"size\":\"gkts\",\"family\":\"yxxo\",\"capacity\":1864207532},\"etag\":\"bkvecnxfxphsowbe\",\"id\":\"nbwutlvuwmsu\",\"name\":\"ustihtgrafjajvky\",\"type\":\"mmjczvog\"}]}"; + = "{\"value\":[{\"properties\":{\"model\":\"qbjxgjwsrerukbuu\",\"deploymentTemplate\":\"izwkwkjx\",\"acceleratorType\":\"acedikqel\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"ommki\":\"bevgbn\",\"mzyjjyut\":\"hypw\",\"i\":\"mzqlnaag\",\"fqiywhxpsb\":\"j\"},\"computeId\":\"ialezaydpu\",\"priority\":\"degefxlieggoto\",\"acceleratorsPerInstance\":1802423608,\"totalAccelerators\":1258550316,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"zkah\",\"lastOperationTimestamp\":\"2021-10-30T11:32:58Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"fmkcu\",\"swagger\":\"hdgwuzrono\",\"messagesApiScoringPath\":\"hz\"}},\"sku\":{\"name\":\"dn\",\"tier\":\"Standard\",\"size\":\"dcikgxk\",\"family\":\"zfzdjekeb\",\"capacity\":1623904508},\"etag\":\"zsjwyfixirgcj\",\"id\":\"iwu\",\"name\":\"pjkakrxifqnf\",\"type\":\"orxsqtzngxbsale\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedComputeDeployments().list("edr", "hxg", com.azure.core.util.Context.NONE); + = manager.managedComputeDeployments().list("rjzgkbrauxbo", "fq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("myrhkvx", response.iterator().next().properties().model()); - Assertions.assertEquals("miemqyftgpqos", response.iterator().next().properties().deploymentTemplate()); - Assertions.assertEquals("fqvjmghpakbqyhls", response.iterator().next().properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, + Assertions.assertEquals("qbjxgjwsrerukbuu", response.iterator().next().properties().model()); + Assertions.assertEquals("izwkwkjx", response.iterator().next().properties().deploymentTemplate()); + Assertions.assertEquals("acedikqel", response.iterator().next().properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, response.iterator().next().properties().versionUpgradeOption()); - Assertions.assertEquals("ulem", response.iterator().next().properties().computeId()); - Assertions.assertEquals("mbwppxirxbkitzmn", response.iterator().next().properties().priority()); - Assertions.assertEquals("xhklsqxt", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); - Assertions.assertEquals("gkts", response.iterator().next().sku().size()); - Assertions.assertEquals("yxxo", response.iterator().next().sku().family()); - Assertions.assertEquals(1864207532, response.iterator().next().sku().capacity()); + Assertions.assertEquals("ialezaydpu", response.iterator().next().properties().computeId()); + Assertions.assertEquals("degefxlieggoto", response.iterator().next().properties().priority()); + Assertions.assertEquals("dn", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.iterator().next().sku().tier()); + Assertions.assertEquals("dcikgxk", response.iterator().next().sku().size()); + Assertions.assertEquals("zfzdjekeb", response.iterator().next().sku().family()); + Assertions.assertEquals(1623904508, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java index fbbda25b6f43..00e3274b5c16 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java @@ -13,16 +13,16 @@ public final class ManagedComputeUsageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeUsageInner model = BinaryData.fromString( - "{\"id\":\"sjybvitv\",\"name\":{\"value\":\"y\",\"localizedValue\":\"nu\"},\"type\":\"ggmuwdcho\",\"unit\":\"Percent\",\"limit\":19.106338429113336,\"currentValue\":6.37771194869543,\"offerScope\":\"noakiz\",\"deployments\":[{\"deploymentId\":\"knaqlnuwig\",\"projectId\":\"xly\",\"modelId\":\"phvxz\",\"acceleratorCount\":3064181899118656130,\"instanceCount\":1205134397}]}") + "{\"id\":\"pa\",\"name\":{\"value\":\"wgilfjqqac\",\"localizedValue\":\"kxwxdcvjwcyziake\"},\"type\":\"qchxrtuic\",\"unit\":\"CountPerSecond\",\"limit\":72.74596280759863,\"currentValue\":95.98056526755447,\"offerScope\":\"hzzwvywrgyngy\",\"deployments\":[{\"deploymentId\":\"x\",\"projectId\":\"akiqa\",\"modelId\":\"djrkclamggl\",\"acceleratorCount\":6536212634590682609,\"instanceCount\":952584421},{\"deploymentId\":\"oqeykglt\",\"projectId\":\"xhqf\",\"modelId\":\"ka\",\"acceleratorCount\":9210406858833590150,\"instanceCount\":225659950}]}") .toObject(ManagedComputeUsageInner.class); - Assertions.assertEquals(UnitType.PERCENT, model.unit()); - Assertions.assertEquals(19.106338429113336D, model.limit()); - Assertions.assertEquals(6.37771194869543D, model.currentValue()); - Assertions.assertEquals("noakiz", model.offerScope()); - Assertions.assertEquals("knaqlnuwig", model.deployments().get(0).deploymentId()); - Assertions.assertEquals("xly", model.deployments().get(0).projectId()); - Assertions.assertEquals("phvxz", model.deployments().get(0).modelId()); - Assertions.assertEquals(3064181899118656130L, model.deployments().get(0).acceleratorCount()); - Assertions.assertEquals(1205134397, model.deployments().get(0).instanceCount()); + Assertions.assertEquals(UnitType.COUNT_PER_SECOND, model.unit()); + Assertions.assertEquals(72.74596280759863D, model.limit()); + Assertions.assertEquals(95.98056526755447D, model.currentValue()); + Assertions.assertEquals("hzzwvywrgyngy", model.offerScope()); + Assertions.assertEquals("x", model.deployments().get(0).deploymentId()); + Assertions.assertEquals("akiqa", model.deployments().get(0).projectId()); + Assertions.assertEquals("djrkclamggl", model.deployments().get(0).modelId()); + Assertions.assertEquals(6536212634590682609L, model.deployments().get(0).acceleratorCount()); + Assertions.assertEquals(952584421, model.deployments().get(0).instanceCount()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.java index 5bbf497fa485..0ffa6db96dd2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.java @@ -13,17 +13,17 @@ public final class ManagedComputeUsageListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedComputeUsageListResult model = BinaryData.fromString( - "{\"nextLink\":\"oiojfizfavkjzwfb\",\"value\":[{\"id\":\"kmmfzsbf\",\"name\":{\"value\":\"zxmdew\",\"localizedValue\":\"sxkrpl\"},\"type\":\"aze\",\"unit\":\"Milliseconds\",\"limit\":83.21711900523152,\"currentValue\":0.4559711602464489,\"offerScope\":\"uhbrnnhjxsq\",\"deployments\":[{\"deploymentId\":\"kbiwetpozyc\",\"projectId\":\"iqyhgfse\",\"modelId\":\"lexbsf\",\"acceleratorCount\":3461670319118583954,\"instanceCount\":246722999}]},{\"id\":\"pziuwfbzkkdtnh\",\"name\":{\"value\":\"cljse\",\"localizedValue\":\"kpbafvafhl\"},\"type\":\"lc\",\"unit\":\"Count\",\"limit\":89.231242758459,\"currentValue\":16.145781911409763,\"offerScope\":\"fwrsofpltdbmair\",\"deployments\":[{\"deploymentId\":\"fnrac\",\"projectId\":\"pqigtuujwouhd\",\"modelId\":\"s\",\"acceleratorCount\":1782956154841144799,\"instanceCount\":1298338594}]}]}") + "{\"nextLink\":\"aobrlbp\",\"value\":[{\"id\":\"agnchjhgemuowaky\",\"name\":{\"value\":\"hjym\",\"localizedValue\":\"gqtagd\"},\"type\":\"lss\",\"unit\":\"CountPerSecond\",\"limit\":85.41505522944007,\"currentValue\":15.510263025378402,\"offerScope\":\"cnlbv\",\"deployments\":[{\"deploymentId\":\"dkkgjiiytssikizb\",\"projectId\":\"fqb\",\"modelId\":\"tnrgmqsorhce\",\"acceleratorCount\":6618352425256942325,\"instanceCount\":464953682},{\"deploymentId\":\"mxcpwzvmdoks\",\"projectId\":\"tiwlwxlboncqb\",\"modelId\":\"qicqchygt\",\"acceleratorCount\":7288669493601270091,\"instanceCount\":1673817670}]},{\"id\":\"epubdp\",\"name\":{\"value\":\"qvgx\",\"localizedValue\":\"od\"},\"type\":\"vohkxdxuws\",\"unit\":\"BytesPerSecond\",\"limit\":2.108350394212466,\"currentValue\":24.178420071771068,\"offerScope\":\"zlehgcvkbcknjolg\",\"deployments\":[{\"deploymentId\":\"pvelszerqze\",\"projectId\":\"o\",\"modelId\":\"intxwa\",\"acceleratorCount\":236257950288457433,\"instanceCount\":97445138},{\"deploymentId\":\"lqwa\",\"projectId\":\"r\",\"modelId\":\"lhm\",\"acceleratorCount\":1237200805001740489,\"instanceCount\":826879471},{\"deploymentId\":\"afjrqpjiyrqjcrg\",\"projectId\":\"wmzwdfkbnrzorpdl\",\"modelId\":\"qctqjfg\",\"acceleratorCount\":4737842499987221352,\"instanceCount\":1607767052},{\"deploymentId\":\"zdgvpyigdaqqilz\",\"projectId\":\"d\",\"modelId\":\"joedx\",\"acceleratorCount\":7647766636981575765,\"instanceCount\":190011848}]}]}") .toObject(ManagedComputeUsageListResult.class); - Assertions.assertEquals("oiojfizfavkjzwfb", model.nextLink()); - Assertions.assertEquals(UnitType.MILLISECONDS, model.value().get(0).unit()); - Assertions.assertEquals(83.21711900523152D, model.value().get(0).limit()); - Assertions.assertEquals(0.4559711602464489D, model.value().get(0).currentValue()); - Assertions.assertEquals("uhbrnnhjxsq", model.value().get(0).offerScope()); - Assertions.assertEquals("kbiwetpozyc", model.value().get(0).deployments().get(0).deploymentId()); - Assertions.assertEquals("iqyhgfse", model.value().get(0).deployments().get(0).projectId()); - Assertions.assertEquals("lexbsf", model.value().get(0).deployments().get(0).modelId()); - Assertions.assertEquals(3461670319118583954L, model.value().get(0).deployments().get(0).acceleratorCount()); - Assertions.assertEquals(246722999, model.value().get(0).deployments().get(0).instanceCount()); + Assertions.assertEquals("aobrlbp", model.nextLink()); + Assertions.assertEquals(UnitType.COUNT_PER_SECOND, model.value().get(0).unit()); + Assertions.assertEquals(85.41505522944007D, model.value().get(0).limit()); + Assertions.assertEquals(15.510263025378402D, model.value().get(0).currentValue()); + Assertions.assertEquals("cnlbv", model.value().get(0).offerScope()); + Assertions.assertEquals("dkkgjiiytssikizb", model.value().get(0).deployments().get(0).deploymentId()); + Assertions.assertEquals("fqb", model.value().get(0).deployments().get(0).projectId()); + Assertions.assertEquals("tnrgmqsorhce", model.value().get(0).deployments().get(0).modelId()); + Assertions.assertEquals(6618352425256942325L, model.value().get(0).deployments().get(0).acceleratorCount()); + Assertions.assertEquals(464953682, model.value().get(0).deployments().get(0).instanceCount()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java index fa74c41024b1..7404de214a2a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java @@ -23,7 +23,7 @@ public final class ManagedComputeUsagesOperationGroupsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"gc\",\"name\":{\"value\":\"utehlka\",\"localizedValue\":\"tipquks\"},\"type\":\"kn\",\"unit\":\"Milliseconds\",\"limit\":51.918316567854916,\"currentValue\":80.10511815598674,\"offerScope\":\"cekggvmfnnb\",\"deployments\":[{\"deploymentId\":\"dfkkedeetxtpwcv\",\"projectId\":\"fwsunjzijaciwmm\",\"modelId\":\"tqdonbzzs\",\"acceleratorCount\":9222881084879047202,\"instanceCount\":1850672842}]}]}"; + = "{\"value\":[{\"id\":\"qoyimxp\",\"name\":{\"value\":\"tteagbgacnqpju\",\"localizedValue\":\"vud\"},\"type\":\"lpbybkisb\",\"unit\":\"Milliseconds\",\"limit\":96.66093645341567,\"currentValue\":23.715688206182318,\"offerScope\":\"jrau\",\"deployments\":[{\"deploymentId\":\"znurttu\",\"projectId\":\"aaxxdcdjmdkqtxfr\",\"modelId\":\"ecxstowa\",\"acceleratorCount\":4515477228323203458,\"instanceCount\":918294664}]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedComputeUsagesOperationGroups().list("vqlcqufylamxo", com.azure.core.util.Context.NONE); + = manager.managedComputeUsagesOperationGroups().list("rgyzcslazp", com.azure.core.util.Context.NONE); Assertions.assertEquals(UnitType.MILLISECONDS, response.iterator().next().unit()); - Assertions.assertEquals(51.918316567854916D, response.iterator().next().limit()); - Assertions.assertEquals(80.10511815598674D, response.iterator().next().currentValue()); - Assertions.assertEquals("cekggvmfnnb", response.iterator().next().offerScope()); - Assertions.assertEquals("dfkkedeetxtpwcv", response.iterator().next().deployments().get(0).deploymentId()); - Assertions.assertEquals("fwsunjzijaciwmm", response.iterator().next().deployments().get(0).projectId()); - Assertions.assertEquals("tqdonbzzs", response.iterator().next().deployments().get(0).modelId()); - Assertions.assertEquals(9222881084879047202L, + Assertions.assertEquals(96.66093645341567D, response.iterator().next().limit()); + Assertions.assertEquals(23.715688206182318D, response.iterator().next().currentValue()); + Assertions.assertEquals("jrau", response.iterator().next().offerScope()); + Assertions.assertEquals("znurttu", response.iterator().next().deployments().get(0).deploymentId()); + Assertions.assertEquals("aaxxdcdjmdkqtxfr", response.iterator().next().deployments().get(0).projectId()); + Assertions.assertEquals("ecxstowa", response.iterator().next().deployments().get(0).modelId()); + Assertions.assertEquals(4515477228323203458L, response.iterator().next().deployments().get(0).acceleratorCount()); - Assertions.assertEquals(1850672842, response.iterator().next().deployments().get(0).instanceCount()); + Assertions.assertEquals(918294664, response.iterator().next().deployments().get(0).instanceCount()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java index a8c7da883d5d..a104da2d4b47 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java @@ -16,14 +16,14 @@ public final class ManagedNetworkListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkListResult model = BinaryData.fromString( - "{\"nextLink\":\"qtaazyqbxy\",\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"zxlhdjzqdcadwv\",\"outboundRules\":{\"zjiihjr\":{\"type\":\"OutboundRule\"},\"ybmrzoepnxwd\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"mxaursqftibtyi\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Failed\"},\"id\":\"rfqjpnqnoo\",\"name\":\"sbede\",\"type\":\"rexkxbhxvucn\"}]}") + "{\"nextLink\":\"nbau\",\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"xbzrpejplssanb\",\"outboundRules\":{\"kgsuxunrswgk\":{\"type\":\"OutboundRule\"},\"jhboyikebhuhks\":{\"type\":\"OutboundRule\"},\"gwl\":{\"type\":\"OutboundRule\"},\"kh\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"ypzqzufgsyfej\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Deferred\"},\"id\":\"xptpqaya\",\"name\":\"k\",\"type\":\"cf\"}]}") .toObject(ManagedNetworkListResult.class); - Assertions.assertEquals("qtaazyqbxy", model.nextLink()); + Assertions.assertEquals("nbau", model.nextLink()); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.value().get(0).properties().managedNetwork().isolationMode()); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.value().get(0).properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.value().get(0).properties().managedNetwork().firewallSku()); + Assertions.assertEquals(FirewallSku.BASIC, model.value().get(0).properties().managedNetwork().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.value().get(0).properties().managedNetwork().managedNetworkKind()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkMockTests.java index 3fb1543e8966..703db6778a83 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkMockTests.java @@ -32,7 +32,7 @@ public void testProvisionManagedNetwork() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedNetworkProvisionStatus response = manager.managedNetworkProvisions() - .provisionManagedNetwork("cjiuhcxyveh", "klely", "dvpqfbxgy", new ManagedNetworkProvisionOptions(), + .provisionManagedNetwork("uaz", "gfcnxc", "g", new ManagedNetworkProvisionOptions(), com.azure.core.util.Context.NONE); Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, response.status()); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsBasicResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsBasicResourceInnerTests.java index 72463ae5d5c3..492998c048e1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsBasicResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsBasicResourceInnerTests.java @@ -23,34 +23,36 @@ public final class ManagedNetworkSettingsBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"isolationMode\":\"Disabled\",\"networkId\":\"hjevd\",\"outboundRules\":{\"lronqqlmg\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"kskmqozzkivyhjrl\",\"parentRuleNames\":[\"jixlqfhefkwabs\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"lexhv\",\"provisioningState\":\"Succeeded\"},\"id\":\"zoolzqoca\",\"name\":\"kuzlbcnn\",\"type\":\"t\"}") + "{\"properties\":{\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"snxoc\",\"outboundRules\":{\"nq\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"oy\",\"parentRuleNames\":[\"wdjuxdbdljzgdy\",\"cvuq\",\"sgzlrqhb\"]},\"ezay\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"sfpyxx\",\"parentRuleNames\":[\"flecominxojjl\",\"xxdhilzzdzzqjm\"]},\"tsnld\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"lotokh\",\"parentRuleNames\":[\"taznkcqwwxwjyof\",\"whnkbtl\",\"ljssm\"]},\"uacvfy\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"isubxbteog\",\"parentRuleNames\":[\"iijrykwlefksxq\",\"eazfpxgnmqvzvlu\",\"q\",\"aiossscyvaifp\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"dhsoymhpv\",\"provisioningState\":\"Succeeded\"},\"id\":\"ttehdp\",\"name\":\"ou\",\"type\":\"stkfvvdshxcdeds\"}") .toObject(ManagedNetworkSettingsBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.DISABLED, model.properties().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().outboundRules().get("lronqqlmg").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("lronqqlmg").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.properties().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetworkKind()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.properties().isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.properties().outboundRules().get("nq").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("nq").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.properties().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, model.properties().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsBasicResourceInner model = new ManagedNetworkSettingsBasicResourceInner() - .withProperties(new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.DISABLED) - .withOutboundRules(mapOf("lronqqlmg", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.STANDARD) - .withManagedNetworkKind(ManagedNetworkKind.V1)); + ManagedNetworkSettingsBasicResourceInner model = new ManagedNetworkSettingsBasicResourceInner().withProperties( + new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("nq", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE), "ezay", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.INACTIVE), "tsnld", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.PROVISIONING), + "uacvfy", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.DELETING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V2)); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.DISABLED, model.properties().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().outboundRules().get("lronqqlmg").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("lronqqlmg").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.properties().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetworkKind()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.properties().isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.properties().outboundRules().get("nq").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("nq").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.properties().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, model.properties().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsExTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsExTests.java index 58965626f867..d7f88981ab40 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsExTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsExTests.java @@ -22,31 +22,36 @@ public final class ManagedNetworkSettingsExTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsEx model = BinaryData.fromString( - "{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"flqqbtnyjpylxd\",\"outboundRules\":{\"cm\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"s\",\"parentRuleNames\":[\"evwjcnkottlwuhv\",\"jmailfemjjzakzw\",\"iqullqxbdmvr\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"eof\",\"provisioningState\":\"Failed\"}") + "{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"vcxjsgbipcukdvek\",\"outboundRules\":{\"lkaaggkr\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"hvlscrdp\",\"parentRuleNames\":[\"dyjdussp\",\"szekbh\"]},\"dusr\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"uybffljfiim\",\"parentRuleNames\":[\"agsqta\"]},\"phgerhsmvgoh\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"sqwudohzilfmnli\",\"parentRuleNames\":[\"i\",\"s\",\"eypofqpm\",\"hyqgsdrmmttjx\"]},\"liejhpc\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"lrixysfnimsq\",\"parentRuleNames\":[\"wmhkruwaedrympml\",\"oinhzdue\",\"ihapfjiiknjdiq\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"ce\",\"provisioningState\":\"Failed\"}") .toObject(ManagedNetworkSettingsEx.class); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("cm").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("cm").status()); + Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.outboundRules().get("lkaaggkr").category()); + Assertions.assertEquals(RuleStatus.DELETING, model.outboundRules().get("lkaaggkr").status()); Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); + Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsEx model = new ManagedNetworkSettingsEx() - .withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules( - mapOf("cm", new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V2); + ManagedNetworkSettingsEx model + = new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) + .withOutboundRules(mapOf("lkaaggkr", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.DELETING), "dusr", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.DELETING), + "phgerhsmvgoh", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.PROVISIONING), + "liejhpc", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + .withFirewallSku(FirewallSku.STANDARD) + .withManagedNetworkKind(ManagedNetworkKind.V2); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsEx.class); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("cm").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("cm").status()); + Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.outboundRules().get("lkaaggkr").category()); + Assertions.assertEquals(RuleStatus.DELETING, model.outboundRules().get("lkaaggkr").status()); Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); + Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetworkKind()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsInnerTests.java index 251a59627db9..08baab2050d6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsInnerTests.java @@ -22,34 +22,33 @@ public final class ManagedNetworkSettingsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsInner model = BinaryData.fromString( - "{\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"rkadjfynnfmuiiir\",\"outboundRules\":{\"bdsuifr\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"kxbbcbrwjiutgnj\",\"parentRuleNames\":[\"eewoiymrvzb\",\"uyrsrziuctix\"]},\"srhkhgsnxuwwkpph\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"ezkiswqjmdghsypa\",\"parentRuleNames\":[\"jufptbjczjnciuiy\",\"vldaswv\",\"pisqqzlgcndhzx\",\"rfc\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"xomeikjclwzacn\",\"provisioningState\":\"Deferred\"}") + "{\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"pbwxgoooxz\",\"outboundRules\":{\"hoadhrsxqvzv\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"knpdgzigjsu\",\"parentRuleNames\":[\"hgsaodkwwn\",\"afoctohz\",\"aquvwsxbgnvkervq\"]},\"kw\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"r\",\"parentRuleNames\":[\"jglzrsubklrxhjnl\",\"cetjdvq\",\"dieq\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"xoebwg\",\"provisioningState\":\"Deleted\"}") .toObject(ManagedNetworkSettingsInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("bdsuifr").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("bdsuifr").status()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("hoadhrsxqvzv").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.outboundRules().get("hoadhrsxqvzv").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedNetworkSettingsInner model - = new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) - .withOutboundRules(mapOf("bdsuifr", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE), - "srhkhgsnxuwwkpph", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.FAILED))) + = new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("hoadhrsxqvzv", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE), "kw", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE))) .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) .withFirewallSku(FirewallSku.STANDARD) - .withManagedNetworkKind(ManagedNetworkKind.V1); + .withManagedNetworkKind(ManagedNetworkKind.V2); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("bdsuifr").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("bdsuifr").status()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("hoadhrsxqvzv").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.outboundRules().get("hoadhrsxqvzv").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsGetWithResponseMockTests.java index 795805278f6a..9a3868702adc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsGetWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class ManagedNetworkSettingsOperationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"ydtdtftmizuzjd\",\"outboundRules\":{\"lpbybkisb\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Deleting\",\"errorInformation\":\"a\",\"parentRuleNames\":[\"kqoyimxpggk\",\"teagbgac\",\"qpjuytvude\"]},\"c\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"lpwdjraurf\",\"parentRuleNames\":[\"nurttu\",\"aaaxx\"]},\"spsaneyvaerpiob\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"txfrm\",\"parentRuleNames\":[\"xstowagehxuihwes\",\"tjaqgbl\",\"kncypmte\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"jwqdmr\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Deferred\"},\"id\":\"pqcaigazwfwlrfd\",\"name\":\"w\",\"type\":\"zseodtqfdrslzymq\"}"; + = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\"],\"isolationMode\":\"Disabled\",\"networkId\":\"myqyyfrridzfps\",\"outboundRules\":{\"vvoydwedggwg\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"mlxrqkekn\",\"parentRuleNames\":[\"qafz\",\"ptriysjrgtruwpu\",\"p\",\"rcek\"]},\"rxirq\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"tzadrjbjngoarsr\",\"parentRuleNames\":[\"i\",\"mzc\",\"niapypi\"]},\"ytkbce\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Deleting\",\"errorInformation\":\"stuinytkmlfupjzc\",\"parentRuleNames\":[\"zj\",\"yxjg\",\"hxuerrd\",\"kt\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"j\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Deleted\"},\"id\":\"vlhnhhcikhleb\",\"name\":\"jgylsac\",\"type\":\"giflr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,17 +37,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedNetworkSettingsPropertiesBasicResource response = manager.managedNetworkSettingsOperations() - .getWithResponse("cimbrsv", "phtjnh", "tjl", com.azure.core.util.Context.NONE) + .getWithResponse("blcyeqdobobaq", "abebckc", "srsixwn", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, - response.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - response.properties().managedNetwork().outboundRules().get("lpbybkisb").category()); - Assertions.assertEquals(RuleStatus.DELETING, - response.properties().managedNetwork().outboundRules().get("lpbybkisb").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, response.properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, response.properties().managedNetwork().firewallSku()); + Assertions.assertEquals(IsolationMode.DISABLED, response.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + response.properties().managedNetwork().outboundRules().get("vvoydwedggwg").category()); + Assertions.assertEquals(RuleStatus.FAILED, + response.properties().managedNetwork().outboundRules().get("vvoydwedggwg").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, + response.properties().managedNetwork().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, response.properties().managedNetwork().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V2, response.properties().managedNetwork().managedNetworkKind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsListMockTests.java index 46fa0dfcfdf0..c55ab0e350af 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsListMockTests.java @@ -28,7 +28,7 @@ public final class ManagedNetworkSettingsOperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"jrahgdstu\",\"outboundRules\":{\"elsxfkzr\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"hxliqmsckwhfmd\",\"parentRuleNames\":[\"yobqzwjalwrsofxc\",\"crmvjfmr\",\"uydldp\"]},\"dmra\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"qxvwk\",\"parentRuleNames\":[\"xoerjwbuocqfl\",\"nlrlqxbctatezy\",\"zdbcqqnlsjxcsc\",\"it\"]},\"brpelpf\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"dnvltcvmahp\",\"parentRuleNames\":[\"upb\",\"nhiclhyzh\",\"cqdfwbifnnhlsfo\",\"simtfcqmmy\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"eszamad\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Updating\"},\"id\":\"f\",\"name\":\"ivczktllxswtdap\",\"type\":\"mirmnrijefmrt\"}]}"; + = "{\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"wzhlutjsjz\",\"outboundRules\":{\"aipu\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"u\",\"parentRuleNames\":[\"akosysycvldee\",\"cb\"]},\"dczmrjgobekx\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"gbvbbdledfflzv\",\"parentRuleNames\":[\"azzxfjveugpxz\",\"empupbscboxra\"]},\"viiebe\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"ecafdrzzbskiwrjs\",\"parentRuleNames\":[\"mseesacuicnvqiqs\",\"ivmrfap\",\"ndrmmnlhnkmx\",\"qkekcd\"]},\"ruyk\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"qymcwt\",\"parentRuleNames\":[\"ceplbrzgkuorwpq\",\"stwe\",\"b\",\"ts\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"yjyflsmsbnlyoi\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Failed\"},\"id\":\"qthykcvoev\",\"name\":\"wfzotkxx\",\"type\":\"wwooxgbsdzcg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,20 +38,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedNetworkSettingsOperations() - .list("serwyc", "hytjwgetfigw", com.azure.core.util.Context.NONE); + = manager.managedNetworkSettingsOperations().list("ygotoh", "wtoi", com.azure.core.util.Context.NONE); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, response.iterator().next().properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, - response.iterator().next().properties().managedNetwork().outboundRules().get("elsxfkzr").category()); - Assertions.assertEquals(RuleStatus.FAILED, - response.iterator().next().properties().managedNetwork().outboundRules().get("elsxfkzr").status()); + Assertions.assertEquals(RuleCategory.REQUIRED, + response.iterator().next().properties().managedNetwork().outboundRules().get("aipu").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, + response.iterator().next().properties().managedNetwork().outboundRules().get("aipu").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, response.iterator().next().properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.STANDARD, response.iterator().next().properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, + Assertions.assertEquals(ManagedNetworkKind.V2, response.iterator().next().properties().managedNetwork().managedNetworkKind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java index 318d895a4ed3..1aa5838d4531 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java @@ -33,7 +33,7 @@ public final class ManagedNetworkSettingsOperationsPutMockTests { @Test public void testPut() throws Exception { String responseStr - = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"AllowInternetOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"sqosecxlngou\",\"outboundRules\":{\"pplxgtdumjtyc\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"xzspfy\",\"parentRuleNames\":[\"az\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"ozqthkwxfugfzizy\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Succeeded\"},\"id\":\"qzb\",\"name\":\"qcakmfckviyj\",\"type\":\"camnsbqoitwhm\"}"; + = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"Disabled\",\"networkId\":\"wfl\",\"outboundRules\":{\"p\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"rxhywlrkqsqvvd\",\"parentRuleNames\":[\"fjdajdqxy\",\"xxyfrdjidcetfvgw\",\"wsldigwouppvyd\",\"qsvclrsnxf\"]},\"tiqmcjbsmkirp\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"mdmtfxxe\",\"parentRuleNames\":[\"xzxlcqzfxa\"]},\"xlmxozesndo\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"m\",\"parentRuleNames\":[\"omeobwkeuzltenlb\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"ixymckik\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Succeeded\"},\"id\":\"hwishyfmrzcqf\",\"name\":\"vnkyakck\",\"type\":\"ehognsddjkkdede\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -42,34 +42,30 @@ public void testPut() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - ManagedNetworkSettingsPropertiesBasicResource response - = manager.managedNetworkSettingsOperations() - .define("lgmkokqoi") - .withExistingAccount("xcevdspth", "ffmwt") - .withProperties( - new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) - .withOutboundRules(mapOf("dorctys", - new OutboundRule().withCategory(RuleCategory.USER_DEFINED) - .withStatus(RuleStatus.ACTIVE), - "tsvxupqtzckj", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.ACTIVE))) - .withStatus( - new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V2))) - .create(); + ManagedNetworkSettingsPropertiesBasicResource response = manager.managedNetworkSettingsOperations() + .define("oibm") + .withExistingAccount("vypjhubdmgobxe", "ujcqgzwvxwiu") + .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork(new ManagedNetworkSettingsEx() + .withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("cy", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE), + "ibpybqei", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.PROVISIONING), "rfqd", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V2))) + .create(); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, - response.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.REQUIRED, - response.properties().managedNetwork().outboundRules().get("pplxgtdumjtyc").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, - response.properties().managedNetwork().outboundRules().get("pplxgtdumjtyc").status()); + Assertions.assertEquals(IsolationMode.DISABLED, response.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, + response.properties().managedNetwork().outboundRules().get("p").category()); + Assertions.assertEquals(RuleStatus.FAILED, + response.properties().managedNetwork().outboundRules().get("p").status()); Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, response.properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, response.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, response.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(FirewallSku.BASIC, response.properties().managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V1, response.properties().managedNetwork().managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java index 833fdc4e3339..029ddcc4968b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java @@ -24,45 +24,38 @@ public final class ManagedNetworkSettingsPropertiesBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsPropertiesBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\",\"AllowOnlyApprovedOutbound\",\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"qpjiyrqjcr\",\"outboundRules\":{\"jfgxxsaetg\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"fkb\",\"parentRuleNames\":[\"orpdltbqct\"]},\"cdmkxwxdcvjw\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"igdaqqilzd\",\"parentRuleNames\":[\"wjoe\",\"xngucaifpaurwwgi\",\"fjqq\"]},\"grpxncakiqaondjr\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Deleting\",\"errorInformation\":\"eciqchxr\",\"parentRuleNames\":[\"cdsiwdfmmpzhzzwv\",\"wrgyngy\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"lmf\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Deferred\"},\"id\":\"ykglt\",\"name\":\"gxhqfgqkayejs\",\"type\":\"tlgflwfgz\"}") + "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\",\"AllowOnlyApprovedOutbound\",\"Disabled\"],\"isolationMode\":\"Disabled\",\"networkId\":\"nx\",\"outboundRules\":{\"xsmzygdf\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"dltxkpbq\",\"parentRuleNames\":[\"dqqjwkrhwzdano\",\"isgglmvokat\",\"ztjctibpvbkae\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"akxhysowlj\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Deferred\"},\"id\":\"ctvtf\",\"name\":\"mskdch\",\"type\":\"aiubavlzwpvgmfa\"}") .toObject(ManagedNetworkSettingsPropertiesBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, - model.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").status()); + Assertions.assertEquals(IsolationMode.DISABLED, model.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + model.properties().managedNetwork().outboundRules().get("xsmzygdf").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, + model.properties().managedNetwork().outboundRules().get("xsmzygdf").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(FirewallSku.STANDARD, model.properties().managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetwork().managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedNetworkSettingsPropertiesBasicResourceInner model = new ManagedNetworkSettingsPropertiesBasicResourceInner() - .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) - .withOutboundRules(mapOf("jfgxxsaetg", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED) - .withStatus(RuleStatus.PROVISIONING), - "cdmkxwxdcvjw", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.INACTIVE), - "grpxncakiqaondjr", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.DELETING))) + .withProperties(new ManagedNetworkSettingsProperties() + .withManagedNetwork(new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.DISABLED) + .withOutboundRules(mapOf("xsmzygdf", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.INACTIVE))) .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V1))); + .withFirewallSku(FirewallSku.STANDARD) + .withManagedNetworkKind(ManagedNetworkKind.V2))); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsPropertiesBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, - model.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").status()); + Assertions.assertEquals(IsolationMode.DISABLED, model.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + model.properties().managedNetwork().outboundRules().get("xsmzygdf").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, + model.properties().managedNetwork().outboundRules().get("xsmzygdf").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(FirewallSku.STANDARD, model.properties().managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetwork().managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java index bc786f3249d0..904344b581b3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java @@ -23,40 +23,40 @@ public final class ManagedNetworkSettingsPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsProperties model = BinaryData.fromString( - "{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"eatlijjjrtvamcas\",\"outboundRules\":{\"jwpindedvabbxbh\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"xetyvku\",\"parentRuleNames\":[\"gno\",\"ikkgqo\"]},\"suvjslcz\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"bjywfcfxzi\",\"parentRuleNames\":[\"ihvwyp\"]},\"hlusrvxisi\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Deleting\",\"errorInformation\":\"sllfryvdmvxad\",\"parentRuleNames\":[\"frgnawbabgfbktyj\",\"fczlfsyqkfrbzgow\",\"xqmjeajcxn\",\"qg\"]},\"oyjfqipu\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"bjqvls\",\"parentRuleNames\":[\"wzas\",\"xgo\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"eebgvopemtuoqu\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Deferred\"}") + "{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"Disabled\",\"networkId\":\"gjqafkmkrokzr\",\"outboundRules\":{\"stbvtqig\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"rtvaoznqni\",\"parentRuleNames\":[\"zeagmceituuge\",\"hfpjstlzmbls\",\"jdeolctae\",\"fsyrledjc\"]},\"es\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"eafgfosehxlzsxe\",\"parentRuleNames\":[\"kkwa\"]},\"mkekxpkzwaqxo\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"zeqtoyrplixlajml\",\"parentRuleNames\":[\"uevhamfo\",\"gwb\"]},\"ihpq\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"iqbplvfidusz\",\"parentRuleNames\":[\"xbyjgmsfe\",\"x\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"cx\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Deleted\"}") .toObject(ManagedNetworkSettingsProperties.class); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").category()); + Assertions.assertEquals(IsolationMode.DISABLED, model.managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, + model.managedNetwork().outboundRules().get("stbvtqig").category()); Assertions.assertEquals(RuleStatus.PROVISIONING, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetwork().managedNetworkKind()); + model.managedNetwork().outboundRules().get("stbvtqig").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.managedNetwork().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, model.managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetwork().managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsProperties model = new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules(mapOf("jwpindedvabbxbh", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING), - "suvjslcz", new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.FAILED), - "hlusrvxisi", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.DELETING), "oyjfqipu", + ManagedNetworkSettingsProperties model = new ManagedNetworkSettingsProperties() + .withManagedNetwork(new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.DISABLED) + .withOutboundRules(mapOf("stbvtqig", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING), "es", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.FAILED), + "mkekxpkzwaqxo", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE), "ihpq", new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.STANDARD) - .withManagedNetworkKind(ManagedNetworkKind.V2)); + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V1)); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsProperties.class); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").category()); + Assertions.assertEquals(IsolationMode.DISABLED, model.managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, + model.managedNetwork().outboundRules().get("stbvtqig").category()); Assertions.assertEquals(RuleStatus.PROVISIONING, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetwork().managedNetworkKind()); + model.managedNetwork().outboundRules().get("stbvtqig").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.managedNetwork().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, model.managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetwork().managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java index 74f432308974..68f9e834a101 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java @@ -11,9 +11,9 @@ public final class MetricNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - MetricName model = BinaryData.fromString("{\"value\":\"bvvnchrkcciw\",\"localizedValue\":\"juqk\"}") - .toObject(MetricName.class); - Assertions.assertEquals("bvvnchrkcciw", model.value()); - Assertions.assertEquals("juqk", model.localizedValue()); + MetricName model + = BinaryData.fromString("{\"value\":\"lkevle\",\"localizedValue\":\"zfbuhf\"}").toObject(MetricName.class); + Assertions.assertEquals("lkevle", model.value()); + Assertions.assertEquals("zfbuhf", model.localizedValue()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java index 93e32dac9330..cf717d4f7542 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java @@ -23,7 +23,7 @@ public final class ModelCapacitiesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"qc\",\"properties\":{\"model\":{\"publisher\":\"oqwrnfckjthlok\",\"format\":\"wawfu\",\"name\":\"ngejjxumowynjmoo\",\"version\":\"xuktdrsjtmnkxjou\",\"source\":\"zcfdtstiaxtyrnu\",\"sourceAccount\":\"fhepis\",\"callRateLimit\":{\"count\":91.650185,\"renewalPeriod\":73.11547,\"rules\":[{}]}},\"skuName\":\"mmemsoqgblcye\",\"availableCapacity\":38.326435,\"availableFinetuneCapacity\":23.748333,\"scopeId\":\"aqcabe\",\"scopeType\":\"Global\"},\"id\":\"esrsixwnlpjc\",\"name\":\"bjgfmyqyy\",\"type\":\"rridzfps\"}]}"; + = "{\"value\":[{\"location\":\"a\",\"properties\":{\"model\":{\"publisher\":\"dmdfiekkis\",\"format\":\"yyaeknf\",\"name\":\"yshdawjlmlcufb\",\"version\":\"iutfofhoajjylsy\",\"source\":\"jnufzvlqquy\",\"sourceAccount\":\"ceevogir\",\"callRateLimit\":{\"count\":55.93503,\"renewalPeriod\":33.72317,\"rules\":[{}]}},\"skuName\":\"eujmdssijuaxxf\",\"availableCapacity\":63.979065,\"availableFinetuneCapacity\":97.65318,\"scopeId\":\"pw\",\"scopeType\":\"DataZone\"},\"id\":\"nmj\",\"name\":\"n\",\"type\":\"tl\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.modelCapacities().list("liqwzutiyelrnhh", "t", "hqsznsyov", com.azure.core.util.Context.NONE); + = manager.modelCapacities().list("rmbd", "tqxavejoez", "wkry", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qc", response.iterator().next().location()); - Assertions.assertEquals("oqwrnfckjthlok", response.iterator().next().properties().model().publisher()); - Assertions.assertEquals("wawfu", response.iterator().next().properties().model().format()); - Assertions.assertEquals("ngejjxumowynjmoo", response.iterator().next().properties().model().name()); - Assertions.assertEquals("xuktdrsjtmnkxjou", response.iterator().next().properties().model().version()); - Assertions.assertEquals("zcfdtstiaxtyrnu", response.iterator().next().properties().model().source()); - Assertions.assertEquals("fhepis", response.iterator().next().properties().model().sourceAccount()); - Assertions.assertEquals("mmemsoqgblcye", response.iterator().next().properties().skuName()); - Assertions.assertEquals(38.326435F, response.iterator().next().properties().availableCapacity()); - Assertions.assertEquals(23.748333F, response.iterator().next().properties().availableFinetuneCapacity()); - Assertions.assertEquals("aqcabe", response.iterator().next().properties().scopeId()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, response.iterator().next().properties().scopeType()); + Assertions.assertEquals("a", response.iterator().next().location()); + Assertions.assertEquals("dmdfiekkis", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("yyaeknf", response.iterator().next().properties().model().format()); + Assertions.assertEquals("yshdawjlmlcufb", response.iterator().next().properties().model().name()); + Assertions.assertEquals("iutfofhoajjylsy", response.iterator().next().properties().model().version()); + Assertions.assertEquals("jnufzvlqquy", response.iterator().next().properties().model().source()); + Assertions.assertEquals("ceevogir", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("eujmdssijuaxxf", response.iterator().next().properties().skuName()); + Assertions.assertEquals(63.979065F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(97.65318F, response.iterator().next().properties().availableFinetuneCapacity()); + Assertions.assertEquals("pw", response.iterator().next().properties().scopeId()); + Assertions.assertEquals(QuotaScopeType.DATA_ZONE, response.iterator().next().properties().scopeType()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java index 2e81d2dbdf74..257e8b8ae56c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java @@ -12,8 +12,8 @@ public final class ModelCapacityListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelCapacityListResult model = BinaryData.fromString( - "{\"nextLink\":\"cvvy\",\"value\":[{\"location\":\"puxgcbdsvalpnpt\",\"properties\":{\"model\":{\"publisher\":\"xgpazwugxyqv\",\"format\":\"obfelhldiuhz\",\"name\":\"qlmfaewz\",\"version\":\"udjpxpqht\",\"source\":\"hnmhkrezsdsux\",\"sourceAccount\":\"qdgcrux\",\"callRateLimit\":{\"count\":83.64839,\"renewalPeriod\":1.2787461,\"rules\":[{},{},{}]}},\"skuName\":\"wokmik\",\"availableCapacity\":46.757114,\"availableFinetuneCapacity\":62.455105,\"scopeId\":\"jxuvj\",\"scopeType\":\"DataZone\"},\"id\":\"vhax\",\"name\":\"vwzaehp\",\"type\":\"hthdklmvetatlakf\"},{\"location\":\"ixwgiksbbvtooxrp\",\"properties\":{\"model\":{\"publisher\":\"hchgjtnhtukf\",\"format\":\"ihmbfntume\",\"name\":\"bxvqxbnuvw\",\"version\":\"asgom\",\"source\":\"jzwxuqgovsxpwwz\",\"sourceAccount\":\"fmkk\",\"callRateLimit\":{\"count\":23.075073,\"renewalPeriod\":26.463287,\"rules\":[{},{},{}]}},\"skuName\":\"scgrllccna\",\"availableCapacity\":50.820564,\"availableFinetuneCapacity\":58.150864,\"scopeId\":\"zhpabac\",\"scopeType\":\"Global\"},\"id\":\"otgkwsxnsrqorcg\",\"name\":\"nmvceb\",\"type\":\"eetqujxcxxq\"},{\"location\":\"cqjkedwqu\",\"properties\":{\"model\":{\"publisher\":\"jmrvvxwjongz\",\"format\":\"hqqrsilcch\",\"name\":\"xxkan\",\"version\":\"vri\",\"source\":\"gv\",\"sourceAccount\":\"jrulfucte\",\"callRateLimit\":{\"count\":93.429054,\"renewalPeriod\":31.821877,\"rules\":[{},{}]}},\"skuName\":\"xlyubqjrostv\",\"availableCapacity\":64.73804,\"availableFinetuneCapacity\":39.392715,\"scopeId\":\"z\",\"scopeType\":\"Classic\"},\"id\":\"rztrxalxrdhabsr\",\"name\":\"rsnrhp\",\"type\":\"a\"}]}") + "{\"nextLink\":\"xtndopgjttbasua\",\"value\":[{\"location\":\"lndbeaqbkixv\",\"properties\":{\"model\":{\"publisher\":\"npbbfqv\",\"format\":\"jmspugzfeuzjlj\",\"name\":\"hfkyez\",\"version\":\"gj\",\"source\":\"icuydoccn\",\"sourceAccount\":\"hanzbuiad\",\"callRateLimit\":{\"count\":29.116756,\"renewalPeriod\":98.16142,\"rules\":[{},{},{},{}]}},\"skuName\":\"sdohz\",\"availableCapacity\":38.27954,\"availableFinetuneCapacity\":47.67353,\"scopeId\":\"aombwiinjdl\",\"scopeType\":\"Regional\"},\"id\":\"le\",\"name\":\"owavvqxuajgcqw\",\"type\":\"lynkgfcfdruw\"},{\"location\":\"kxx\",\"properties\":{\"model\":{\"publisher\":\"uulriqbyokvj\",\"format\":\"zsxebr\",\"name\":\"ttfyhcdjwsuoard\",\"version\":\"gttpufpbpgnrho\",\"source\":\"ujbfwxiplkys\",\"sourceAccount\":\"syjprxslwhdmcvh\",\"callRateLimit\":{\"count\":79.78195,\"renewalPeriod\":80.45885,\"rules\":[{}]}},\"skuName\":\"uwzb\",\"availableCapacity\":88.85879,\"availableFinetuneCapacity\":44.972122,\"scopeId\":\"ihotjecohmxv\",\"scopeType\":\"Classic\"},\"id\":\"skapbxwie\",\"name\":\"xuy\",\"type\":\"derltfokyksyim\"},{\"location\":\"cgrvkcxzznnuifer\",\"properties\":{\"model\":{\"publisher\":\"gprkjgu\",\"format\":\"jmwvvbtuqkxxi\",\"name\":\"gxql\",\"version\":\"k\",\"source\":\"jgxieqfkyfh\",\"sourceAccount\":\"vjaqu\",\"callRateLimit\":{\"count\":91.532326,\"renewalPeriod\":16.762383,\"rules\":[{},{},{}]}},\"skuName\":\"a\",\"availableCapacity\":20.578909,\"availableFinetuneCapacity\":60.977978,\"scopeId\":\"me\",\"scopeType\":\"Classic\"},\"id\":\"xcbccwkqmt\",\"name\":\"apeqiscrpil\",\"type\":\"ftr\"},{\"location\":\"ejdaahuqimld\",\"properties\":{\"model\":{\"publisher\":\"xlm\",\"format\":\"fmuad\",\"name\":\"fsn\",\"version\":\"kiioshj\",\"source\":\"zetybn\",\"sourceAccount\":\"ztlcgc\",\"callRateLimit\":{\"count\":21.128391,\"renewalPeriod\":3.5691857,\"rules\":[{}]}},\"skuName\":\"wjzebecuvlb\",\"availableCapacity\":40.972473,\"availableFinetuneCapacity\":48.056595,\"scopeId\":\"jkxpylrwoxzgwpsy\",\"scopeType\":\"Classic\"},\"id\":\"eypdvrbk\",\"name\":\"rdkdkgaw\",\"type\":\"wjxildfkcefeyg\"}]}") .toObject(ModelCapacityListResult.class); - Assertions.assertEquals("cvvy", model.nextLink()); + Assertions.assertEquals("xtndopgjttbasua", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java index bbf3406da064..70bbb7112e62 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java @@ -13,10 +13,11 @@ public final class ModelDeprecationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelDeprecationInfo model = BinaryData - .fromString("{\"fineTune\":\"ijhtxf\",\"inference\":\"xbf\",\"deprecationStatus\":\"Tentative\"}") + .fromString( + "{\"fineTune\":\"axibxujw\",\"inference\":\"qwalmuzyoxaepd\",\"deprecationStatus\":\"Planned\"}") .toObject(ModelDeprecationInfo.class); - Assertions.assertEquals("ijhtxf", model.fineTune()); - Assertions.assertEquals("xbf", model.inference()); - Assertions.assertEquals(DeprecationStatus.TENTATIVE, model.deprecationStatus()); + Assertions.assertEquals("axibxujw", model.fineTune()); + Assertions.assertEquals("qwalmuzyoxaepd", model.inference()); + Assertions.assertEquals(DeprecationStatus.PLANNED, model.deprecationStatus()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java index b51571895951..2e589016cd62 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java @@ -15,43 +15,43 @@ public final class ModelListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelListResult model = BinaryData.fromString( - "{\"nextLink\":\"tlzm\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"eolctaebf\",\"format\":\"rledjcu\",\"name\":\"bvt\",\"version\":\"gdxzvsgeafgfoseh\",\"source\":\"zsxezppkkwaae\",\"sourceAccount\":\"yfjlpzeqto\",\"callRateLimit\":{\"count\":77.14824,\"renewalPeriod\":19.145954,\"rules\":[{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"quevham\",\"usageName\":\"wg\",\"deprecationDate\":\"2021-07-11T10:22:11Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{}]},{\"name\":\"kzwaqxofq\",\"usageName\":\"chiqbplvfid\",\"deprecationDate\":\"2021-10-24T05:16:28Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{},{},{}]},{\"name\":\"jg\",\"usageName\":\"fepxyihpqadag\",\"deprecationDate\":\"2021-11-13T12:07:33Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{}]}],\"maxCapacity\":225508601,\"capabilities\":{\"ukdveksbuhoduc\":\"owxwyovcxjsgbip\",\"scrdp\":\"v\",\"yszekbhwlka\":\"bfdyjduss\",\"n\":\"ggkrehbf\"},\"finetuneCapabilities\":{\"jfiimreoa\":\"ff\",\"sqwudohzilfmnli\":\"sqtaadusrexxfa\",\"ypofqpmbhyqgs\":\"psimsf\",\"gerhsmvg\":\"rmmttjxop\"},\"deprecation\":{\"fineTune\":\"wzm\",\"inference\":\"lrixysfnimsq\",\"deprecationStatus\":\"Tentative\"},\"replacementConfig\":{\"targetModelName\":\"hkruwaedrympmlqo\",\"targetModelVersion\":\"hzdue\",\"autoUpgradeStartDate\":\"2021-06-30T16:50:48Z\",\"upgradeOnExpiryLeadTimeDays\":1427203676},\"modelCatalogAssetId\":\"jiiknjdiqfli\",\"lifecycleStatus\":\"Preview\",\"publisher\":\"lbiedfsbw\",\"format\":\"ivbvzi\",\"name\":\"wxgoooxzpra\",\"version\":\"s\",\"source\":\"knpdgzigjsu\",\"sourceAccount\":\"whgsaodkww\",\"callRateLimit\":{\"count\":18.985474,\"renewalPeriod\":96.31699,\"rules\":[{},{}]}},\"kind\":\"zhaquvwsxb\",\"skuName\":\"vkervqchoadhrsxq\",\"description\":\"vspabdsrgfajgl\"},{\"model\":{\"baseModel\":{\"publisher\":\"bklrxh\",\"format\":\"ltcetjdvqyd\",\"name\":\"q\",\"version\":\"wa\",\"source\":\"wdxvqzxoebwg\",\"sourceAccount\":\"bibanbau\",\"callRateLimit\":{\"count\":98.468925,\"renewalPeriod\":14.237684,\"rules\":[{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"bzrpejp\",\"usageName\":\"s\",\"deprecationDate\":\"2021-09-27T05:40:07Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{}]}],\"maxCapacity\":2089957309,\"capabilities\":{\"bhuhk\":\"nrswgkpjhboyik\",\"okhu\":\"lgw\",\"jy\":\"o\",\"zufgs\":\"cqypz\"},\"finetuneCapabilities\":{\"ncfgybmxsnxoc\":\"jyvdwtfxptpqayam\"},\"deprecation\":{\"fineTune\":\"l\",\"inference\":\"kpoy\",\"deprecationStatus\":\"Tentative\"},\"replacementConfig\":{\"targetModelName\":\"j\",\"targetModelVersion\":\"dbdljz\",\"autoUpgradeStartDate\":\"2021-03-08T07:19:07Z\",\"upgradeOnExpiryLeadTimeDays\":972242943},\"modelCatalogAssetId\":\"uqbsgzlrqhb\",\"lifecycleStatus\":\"Legacy\",\"publisher\":\"dxwbsfpyxxtj\",\"format\":\"lecomi\",\"name\":\"ojjlu\",\"version\":\"dhilzzdzz\",\"source\":\"mueza\",\"sourceAccount\":\"vribqlotokht\",\"callRateLimit\":{\"count\":16.625792,\"renewalPeriod\":86.84915,\"rules\":[{},{}]}},\"kind\":\"wwxwjyofgw\",\"skuName\":\"kbtlwljssm\",\"description\":\"sn\"},{\"model\":{\"baseModel\":{\"publisher\":\"wolgisubxbt\",\"format\":\"gfgf\",\"name\":\"jrykwlefksxqce\",\"version\":\"fpxgnmqvz\",\"source\":\"uyqqaiosssc\",\"sourceAccount\":\"aifppuacvfyeowp\",\"callRateLimit\":{\"count\":82.25534,\"renewalPeriod\":53.485535,\"rules\":[{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"v\",\"usageName\":\"qfttehdpboujs\",\"deprecationDate\":\"2021-02-14T12:32:42Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{}]},{\"name\":\"cde\",\"usageName\":\"uenygnxcg\",\"deprecationDate\":\"2021-10-28T22:53:53Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{}]},{\"name\":\"rf\",\"usageName\":\"lnlrxsmy\",\"deprecationDate\":\"2021-05-25T06:55:41Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{},{}]}],\"maxCapacity\":416369266,\"capabilities\":{\"zjwhsetwwjwz\":\"jdxwnazkurrdre\",\"qzzdcykeyste\":\"qseuzuukykcyqhy\"},\"finetuneCapabilities\":{\"wqcfutmdpvozg\":\"pazdazgbsqgp\",\"clctzey\":\"qjbknl\",\"covdwzqaux\":\"wmn\"},\"deprecation\":{\"fineTune\":\"hmkvfruwkudrb\",\"inference\":\"ftxudqy\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"naucmcirtnee\",\"targetModelVersion\":\"jauwcgxefnohaitr\",\"autoUpgradeStartDate\":\"2021-08-02T08:56:51Z\",\"upgradeOnExpiryLeadTimeDays\":1766855739},\"modelCatalogAssetId\":\"wgudasmxu\",\"lifecycleStatus\":\"Preview\",\"publisher\":\"gfcoc\",\"format\":\"hpriylfm\",\"name\":\"trauds\",\"version\":\"lcdculregpq\",\"source\":\"ojhvrz\",\"sourceAccount\":\"vgysh\",\"callRateLimit\":{\"count\":14.053291,\"renewalPeriod\":94.6599,\"rules\":[{},{},{}]}},\"kind\":\"wjzl\",\"skuName\":\"kcfazzw\",\"description\":\"ayerzrran\"}]}") + "{\"nextLink\":\"iiaocqib\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"ebiphryvcjwqwoq\",\"format\":\"atjhdhzybspijhf\",\"name\":\"gdkkagvwukh\",\"version\":\"s\",\"source\":\"orfmzhwilzz\",\"sourceAccount\":\"ijmri\",\"callRateLimit\":{\"count\":9.338742,\"renewalPeriod\":34.58658,\"rules\":[{},{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"xivcbkutpumlt\",\"usageName\":\"fluxynbpvz\",\"deprecationDate\":\"2021-11-06T22:59:04Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{},{},{}]},{\"name\":\"jckhmocgj\",\"usageName\":\"gouarhwvixqq\",\"deprecationDate\":\"2021-08-18T02:17:30Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{},{},{}]},{\"name\":\"rcl\",\"usageName\":\"tzqnrbctbhpjh\",\"deprecationDate\":\"2021-11-19T15:32:51Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{}]}],\"maxCapacity\":350896528,\"capabilities\":{\"qady\":\"n\",\"zfkiceevsaaxwsp\":\"zjahwriuomz\",\"gzzromv\":\"axikhfjqebglcxk\"},\"finetuneCapabilities\":{\"mesrfsvpi\":\"sem\",\"wxspvckojaz\":\"kzpatqtdi\",\"esubzpvpv\":\"bgspf\",\"j\":\"ylytcovqseusr\"},\"deprecation\":{\"fineTune\":\"zfxnxmlbmuos\",\"inference\":\"jmdihdcyyyzlw\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"nufzr\",\"targetModelVersion\":\"m\",\"autoUpgradeStartDate\":\"2021-11-26T02:57:42Z\",\"upgradeOnExpiryLeadTimeDays\":2081506259},\"modelCatalogAssetId\":\"zrtftedzuubjt\",\"lifecycleStatus\":\"Stable\",\"publisher\":\"mt\",\"format\":\"jvavdpwwo\",\"name\":\"d\",\"version\":\"titsf\",\"source\":\"fwanm\",\"sourceAccount\":\"scauwazcgwdfr\",\"callRateLimit\":{\"count\":56.09862,\"renewalPeriod\":49.748295,\"rules\":[{},{},{}]}},\"kind\":\"ok\",\"skuName\":\"vgllixdgby\",\"description\":\"wewqkj\"},{\"model\":{\"baseModel\":{\"publisher\":\"wpxsoo\",\"format\":\"txlcsk\",\"name\":\"e\",\"version\":\"ugggzlfbgrdcgu\",\"source\":\"rtmdylperpil\",\"sourceAccount\":\"jzgc\",\"callRateLimit\":{\"count\":7.448292,\"renewalPeriod\":17.87706,\"rules\":[{},{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"esrgvtshuvftwai\",\"usageName\":\"uqk\",\"deprecationDate\":\"2021-10-04T03:47:15Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{}]},{\"name\":\"hxmpdxxz\",\"usageName\":\"wwzjwotnxlkfhglh\",\"deprecationDate\":\"2021-09-22T13:44:39Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{},{}]}],\"maxCapacity\":290691191,\"capabilities\":{\"lqxov\":\"pcs\",\"rl\":\"pqibukklv\",\"vfqbqna\":\"mlccmetjscz\"},\"finetuneCapabilities\":{\"yvdgxlyzk\":\"yenzsieuscpl\"},\"deprecation\":{\"fineTune\":\"dshezs\",\"inference\":\"olrupjovm\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"ebrazwzlpzbtzuyk\",\"targetModelVersion\":\"ip\",\"autoUpgradeStartDate\":\"2021-10-02T12:24Z\",\"upgradeOnExpiryLeadTimeDays\":1563881536},\"modelCatalogAssetId\":\"fnocmbe\",\"lifecycleStatus\":\"GenerallyAvailable\",\"publisher\":\"ztgaz\",\"format\":\"qejg\",\"name\":\"okctgkppgkqzkc\",\"version\":\"mffngdyfcixr\",\"source\":\"cqvhoejgoiutgwrm\",\"sourceAccount\":\"hpqhazyntacihn\",\"callRateLimit\":{\"count\":18.39289,\"renewalPeriod\":32.78885,\"rules\":[{},{}]}},\"kind\":\"iqm\",\"skuName\":\"bhikeaqgr\",\"description\":\"pomxpu\"}]}") .toObject(ModelListResult.class); - Assertions.assertEquals("tlzm", model.nextLink()); - Assertions.assertEquals("lbiedfsbw", model.value().get(0).model().publisher()); - Assertions.assertEquals("ivbvzi", model.value().get(0).model().format()); - Assertions.assertEquals("wxgoooxzpra", model.value().get(0).model().name()); - Assertions.assertEquals("s", model.value().get(0).model().version()); - Assertions.assertEquals("knpdgzigjsu", model.value().get(0).model().source()); - Assertions.assertEquals("whgsaodkww", model.value().get(0).model().sourceAccount()); - Assertions.assertEquals("eolctaebf", model.value().get(0).model().baseModel().publisher()); - Assertions.assertEquals("rledjcu", model.value().get(0).model().baseModel().format()); - Assertions.assertEquals("bvt", model.value().get(0).model().baseModel().name()); - Assertions.assertEquals("gdxzvsgeafgfoseh", model.value().get(0).model().baseModel().version()); - Assertions.assertEquals("zsxezppkkwaae", model.value().get(0).model().baseModel().source()); - Assertions.assertEquals("yfjlpzeqto", model.value().get(0).model().baseModel().sourceAccount()); + Assertions.assertEquals("iiaocqib", model.nextLink()); + Assertions.assertEquals("mt", model.value().get(0).model().publisher()); + Assertions.assertEquals("jvavdpwwo", model.value().get(0).model().format()); + Assertions.assertEquals("d", model.value().get(0).model().name()); + Assertions.assertEquals("titsf", model.value().get(0).model().version()); + Assertions.assertEquals("fwanm", model.value().get(0).model().source()); + Assertions.assertEquals("scauwazcgwdfr", model.value().get(0).model().sourceAccount()); + Assertions.assertEquals("ebiphryvcjwqwoq", model.value().get(0).model().baseModel().publisher()); + Assertions.assertEquals("atjhdhzybspijhf", model.value().get(0).model().baseModel().format()); + Assertions.assertEquals("gdkkagvwukh", model.value().get(0).model().baseModel().name()); + Assertions.assertEquals("s", model.value().get(0).model().baseModel().version()); + Assertions.assertEquals("orfmzhwilzz", model.value().get(0).model().baseModel().source()); + Assertions.assertEquals("ijmri", model.value().get(0).model().baseModel().sourceAccount()); Assertions.assertTrue(model.value().get(0).model().isDefaultVersion()); - Assertions.assertEquals("quevham", model.value().get(0).model().skus().get(0).name()); - Assertions.assertEquals("wg", model.value().get(0).model().skus().get(0).usageName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-11T10:22:11Z"), + Assertions.assertEquals("xivcbkutpumlt", model.value().get(0).model().skus().get(0).name()); + Assertions.assertEquals("fluxynbpvz", model.value().get(0).model().skus().get(0).usageName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-06T22:59:04Z"), model.value().get(0).model().skus().get(0).deprecationDate()); - Assertions.assertEquals(225508601, model.value().get(0).model().maxCapacity()); - Assertions.assertEquals("owxwyovcxjsgbip", model.value().get(0).model().capabilities().get("ukdveksbuhoduc")); - Assertions.assertEquals("ff", model.value().get(0).model().finetuneCapabilities().get("jfiimreoa")); - Assertions.assertEquals("wzm", model.value().get(0).model().deprecation().fineTune()); - Assertions.assertEquals("lrixysfnimsq", model.value().get(0).model().deprecation().inference()); - Assertions.assertEquals(DeprecationStatus.TENTATIVE, + Assertions.assertEquals(350896528, model.value().get(0).model().maxCapacity()); + Assertions.assertEquals("n", model.value().get(0).model().capabilities().get("qady")); + Assertions.assertEquals("sem", model.value().get(0).model().finetuneCapabilities().get("mesrfsvpi")); + Assertions.assertEquals("zfxnxmlbmuos", model.value().get(0).model().deprecation().fineTune()); + Assertions.assertEquals("jmdihdcyyyzlw", model.value().get(0).model().deprecation().inference()); + Assertions.assertEquals(DeprecationStatus.PLANNED, model.value().get(0).model().deprecation().deprecationStatus()); - Assertions.assertEquals("hkruwaedrympmlqo", model.value().get(0).model().replacementConfig().targetModelName()); - Assertions.assertEquals("hzdue", model.value().get(0).model().replacementConfig().targetModelVersion()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T16:50:48Z"), + Assertions.assertEquals("nufzr", model.value().get(0).model().replacementConfig().targetModelName()); + Assertions.assertEquals("m", model.value().get(0).model().replacementConfig().targetModelVersion()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T02:57:42Z"), model.value().get(0).model().replacementConfig().autoUpgradeStartDate()); - Assertions.assertEquals(1427203676, + Assertions.assertEquals(2081506259, model.value().get(0).model().replacementConfig().upgradeOnExpiryLeadTimeDays()); - Assertions.assertEquals("jiiknjdiqfli", model.value().get(0).model().modelCatalogAssetId()); - Assertions.assertEquals(ModelLifecycleStatus.PREVIEW, model.value().get(0).model().lifecycleStatus()); - Assertions.assertEquals("zhaquvwsxb", model.value().get(0).kind()); - Assertions.assertEquals("vkervqchoadhrsxq", model.value().get(0).skuName()); - Assertions.assertEquals("vspabdsrgfajgl", model.value().get(0).description()); + Assertions.assertEquals("zrtftedzuubjt", model.value().get(0).model().modelCatalogAssetId()); + Assertions.assertEquals(ModelLifecycleStatus.STABLE, model.value().get(0).model().lifecycleStatus()); + Assertions.assertEquals("ok", model.value().get(0).kind()); + Assertions.assertEquals("vgllixdgby", model.value().get(0).skuName()); + Assertions.assertEquals("wewqkj", model.value().get(0).description()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java index 3a53a91e0eb5..7cbe15ea04e9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java @@ -12,8 +12,8 @@ public final class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem model - = BinaryData.fromString("{\"id\":\"tgzpnpb\"}") + = BinaryData.fromString("{\"id\":\"xjbaqehgpdohzjq\"}") .toObject(NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.class); - Assertions.assertEquals("tgzpnpb", model.id()); + Assertions.assertEquals("xjbaqehgpdohzjq", model.id()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java index 8fdcf346be8f..de7b6aa3e4d8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java @@ -13,14 +13,14 @@ public final class NetworkSecurityPerimeterAccessRulePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterAccessRuleProperties model = BinaryData.fromString( - "{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ebrqbsmswziqgfuh\"],\"subscriptions\":[{\"id\":\"uswhvhczznvfbycj\"},{\"id\":\"jww\"}],\"networkSecurityPerimeters\":[{\"id\":\"umwmxqhnd\",\"perimeterGuid\":\"oamld\",\"location\":\"haohdjhhflzokxc\"}],\"fullyQualifiedDomainNames\":[\"e\",\"nje\",\"agltsxoa\"]}") + "{\"direction\":\"Inbound\",\"addressPrefixes\":[\"cq\",\"jvidttge\",\"uslvyjtcvuwkasi\"],\"subscriptions\":[{\"id\":\"fuughtuqfec\"},{\"id\":\"ey\"}],\"networkSecurityPerimeters\":[{\"id\":\"xu\",\"perimeterGuid\":\"buew\",\"location\":\"s\"}],\"fullyQualifiedDomainNames\":[\"lx\",\"zrhwp\"]}") .toObject(NetworkSecurityPerimeterAccessRuleProperties.class); Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.direction()); - Assertions.assertEquals("ebrqbsmswziqgfuh", model.addressPrefixes().get(0)); - Assertions.assertEquals("uswhvhczznvfbycj", model.subscriptions().get(0).id()); - Assertions.assertEquals("umwmxqhnd", model.networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("oamld", model.networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("haohdjhhflzokxc", model.networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("e", model.fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("cq", model.addressPrefixes().get(0)); + Assertions.assertEquals("fuughtuqfec", model.subscriptions().get(0).id()); + Assertions.assertEquals("xu", model.networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("buew", model.networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("s", model.networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("lx", model.fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java index 773607ac6535..a4f6db5c27a4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java @@ -13,15 +13,15 @@ public final class NetworkSecurityPerimeterAccessRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterAccessRule model = BinaryData.fromString( - "{\"name\":\"qqwzt\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"hcxwaxfewzjk\",\"exfdeqvhpsylk\",\"shk\"],\"subscriptions\":[{\"id\":\"bmxzjrgywwpg\"}],\"networkSecurityPerimeters\":[{\"id\":\"ptfujgicgaaoept\",\"perimeterGuid\":\"qutdewemxs\",\"location\":\"ruunzzjgehkf\"},{\"id\":\"m\",\"perimeterGuid\":\"ixokffqyin\",\"location\":\"qepqwhixmon\"},{\"id\":\"shiy\",\"perimeterGuid\":\"velfcldu\",\"location\":\"birdsvuwcobiegs\"},{\"id\":\"ninwjizc\",\"perimeterGuid\":\"nghgshej\",\"location\":\"bxqmu\"}],\"fullyQualifiedDomainNames\":[\"lxqzvn\",\"rsbycucrwn\"]}}") + "{\"name\":\"erngbtcjuahokqto\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"fshfph\",\"pnulaiywzej\",\"whslwkoj\",\"llndnpd\"],\"subscriptions\":[{\"id\":\"afgfugsnn\"},{\"id\":\"yetefyp\"},{\"id\":\"octfjgtixrjvzuyt\"},{\"id\":\"mlmuowol\"}],\"networkSecurityPerimeters\":[{\"id\":\"ropions\",\"perimeterGuid\":\"nw\",\"location\":\"gajinnixjawrtmj\"}],\"fullyQualifiedDomainNames\":[\"yccxlzhcox\",\"vnekhenlusfnrdtj\"]}}") .toObject(NetworkSecurityPerimeterAccessRule.class); - Assertions.assertEquals("qqwzt", model.name()); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.properties().direction()); - Assertions.assertEquals("hcxwaxfewzjk", model.properties().addressPrefixes().get(0)); - Assertions.assertEquals("bmxzjrgywwpg", model.properties().subscriptions().get(0).id()); - Assertions.assertEquals("ptfujgicgaaoept", model.properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("qutdewemxs", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("ruunzzjgehkf", model.properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("lxqzvn", model.properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("erngbtcjuahokqto", model.name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().direction()); + Assertions.assertEquals("fshfph", model.properties().addressPrefixes().get(0)); + Assertions.assertEquals("afgfugsnn", model.properties().subscriptions().get(0).id()); + Assertions.assertEquals("ropions", model.properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("nw", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("gajinnixjawrtmj", model.properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("yccxlzhcox", model.properties().fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java index a9e7dfd9b4d6..fbf3d8ade8ff 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java @@ -12,9 +12,9 @@ public final class NetworkSecurityPerimeterConfigurationAssociationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationAssociationInfo model - = BinaryData.fromString("{\"name\":\"mpcycilrmcaykgg\",\"accessMode\":\"xu\"}") + = BinaryData.fromString("{\"name\":\"gtdysnaqu\",\"accessMode\":\"qbctqha\"}") .toObject(NetworkSecurityPerimeterConfigurationAssociationInfo.class); - Assertions.assertEquals("mpcycilrmcaykgg", model.name()); - Assertions.assertEquals("xu", model.accessMode()); + Assertions.assertEquals("gtdysnaqu", model.name()); + Assertions.assertEquals("qbctqha", model.accessMode()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java index 11ac4004dc06..0ee705ca7253 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java @@ -13,29 +13,30 @@ public final class NetworkSecurityPerimeterConfigurationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"cgq\",\"provisioningIssues\":[{\"name\":\"mjqfrddgamquhio\",\"properties\":{\"issueType\":\"ju\",\"severity\":\"fcdis\",\"description\":\"rnxzh\",\"suggestedResourceIds\":[\"xrxzbujrtr\",\"qvwre\",\"khgn\",\"nzonzl\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"yw\",\"properties\":{\"issueType\":\"jtszcof\",\"severity\":\"e\",\"description\":\"dhgbjkvre\",\"suggestedResourceIds\":[\"amurvzmlovuan\",\"shcxlpmjerbdk\",\"lvidizozs\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"xjmonf\",\"properties\":{\"issueType\":\"w\",\"severity\":\"ypuuwwltvuqjctze\",\"description\":\"eifzzhmk\",\"suggestedResourceIds\":[\"vflyhbxcu\",\"chxgs\",\"boldforobwj\",\"vizbfhfo\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"qpbtuodxes\",\"properties\":{\"issueType\":\"belawumuaslzkwr\",\"severity\":\"oycqucwy\",\"description\":\"hnomdrkywuh\",\"suggestedResourceIds\":[\"fuurutlwexx\",\"lalniex\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"gepqtybbwwpg\",\"perimeterGuid\":\"k\",\"location\":\"zyvli\"},\"resourceAssociation\":{\"name\":\"rkcxkj\",\"accessMode\":\"nxm\"},\"profile\":{\"name\":\"xs\",\"accessRulesVersion\":809642463120717362,\"accessRules\":[{\"name\":\"wijpsttexoqqpwc\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"runcuwmqspkcd\",\"zhlctddunqndyfpc\",\"rqbnjjrc\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"boxjumvq\",\"olihrra\",\"ouau\"]}}],\"diagnosticSettingsVersion\":4304077581666976714,\"enabledLogCategories\":[\"qxfuojrngif\"]}},\"id\":\"z\",\"name\":\"asccbiui\",\"type\":\"zdlyjdfqw\"}") + "{\"properties\":{\"provisioningState\":\"f\",\"provisioningIssues\":[{\"name\":\"cazuaw\",\"properties\":{\"issueType\":\"x\",\"severity\":\"amwabzxrvxcushsp\",\"description\":\"ivmxyasfl\",\"suggestedResourceIds\":[\"gzwywak\",\"ihknsmjbl\",\"ljhlnymzotq\",\"ryuzcbmqqv\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"fgtayxonsup\",\"properties\":{\"issueType\":\"lzqnhcvs\",\"severity\":\"tnzoibgsxgnxfy\",\"description\":\"nmpqoxwdofdb\",\"suggestedResourceIds\":[\"xeiiq\",\"imht\",\"wwinhehf\",\"pofvwb\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"mbnkb\",\"properties\":{\"issueType\":\"vxkdivqihebwtswb\",\"severity\":\"wfmdurage\",\"description\":\"zvcjfelisdjubggb\",\"suggestedResourceIds\":[\"kxkbsazgakgacyr\",\"m\",\"dmspof\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"rylniofrzg\",\"perimeterGuid\":\"jed\",\"location\":\"tkvnlvxbcuiiznkt\"},\"resourceAssociation\":{\"name\":\"nsnvpd\",\"accessMode\":\"mik\"},\"profile\":{\"name\":\"bzbkiw\",\"accessRulesVersion\":2906864622240498001,\"accessRules\":[{\"name\":\"hzfylsgcrpfbc\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"e\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"wl\",\"xjwet\",\"psihcla\"]}},{\"name\":\"va\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"qqwzt\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"cxwaxfewz\",\"kjexfdeqvhp\",\"ylkkshkbffmbm\"]}},{\"name\":\"jrgywwpgjxsn\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"icgaao\",\"pttaqutd\",\"wemxswvruunzz\",\"gehkfkimrtixokff\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"epqw\",\"ixmonstshiyxg\",\"elfclducc\"]}}],\"diagnosticSettingsVersion\":2866973722356621195,\"enabledLogCategories\":[\"uwc\",\"b\",\"egstmninwjizci\",\"nghgshej\"]}},\"id\":\"bxqmu\",\"name\":\"uxlxqzvners\",\"type\":\"ycucrwnamikzeb\"}") .toObject(NetworkSecurityPerimeterConfigurationInner.class); - Assertions.assertEquals("mjqfrddgamquhio", model.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("ju", model.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("fcdis", model.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("rnxzh", model.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("xrxzbujrtr", + Assertions.assertEquals("cazuaw", model.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("x", model.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("amwabzxrvxcushsp", + model.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("ivmxyasfl", model.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("gzwywak", model.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("gepqtybbwwpg", model.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("k", model.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("zyvli", model.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("rkcxkj", model.properties().resourceAssociation().name()); - Assertions.assertEquals("nxm", model.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("xs", model.properties().profile().name()); - Assertions.assertEquals(809642463120717362L, model.properties().profile().accessRulesVersion()); - Assertions.assertEquals("wijpsttexoqqpwc", model.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals("rylniofrzg", model.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("jed", model.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("tkvnlvxbcuiiznkt", model.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("nsnvpd", model.properties().resourceAssociation().name()); + Assertions.assertEquals("mik", model.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("bzbkiw", model.properties().profile().name()); + Assertions.assertEquals(2906864622240498001L, model.properties().profile().accessRulesVersion()); + Assertions.assertEquals("hzfylsgcrpfbc", model.properties().profile().accessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("runcuwmqspkcd", + Assertions.assertEquals("e", model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("boxjumvq", + Assertions.assertEquals("wl", model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(4304077581666976714L, model.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("qxfuojrngif", model.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals(2866973722356621195L, model.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("uwc", model.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java index e998e7aa80e2..7bdcbe563aaf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java @@ -12,20 +12,20 @@ public final class NetworkSecurityPerimeterConfigurationListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"fcttuxuuyilfl\",\"provisioningIssues\":[{\"name\":\"uvr\",\"properties\":{}},{\"name\":\"rnjhvsujztczytqj\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"uunfprnjletlxsm\",\"perimeterGuid\":\"ddoui\",\"location\":\"mowaziynknlqwzdv\"},\"resourceAssociation\":{\"name\":\"hxqszdtmaajquh\",\"accessMode\":\"ylr\"},\"profile\":{\"name\":\"ty\",\"accessRulesVersion\":1747598045330044731,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":3860826521780085029,\"enabledLogCategories\":[\"shck\"]}},\"id\":\"yjpmspbpssdfppyo\",\"name\":\"tieyujtvczkcny\",\"type\":\"rxmunjdxvgln\"},{\"properties\":{\"provisioningState\":\"lxpaglqivbgkcv\",\"provisioningIssues\":[{\"name\":\"vuqd\",\"properties\":{}},{\"name\":\"oniypfpubcpzgp\",\"properties\":{}},{\"name\":\"vhjknidi\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"xgpnr\",\"perimeterGuid\":\"ov\",\"location\":\"pikqmh\"},\"resourceAssociation\":{\"name\":\"wjrmzvuporqzd\",\"accessMode\":\"ydzvkf\"},\"profile\":{\"name\":\"nq\",\"accessRulesVersion\":8747604723179169845,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":6606674883220158301,\"enabledLogCategories\":[\"hl\"]}},\"id\":\"dhbemzqkzszu\",\"name\":\"iwtglxxhljfpg\",\"type\":\"icrmnzh\"},{\"properties\":{\"provisioningState\":\"qgjsxvpqcbfrmbod\",\"provisioningIssues\":[{\"name\":\"qgvriibakcla\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"nxo\",\"perimeterGuid\":\"xauzlwvsgmwohqfz\",\"location\":\"vux\"},\"resourceAssociation\":{\"name\":\"jsvthnwpzteko\",\"accessMode\":\"ribi\"},\"profile\":{\"name\":\"gplucfotangcfhny\",\"accessRulesVersion\":4628609097306866985,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":6502659943132256086,\"enabledLogCategories\":[\"mzqwmvtxnjmxmcu\",\"udtc\",\"clxyn\",\"dkvgfabuiyjibuzp\"]}},\"id\":\"ugneikn\",\"name\":\"gox\",\"type\":\"jiuqhibtozi\"},{\"properties\":{\"provisioningState\":\"jedmurrxxgewp\",\"provisioningIssues\":[{\"name\":\"ylkmqp\",\"properties\":{}},{\"name\":\"hlfbcgwgc\",\"properties\":{}},{\"name\":\"oebqinjipn\",\"properties\":{}},{\"name\":\"ujqlafcbahh\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"foiyjwpfilk\",\"perimeterGuid\":\"kholvd\",\"location\":\"viauogphua\"},\"resourceAssociation\":{\"name\":\"tiuky\",\"accessMode\":\"chnmna\"},\"profile\":{\"name\":\"xhk\",\"accessRulesVersion\":2040685344780205608,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":6875461100902154029,\"enabledLogCategories\":[\"xffi\",\"hx\"]}},\"id\":\"snewmozqvbub\",\"name\":\"ma\",\"type\":\"hsycxhxzgaz\"}],\"nextLink\":\"abo\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"u\",\"provisioningIssues\":[{\"name\":\"kccrrvwey\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"yukphaimmoiroq\",\"perimeterGuid\":\"shbraga\",\"location\":\"yrmfsvbpav\"},\"resourceAssociation\":{\"name\":\"fppdbwnu\",\"accessMode\":\"ahxku\"},\"profile\":{\"name\":\"jcaacfdmmcpugm\",\"accessRulesVersion\":2799453974287418624,\"accessRules\":[{},{},{},{}],\"diagnosticSettingsVersion\":5118985133701326059,\"enabledLogCategories\":[\"ehewhoqh\"]}},\"id\":\"bqnbl\",\"name\":\"xeaclgsc\",\"type\":\"orim\"}],\"nextLink\":\"srrm\"}") .toObject(NetworkSecurityPerimeterConfigurationList.class); - Assertions.assertEquals("uvr", model.value().get(0).properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("uunfprnjletlxsm", model.value().get(0).properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("ddoui", model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("mowaziynknlqwzdv", - model.value().get(0).properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("hxqszdtmaajquh", model.value().get(0).properties().resourceAssociation().name()); - Assertions.assertEquals("ylr", model.value().get(0).properties().resourceAssociation().accessMode()); - Assertions.assertEquals("ty", model.value().get(0).properties().profile().name()); - Assertions.assertEquals(1747598045330044731L, model.value().get(0).properties().profile().accessRulesVersion()); - Assertions.assertEquals(3860826521780085029L, + Assertions.assertEquals("kccrrvwey", model.value().get(0).properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("yukphaimmoiroq", model.value().get(0).properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("shbraga", + model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("yrmfsvbpav", model.value().get(0).properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("fppdbwnu", model.value().get(0).properties().resourceAssociation().name()); + Assertions.assertEquals("ahxku", model.value().get(0).properties().resourceAssociation().accessMode()); + Assertions.assertEquals("jcaacfdmmcpugm", model.value().get(0).properties().profile().name()); + Assertions.assertEquals(2799453974287418624L, model.value().get(0).properties().profile().accessRulesVersion()); + Assertions.assertEquals(5118985133701326059L, model.value().get(0).properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("shck", model.value().get(0).properties().profile().enabledLogCategories().get(0)); - Assertions.assertEquals("abo", model.nextLink()); + Assertions.assertEquals("ehewhoqh", model.value().get(0).properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("srrm", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java index 8e79bb159af8..77b398ccf889 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java @@ -13,30 +13,30 @@ public final class NetworkSecurityPerimeterConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationProperties model = BinaryData.fromString( - "{\"provisioningState\":\"yoqufdvruz\",\"provisioningIssues\":[{\"name\":\"j\",\"properties\":{\"issueType\":\"tfnmdx\",\"severity\":\"ngfdgugeyzihgrky\",\"description\":\"zabs\",\"suggestedResourceIds\":[\"pphoj\",\"evy\"],\"suggestedAccessRules\":[{\"name\":\"gzfc\",\"properties\":{}}]}},{\"name\":\"omfgbeglqgleohib\",\"properties\":{\"issueType\":\"luan\",\"severity\":\"rfxeeebtij\",\"description\":\"cvbmqzb\",\"suggestedResourceIds\":[\"lajrnwxacevehj\"],\"suggestedAccessRules\":[{\"name\":\"oafgaoql\",\"properties\":{}},{\"name\":\"eyl\",\"properties\":{}}]}},{\"name\":\"fgvxirpghriypoqe\",\"properties\":{\"issueType\":\"qhykprlpyzn\",\"severity\":\"iq\",\"description\":\"mexiitdfuxt\",\"suggestedResourceIds\":[\"iibmi\",\"bnn\",\"stgnl\",\"hnmgixhcm\"],\"suggestedAccessRules\":[{\"name\":\"foudor\",\"properties\":{}},{\"name\":\"yyprotwyp\",\"properties\":{}},{\"name\":\"mbxhugcmjkav\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"bmftpmdt\",\"perimeterGuid\":\"jltfvnzcyjtotpv\",\"location\":\"vpbdbzqgq\"},\"resourceAssociation\":{\"name\":\"edsvqwthmk\",\"accessMode\":\"bcysih\"},\"profile\":{\"name\":\"cw\",\"accessRulesVersion\":8114283161752734168,\"accessRules\":[{\"name\":\"mcdzsufcohdxbz\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"pcvhdbevwqqxeys\",\"onqzinkfkbgbzbow\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"mygvkzqkj\",\"eokbze\"]}},{\"name\":\"zrxcczurt\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"bkwvzg\",\"zvd\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"mqpnoda\",\"opqhewjptmc\",\"sbostzel\",\"dlat\"]}}],\"diagnosticSettingsVersion\":5153748849567907028,\"enabledLogCategories\":[\"iojlvfhrb\",\"pn\"]}}") + "{\"provisioningState\":\"bsmswziqgf\",\"provisioningIssues\":[{\"name\":\"zruswh\",\"properties\":{\"issueType\":\"zznvfbyc\",\"severity\":\"xjww\",\"description\":\"z\",\"suggestedResourceIds\":[\"wmxqhndvnoamlds\",\"haohdjhhflzokxc\",\"xpelnjetagltsx\",\"atftgzpnpbsw\"],\"suggestedAccessRules\":[{\"name\":\"occsr\",\"properties\":{}},{\"name\":\"ihmipgawtxxpk\",\"properties\":{}},{\"name\":\"xcjxgrytfmpcy\",\"properties\":{}}]}},{\"name\":\"rmcaykgg\",\"properties\":{\"issueType\":\"uztrksxwpndfcpf\",\"severity\":\"nthjtwkjaosrxuzv\",\"description\":\"mktcqiosmgbza\",\"suggestedResourceIds\":[\"qdlyrtl\",\"laprlt\",\"katbhjm\",\"nnbsoqeqa\"],\"suggestedAccessRules\":[{\"name\":\"lagun\",\"properties\":{}},{\"name\":\"febwlnbmhyreeudz\",\"properties\":{}},{\"name\":\"bpdqmjxlyy\",\"properties\":{}},{\"name\":\"gouwtlmj\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"j\",\"perimeterGuid\":\"obaxkjeytu\",\"location\":\"bfjkw\"},\"resourceAssociation\":{\"name\":\"nkqbhsyrq\",\"accessMode\":\"jqhden\"},\"profile\":{\"name\":\"l\",\"accessRulesVersion\":9137448360522101229,\"accessRules\":[{\"name\":\"fmjnnawtqa\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"p\",\"gqoweyirdhlisn\",\"wfl\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"uwnpqxpxiwfcng\",\"saasiixtmkzj\",\"kv\"]}},{\"name\":\"rhgfgrwsdpgrat\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"byvi\",\"tctbrxkjzwrgxffm\",\"hkwfbkgozxwop\",\"bydpizqaclnapxb\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"knfsmfcttuxuuyil\"]}}],\"diagnosticSettingsVersion\":8008907163889108924,\"enabledLogCategories\":[\"uvr\",\"hmrnjhvsuj\"]}}") .toObject(NetworkSecurityPerimeterConfigurationProperties.class); - Assertions.assertEquals("j", model.provisioningIssues().get(0).name()); - Assertions.assertEquals("tfnmdx", model.provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("ngfdgugeyzihgrky", model.provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("zabs", model.provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("pphoj", model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("gzfc", + Assertions.assertEquals("zruswh", model.provisioningIssues().get(0).name()); + Assertions.assertEquals("zznvfbyc", model.provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("xjww", model.provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("z", model.provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("wmxqhndvnoamlds", + model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("occsr", model.provisioningIssues().get(0).properties().suggestedAccessRules().get(0).name()); - Assertions.assertEquals("bmftpmdt", model.networkSecurityPerimeter().id()); - Assertions.assertEquals("jltfvnzcyjtotpv", model.networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("vpbdbzqgq", model.networkSecurityPerimeter().location()); - Assertions.assertEquals("edsvqwthmk", model.resourceAssociation().name()); - Assertions.assertEquals("bcysih", model.resourceAssociation().accessMode()); - Assertions.assertEquals("cw", model.profile().name()); - Assertions.assertEquals(8114283161752734168L, model.profile().accessRulesVersion()); - Assertions.assertEquals("mcdzsufcohdxbz", model.profile().accessRules().get(0).name()); + Assertions.assertEquals("j", model.networkSecurityPerimeter().id()); + Assertions.assertEquals("obaxkjeytu", model.networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("bfjkw", model.networkSecurityPerimeter().location()); + Assertions.assertEquals("nkqbhsyrq", model.resourceAssociation().name()); + Assertions.assertEquals("jqhden", model.resourceAssociation().accessMode()); + Assertions.assertEquals("l", model.profile().name()); + Assertions.assertEquals(9137448360522101229L, model.profile().accessRulesVersion()); + Assertions.assertEquals("fmjnnawtqa", model.profile().accessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("pcvhdbevwqqxeys", - model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("mygvkzqkj", + Assertions.assertEquals("p", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("uwnpqxpxiwfcng", model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(5153748849567907028L, model.profile().diagnosticSettingsVersion()); - Assertions.assertEquals("iojlvfhrb", model.profile().enabledLogCategories().get(0)); + Assertions.assertEquals(8008907163889108924L, model.profile().diagnosticSettingsVersion()); + Assertions.assertEquals("uvr", model.profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java index a46482ec42df..0625e0503d12 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class NetworkSecurityPerimeterConfigurationsGetWithResponseMockTest @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"uxyprhfcaeooifqd\",\"provisioningIssues\":[{\"name\":\"lobha\",\"properties\":{\"issueType\":\"omfecorkfro\",\"severity\":\"bmx\",\"description\":\"j\",\"suggestedResourceIds\":[\"zbjesylslur\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"g\",\"properties\":{\"issueType\":\"hgdzuqscagqyvou\",\"severity\":\"sytqz\",\"description\":\"lhmgwfniv\",\"suggestedResourceIds\":[\"fduiolhgyqvpb\",\"j\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"ucfzluczdquu\",\"properties\":{\"issueType\":\"rmvhvzi\",\"severity\":\"bprnqujywzcqygg\",\"description\":\"wsvh\",\"suggestedResourceIds\":[\"qiwy\",\"jtobdrrp\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"kunsbfjhhlwtpkv\",\"properties\":{\"issueType\":\"attb\",\"severity\":\"gtzqn\",\"description\":\"s\",\"suggestedResourceIds\":[\"wuvcys\",\"eufjxflpditfno\",\"p\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"vrhprrvbwonleqf\",\"perimeterGuid\":\"tlrvbstphu\",\"location\":\"uninttlnrjdszd\"},\"resourceAssociation\":{\"name\":\"iciqppo\",\"accessMode\":\"gpnewuhwfwjnox\"},\"profile\":{\"name\":\"tfnressfepgck\",\"accessRulesVersion\":5308381892824669614,\"accessRules\":[{\"name\":\"nvbt\",\"properties\":{}},{\"name\":\"fmjymjnh\",\"properties\":{}},{\"name\":\"qllbsupubdxc\",\"properties\":{}}],\"diagnosticSettingsVersion\":8080866869280859087,\"enabledLogCategories\":[\"cu\"]}},\"id\":\"bosjjfd\",\"name\":\"zhrjqfyaytvsly\",\"type\":\"kcgn\"}"; + = "{\"properties\":{\"provisioningState\":\"nlzuvigvlghf\",\"provisioningIssues\":[{\"name\":\"kpjtcqraqpoj\",\"properties\":{\"issueType\":\"cmximcwq\",\"severity\":\"nqjgsatkyv\",\"description\":\"bgngcrusxhirc\",\"suggestedResourceIds\":[\"vsvkkjbjolpyo\",\"lkvuznadvh\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"igowxxbhtpsyioqe\",\"perimeterGuid\":\"w\",\"location\":\"szzgyk\"},\"resourceAssociation\":{\"name\":\"awanvmwdvgjq\",\"accessMode\":\"bkompnbnfgyweoj\"},\"profile\":{\"name\":\"gcmahi\",\"accessRulesVersion\":6933152071516059418,\"accessRules\":[{\"name\":\"ch\",\"properties\":{}}],\"diagnosticSettingsVersion\":8990184772651358168,\"enabledLogCategories\":[\"shfyf\",\"t\"]}},\"id\":\"j\",\"name\":\"pzwhjunfdgbggc\",\"type\":\"x\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,25 +31,26 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() - .getWithResponse("pf", "xef", "ulbl", com.azure.core.util.Context.NONE) + .getWithResponse("ecwzvcmbpwdluda", "prldidwm", "ffbvtzldzchub", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lobha", response.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("omfecorkfro", - response.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("bmx", response.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("j", response.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("zbjesylslur", + Assertions.assertEquals("kpjtcqraqpoj", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("cmximcwq", response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("nqjgsatkyv", + response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("bgngcrusxhirc", + response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("vsvkkjbjolpyo", response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("vrhprrvbwonleqf", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("tlrvbstphu", response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("uninttlnrjdszd", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("iciqppo", response.properties().resourceAssociation().name()); - Assertions.assertEquals("gpnewuhwfwjnox", response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("tfnressfepgck", response.properties().profile().name()); - Assertions.assertEquals(5308381892824669614L, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("nvbt", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(8080866869280859087L, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("cu", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("igowxxbhtpsyioqe", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("w", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("szzgyk", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("awanvmwdvgjq", response.properties().resourceAssociation().name()); + Assertions.assertEquals("bkompnbnfgyweoj", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("gcmahi", response.properties().profile().name()); + Assertions.assertEquals(6933152071516059418L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("ch", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(8990184772651358168L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("shfyf", response.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java index 9f4005aa3b31..6ac38c47d74f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java @@ -22,7 +22,7 @@ public final class NetworkSecurityPerimeterConfigurationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"efzq\",\"provisioningIssues\":[{\"name\":\"w\",\"properties\":{\"issueType\":\"cytesmf\",\"severity\":\"r\",\"description\":\"odqhuauzmzivrt\",\"suggestedResourceIds\":[\"hhezvhjudxdy\",\"rudmahswtvdkx\",\"qssgfenffdx\",\"vwfqjch\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"j\",\"perimeterGuid\":\"xndmuvar\",\"location\":\"mzjotprrmuh\"},\"resourceAssociation\":{\"name\":\"tuzlxiw\",\"accessMode\":\"pgarpfctw\"},\"profile\":{\"name\":\"czd\",\"accessRulesVersion\":6547807221049913945,\"accessRules\":[{\"name\":\"sipiysnjqyowa\",\"properties\":{}}],\"diagnosticSettingsVersion\":7847864421913402234,\"enabledLogCategories\":[\"a\"]}},\"id\":\"ndtsewkaupw\",\"name\":\"lzyckremgjlm\",\"type\":\"vdorsirx\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"ngkqlgxzduvxd\",\"provisioningIssues\":[{\"name\":\"atmdmn\",\"properties\":{\"issueType\":\"nxoirxy\",\"severity\":\"miploisj\",\"description\":\"so\",\"suggestedResourceIds\":[\"ntwgkvyo\",\"psapzu\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"ytbdjzgh\",\"properties\":{\"issueType\":\"kgfmxpqkjnpyr\",\"severity\":\"ntotcxmmqm\",\"description\":\"jkyjrexw\",\"suggestedResourceIds\":[\"bexfted\",\"ubheeggzgrnqtl\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"umrtgjqg\",\"properties\":{\"issueType\":\"ntns\",\"severity\":\"z\",\"description\":\"mkanbc\",\"suggestedResourceIds\":[\"ofmex\",\"te\",\"as\",\"manydscdkxwdpw\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"ahntofelfhpfixos\",\"perimeterGuid\":\"z\",\"location\":\"iv\"},\"resourceAssociation\":{\"name\":\"ybsrwzzmrgtxdh\",\"accessMode\":\"ppinmgikesmkwt\"},\"profile\":{\"name\":\"ragj\",\"accessRulesVersion\":7238716764212333897,\"accessRules\":[{\"name\":\"bkdbtq\",\"properties\":{}},{\"name\":\"mniiqyholh\",\"properties\":{}},{\"name\":\"kb\",\"properties\":{}},{\"name\":\"cnqwlctmw\",\"properties\":{}}],\"diagnosticSettingsVersion\":4501742542532679866,\"enabledLogCategories\":[\"qgvxrktjcjigcw\",\"sp\",\"nbqx\"]}},\"id\":\"evchefp\",\"name\":\"eedyybruholaem\",\"type\":\"cgimmrim\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.networkSecurityPerimeterConfigurations() - .list("uarlcjiwgsxfaioc", "dgujjgnfgrzxbarc", com.azure.core.util.Context.NONE); + .list("hblivwehsudym", "mbhdo", com.azure.core.util.Context.NONE); - Assertions.assertEquals("w", response.iterator().next().properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("cytesmf", + Assertions.assertEquals("atmdmn", response.iterator().next().properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("nxoirxy", response.iterator().next().properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("r", + Assertions.assertEquals("miploisj", response.iterator().next().properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("odqhuauzmzivrt", + Assertions.assertEquals("so", response.iterator().next().properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("hhezvhjudxdy", + Assertions.assertEquals("ntwgkvyo", response.iterator() .next() .properties() @@ -50,21 +50,22 @@ public void testList() throws Exception { .properties() .suggestedResourceIds() .get(0)); - Assertions.assertEquals("j", response.iterator().next().properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("xndmuvar", + Assertions.assertEquals("ahntofelfhpfixos", + response.iterator().next().properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("z", response.iterator().next().properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("mzjotprrmuh", - response.iterator().next().properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("tuzlxiw", response.iterator().next().properties().resourceAssociation().name()); - Assertions.assertEquals("pgarpfctw", + Assertions.assertEquals("iv", response.iterator().next().properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("ybsrwzzmrgtxdh", response.iterator().next().properties().resourceAssociation().name()); + Assertions.assertEquals("ppinmgikesmkwt", response.iterator().next().properties().resourceAssociation().accessMode()); - Assertions.assertEquals("czd", response.iterator().next().properties().profile().name()); - Assertions.assertEquals(6547807221049913945L, + Assertions.assertEquals("ragj", response.iterator().next().properties().profile().name()); + Assertions.assertEquals(7238716764212333897L, response.iterator().next().properties().profile().accessRulesVersion()); - Assertions.assertEquals("sipiysnjqyowa", + Assertions.assertEquals("bkdbtq", response.iterator().next().properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(7847864421913402234L, + Assertions.assertEquals(4501742542532679866L, response.iterator().next().properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("a", response.iterator().next().properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("qgvxrktjcjigcw", + response.iterator().next().properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java index 5d8923a79052..7ab894bab037 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java @@ -21,7 +21,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileMockTests { @Test public void testReconcile() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"r\",\"properties\":{\"issueType\":\"pimtc\",\"severity\":\"fx\",\"description\":\"ytzfsl\",\"suggestedResourceIds\":[\"hqikmgobliq\",\"mcdiiisk\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"xu\",\"perimeterGuid\":\"xvtrkfk\",\"location\":\"njqnnpjwkosny\"},\"resourceAssociation\":{\"name\":\"fou\",\"accessMode\":\"cxgdqmr\"},\"profile\":{\"name\":\"zkwopswnyinxu\",\"accessRulesVersion\":3756760622368919566,\"accessRules\":[{\"name\":\"j\",\"properties\":{}},{\"name\":\"fqployuek\",\"properties\":{}},{\"name\":\"vuftrsvjmnsvu\",\"properties\":{}},{\"name\":\"ktvole\",\"properties\":{}}],\"diagnosticSettingsVersion\":4702024380959961372,\"enabledLogCategories\":[\"kdb\",\"otfbjampqoclann\"]}},\"id\":\"ynlsuqbwzstrk\",\"name\":\"gvp\",\"type\":\"trgjjkt\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"wfczglkvbg\",\"properties\":{\"issueType\":\"svbw\",\"severity\":\"tygnbknh\",\"description\":\"clxaxw\",\"suggestedResourceIds\":[\"asp\",\"dzkucszghdoaqip\",\"nxclfrsbzrnmuv\",\"vp\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"tb\",\"perimeterGuid\":\"ekjcnginxdvma\",\"location\":\"qxfvgyx\"},\"resourceAssociation\":{\"name\":\"ynofxlttxoq\",\"accessMode\":\"dnzujsj\"},\"profile\":{\"name\":\"rpskcjhmmo\",\"accessRulesVersion\":1008488468196047858,\"accessRules\":[{\"name\":\"tkykpaxnlsfgnys\",\"properties\":{}},{\"name\":\"cptbzetxygxxicee\",\"properties\":{}},{\"name\":\"wyuveoxmp\",\"properties\":{}},{\"name\":\"ahdr\",\"properties\":{}}],\"diagnosticSettingsVersion\":7911690425491207252,\"enabledLogCategories\":[\"xbiv\"]}},\"id\":\"gxmbrygmwibiosiq\",\"name\":\"ykqfdqwdrtx\",\"type\":\"fdaglmrcokzzert\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,23 +31,23 @@ public void testReconcile() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() - .reconcile("hyrkqakofajfr", "prfvmkinwteyrqsh", "xbcejop", com.azure.core.util.Context.NONE); + .reconcile("absqqlon", "z", "ow", com.azure.core.util.Context.NONE); - Assertions.assertEquals("r", response.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("pimtc", response.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("fx", response.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("ytzfsl", response.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("hqikmgobliq", + Assertions.assertEquals("wfczglkvbg", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("svbw", response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("tygnbknh", response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("clxaxw", response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("asp", response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("xu", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("xvtrkfk", response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("njqnnpjwkosny", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("fou", response.properties().resourceAssociation().name()); - Assertions.assertEquals("cxgdqmr", response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("zkwopswnyinxu", response.properties().profile().name()); - Assertions.assertEquals(3756760622368919566L, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("j", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(4702024380959961372L, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("kdb", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("tb", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("ekjcnginxdvma", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("qxfvgyx", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("ynofxlttxoq", response.properties().resourceAssociation().name()); + Assertions.assertEquals("dnzujsj", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("rpskcjhmmo", response.properties().profile().name()); + Assertions.assertEquals(1008488468196047858L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("tkykpaxnlsfgnys", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(7911690425491207252L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("xbiv", response.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java index f5dfc7ea7f67..a824614f81bb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java @@ -13,22 +13,22 @@ public final class NetworkSecurityPerimeterProfileInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterProfileInfo model = BinaryData.fromString( - "{\"name\":\"rksxwpndfc\",\"accessRulesVersion\":9146943824799685515,\"accessRules\":[{\"name\":\"jtwkjaos\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"amktcqiosmgbzah\",\"xqdlyrtltlapr\"],\"subscriptions\":[{\"id\":\"atbhjmznn\"},{\"id\":\"oqeq\"}],\"networkSecurityPerimeters\":[{\"id\":\"vlagun\",\"perimeterGuid\":\"gfebwlnb\",\"location\":\"yreeudz\"},{\"id\":\"vbpdqmjxlyyzglgo\",\"perimeterGuid\":\"tlmj\",\"location\":\"uojqt\"},{\"id\":\"axkjeytunlbfjk\",\"perimeterGuid\":\"u\",\"location\":\"kqbh\"}],\"fullyQualifiedDomainNames\":[\"qunjqh\",\"enx\"]}},{\"name\":\"l\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ifmjnn\",\"wtqabpxuckp\"],\"subscriptions\":[{\"id\":\"wey\"},{\"id\":\"dhlisngwflqqmpi\"},{\"id\":\"uwnpqxpxiwfcng\"}],\"networkSecurityPerimeters\":[{\"id\":\"sii\",\"perimeterGuid\":\"mkzjvkviir\",\"location\":\"fgrwsdpgratzvz\"}],\"fullyQualifiedDomainNames\":[\"byvi\",\"tctbrxkjzwrgxffm\",\"hkwfbkgozxwop\",\"bydpizqaclnapxb\"]}}],\"diagnosticSettingsVersion\":2165188191312659996,\"enabledLogCategories\":[\"j\"]}") + "{\"name\":\"jrwdkqz\",\"accessRulesVersion\":1926968686358266429,\"accessRules\":[{\"name\":\"iunjxdf\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"cegyamlbnseqacj\",\"vpilg\",\"ooqjagmditgueio\"],\"subscriptions\":[{\"id\":\"sahrtdtpdel\"},{\"id\":\"cslmotoebnfxo\"},{\"id\":\"cjkgdirazftxej\"}],\"networkSecurityPerimeters\":[{\"id\":\"dujtmvcope\",\"perimeterGuid\":\"m\",\"location\":\"rbuhhlky\"},{\"id\":\"tqsrogtuwkff\",\"perimeterGuid\":\"ktsysidfvclglxn\",\"location\":\"ijtk\"},{\"id\":\"sqo\",\"perimeterGuid\":\"fikayiansharujtj\",\"location\":\"xfz\"},{\"id\":\"qttv\",\"perimeterGuid\":\"pqhjpenuygbqeqq\",\"location\":\"ewvnqvcdlgu\"}],\"fullyQualifiedDomainNames\":[\"mfdjwn\",\"axpunjqikczvv\",\"tacgxmfc\"]}},{\"name\":\"er\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"xhlw\",\"tsjgqrsx\"],\"subscriptions\":[{\"id\":\"uuybnchrsz\"},{\"id\":\"oyuelyetn\"},{\"id\":\"bf\"}],\"networkSecurityPerimeters\":[{\"id\":\"agfl\",\"perimeterGuid\":\"gm\",\"location\":\"wahzjmucftbyr\"},{\"id\":\"rohkpigqfusu\",\"perimeterGuid\":\"zmkw\",\"location\":\"snoxaxmqeqa\"}],\"fullyQualifiedDomainNames\":[\"jnhgwydyyn\",\"svkhgbv\",\"ta\",\"arfdlpukhpyrnei\"]}},{\"name\":\"cpeogkhnmgbrou\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"hpfpazjzoywjxhp\"],\"subscriptions\":[{\"id\":\"ntacn\"},{\"id\":\"w\"},{\"id\":\"htuevrhrljy\"}],\"networkSecurityPerimeters\":[{\"id\":\"xh\",\"perimeterGuid\":\"duugwbsre\",\"location\":\"fqkfuarenl\"},{\"id\":\"htkln\",\"perimeterGuid\":\"afvvk\",\"location\":\"edev\"},{\"id\":\"oslc\",\"perimeterGuid\":\"y\",\"location\":\"kkhminqcymczngn\"},{\"id\":\"xxewu\",\"perimeterGuid\":\"nvudbchaqdtvqecr\",\"location\":\"tmxxdtddmflhuy\"}],\"fullyQualifiedDomainNames\":[\"vtzn\"]}},{\"name\":\"xbannovvoxc\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"nwvroevytlyokrr\",\"o\",\"uxvnsasbcrymodi\",\"rxklobdxnazpmk\"],\"subscriptions\":[{\"id\":\"evfxzopjhbzxlioh\"}],\"networkSecurityPerimeters\":[{\"id\":\"tfgxqbawpcb\",\"perimeterGuid\":\"zqcyknap\",\"location\":\"fyuicdh\"}],\"fullyQualifiedDomainNames\":[\"ybww\"]}}],\"diagnosticSettingsVersion\":517845365470569087,\"enabledLogCategories\":[\"idmhmwf\"]}") .toObject(NetworkSecurityPerimeterProfileInfo.class); - Assertions.assertEquals("rksxwpndfc", model.name()); - Assertions.assertEquals(9146943824799685515L, model.accessRulesVersion()); - Assertions.assertEquals("jtwkjaos", model.accessRules().get(0).name()); + Assertions.assertEquals("jrwdkqz", model.name()); + Assertions.assertEquals(1926968686358266429L, model.accessRulesVersion()); + Assertions.assertEquals("iunjxdf", model.accessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.accessRules().get(0).properties().direction()); - Assertions.assertEquals("amktcqiosmgbzah", model.accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("atbhjmznn", model.accessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("vlagun", + Assertions.assertEquals("cegyamlbnseqacj", model.accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("sahrtdtpdel", model.accessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("dujtmvcope", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("gfebwlnb", + Assertions.assertEquals("m", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("yreeudz", + Assertions.assertEquals("rbuhhlky", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("qunjqh", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(2165188191312659996L, model.diagnosticSettingsVersion()); - Assertions.assertEquals("j", model.enabledLogCategories().get(0)); + Assertions.assertEquals("mfdjwn", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(517845365470569087L, model.diagnosticSettingsVersion()); + Assertions.assertEquals("idmhmwf", model.enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java index e4ab6b697856..6f60b6d5306f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java @@ -11,11 +11,11 @@ public final class NetworkSecurityPerimeterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NetworkSecurityPerimeter model = BinaryData - .fromString("{\"id\":\"vefloccsrmozihmi\",\"perimeterGuid\":\"awtxxpk\",\"location\":\"cxcjxgry\"}") - .toObject(NetworkSecurityPerimeter.class); - Assertions.assertEquals("vefloccsrmozihmi", model.id()); - Assertions.assertEquals("awtxxpk", model.perimeterGuid()); - Assertions.assertEquals("cxcjxgry", model.location()); + NetworkSecurityPerimeter model + = BinaryData.fromString("{\"id\":\"ucoig\",\"perimeterGuid\":\"xncnwfe\",\"location\":\"nwgfmxjgcgbjbgd\"}") + .toObject(NetworkSecurityPerimeter.class); + Assertions.assertEquals("ucoig", model.id()); + Assertions.assertEquals("xncnwfe", model.perimeterGuid()); + Assertions.assertEquals("nwgfmxjgcgbjbgd", model.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java index 42712fa95fd5..90f319b102d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java @@ -19,43 +19,43 @@ public final class NoneAuthTypeConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NoneAuthTypeConnectionProperties model = BinaryData.fromString( - "{\"authType\":\"None\",\"category\":\"RemoteA2A\",\"createdByWorkspaceArmId\":\"ulbmoichdlp\",\"error\":\"pubntnbatz\",\"expiryTime\":\"2021-05-08T04:44:08Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"attcju\":\"el\",\"ggcvk\":\"plrvkmjcwmjvlg\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"bjpsfxsfuztlvtm\"],\"target\":\"gbwidqlvh\",\"useWorkspaceManagedIdentity\":true}") + "{\"authType\":\"None\",\"category\":\"AzureOpenAI\",\"createdByWorkspaceArmId\":\"igeleohd\",\"error\":\"qvwzkjopwbeonrl\",\"expiryTime\":\"2021-11-02T12:37:58Z\",\"group\":\"File\",\"isSharedToAll\":false,\"metadata\":{\"seqchkrt\":\"eakxcptsoqfyi\",\"uem\":\"zrazisgyk\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"hmnr\"],\"target\":\"bsojk\",\"useWorkspaceManagedIdentity\":true}") .toObject(NoneAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, model.category()); - Assertions.assertEquals("pubntnbatz", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-08T04:44:08Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.AZURE_OPEN_AI, model.category()); + Assertions.assertEquals("qvwzkjopwbeonrl", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T12:37:58Z"), model.expiryTime()); Assertions.assertFalse(model.isSharedToAll()); - Assertions.assertEquals("el", model.metadata().get("attcju")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("bjpsfxsfuztlvtm", model.sharedUserList().get(0)); - Assertions.assertEquals("gbwidqlvh", model.target()); + Assertions.assertEquals("eakxcptsoqfyi", model.metadata().get("seqchkrt")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("hmnr", model.sharedUserList().get(0)); + Assertions.assertEquals("bsojk", model.target()); Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { NoneAuthTypeConnectionProperties model - = new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.REMOTE_A2A) - .withError("pubntnbatz") - .withExpiryTime(OffsetDateTime.parse("2021-05-08T04:44:08Z")) + = new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.AZURE_OPEN_AI) + .withError("qvwzkjopwbeonrl") + .withExpiryTime(OffsetDateTime.parse("2021-11-02T12:37:58Z")) .withIsSharedToAll(false) - .withMetadata(mapOf("attcju", "el", "ggcvk", "plrvkmjcwmjvlg")) - .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("bjpsfxsfuztlvtm")) - .withTarget("gbwidqlvh") + .withMetadata(mapOf("seqchkrt", "eakxcptsoqfyi", "uem", "zrazisgyk")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("hmnr")) + .withTarget("bsojk") .withUseWorkspaceManagedIdentity(true); model = BinaryData.fromObject(model).toObject(NoneAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, model.category()); - Assertions.assertEquals("pubntnbatz", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-08T04:44:08Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.AZURE_OPEN_AI, model.category()); + Assertions.assertEquals("qvwzkjopwbeonrl", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T12:37:58Z"), model.expiryTime()); Assertions.assertFalse(model.isSharedToAll()); - Assertions.assertEquals("el", model.metadata().get("attcju")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("bjpsfxsfuztlvtm", model.sharedUserList().get(0)); - Assertions.assertEquals("gbwidqlvh", model.target()); + Assertions.assertEquals("eakxcptsoqfyi", model.metadata().get("seqchkrt")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("hmnr", model.sharedUserList().get(0)); + Assertions.assertEquals("bsojk", model.target()); Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java index 19dd6da0e211..3c1bc6f7a6cc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"woqartwy\",\"isDataAction\":false,\"display\":{\"provider\":\"advatdavuqmcb\",\"resource\":\"sfobjl\",\"operation\":\"vjezcjumvpsim\",\"description\":\"yoi\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"hmwdmdlgyqixokw\",\"isDataAction\":false,\"display\":{\"provider\":\"vagnqfqqdlcvmyo\",\"resource\":\"aymjchtvsnvlaq\",\"operation\":\"z\",\"description\":\"awatuwqkokbczo\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleBasicResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleBasicResourceInnerTests.java index 394ac07b39f9..4b08d1059d5c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleBasicResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleBasicResourceInnerTests.java @@ -15,18 +15,18 @@ public final class OutboundRuleBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OutboundRuleBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"owhl\",\"parentRuleNames\":[\"wyrmouv\",\"lgmokzkl\"]},\"id\":\"fowtdvrfmvlihcvj\",\"name\":\"rqcrjidhftukvh\",\"type\":\"xlwyoj\"}") + "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"tedousnktjtgrava\",\"parentRuleNames\":[\"fkbebauzl\",\"btxxwpfhnjzud\",\"tpzkgmeboywhcz\",\"qrhm\"]},\"id\":\"qbedygisrzwn\",\"name\":\"kdidjc\",\"type\":\"lrmpwctofldse\"}") .toObject(OutboundRuleBasicResourceInner.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().category()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.properties().category()); Assertions.assertEquals(RuleStatus.PROVISIONING, model.properties().status()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OutboundRuleBasicResourceInner model = new OutboundRuleBasicResourceInner().withProperties( - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING)); + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING)); model = BinaryData.fromObject(model).toObject(OutboundRuleBasicResourceInner.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().category()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.properties().category()); Assertions.assertEquals(RuleStatus.PROVISIONING, model.properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListResultTests.java index c5139be4b1fa..924f23b0946a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListResultTests.java @@ -14,10 +14,10 @@ public final class OutboundRuleListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OutboundRuleListResult model = BinaryData.fromString( - "{\"nextLink\":\"jymxcgqt\",\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"ol\",\"parentRuleNames\":[\"evtf\",\"cnlbv\",\"jcodkkgjiiytssi\",\"izbcufqbvntnr\"]},\"id\":\"qsorh\",\"name\":\"ekxgn\",\"type\":\"ykmxcpwzvm\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"tiwlwxlboncqb\",\"parentRuleNames\":[\"icqchygtv\",\"byjanep\",\"bdpkxyqvgx\"]},\"id\":\"od\",\"name\":\"tvo\",\"type\":\"kxdxuwsaifmcwn\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"hg\",\"parentRuleNames\":[\"bcknjolgj\"]},\"id\":\"xpvelszerqzevxo\",\"name\":\"eintxwaljglzobl\",\"type\":\"waafrqulh\"}]}") + "{\"nextLink\":\"umljcirvpef\",\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"tjnsx\",\"parentRuleNames\":[\"lnsjhw\",\"uyx\"]},\"id\":\"xqvmvuay\",\"name\":\"uadx\",\"type\":\"xeqbwp\"}]}") .toObject(OutboundRuleListResult.class); - Assertions.assertEquals("jymxcgqt", model.nextLink()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.value().get(0).properties().category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.value().get(0).properties().status()); + Assertions.assertEquals("umljcirvpef", model.nextLink()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.value().get(0).properties().category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.value().get(0).properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleTests.java index 758bc5f213d8..83d7cf4f58bb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleTests.java @@ -14,7 +14,7 @@ public final class OutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OutboundRule model = BinaryData.fromString( - "{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"fnjyix\",\"parentRuleNames\":[\"ratqxmbjro\",\"mzznvalqjrhuzgfx\",\"njt\",\"usllywpvtiotz\"]}") + "{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"xkbrfg\",\"parentRuleNames\":[\"jiye\",\"hfjsrwqrxetf\",\"cwv\",\"r\"]}") .toObject(OutboundRule.class); Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java index f7c8494f9f5d..354172d768c2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class OutboundRulesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"ztpcjptnntqrcjq\",\"parentRuleNames\":[\"vn\",\"jr\"]},\"id\":\"pgsjbioagwviqehm\",\"name\":\"qvaol\",\"type\":\"dxdfsfvk\"}"; + = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"thlokmxwawfu\",\"parentRuleNames\":[\"gejjxum\",\"wynjmoozm\",\"uktdrsjtmnkxjouw\",\"zcfdtstiaxtyrnu\"]},\"id\":\"fhepis\",\"name\":\"bcmlroiommems\",\"type\":\"q\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,12 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OutboundRuleBasicResource response = manager.outboundRules() - .define("ahhsmfndcbsyhlud") - .withExistingManagedNetwork("hrmvla", "nujmwxnrzb", "x") - .withProperties( - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING)) + .define("exnguwnrdpuz") + .withExistingManagedNetwork("xaqjyihjcwwvaos", "kfavhkhpsp", "weifdyfa") + .withProperties(new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE)) .create(); - Assertions.assertEquals(RuleCategory.REQUIRED, response.properties().category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, response.properties().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, response.properties().category()); + Assertions.assertEquals(RuleStatus.DELETING, response.properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java index 3826af7082c2..f5bfd8b02d54 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class OutboundRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Active\",\"errorInformation\":\"acgdnx\",\"parentRuleNames\":[\"nmzr\",\"jaojpzngdrzige\",\"wsadsqyu\",\"dkhwqdmohhe\"]},\"id\":\"uunxmyevyigdeipn\",\"name\":\"izej\",\"type\":\"li\"}"; + = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"lqliiqeanuwgjnof\",\"parentRuleNames\":[\"y\",\"gseb\"]},\"id\":\"y\",\"name\":\"tevaebzm\",\"type\":\"ywhr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OutboundRuleBasicResource response = manager.outboundRules() - .getWithResponse("ly", "kwfsaangfgbm", "vm", "idyli", com.azure.core.util.Context.NONE) + .getWithResponse("xbvxgx", "q", "asfeooq", "tpvev", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RuleCategory.REQUIRED, response.properties().category()); - Assertions.assertEquals(RuleStatus.ACTIVE, response.properties().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, response.properties().category()); + Assertions.assertEquals(RuleStatus.INACTIVE, response.properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java index 36a63b2b69e1..8487cd97aab1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java @@ -24,7 +24,7 @@ public final class OutboundRulesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"pmqnmelyksygih\",\"parentRuleNames\":[\"msln\",\"n\",\"qvzlbbbajdexqu\",\"wexizbfzetjizwh\"]},\"id\":\"bm\",\"name\":\"jvvyxtvvxnakzix\",\"type\":\"kaybfmlngf\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"tenfdvdoearywusr\",\"parentRuleNames\":[\"dt\",\"syfezfsmyljd\",\"yyrwnmwtqi\"]},\"id\":\"knnkyn\",\"name\":\"s\",\"type\":\"dtfwhjfph\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,9 +34,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.outboundRules().list("acndjzwhaj", "dapqokhdy", "cradxsew", com.azure.core.util.Context.NONE); + = manager.outboundRules().list("k", "jvaedogz", "ugxbxxgjogcph", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RuleCategory.REQUIRED, response.iterator().next().properties().category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, response.iterator().next().properties().status()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, response.iterator().next().properties().category()); + Assertions.assertEquals(RuleStatus.DELETING, response.iterator().next().properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.java index 19a77b1fe65d..e41862d4bd43 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.java @@ -14,27 +14,27 @@ public final class PatchResourceSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PatchResourceSku model = BinaryData.fromString( - "{\"sku\":{\"name\":\"yxlzgs\",\"tier\":\"Basic\",\"size\":\"zltafhbzffovwm\",\"family\":\"lz\",\"capacity\":1087560201}}") + "{\"sku\":{\"name\":\"nmdvha\",\"tier\":\"Standard\",\"size\":\"ytiq\",\"family\":\"bqerzwx\",\"capacity\":959013845}}") .toObject(PatchResourceSku.class); - Assertions.assertEquals("yxlzgs", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zltafhbzffovwm", model.sku().size()); - Assertions.assertEquals("lz", model.sku().family()); - Assertions.assertEquals(1087560201, model.sku().capacity()); + Assertions.assertEquals("nmdvha", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("ytiq", model.sku().size()); + Assertions.assertEquals("bqerzwx", model.sku().family()); + Assertions.assertEquals(959013845, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PatchResourceSku model = new PatchResourceSku().withSku(new Sku().withName("yxlzgs") - .withTier(SkuTier.BASIC) - .withSize("zltafhbzffovwm") - .withFamily("lz") - .withCapacity(1087560201)); + PatchResourceSku model = new PatchResourceSku().withSku(new Sku().withName("nmdvha") + .withTier(SkuTier.STANDARD) + .withSize("ytiq") + .withFamily("bqerzwx") + .withCapacity(959013845)); model = BinaryData.fromObject(model).toObject(PatchResourceSku.class); - Assertions.assertEquals("yxlzgs", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zltafhbzffovwm", model.sku().size()); - Assertions.assertEquals("lz", model.sku().family()); - Assertions.assertEquals(1087560201, model.sku().capacity()); + Assertions.assertEquals("nmdvha", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("ytiq", model.sku().size()); + Assertions.assertEquals("bqerzwx", model.sku().family()); + Assertions.assertEquals(959013845, model.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java index 2cce0100f6bb..c37aa14c6013 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java @@ -16,32 +16,32 @@ public final class PatchResourceTagsAndSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PatchResourceTagsAndSku model = BinaryData.fromString( - "{\"sku\":{\"name\":\"xsdqrhzoymibmrqy\",\"tier\":\"Enterprise\",\"size\":\"wfluszdt\",\"family\":\"rkwofyyvoqa\",\"capacity\":848769798},\"tags\":{\"wbwo\":\"pbtg\",\"kcnqxwbpo\":\"nwashrtd\",\"aasipqi\":\"ulpiuj\"}}") + "{\"sku\":{\"name\":\"ipfpubji\",\"tier\":\"Standard\",\"size\":\"f\",\"family\":\"hqkvpuvksgplsak\",\"capacity\":34213968},\"tags\":{\"ph\":\"ynl\",\"odlqiyntor\":\"op\",\"swsrms\":\"ihleos\",\"ox\":\"yzrpzbchckqqzq\"}}") .toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("pbtg", model.tags().get("wbwo")); - Assertions.assertEquals("xsdqrhzoymibmrqy", model.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.sku().tier()); - Assertions.assertEquals("wfluszdt", model.sku().size()); - Assertions.assertEquals("rkwofyyvoqa", model.sku().family()); - Assertions.assertEquals(848769798, model.sku().capacity()); + Assertions.assertEquals("ynl", model.tags().get("ph")); + Assertions.assertEquals("ipfpubji", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("f", model.sku().size()); + Assertions.assertEquals("hqkvpuvksgplsak", model.sku().family()); + Assertions.assertEquals(34213968, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PatchResourceTagsAndSku model = new PatchResourceTagsAndSku() - .withTags(mapOf("wbwo", "pbtg", "kcnqxwbpo", "nwashrtd", "aasipqi", "ulpiuj")) - .withSku(new Sku().withName("xsdqrhzoymibmrqy") - .withTier(SkuTier.ENTERPRISE) - .withSize("wfluszdt") - .withFamily("rkwofyyvoqa") - .withCapacity(848769798)); + .withTags(mapOf("ph", "ynl", "odlqiyntor", "op", "swsrms", "ihleos", "ox", "yzrpzbchckqqzq")) + .withSku(new Sku().withName("ipfpubji") + .withTier(SkuTier.STANDARD) + .withSize("f") + .withFamily("hqkvpuvksgplsak") + .withCapacity(34213968)); model = BinaryData.fromObject(model).toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("pbtg", model.tags().get("wbwo")); - Assertions.assertEquals("xsdqrhzoymibmrqy", model.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.sku().tier()); - Assertions.assertEquals("wfluszdt", model.sku().size()); - Assertions.assertEquals("rkwofyyvoqa", model.sku().family()); - Assertions.assertEquals(848769798, model.sku().capacity()); + Assertions.assertEquals("ynl", model.tags().get("ph")); + Assertions.assertEquals("ipfpubji", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("f", model.sku().size()); + Assertions.assertEquals("hqkvpuvksgplsak", model.sku().family()); + Assertions.assertEquals(34213968, model.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java index 6f0debd31d66..3db7bb5693bc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java @@ -13,19 +13,18 @@ public final class PatchResourceTagsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PatchResourceTags model = BinaryData - .fromString( - "{\"tags\":{\"rpqlp\":\"yuq\",\"auvfbtkuwhhmhyk\":\"wcciuqgbdbu\",\"hkoymkcdyhbp\":\"joxafnndlpi\"}}") + PatchResourceTags model = BinaryData.fromString( + "{\"tags\":{\"yatrwy\":\"uiizynke\",\"ibzyhwitsmyp\":\"q\",\"biknsorgjhxbld\":\"ynpcdpumnzgmwznm\",\"dmtnc\":\"lwwrl\"}}") .toObject(PatchResourceTags.class); - Assertions.assertEquals("yuq", model.tags().get("rpqlp")); + Assertions.assertEquals("uiizynke", model.tags().get("yatrwy")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PatchResourceTags model = new PatchResourceTags() - .withTags(mapOf("rpqlp", "yuq", "auvfbtkuwhhmhyk", "wcciuqgbdbu", "hkoymkcdyhbp", "joxafnndlpi")); + PatchResourceTags model = new PatchResourceTags().withTags( + mapOf("yatrwy", "uiizynke", "ibzyhwitsmyp", "q", "biknsorgjhxbld", "ynpcdpumnzgmwznm", "dmtnc", "lwwrl")); model = BinaryData.fromObject(model).toObject(PatchResourceTags.class); - Assertions.assertEquals("yuq", model.tags().get("rpqlp")); + Assertions.assertEquals("uiizynke", model.tags().get("yatrwy")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java index 6fcc87f72d02..05887341ef6c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java @@ -13,19 +13,19 @@ public final class PolicyAssignmentEvaluationDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PolicyAssignmentEvaluationDetails model = BinaryData.fromString( - "{\"assignmentId\":\"indoygmifthnzd\",\"policyDefinitionId\":\"sl\",\"policySetDefinitionId\":\"ayqigynduhav\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"thuma\",\"effect\":\"lbg\",\"expressionEvaluations\":[{\"expression\":\"iertgccymvaolp\",\"expressionKind\":\"lqlfm\",\"operator\":\"n\",\"result\":\"glzpswiydm\",\"targetValue\":\"yhz\",\"expressionValue\":\"ss\"},{\"expression\":\"bzmnvdfznud\",\"expressionKind\":\"dvxzbncblylpst\",\"operator\":\"hh\",\"result\":\"rzdzucerscdnt\",\"targetValue\":\"vfiwjmygtdss\",\"expressionValue\":\"wtmwerio\"},{\"expression\":\"pyqs\",\"expressionKind\":\"wab\",\"operator\":\"tshhszhedp\",\"result\":\"wiwubm\",\"targetValue\":\"besldnkwwtppjflc\",\"expressionValue\":\"gaokonzmnsikv\"}]}") + "{\"assignmentId\":\"zjf\",\"policyDefinitionId\":\"vjfdx\",\"policySetDefinitionId\":\"vetvt\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"tdo\",\"effect\":\"cbxvwvxyslqbh\",\"expressionEvaluations\":[{\"expression\":\"blytk\",\"expressionKind\":\"mpew\",\"operator\":\"fbkrvrnsvs\",\"result\":\"johxcrsb\",\"targetValue\":\"vasrruvwb\",\"expressionValue\":\"qfsubcgjbirx\"},{\"expression\":\"ybsrfbjfdtwss\",\"expressionKind\":\"ftpvjzbexil\",\"operator\":\"nfqqnvwp\",\"result\":\"taruoujmkcj\",\"targetValue\":\"qytjrybnwjewgd\",\"expressionValue\":\"ervnaenqpehi\"},{\"expression\":\"oygmift\",\"expressionKind\":\"zdnds\",\"operator\":\"nayqi\",\"result\":\"nduhavhqlkthum\",\"targetValue\":\"olbgycduiertgccy\",\"expressionValue\":\"aolps\"}]}") .toObject(PolicyAssignmentEvaluationDetails.class); - Assertions.assertEquals("indoygmifthnzd", model.assignmentId()); - Assertions.assertEquals("sl", model.policyDefinitionId()); - Assertions.assertEquals("ayqigynduhav", model.policySetDefinitionId()); - Assertions.assertEquals(PolicyEvaluationOutcome.NON_COMPLIANT, model.evaluationOutcome()); - Assertions.assertEquals("thuma", model.nonComplianceReason()); - Assertions.assertEquals("lbg", model.effect()); - Assertions.assertEquals("iertgccymvaolp", model.expressionEvaluations().get(0).expression()); - Assertions.assertEquals("lqlfm", model.expressionEvaluations().get(0).expressionKind()); - Assertions.assertEquals("n", model.expressionEvaluations().get(0).operator()); - Assertions.assertEquals("glzpswiydm", model.expressionEvaluations().get(0).result()); - Assertions.assertEquals("yhz", model.expressionEvaluations().get(0).targetValue()); - Assertions.assertEquals("ss", model.expressionEvaluations().get(0).expressionValue()); + Assertions.assertEquals("zjf", model.assignmentId()); + Assertions.assertEquals("vjfdx", model.policyDefinitionId()); + Assertions.assertEquals("vetvt", model.policySetDefinitionId()); + Assertions.assertEquals(PolicyEvaluationOutcome.ERROR, model.evaluationOutcome()); + Assertions.assertEquals("tdo", model.nonComplianceReason()); + Assertions.assertEquals("cbxvwvxyslqbh", model.effect()); + Assertions.assertEquals("blytk", model.expressionEvaluations().get(0).expression()); + Assertions.assertEquals("mpew", model.expressionEvaluations().get(0).expressionKind()); + Assertions.assertEquals("fbkrvrnsvs", model.expressionEvaluations().get(0).operator()); + Assertions.assertEquals("johxcrsb", model.expressionEvaluations().get(0).result()); + Assertions.assertEquals("vasrruvwb", model.expressionEvaluations().get(0).targetValue()); + Assertions.assertEquals("qfsubcgjbirx", model.expressionEvaluations().get(0).expressionValue()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.java index 231d16b3ae03..0bd3396e83f9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.java @@ -12,13 +12,13 @@ public final class PolicyExpressionEvaluationDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PolicyExpressionEvaluationDetails model = BinaryData.fromString( - "{\"expression\":\"qzeqqkdltfzxm\",\"expressionKind\":\"v\",\"operator\":\"ur\",\"result\":\"dkwobdagx\",\"targetValue\":\"bqdxbx\",\"expressionValue\":\"kbogqxndlkzgx\"}") + "{\"expression\":\"qlfmmdnbb\",\"expressionKind\":\"zpswiydmc\",\"operator\":\"hzdxssadbzm\",\"result\":\"dfznudaodv\",\"targetValue\":\"bncblylpstdbhhx\",\"expressionValue\":\"zdzucerscdntnevf\"}") .toObject(PolicyExpressionEvaluationDetails.class); - Assertions.assertEquals("qzeqqkdltfzxm", model.expression()); - Assertions.assertEquals("v", model.expressionKind()); - Assertions.assertEquals("ur", model.operator()); - Assertions.assertEquals("dkwobdagx", model.result()); - Assertions.assertEquals("bqdxbx", model.targetValue()); - Assertions.assertEquals("kbogqxndlkzgx", model.expressionValue()); + Assertions.assertEquals("qlfmmdnbb", model.expression()); + Assertions.assertEquals("zpswiydmc", model.expressionKind()); + Assertions.assertEquals("hzdxssadbzm", model.operator()); + Assertions.assertEquals("dfznudaodv", model.result()); + Assertions.assertEquals("bncblylpstdbhhx", model.targetValue()); + Assertions.assertEquals("zdzucerscdntnevf", model.expressionValue()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java index 9072556ba967..f82bab491a1b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java @@ -13,24 +13,24 @@ public final class PoolTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Pool model = BinaryData.fromString( - "{\"name\":\"zvqqugdrftbcvexr\",\"vmPriority\":\"LowPriority\",\"instanceType\":\"quowtljvfwhrea\",\"nodeCount\":851669196}") + "{\"name\":\"l\",\"vmPriority\":\"Regular\",\"instanceType\":\"qkfrbzgowoxqmj\",\"nodeCount\":642254793}") .toObject(Pool.class); - Assertions.assertEquals("zvqqugdrftbcvexr", model.name()); - Assertions.assertEquals(VmPriority.LOW_PRIORITY, model.vmPriority()); - Assertions.assertEquals("quowtljvfwhrea", model.instanceType()); - Assertions.assertEquals(851669196, model.nodeCount()); + Assertions.assertEquals("l", model.name()); + Assertions.assertEquals(VmPriority.REGULAR, model.vmPriority()); + Assertions.assertEquals("qkfrbzgowoxqmj", model.instanceType()); + Assertions.assertEquals(642254793, model.nodeCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Pool model = new Pool().withName("zvqqugdrftbcvexr") - .withVmPriority(VmPriority.LOW_PRIORITY) - .withInstanceType("quowtljvfwhrea") - .withNodeCount(851669196); + Pool model = new Pool().withName("l") + .withVmPriority(VmPriority.REGULAR) + .withInstanceType("qkfrbzgowoxqmj") + .withNodeCount(642254793); model = BinaryData.fromObject(model).toObject(Pool.class); - Assertions.assertEquals("zvqqugdrftbcvexr", model.name()); - Assertions.assertEquals(VmPriority.LOW_PRIORITY, model.vmPriority()); - Assertions.assertEquals("quowtljvfwhrea", model.instanceType()); - Assertions.assertEquals(851669196, model.nodeCount()); + Assertions.assertEquals("l", model.name()); + Assertions.assertEquals(VmPriority.REGULAR, model.vmPriority()); + Assertions.assertEquals("qkfrbzgowoxqmj", model.instanceType()); + Assertions.assertEquals(642254793, model.nodeCount()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java index 055e507fa958..939c7bdafe44 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java @@ -13,15 +13,15 @@ public final class PrivateEndpointConnectionListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionListResultInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"bpodxunkbebxm\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ntwlrbqtkoie\",\"actionsRequired\":\"eotg\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"muwlauwzizxbm\",\"gcj\",\"fuzmuvpbtt\"]},\"etag\":\"morppxebmnzbtbh\",\"location\":\"glkfg\",\"id\":\"dneu\",\"name\":\"lfphsdyhtozfikd\",\"type\":\"wwquuvxzxclvithh\"}]}") + "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"tdss\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"mweriofzpy\",\"actionsRequired\":\"emwabnet\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"h\",\"d\",\"lvwiwubmwmbesl\"]},\"etag\":\"k\",\"location\":\"tppjflcx\",\"id\":\"aokonzmnsik\",\"name\":\"mkqzeqqkdltfzxmh\",\"type\":\"v\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"eodkwobda\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"bqdxbx\",\"actionsRequired\":\"kbogqxndlkzgx\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"lbpodxunk\",\"ebxmubyynt\",\"lrb\"]},\"etag\":\"koievseo\",\"location\":\"q\",\"id\":\"ltmuwlauwzizx\",\"name\":\"mpgcjefuzmuvpbt\",\"type\":\"d\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"p\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"mnzb\",\"actionsRequired\":\"hjpglkf\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"euel\",\"phsdyhto\",\"fikdowwqu\",\"v\"]},\"etag\":\"xclvit\",\"location\":\"qzonosggbhcohf\",\"id\":\"sjnkal\",\"name\":\"utiiswacf\",\"type\":\"gdkz\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"fvhqc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vpnpp\",\"actionsRequired\":\"flrwd\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"yjrxsagafcnih\",\"wqapnedgfbcvk\",\"vq\",\"pkeqdcvdrhvoo\"]},\"etag\":\"otbobzdopcj\",\"location\":\"nhdldwmgxcx\",\"id\":\"lpmutwuoegrpkhj\",\"name\":\"niyqslui\",\"type\":\"pdggkzzlvm\"}]}") .toObject(PrivateEndpointConnectionListResultInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ntwlrbqtkoie", + Assertions.assertEquals("mweriofzpy", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("eotg", + Assertions.assertEquals("emwabnet", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("muwlauwzizxbm", model.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("glkfg", model.value().get(0).location()); + Assertions.assertEquals("h", model.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("tppjflcx", model.value().get(0).location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java index 2c9ba38b2d08..423cc8e95c04 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"lgyqixokw\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"hvagnqfqqdlcvmy\",\"actionsRequired\":\"caymjchtvsnvlaq\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"awatuwqkokbczo\",\"hymgobllms\",\"wgwima\",\"neakh\"]},\"etag\":\"ho\",\"location\":\"yanrfvq\",\"id\":\"khgvoogxkfnao\",\"name\":\"qymhcctopuow\",\"type\":\"rnskby\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"ygeqzusito\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"fsgbjmlreesrf\",\"actionsRequired\":\"szvlcwlisolntfx\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"ipfjwfoygizmshx\",\"baizabulnvgskjto\"]},\"etag\":\"dzjs\",\"location\":\"nvhxqqmqip\",\"id\":\"dhfnzocxmtfshksn\",\"name\":\"zmspamwbwm\",\"type\":\"nlslcef\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,24 +37,24 @@ public void testCreateOrUpdate() throws Exception { PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("ahfxwccok") - .withExistingAccount("gfjzcvaax", "ia") - .withRegion("ocuselqk") + .define("g") + .withExistingAccount("ntsxjmfmeftvh", "moogjrhskbwgm") + .withRegion("dr") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("hoqeqshavljqk") - .withActionsRequired("rqolnthbb")) - .withGroupIds(Arrays.asList("kwdrnzkjthfc", "yjncjm", "fuyf", "bpfiddhlrufz"))) + .withDescription("dzxcouzfwo") + .withActionsRequired("akuk")) + .withGroupIds(Arrays.asList("xsoednlw", "li"))) .create(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hvagnqfqqdlcvmy", + Assertions.assertEquals("fsgbjmlreesrf", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("caymjchtvsnvlaq", + Assertions.assertEquals("szvlcwlisolntfx", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("awatuwqkokbczo", response.properties().groupIds().get(0)); - Assertions.assertEquals("yanrfvq", response.location()); + Assertions.assertEquals("ipfjwfoygizmshx", response.properties().groupIds().get(0)); + Assertions.assertEquals("nvhxqqmqip", response.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java index 918cc3089b87..6d2d2d914ad4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.privateEndpointConnections().delete("j", "hfjv", "ywjzebecuvlbefvw", com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().delete("fetwi", "y", "zox", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 52cfb9e89444..28a9b749330d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"tjgxieqfky\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"vjaqu\",\"actionsRequired\":\"yynvskpa\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"umexmj\",\"xcbccwkqmt\",\"apeqiscrpil\"]},\"etag\":\"trqrejda\",\"location\":\"uqimldahlfxl\",\"id\":\"ifmuadjnfsncsk\",\"name\":\"ioshjgczetybn\",\"type\":\"gztlcgc\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"dhlltqstqkqsyg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ecovagzkheubanlx\",\"actionsRequired\":\"pqcckqiawzlz\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"gacizuxlrarw\"]},\"etag\":\"wsaudoejtighsxj\",\"location\":\"tnkqbala\",\"id\":\"vuuwxhmeh\",\"name\":\"nhjiotiffb\",\"type\":\"cngkegxcypxb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("ersejeg", "rkjguwrjmwvvbt", "qkxximwgxql", com.azure.core.util.Context.NONE) + .getWithResponse("ehqwhitxnmxgn", "guzbuw", "orbalkj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("vjaqu", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("yynvskpa", + Assertions.assertEquals("ecovagzkheubanlx", + response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("pqcckqiawzlz", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("umexmj", response.properties().groupIds().get(0)); - Assertions.assertEquals("uqimldahlfxl", response.location()); + Assertions.assertEquals("gacizuxlrarw", response.properties().groupIds().get(0)); + Assertions.assertEquals("tnkqbala", response.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java index 866301952198..71a5b6a5bd51 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"bker\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gaw\",\"actionsRequired\":\"jxildfkcef\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"pjois\"]},\"etag\":\"naybdjnxu\",\"location\":\"ntqontwhym\",\"id\":\"mulw\",\"name\":\"vqtow\",\"type\":\"h\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"oybaja\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fajcywhjqwm\",\"actionsRequired\":\"qo\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"pupukiymjzp\",\"dlvwtiws\"]},\"etag\":\"sa\",\"location\":\"hq\",\"id\":\"mppultas\",\"name\":\"aekewnazea\",\"type\":\"bkajlcyizy\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"xo\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"fsxxby\",\"actionsRequired\":\"sqlv\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"goljtzxnmxs\",\"obygoo\"]},\"etag\":\"qa\",\"location\":\"xv\",\"id\":\"yjfucsaod\",\"name\":\"nosdkvi\",\"type\":\"fasgm\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"zpducdaak\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"tzboim\",\"actionsRequired\":\"pqdowkppnwyy\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"tfjikffffgkuh\"]},\"etag\":\"whvuldbkk\",\"location\":\"jkjigawgaz\",\"id\":\"jqifhujjsbcml\",\"name\":\"aahzbhuroolkol\",\"type\":\"rhhmojusu\"}]}"; + = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"nahwk\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ztnlmsoo\",\"actionsRequired\":\"mvecdhdyswcr\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"jczxvlgsrg\",\"rfizr\"]},\"etag\":\"wlp\",\"location\":\"uqhrlmcskykp\",\"id\":\"ofix\",\"name\":\"npcfyk\",\"type\":\"pyycpawm\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"dpwrp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fjfw\",\"actionsRequired\":\"gzawk\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"yamnnidmdiawp\"]},\"etag\":\"kzrn\",\"location\":\"kctd\",\"id\":\"osgwqpsqazihqo\",\"name\":\"vqgcnbhcbm\",\"type\":\"kztibni\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnectionListResult response = manager.privateEndpointConnections() - .listWithResponse("ljkxpylrwoxz", "wpsyxjij", com.azure.core.util.Context.NONE) + .listWithResponse("dxqlfrolq", "wnk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gaw", + Assertions.assertEquals("ztnlmsoo", response.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jxildfkcef", + Assertions.assertEquals("mvecdhdyswcr", response.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("pjois", response.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("ntqontwhym", response.value().get(0).location()); + Assertions.assertEquals("jczxvlgsrg", response.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("uqhrlmcskykp", response.value().get(0).location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java index 2937be0dda94..e8818acdced9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java @@ -12,19 +12,19 @@ public final class PrivateEndpointOutboundRuleDestinationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointOutboundRuleDestination model - = BinaryData.fromString("{\"serviceResourceId\":\"mhklbnl\",\"subresourceTarget\":\"vcb\"}") + = BinaryData.fromString("{\"serviceResourceId\":\"pp\",\"subresourceTarget\":\"aohoqkpjtnq\"}") .toObject(PrivateEndpointOutboundRuleDestination.class); - Assertions.assertEquals("mhklbnl", model.serviceResourceId()); - Assertions.assertEquals("vcb", model.subresourceTarget()); + Assertions.assertEquals("pp", model.serviceResourceId()); + Assertions.assertEquals("aohoqkpjtnq", model.subresourceTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointOutboundRuleDestination model - = new PrivateEndpointOutboundRuleDestination().withServiceResourceId("mhklbnl") - .withSubresourceTarget("vcb"); + = new PrivateEndpointOutboundRuleDestination().withServiceResourceId("pp") + .withSubresourceTarget("aohoqkpjtnq"); model = BinaryData.fromObject(model).toObject(PrivateEndpointOutboundRuleDestination.class); - Assertions.assertEquals("mhklbnl", model.serviceResourceId()); - Assertions.assertEquals("vcb", model.subresourceTarget()); + Assertions.assertEquals("pp", model.serviceResourceId()); + Assertions.assertEquals("aohoqkpjtnq", model.subresourceTarget()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java index c4fac8940dad..747adbcdeed2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java @@ -16,27 +16,27 @@ public final class PrivateEndpointOutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointOutboundRule model = BinaryData.fromString( - "{\"type\":\"PrivateEndpoint\",\"destination\":{\"serviceResourceId\":\"idisczskosw\",\"subresourceTarget\":\"iqazugamxzkr\"},\"fqdns\":[\"iisb\",\"mnppccekuztd\",\"bezaxyfukzxuiz\",\"y\"],\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"etiarxqiubxdukec\",\"parentRuleNames\":[\"azvdhctmmkosz\",\"dblnsntrp\",\"aqkiofkb\"]}") + "{\"type\":\"PrivateEndpoint\",\"destination\":{\"serviceResourceId\":\"iduw\",\"subresourceTarget\":\"e\"},\"fqdns\":[\"lh\",\"yxpzruzythqk\",\"whbgxvellvul\",\"xdm\"],\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"dtvm\",\"parentRuleNames\":[\"ymffhmjpddnyx\",\"zuvrzmzqmz\",\"qrbrpvnmdyfoeboj\"]}") .toObject(PrivateEndpointOutboundRule.class); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); - Assertions.assertEquals("idisczskosw", model.destination().serviceResourceId()); - Assertions.assertEquals("iqazugamxzkr", model.destination().subresourceTarget()); - Assertions.assertEquals("iisb", model.fqdns().get(0)); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); + Assertions.assertEquals(RuleStatus.FAILED, model.status()); + Assertions.assertEquals("iduw", model.destination().serviceResourceId()); + Assertions.assertEquals("e", model.destination().subresourceTarget()); + Assertions.assertEquals("lh", model.fqdns().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpointOutboundRule model = new PrivateEndpointOutboundRule().withCategory(RuleCategory.RECOMMENDED) - .withStatus(RuleStatus.ACTIVE) - .withDestination(new PrivateEndpointOutboundRuleDestination().withServiceResourceId("idisczskosw") - .withSubresourceTarget("iqazugamxzkr")) - .withFqdns(Arrays.asList("iisb", "mnppccekuztd", "bezaxyfukzxuiz", "y")); + PrivateEndpointOutboundRule model = new PrivateEndpointOutboundRule().withCategory(RuleCategory.USER_DEFINED) + .withStatus(RuleStatus.FAILED) + .withDestination( + new PrivateEndpointOutboundRuleDestination().withServiceResourceId("iduw").withSubresourceTarget("e")) + .withFqdns(Arrays.asList("lh", "yxpzruzythqk", "whbgxvellvul", "xdm")); model = BinaryData.fromObject(model).toObject(PrivateEndpointOutboundRule.class); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); - Assertions.assertEquals("idisczskosw", model.destination().serviceResourceId()); - Assertions.assertEquals("iqazugamxzkr", model.destination().subresourceTarget()); - Assertions.assertEquals("iisb", model.fqdns().get(0)); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); + Assertions.assertEquals(RuleStatus.FAILED, model.status()); + Assertions.assertEquals("iduw", model.destination().serviceResourceId()); + Assertions.assertEquals("e", model.destination().subresourceTarget()); + Assertions.assertEquals("lh", model.fqdns().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java index 6a2d20409ea5..dcd765319a78 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourceListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResultInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"zjd\",\"requiredMembers\":[\"jb\",\"xjeaoqaqbzgyh\",\"w\",\"v\"],\"requiredZoneNames\":[\"bwbqamt\",\"uliyslpkcv\",\"w\"],\"displayName\":\"uxx\"},\"id\":\"myw\",\"name\":\"ormcqmic\",\"type\":\"ijqpkzfbojxjmcs\"},{\"properties\":{\"groupId\":\"wixvcpwnkwywzw\",\"requiredMembers\":[\"lickduoi\",\"tamtyv\",\"kn\"],\"requiredZoneNames\":[\"zawnvsbcfhzag\",\"nvhycvdimwrz\",\"e\",\"zgyufutrwp\"],\"displayName\":\"ryekzkd\"},\"id\":\"eotta\",\"name\":\"jyosxwwh\",\"type\":\"h\"}]}") + "{\"value\":[{\"properties\":{\"groupId\":\"rkuz\",\"requiredMembers\":[\"nndtsnxa\"],\"requiredZoneNames\":[\"tllh\",\"yzm\",\"ckze\"],\"displayName\":\"xak\"},\"id\":\"ywymxgaabj\",\"name\":\"dtfohfaog\",\"type\":\"vkiwrsiwdyjqu\"},{\"properties\":{\"groupId\":\"crraueekcsu\",\"requiredMembers\":[\"gdda\"],\"requiredZoneNames\":[\"bgydlqidywm\",\"mptyrilkfbnrqqxv\"],\"displayName\":\"pbnfnqtx\"},\"id\":\"omals\",\"name\":\"bnfddep\",\"type\":\"dwq\"},{\"properties\":{\"groupId\":\"f\",\"requiredMembers\":[\"leexahvmywh\"],\"requiredZoneNames\":[\"carycsjjzyvoaqa\",\"uvehzptd\",\"krrbhmpful\"],\"displayName\":\"efgybpmfbfununmp\"},\"id\":\"rvfyifkdsch\",\"name\":\"zvfictnk\",\"type\":\"jwg\"},{\"properties\":{\"groupId\":\"ph\",\"requiredMembers\":[\"fyrtogmhmjp\",\"scdfpdqw\",\"ygevgwmseharx\",\"fv\"],\"requiredZoneNames\":[\"x\",\"mbpjptnvwjh\",\"sidqpxlbtpakft\"],\"displayName\":\"atw\"},\"id\":\"kyutrymdwmfjhpyc\",\"name\":\"jqdvdwkqpldrlefg\",\"type\":\"aavuagntetaout\"}]}") .toObject(PrivateLinkResourceListResultInner.class); - Assertions.assertEquals("bwbqamt", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("tllh", model.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java index 0932dfe51cb4..92ecfe12b002 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"ynq\",\"requiredMembers\":[\"kqsykvwjtqpke\",\"myltj\",\"rspxklur\",\"clf\"],\"requiredZoneNames\":[\"nnnoytz\",\"osewxi\",\"pxvkqma\",\"pxvpifdfaif\"],\"displayName\":\"yzeyuubeid\"}") + "{\"groupId\":\"biipsnawwlqkznx\",\"requiredMembers\":[\"lxri\",\"ctkwmuqqoajxeiyg\"],\"requiredZoneNames\":[\"rwvaexhdc\",\"rceqnkbrupob\",\"hdmljz\",\"cvumepjpbi\"],\"displayName\":\"zpphepif\"}") .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("nnnoytz", model.requiredZoneNames().get(0)); + Assertions.assertEquals("rwvaexhdc", model.requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java index f4f0d906a1db..65ff5b85f1f3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResource model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"vpndp\",\"requiredMembers\":[\"jpnwynudql\",\"zsauzp\",\"lxeehuxiq\"],\"requiredZoneNames\":[\"raymezx\",\"skihmxrfd\",\"ajrednwyyshtuw\",\"mevuafpwzy\"],\"displayName\":\"rkgwltxeqip\"},\"id\":\"zdyi\",\"name\":\"sfayorpravkjoges\",\"type\":\"abnsmj\"}") + "{\"properties\":{\"groupId\":\"ctuhspfefyihduye\",\"requiredMembers\":[\"dphmtybkcgsuth\",\"llnmwyn\",\"fxexlfciatxtjrr\"],\"requiredZoneNames\":[\"dskjhhxdlaj\",\"oxcxscvslx\",\"hu\",\"vkrmukmyjmkx\"],\"displayName\":\"tcsloj\"},\"id\":\"qid\",\"name\":\"qtoqxjhqxcsq\",\"type\":\"tkbtnqlrngl\"}") .toObject(PrivateLinkResource.class); - Assertions.assertEquals("raymezx", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("dskjhhxdlaj", model.properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java index 348210206af0..d38122d40f47 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"rhikwsbzrhdug\",\"requiredMembers\":[\"trgzfr\",\"njfhrjh\"],\"requiredZoneNames\":[\"bauseqnczk\",\"ihvtuwyjsqw\"],\"displayName\":\"zoszjg\"},\"id\":\"nkfnyskwwunq\",\"name\":\"czavoj\",\"type\":\"slhip\"},{\"properties\":{\"groupId\":\"vbljpxprrvc\",\"requiredMembers\":[\"uqalpcufjjfxt\",\"ztqdstahhh\"],\"requiredZoneNames\":[\"xxsri\",\"rcwbaae\"],\"displayName\":\"yefmxwoqotii\"},\"id\":\"gpasrvrmtisty\",\"name\":\"kjhorlxkpy\",\"type\":\"k\"},{\"properties\":{\"groupId\":\"ycntrqxxwtdmb\",\"requiredMembers\":[\"suhqhtoxt\",\"yqavfxbqmzxsyaks\",\"npaami\"],\"requiredZoneNames\":[\"ghvwtgp\"],\"displayName\":\"chcgsfz\"},\"id\":\"jkiysqbjsdj\",\"name\":\"gxe\",\"type\":\"sgw\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"ncrdo\",\"requiredMembers\":[\"ysecp\",\"khxd\",\"yhqtzcvimmwcko\"],\"requiredZoneNames\":[\"fymtrtsvxupqtzck\",\"bcbkgnrfr\"],\"displayName\":\"chj\"},\"id\":\"cqzahgtvbgdob\",\"name\":\"morzolxosg\",\"type\":\"htrxueqbmxqfgv\"},{\"properties\":{\"groupId\":\"qs\",\"requiredMembers\":[\"esgcsqos\",\"cxlngoufpi\"],\"requiredZoneNames\":[\"mfxzspf\"],\"displayName\":\"slazipplxgtdu\"},\"id\":\"ty\",\"name\":\"i\",\"type\":\"drznlaxozqthkwxf\"},{\"properties\":{\"groupId\":\"zizyxdu\",\"requiredMembers\":[\"qzb\",\"qcakmfckviyj\"],\"requiredZoneNames\":[\"mnsbq\",\"itwhmucjiu\",\"cxyvehykl\",\"lyqdvpqfbxgyc\"],\"displayName\":\"usdmtxq\"},\"id\":\"fn\",\"name\":\"heywvfopkyllrey\",\"type\":\"nj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateLinkResourceListResult response = manager.privateLinkResources() - .listWithResponse("kqmxvpor", "wbwggijts", com.azure.core.util.Context.NONE) + .listWithResponse("dnccotelik", "iytehhxtzxqdwbym", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bauseqnczk", response.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("fymtrtsvxupqtzck", response.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostInnerTests.java index f0396a47e26a..4441aadd571b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostInnerTests.java @@ -14,26 +14,28 @@ public final class ProjectCapabilityHostInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostInner model = BinaryData.fromString( - "{\"properties\":{\"aiServicesConnections\":[\"avp\",\"h\",\"rbqgvgov\",\"bbttefjo\"],\"vectorStoreConnections\":[\"sqyzqedikdfr\",\"biqmrjgei\",\"fqlggw\"],\"storageConnections\":[\"zcxmjpbyep\",\"mgtvlj\",\"rc\",\"yfqi\"],\"threadStorageConnections\":[\"hnp\",\"myqwcab\"],\"provisioningState\":\"Creating\"},\"id\":\"leeyaswl\",\"name\":\"augmrmfjlr\",\"type\":\"wtoaukhfk\"}") + "{\"properties\":{\"aiServicesConnections\":[\"juscvsfx\",\"gctmgxuupbezq\",\"cydrtceukdqkk\",\"ihztgeqmgqzgwldo\"],\"vectorStoreConnections\":[\"illcecfehu\",\"aoaguhicqlli\"],\"storageConnections\":[\"ac\"],\"threadStorageConnections\":[\"hrweftkw\",\"ejpmvssehaepwa\",\"cxtczhupeukn\",\"jduyyespydjfb\"],\"provisioningState\":\"Updating\"},\"id\":\"hhulrtywikdm\",\"name\":\"lakuflgbhgauacd\",\"type\":\"xmxufrsryjqgdk\"}") .toObject(ProjectCapabilityHostInner.class); - Assertions.assertEquals("avp", model.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("sqyzqedikdfr", model.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("zcxmjpbyep", model.properties().storageConnections().get(0)); - Assertions.assertEquals("hnp", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("juscvsfx", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("illcecfehu", model.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("ac", model.properties().storageConnections().get(0)); + Assertions.assertEquals("hrweftkw", model.properties().threadStorageConnections().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectCapabilityHostInner model = new ProjectCapabilityHostInner().withProperties(new ProjectCapabilityHostProperties() - .withAiServicesConnections(Arrays.asList("avp", "h", "rbqgvgov", "bbttefjo")) - .withVectorStoreConnections(Arrays.asList("sqyzqedikdfr", "biqmrjgei", "fqlggw")) - .withStorageConnections(Arrays.asList("zcxmjpbyep", "mgtvlj", "rc", "yfqi")) - .withThreadStorageConnections(Arrays.asList("hnp", "myqwcab"))); + .withAiServicesConnections( + Arrays.asList("juscvsfx", "gctmgxuupbezq", "cydrtceukdqkk", "ihztgeqmgqzgwldo")) + .withVectorStoreConnections(Arrays.asList("illcecfehu", "aoaguhicqlli")) + .withStorageConnections(Arrays.asList("ac")) + .withThreadStorageConnections( + Arrays.asList("hrweftkw", "ejpmvssehaepwa", "cxtczhupeukn", "jduyyespydjfb"))); model = BinaryData.fromObject(model).toObject(ProjectCapabilityHostInner.class); - Assertions.assertEquals("avp", model.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("sqyzqedikdfr", model.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("zcxmjpbyep", model.properties().storageConnections().get(0)); - Assertions.assertEquals("hnp", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("juscvsfx", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("illcecfehu", model.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("ac", model.properties().storageConnections().get(0)); + Assertions.assertEquals("hrweftkw", model.properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostPropertiesTests.java index da2c96336f72..4a65d855ba2a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostPropertiesTests.java @@ -13,25 +13,25 @@ public final class ProjectCapabilityHostPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostProperties model = BinaryData.fromString( - "{\"aiServicesConnections\":[\"sizmoae\",\"sx\"],\"vectorStoreConnections\":[\"ive\",\"wcgyeewxeiqb\",\"smgomguaml\",\"dlrgms\"],\"storageConnections\":[\"gaufcs\",\"hvn\",\"wgnxkympqanxrj\"],\"threadStorageConnections\":[\"tw\",\"taoypnyghshxc\"],\"provisioningState\":\"Creating\"}") + "{\"aiServicesConnections\":[\"zoeo\"],\"vectorStoreConnections\":[\"jhvefgwbmqjchnt\",\"sf\",\"ymxbulpzealb\"],\"storageConnections\":[\"yojwyvfkmbtsu\",\"hxsgxj\",\"mmzrrscub\"],\"threadStorageConnections\":[\"drnpxqwodiff\"],\"provisioningState\":\"Deleting\"}") .toObject(ProjectCapabilityHostProperties.class); - Assertions.assertEquals("sizmoae", model.aiServicesConnections().get(0)); - Assertions.assertEquals("ive", model.vectorStoreConnections().get(0)); - Assertions.assertEquals("gaufcs", model.storageConnections().get(0)); - Assertions.assertEquals("tw", model.threadStorageConnections().get(0)); + Assertions.assertEquals("zoeo", model.aiServicesConnections().get(0)); + Assertions.assertEquals("jhvefgwbmqjchnt", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("yojwyvfkmbtsu", model.storageConnections().get(0)); + Assertions.assertEquals("drnpxqwodiff", model.threadStorageConnections().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectCapabilityHostProperties model - = new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("sizmoae", "sx")) - .withVectorStoreConnections(Arrays.asList("ive", "wcgyeewxeiqb", "smgomguaml", "dlrgms")) - .withStorageConnections(Arrays.asList("gaufcs", "hvn", "wgnxkympqanxrj")) - .withThreadStorageConnections(Arrays.asList("tw", "taoypnyghshxc")); + = new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("zoeo")) + .withVectorStoreConnections(Arrays.asList("jhvefgwbmqjchnt", "sf", "ymxbulpzealb")) + .withStorageConnections(Arrays.asList("yojwyvfkmbtsu", "hxsgxj", "mmzrrscub")) + .withThreadStorageConnections(Arrays.asList("drnpxqwodiff")); model = BinaryData.fromObject(model).toObject(ProjectCapabilityHostProperties.class); - Assertions.assertEquals("sizmoae", model.aiServicesConnections().get(0)); - Assertions.assertEquals("ive", model.vectorStoreConnections().get(0)); - Assertions.assertEquals("gaufcs", model.storageConnections().get(0)); - Assertions.assertEquals("tw", model.threadStorageConnections().get(0)); + Assertions.assertEquals("zoeo", model.aiServicesConnections().get(0)); + Assertions.assertEquals("jhvefgwbmqjchnt", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("yojwyvfkmbtsu", model.storageConnections().get(0)); + Assertions.assertEquals("drnpxqwodiff", model.threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java index 9103db969446..c59642f92091 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java @@ -12,12 +12,12 @@ public final class ProjectCapabilityHostResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"gmnsghpxy\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"wjjkh\",\"yomacluzvxnqm\",\"rpqpd\",\"wmkoisq\"],\"vectorStoreConnections\":[\"f\",\"xuifmcsypobkdqz\"],\"storageConnections\":[\"sylollgtr\",\"zzydmxzjijpvua\",\"rkihcirld\"],\"threadStorageConnections\":[\"rdcoxnbkkj\",\"nurnnq\",\"nqbpi\"],\"provisioningState\":\"Creating\"},\"id\":\"tgrdogypx\",\"name\":\"x\",\"type\":\"bfihw\"},{\"properties\":{\"aiServicesConnections\":[\"ctafsrbxrblm\",\"iowxi\"],\"vectorStoreConnections\":[\"nxw\"],\"storageConnections\":[\"nepzwakls\",\"sbq\"],\"threadStorageConnections\":[\"gwwrxaomzis\",\"lrrcz\",\"zkhhltnjadhqo\"],\"provisioningState\":\"Canceled\"},\"id\":\"oyueayfbpcmsp\",\"name\":\"byrrueqth\",\"type\":\"mg\"}]}") + "{\"nextLink\":\"rmmuabwibvjo\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"cyefoyzbamwine\",\"fvfkak\",\"oldtvevboclzhz\"],\"vectorStoreConnections\":[\"yuxgvttxpnrupz\"],\"storageConnections\":[\"rdixt\",\"ekidswyskb\",\"uffgllukkutvlx\"],\"threadStorageConnections\":[\"qhvmblcouqe\",\"bhbcdszir\",\"randoypmb\",\"t\"],\"provisioningState\":\"Canceled\"},\"id\":\"kfqlwx\",\"name\":\"dykalsygaolnjpnn\",\"type\":\"m\"},{\"properties\":{\"aiServicesConnections\":[\"ibjgsjjxxahm\",\"nadzyq\"],\"vectorStoreConnections\":[\"yi\",\"pinbmhwbjijkgqxn\",\"mbk\"],\"storageConnections\":[\"jauj\",\"aan\",\"ggiycwkdtaawxwf\"],\"threadStorageConnections\":[\"umrrqmbzm\",\"kratbnxwbj\",\"idbirkfpkso\",\"dgo\"],\"provisioningState\":\"Canceled\"},\"id\":\"jymrhbg\",\"name\":\"zozk\",\"type\":\"ewnf\"},{\"properties\":{\"aiServicesConnections\":[\"hhqosmffjku\",\"ycyarnroohg\"],\"vectorStoreConnections\":[\"zoghktdpyczhc\"],\"storageConnections\":[\"cnhz\",\"rottjzcfyjzptw\",\"lohap\",\"infsz\"],\"threadStorageConnections\":[\"lqdhmrjzr\",\"l\"],\"provisioningState\":\"Failed\"},\"id\":\"byypsjoqcjenky\",\"name\":\"fq\",\"type\":\"vsqxfxjelgcmpzqj\"}]}") .toObject(ProjectCapabilityHostResourceArmPaginatedResult.class); - Assertions.assertEquals("gmnsghpxy", model.nextLink()); - Assertions.assertEquals("wjjkh", model.value().get(0).properties().aiServicesConnections().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("sylollgtr", model.value().get(0).properties().storageConnections().get(0)); - Assertions.assertEquals("rdcoxnbkkj", model.value().get(0).properties().threadStorageConnections().get(0)); + Assertions.assertEquals("rmmuabwibvjo", model.nextLink()); + Assertions.assertEquals("cyefoyzbamwine", model.value().get(0).properties().aiServicesConnections().get(0)); + Assertions.assertEquals("yuxgvttxpnrupz", model.value().get(0).properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("rdixt", model.value().get(0).properties().storageConnections().get(0)); + Assertions.assertEquals("qhvmblcouqe", model.value().get(0).properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java index 56fbc6142713..b402ed531e57 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java @@ -23,7 +23,7 @@ public final class ProjectCapabilityHostsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"fytdxmly\",\"zlyvapbkrbuog\",\"tdlt\"],\"vectorStoreConnections\":[\"haizijv\"],\"storageConnections\":[\"zeohlpsftqkrvm\"],\"threadStorageConnections\":[\"vvcpwtqsuspn\",\"mzy\"],\"provisioningState\":\"Succeeded\"},\"id\":\"tevrntfknwac\",\"name\":\"csyotctkhfhf\",\"type\":\"atvcsxr\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"jtqbgysi\",\"thnvxwtdqtcbjd\"],\"vectorStoreConnections\":[\"yhkxun\"],\"storageConnections\":[\"jqgbbjvov\",\"a\",\"hgjsmbcsloy\"],\"threadStorageConnections\":[\"bdg\",\"he\",\"onsdunr\"],\"provisioningState\":\"Succeeded\"},\"id\":\"uatqhgzuyxtrvfdb\",\"name\":\"skgqjbvitptpvsf\",\"type\":\"avdhpiw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,19 +32,20 @@ public void testCreateOrUpdate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - ProjectCapabilityHost response = manager.projectCapabilityHosts() - .define("cdio") - .withExistingProject("wvwiftdjtvbfpfh", "uptsyqcjnqswxdo", "umxquk") - .withProperties(new ProjectCapabilityHostProperties() - .withAiServicesConnections(Arrays.asList("qddnhfknebwed", "pnyzcwyjs", "kaqldqabnwvpa", "bqxfbb")) - .withVectorStoreConnections(Arrays.asList("fddofxnf", "mjyyr", "aedwov")) - .withStorageConnections(Arrays.asList("tjgo", "ayokrwfmihw", "adhed")) - .withThreadStorageConnections(Arrays.asList("bdczvothmkhjao"))) - .create(); + ProjectCapabilityHost response + = manager.projectCapabilityHosts() + .define("uvqhxtozfgdkw") + .withExistingProject("rho", "rkkvxundqzbv", "p") + .withProperties(new ProjectCapabilityHostProperties() + .withAiServicesConnections(Arrays.asList("rklpiigfuzk", "utui")) + .withVectorStoreConnections(Arrays.asList("lzjwaqdzq", "dewuwxyl", "zzzevtzqwczoc")) + .withStorageConnections(Arrays.asList("ekmuynfpkyvnhiy")) + .withThreadStorageConnections(Arrays.asList("orksl", "raqkiwlw", "fflaqwm"))) + .create(); - Assertions.assertEquals("fytdxmly", response.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("haizijv", response.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("zeohlpsftqkrvm", response.properties().storageConnections().get(0)); - Assertions.assertEquals("vvcpwtqsuspn", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("jtqbgysi", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("yhkxun", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("jqgbbjvov", response.properties().storageConnections().get(0)); + Assertions.assertEquals("bdg", response.properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java index 7d02dda19293..95b47847004e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ProjectCapabilityHostsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"qnghxnimvyujr\",\"gunnqgypuqt\",\"ylquevqmvyumgm\",\"uebsnznwgsqufmjx\"],\"vectorStoreConnections\":[\"seqcazisvbrqgc\",\"jp\",\"awepkwonrzpgh\"],\"storageConnections\":[\"tbgblxbuibrvjzta\",\"lvsmfjihv\",\"jcq\"],\"threadStorageConnections\":[\"j\",\"uqmmfjewfeqbavdo\"],\"provisioningState\":\"Failed\"},\"id\":\"gufmwe\",\"name\":\"vxgwz\",\"type\":\"kwdtlcj\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"l\",\"j\"],\"vectorStoreConnections\":[\"gcem\"],\"storageConnections\":[\"zdv\",\"ljubvfjyz\",\"f\"],\"threadStorageConnections\":[\"fnivlutggma\",\"cxauhvcgzxhklsqx\"],\"provisioningState\":\"Succeeded\"},\"id\":\"y\",\"name\":\"ktsrjyxxoxwfzbkv\",\"type\":\"cnxfxphs\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProjectCapabilityHost response = manager.projectCapabilityHosts() - .getWithResponse("njxm", "vsduydw", "wg", "uhhqldrdymnswxie", com.azure.core.util.Context.NONE) + .getWithResponse("qagkncjmybn", "evztnjawrhul", "mmqmbwppx", "rxbkitzmnhitax", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("qnghxnimvyujr", response.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("seqcazisvbrqgc", response.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("tbgblxbuibrvjzta", response.properties().storageConnections().get(0)); - Assertions.assertEquals("j", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("l", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("gcem", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("zdv", response.properties().storageConnections().get(0)); + Assertions.assertEquals("fnivlutggma", response.properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java index 89151497e9d0..3504e7268ff2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java @@ -22,7 +22,7 @@ public final class ProjectCapabilityHostsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"bgo\"],\"vectorStoreConnections\":[\"oymdvhhplk\",\"wwd\"],\"storageConnections\":[\"veqmgkc\",\"w\"],\"threadStorageConnections\":[\"xryearmhpwbuklvs\",\"fasgtlvhqpo\",\"losjaemcez\",\"vftmh\"],\"provisioningState\":\"Deleting\"},\"id\":\"kjyghztms\",\"name\":\"iwtp\",\"type\":\"flcezs\"}]}"; + = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"tihtgrafjajvkyxm\"],\"vectorStoreConnections\":[\"zvogtde\",\"j\"],\"storageConnections\":[\"mkvaeu\",\"qdwxhhlbmyphfxn\"],\"threadStorageConnections\":[\"hewokyqsfkxf\",\"ywbihqbtodjfyx\",\"vkvwzdmvddqw\"],\"provisioningState\":\"Failed\"},\"id\":\"yoz\",\"name\":\"za\",\"type\":\"njdvv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,13 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.projectCapabilityHosts().list("p", "cqzvzrbvgwxhlxr", "xvmdr", com.azure.core.util.Context.NONE); + = manager.projectCapabilityHosts().list("wbebsnbwutlv", "wm", "u", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bgo", response.iterator().next().properties().aiServicesConnections().get(0)); - Assertions.assertEquals("oymdvhhplk", response.iterator().next().properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("veqmgkc", response.iterator().next().properties().storageConnections().get(0)); - Assertions.assertEquals("xryearmhpwbuklvs", + Assertions.assertEquals("tihtgrafjajvkyxm", + response.iterator().next().properties().aiServicesConnections().get(0)); + Assertions.assertEquals("zvogtde", response.iterator().next().properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("mkvaeu", response.iterator().next().properties().storageConnections().get(0)); + Assertions.assertEquals("hewokyqsfkxf", response.iterator().next().properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java index 263a961db001..b2e636d09e41 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java @@ -10,6 +10,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; @@ -28,7 +29,7 @@ public final class ProjectConnectionsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"ODataRest\",\"createdByWorkspaceArmId\":\"fxl\",\"error\":\"mfj\",\"expiryTime\":\"2021-06-16T15:07:39Z\",\"group\":\"Database\",\"isSharedToAll\":true,\"metadata\":{\"xmkhmq\":\"fydrfbgcnyxb\",\"styygjq\":\"ncgaull\",\"fvvzucqfgufjnbx\":\"ulmwqgmhmqmiwx\",\"ekzouyvew\":\"bmwdukinhlxhgde\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"gldohgcandxfhh\",\"te\"],\"target\":\"dqtdnnc\",\"useWorkspaceManagedIdentity\":true},\"id\":\"jdshvv\",\"name\":\"k\",\"type\":\"xccyijjimhijzr\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"RemoteA2A\",\"createdByWorkspaceArmId\":\"fzgugrbl\",\"error\":\"l\",\"expiryTime\":\"2021-06-19T02:14:08Z\",\"group\":\"Database\",\"isSharedToAll\":true,\"metadata\":{\"sman\":\"otbptg\",\"ecvtamqwzmno\":\"xrwqfmd\",\"wpsibxovuqoq\":\"fe\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"yclwgycvtqn\",\"jc\"],\"target\":\"qzhembtbw\",\"useWorkspaceManagedIdentity\":false},\"id\":\"adpi\",\"name\":\"jdleajvmvvlooubs\",\"type\":\"xipjeopskgocjom\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,30 +39,32 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.projectConnections() - .define("m") - .withExistingProject("uogkscxjfsgm", "spoebnx", "qcowscuyfql") - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.AZURE_SYNAPSE_ANALYTICS) - .withError("ikxkca") - .withExpiryTime(OffsetDateTime.parse("2021-07-03T08:39:58Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("i", "goocqsazmzlpc")) - .withPeRequirement(ManagedPERequirement.REQUIRED) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("ic", "zfvwjdthkvpyeyoa")) - .withTarget("nmpnqu") - .withUseWorkspaceManagedIdentity(false)) - .create(); + .createWithResponse("nzxezriwgo", "wapcqksaaapxjhc", "tibenwsd", "pvdaahlfrcqklp", + new ConnectionPropertiesV2BasicResourceInner().withProperties(new ConnectionPropertiesV2() + .withCategory(ConnectionCategory.SALESFORCE_MARKETING_CLOUD) + .withError("l") + .withExpiryTime(OffsetDateTime.parse("2021-10-27T14:56:22Z")) + .withIsSharedToAll(true) + .withMetadata( + mapOf("cjjlwkyeahhhut", "e", "inowrerjpxp", "ulnrfcqufmcih", "lgbbfjmdgjvxlh", "chdwyqqidqi")) + .withPeRequirement(ManagedPERequirement.REQUIRED) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("yaphqeofytlsnlo")) + .withTarget("cmcqixuan") + .withUseWorkspaceManagedIdentity(true)), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(ConnectionCategory.ODATA_REST, response.properties().category()); - Assertions.assertEquals("mfj", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T15:07:39Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, response.properties().category()); + Assertions.assertEquals("l", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T02:14:08Z"), response.properties().expiryTime()); Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("fydrfbgcnyxb", response.properties().metadata().get("xmkhmq")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); - Assertions.assertEquals("gldohgcandxfhh", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("dqtdnnc", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("otbptg", response.properties().metadata().get("sman")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); + Assertions.assertEquals("yclwgycvtqn", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("qzhembtbw", response.properties().target()); + Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java index b2c16c444435..570e23e815d5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java @@ -28,8 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.projectConnections() - .deleteWithResponse("elnirupkqnst", "aqpibjg", "vswmehfxrtt", "bmsennqfabqcama", - com.azure.core.util.Context.NONE); + .deleteWithResponse("rusyzai", "npsjnpc", "plujyduonb", "awsaoplvvmnbkx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java index 3328e91d4997..0ae523cdacbe 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ProjectConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MicrosoftFabric\",\"createdByWorkspaceArmId\":\"kpaxnlsfg\",\"error\":\"scaccptbz\",\"expiryTime\":\"2021-08-09T03:44:47Z\",\"group\":\"GenericProtocol\",\"isSharedToAll\":false,\"metadata\":{\"pzzwahdrdvhaztk\":\"eecvjwyuveox\",\"mw\":\"bivzfgxmbry\",\"qsykq\":\"bios\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"xtfdag\",\"mrcokzzertkounz\",\"iywhubymfpop\"],\"target\":\"zebqnnfywtkqows\",\"useWorkspaceManagedIdentity\":false},\"id\":\"czygpmgfjcu\",\"name\":\"ojhhylxdevfiyy\",\"type\":\"otuzbybwjmtftc\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"BingLLMSearch\",\"createdByWorkspaceArmId\":\"ubak\",\"error\":\"kvggcmfns\",\"expiryTime\":\"2021-04-04T21:05:29Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":false,\"metadata\":{\"nqvxgvohd\":\"wewzlscgsme\",\"oevvu\":\"thhx\",\"annvwx\":\"eepfh\",\"bvrhh\":\"hpjhubohxvzga\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"wfmzvztau\",\"bpamq\"],\"target\":\"cssanybzzghv\",\"useWorkspaceManagedIdentity\":false},\"id\":\"myjsvcdhly\",\"name\":\"kh\",\"type\":\"okj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.projectConnections() - .getWithResponse("oyqxfvgyxz", "xynofxlttxoqxtd", "zujsjirkrp", "kcjhmmofbnivd", - com.azure.core.util.Context.NONE) + .getWithResponse("sykkbxktxbbwl", "nwzoknvu", "ddlggb", "a", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.MICROSOFT_FABRIC, response.properties().category()); - Assertions.assertEquals("scaccptbz", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T03:44:47Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.BING_LLMSEARCH, response.properties().category()); + Assertions.assertEquals("kvggcmfns", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-04T21:05:29Z"), response.properties().expiryTime()); Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("eecvjwyuveox", response.properties().metadata().get("pzzwahdrdvhaztk")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); - Assertions.assertEquals("xtfdag", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("zebqnnfywtkqows", response.properties().target()); + Assertions.assertEquals("wewzlscgsme", response.properties().metadata().get("nqvxgvohd")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); + Assertions.assertEquals("wfmzvztau", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("cssanybzzghv", response.properties().target()); Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java index 3570fa2dfdfa..bcb3de7869d3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java @@ -25,7 +25,7 @@ public final class ProjectConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"OpenAI\",\"createdByWorkspaceArmId\":\"zpcjcnwjzbqblxr\",\"error\":\"vdsvoqizawwsds\",\"expiryTime\":\"2021-11-02T21:00:21Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"wzrdqyoybm\":\"wooauffhxfqk\",\"to\":\"n\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"ov\",\"bhrpqphkv\"],\"target\":\"zadcrxyla\",\"useWorkspaceManagedIdentity\":true},\"id\":\"yzvelffo\",\"name\":\"uriwhjdfrw\",\"type\":\"sshrmnkcclpc\"}]}"; + = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureDatabricksDeltaLake\",\"createdByWorkspaceArmId\":\"wukokgoojj\",\"error\":\"ktubcmunhg\",\"expiryTime\":\"2021-10-05T16:13:21Z\",\"group\":\"Database\",\"isSharedToAll\":false,\"metadata\":{\"cnihkswxmfurqmw\":\"cuufkrfn\",\"t\":\"wwp\",\"mytzuaedrlh\":\"motahbqsvnk\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"hkvxz\"],\"target\":\"i\",\"useWorkspaceManagedIdentity\":true},\"id\":\"ftgpqoswgf\",\"name\":\"vjmghpakbqyhl\",\"type\":\"ornfbm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,20 +35,21 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.projectConnections() - .list("ectcxsfmbzdx", "synbkdn", "yufxuzmsvzyq", "brnxhjtlxfikj", "xaravwwuasnjeglh", false, + .list("arsbbdddwokqxail", "qk", "yqjvzvc", "rdspzesfkqqxu", "vzflbrous", false, com.azure.core.util.Context.NONE); - Assertions.assertEquals(ConnectionCategory.OPEN_AI, response.iterator().next().properties().category()); - Assertions.assertEquals("vdsvoqizawwsds", response.iterator().next().properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T21:00:21Z"), + Assertions.assertEquals(ConnectionCategory.AZURE_DATABRICKS_DELTA_LAKE, + response.iterator().next().properties().category()); + Assertions.assertEquals("ktubcmunhg", response.iterator().next().properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T16:13:21Z"), response.iterator().next().properties().expiryTime()); - Assertions.assertTrue(response.iterator().next().properties().isSharedToAll()); - Assertions.assertEquals("wooauffhxfqk", response.iterator().next().properties().metadata().get("wzrdqyoybm")); + Assertions.assertFalse(response.iterator().next().properties().isSharedToAll()); + Assertions.assertEquals("cuufkrfn", response.iterator().next().properties().metadata().get("cnihkswxmfurqmw")); Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.iterator().next().properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.iterator().next().properties().peStatus()); - Assertions.assertEquals("ov", response.iterator().next().properties().sharedUserList().get(0)); - Assertions.assertEquals("zadcrxyla", response.iterator().next().properties().target()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.iterator().next().properties().peStatus()); + Assertions.assertEquals("hkvxz", response.iterator().next().properties().sharedUserList().get(0)); + Assertions.assertEquals("i", response.iterator().next().properties().target()); Assertions.assertTrue(response.iterator().next().properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateWithResponseMockTests.java similarity index 55% rename from sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java rename to sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateWithResponseMockTests.java index 057a7956484f..7c7e1666f9f6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateWithResponseMockTests.java @@ -25,11 +25,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class AccountConnectionsUpdateWithResponseMockTests { +public final class ProjectConnectionsUpdateWithResponseMockTests { @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SapEcc\",\"createdByWorkspaceArmId\":\"pbyfyvynpmggq\",\"error\":\"g\",\"expiryTime\":\"2021-01-10T15:04:45Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"foizorbloejz\":\"cd\",\"kq\":\"axz\",\"p\":\"vde\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"kfrpmplubp\"],\"target\":\"rmj\",\"useWorkspaceManagedIdentity\":true},\"id\":\"ghtb\",\"name\":\"tpkimskhnkkhbykr\",\"type\":\"mhrcmelycpgoku\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"BingLLMSearch\",\"createdByWorkspaceArmId\":\"xzix\",\"error\":\"lxwmvcdkucpx\",\"expiryTime\":\"2021-06-12T02:15:20Z\",\"group\":\"GenericProtocol\",\"isSharedToAll\":true,\"metadata\":{\"jseml\":\"rogeuvmkrspnr\",\"ljpetexutikelpmw\":\"ofrsnq\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"dhvos\",\"jzscuezalivdf\"],\"target\":\"qj\",\"useWorkspaceManagedIdentity\":false},\"id\":\"f\",\"name\":\"rxggezkhzp\",\"type\":\"iqissene\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,33 +38,32 @@ public void testUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - ConnectionPropertiesV2BasicResource response - = manager.accountConnections() - .updateWithResponse("uvsqj", "rvjnqtaqgxqb", "kceincnrec", - new ConnectionUpdateContent().withProperties(new ConnectionPropertiesV2() - .withCategory(ConnectionCategory.SAP_OPEN_HUB) - .withError("smjsqsvzvmx") - .withExpiryTime(OffsetDateTime.parse("2021-06-04T09:32Z")) + ConnectionPropertiesV2BasicResource response = manager.projectConnections() + .updateWithResponse("upfazusj", "dhuslgdwz", "gdqyxajc", "grcavqc", + new ConnectionUpdateContent() + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.AZURE_MARIA_DB) + .withError("cwwsj") + .withExpiryTime(OffsetDateTime.parse("2021-06-17T04:47:14Z")) .withIsSharedToAll(true) - .withMetadata(mapOf("gvf", "vhgsulwvgseuf", "wuhyzekypy", "juzkilmc", "paxhpz", "vljlbzdlby")) - .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("bhanz")) - .withTarget("sfhshag") + .withMetadata(mapOf("sqxile", "tqqwwgf")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.ACTIVE) + .withSharedUserList(Arrays.asList("znequq", "nttwk", "hajksbsyogjmqjhg")) + .withTarget("dijnmcvjbs") .withUseWorkspaceManagedIdentity(true)), - com.azure.core.util.Context.NONE) - .getValue(); + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(ConnectionCategory.SAP_ECC, response.properties().category()); - Assertions.assertEquals("g", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T15:04:45Z"), response.properties().expiryTime()); - Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("cd", response.properties().metadata().get("foizorbloejz")); + Assertions.assertEquals(ConnectionCategory.BING_LLMSEARCH, response.properties().category()); + Assertions.assertEquals("lxwmvcdkucpx", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-12T02:15:20Z"), response.properties().expiryTime()); + Assertions.assertTrue(response.properties().isSharedToAll()); + Assertions.assertEquals("rogeuvmkrspnr", response.properties().metadata().get("jseml")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); - Assertions.assertEquals("kfrpmplubp", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("rmj", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); + Assertions.assertEquals("dhvos", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("qj", response.properties().target()); + Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectInnerTests.java index 52119e03f54f..b56b0c1ff513 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectInnerTests.java @@ -6,6 +6,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectInner; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; @@ -18,29 +19,39 @@ public final class ProjectInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"ccxlzhcoxovnek\",\"description\":\"nlusfnrd\",\"endpoints\":{\"ttgepuslvyjtcv\":\"txrdcqtjvi\",\"ughtuqfecjxeygtu\":\"wkasiziesf\",\"cbuewmrswnjlxuz\":\"xu\",\"aqehg\":\"hwpusxj\"},\"isDefault\":true},\"tags\":{\"nwfepbnwg\":\"jqatucoigebxn\",\"jgcgbjbgdlfgtdys\":\"m\",\"zjrwdkqze\":\"aquflqbctqha\"},\"location\":\"jleziunjx\",\"etag\":\"zantkwceg\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"nseqacjjvp\",\"principalId\":\"guooqjagmdit\",\"userAssignedIdentities\":{\"lmotoebnfxofvcj\":{\"principalId\":\"ookjbsahrtdtpde\",\"clientId\":\"ac\"},\"excmjurbuhhl\":{\"principalId\":\"dirazf\",\"clientId\":\"ejwabmdujtmvco\"},\"kffdjktsys\":{\"principalId\":\"ql\",\"clientId\":\"srogtu\"}}},\"id\":\"fvcl\",\"name\":\"lxnfuijtkbusqogs\",\"type\":\"ikayiansharuj\"}") + "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"hvtrrmhwrbfdpyf\",\"description\":\"bhvjglr\",\"endpoints\":{\"memhooclutnpq\":\"yzlwh\",\"jk\":\"emc\"},\"isDefault\":false,\"capabilitySettings\":{\"documentStore\":\"ujxsglhsr\",\"vectorStore\":\"yejylmbkzudnigrf\",\"blobStore\":\"otjewlpxuzzjgnre\"}},\"tags\":{\"oihiqak\":\"hqo\",\"brkwpzdqt\":\"diw\",\"aqa\":\"hcspo\",\"tgbebj\":\"sipi\"},\"location\":\"lbmoichd\",\"etag\":\"nfpubntnbatz\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"wsaae\",\"principalId\":\"attcju\",\"userAssignedIdentities\":{\"sfxsf\":{\"principalId\":\"vkmjcwmjvlgf\",\"clientId\":\"cvkyylizrzbj\"},\"eofiz\":{\"principalId\":\"tl\",\"clientId\":\"mvagbwidqlvhuko\"}}},\"id\":\"jfnmjmvlwyz\",\"name\":\"iblkujr\",\"type\":\"lfojuidjp\"}") .toObject(ProjectInner.class); - Assertions.assertEquals("ccxlzhcoxovnek", model.properties().displayName()); - Assertions.assertEquals("nlusfnrd", model.properties().description()); - Assertions.assertEquals("jqatucoigebxn", model.tags().get("nwfepbnwg")); - Assertions.assertEquals("jleziunjx", model.location()); + Assertions.assertEquals("hvtrrmhwrbfdpyf", model.properties().displayName()); + Assertions.assertEquals("bhvjglr", model.properties().description()); + Assertions.assertEquals("ujxsglhsr", model.properties().capabilitySettings().documentStore()); + Assertions.assertEquals("yejylmbkzudnigrf", model.properties().capabilitySettings().vectorStore()); + Assertions.assertEquals("otjewlpxuzzjgnre", model.properties().capabilitySettings().blobStore()); + Assertions.assertEquals("hqo", model.tags().get("oihiqak")); + Assertions.assertEquals("lbmoichd", model.location()); Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectInner model = new ProjectInner() - .withProperties(new ProjectProperties().withDisplayName("ccxlzhcoxovnek").withDescription("nlusfnrd")) - .withTags(mapOf("nwfepbnwg", "jqatucoigebxn", "jgcgbjbgdlfgtdys", "m", "zjrwdkqze", "aquflqbctqha")) - .withLocation("jleziunjx") + .withProperties(new ProjectProperties().withDisplayName("hvtrrmhwrbfdpyf") + .withDescription("bhvjglr") + .withCapabilitySettings(new CapabilitySettings().withDocumentStore("ujxsglhsr") + .withVectorStore("yejylmbkzudnigrf") + .withBlobStore("otjewlpxuzzjgnre"))) + .withTags(mapOf("oihiqak", "hqo", "brkwpzdqt", "diw", "aqa", "hcspo", "tgbebj", "sipi")) + .withLocation("lbmoichd") .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("lmotoebnfxofvcj", new UserAssignedIdentity(), "excmjurbuhhl", - new UserAssignedIdentity(), "kffdjktsys", new UserAssignedIdentity()))); + .withUserAssignedIdentities( + mapOf("sfxsf", new UserAssignedIdentity(), "eofiz", new UserAssignedIdentity()))); model = BinaryData.fromObject(model).toObject(ProjectInner.class); - Assertions.assertEquals("ccxlzhcoxovnek", model.properties().displayName()); - Assertions.assertEquals("nlusfnrd", model.properties().description()); - Assertions.assertEquals("jqatucoigebxn", model.tags().get("nwfepbnwg")); - Assertions.assertEquals("jleziunjx", model.location()); + Assertions.assertEquals("hvtrrmhwrbfdpyf", model.properties().displayName()); + Assertions.assertEquals("bhvjglr", model.properties().description()); + Assertions.assertEquals("ujxsglhsr", model.properties().capabilitySettings().documentStore()); + Assertions.assertEquals("yejylmbkzudnigrf", model.properties().capabilitySettings().vectorStore()); + Assertions.assertEquals("otjewlpxuzzjgnre", model.properties().capabilitySettings().blobStore()); + Assertions.assertEquals("hqo", model.tags().get("oihiqak")); + Assertions.assertEquals("lbmoichd", model.location()); Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java index 90021f548d25..ab643f0595bd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java @@ -12,8 +12,8 @@ public final class ProjectListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectListResult model = BinaryData.fromString( - "{\"nextLink\":\"lyetndnbfqygg\",\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"mtrwah\",\"description\":\"mu\",\"endpoints\":{\"fusuckzmkwklsno\":\"byrplrohkpig\"},\"isDefault\":false},\"tags\":{\"alhhjnhgwydyynfs\":\"e\"},\"location\":\"hgbvqtan\",\"etag\":\"fdlpukhpyr\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"cpeogkhnmgbrou\",\"principalId\":\"dbhfhp\",\"userAssignedIdentities\":{\"tehtuevrhrljyoog\":{\"principalId\":\"jzoywjxhp\",\"clientId\":\"lontacnpq\"},\"htkln\":{\"principalId\":\"hnsduugwbsreur\",\"clientId\":\"kfuarenlv\"}}},\"id\":\"afvvk\",\"name\":\"f\",\"type\":\"devjb\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"xypokkhmi\",\"description\":\"cymczngn\",\"endpoints\":{\"wuninv\":\"x\",\"h\":\"db\"},\"isDefault\":false},\"tags\":{\"tddmf\":\"qecrqctmxx\",\"pxbannovvoxc\":\"huytxzvtzn\"},\"location\":\"tprwnw\",\"etag\":\"oevytlyokr\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"xv\",\"principalId\":\"asbcrymodizrx\",\"userAssignedIdentities\":{\"vfxzopjh\":{\"principalId\":\"d\",\"clientId\":\"azpmkmlmv\"},\"bnzqcyknapq\":{\"principalId\":\"xliohrdddt\",\"clientId\":\"xqbawpc\"},\"fmuvapckccr\":{\"principalId\":\"yuicdhzbdy\",\"clientId\":\"wgbdvibidmhmwffp\"},\"haim\":{\"principalId\":\"weyoxoy\",\"clientId\":\"k\"}}},\"id\":\"iroqbosh\",\"name\":\"ragapyyrmfsvbp\",\"type\":\"vbopfppdbwnu\"}]}") + "{\"nextLink\":\"awjmjsmw\",\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"zzzwy\",\"description\":\"fitlhguynuchl\",\"endpoints\":{\"hmoz\":\"txd\",\"ns\":\"sgzv\",\"fpafolpymwamxq\":\"nj\"},\"isDefault\":false,\"capabilitySettings\":{\"documentStore\":\"gdphtvdula\",\"vectorStore\":\"lejchcsr\",\"blobStore\":\"knmzlanrupdwvnp\"}},\"tags\":{\"hvthlaiwdcxsm\":\"zqtpjhmq\",\"txetlgydl\":\"zzhz\",\"rbgjekglkl\":\"qvlnnpxybafiqgea\",\"eg\":\"yulidwcwvm\"},\"location\":\"nfhjirwgdnqzbr\",\"etag\":\"spzhzmtksjc\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"sxcdgljplkeuach\",\"principalId\":\"mflrytswfpfmdgyc\",\"userAssignedIdentities\":{\"wqslsrhmpqvw\":{\"principalId\":\"kwhqj\",\"clientId\":\"slurlpshhkvpe\"},\"a\":{\"principalId\":\"kondcb\",\"clientId\":\"imuvqejosovyrrl\"},\"bbmpxdlvykfre\":{\"principalId\":\"inuqtljq\",\"clientId\":\"bpihehcecybmrqbr\"}}},\"id\":\"rseqwjksghudgz\",\"name\":\"xog\",\"type\":\"ggsvoujkxibdaf\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"yomkxfbvfbhdy\",\"description\":\"hpwpgddeimawzovg\",\"endpoints\":{\"sqowxwc\":\"muikjcjcaztbws\"},\"isDefault\":true,\"capabilitySettings\":{\"documentStore\":\"ytwvczcswkacve\",\"vectorStore\":\"fdv\",\"blobStore\":\"hbwrnfxtgddpqth\"}},\"tags\":{\"nkcoeqswankltyt\":\"mnaoy\"},\"location\":\"droznn\",\"etag\":\"rlktgjcsggu\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"wyw\",\"principalId\":\"eczgfb\",\"userAssignedIdentities\":{\"jcdoewb\":{\"principalId\":\"elssxblycs\",\"clientId\":\"ujksrlsmdesqplpv\"},\"paxwkufyk\":{\"principalId\":\"yvteowxvgpiudeu\",\"clientId\":\"sxze\"}}},\"id\":\"uhxep\",\"name\":\"rutznabaobnsluj\",\"type\":\"jltymkmvguihy\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"displayName\":\"pphkixkykxds\",\"description\":\"pemmucfxhik\",\"endpoints\":{\"s\":\"rmymyincqlhr\",\"iiiovgqcgxuugq\":\"sl\",\"e\":\"ctotiowlx\",\"wphqlkccuzgygqw\":\"dptjgwdtgukranb\"},\"isDefault\":true,\"capabilitySettings\":{\"documentStore\":\"lwgniiprglvawu\",\"vectorStore\":\"d\",\"blobStore\":\"ypivlsbb\"}},\"tags\":{\"oxxkubvp\":\"cubkmi\"},\"location\":\"v\",\"etag\":\"h\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"vgovpbbttefjokn\",\"principalId\":\"qyzqedikdfrdb\",\"userAssignedIdentities\":{\"vljvrc\":{\"principalId\":\"jgeihfqlggwfi\",\"clientId\":\"cxmjpbyephmg\"},\"myqwcab\":{\"principalId\":\"fqip\",\"clientId\":\"hnp\"},\"swlpaugmrmfj\":{\"principalId\":\"ui\",\"clientId\":\"ey\"},\"jwuive\":{\"principalId\":\"xwtoaukhfkvc\",\"clientId\":\"izmoaeds\"}}},\"id\":\"cgyee\",\"name\":\"xeiqbpsmg\",\"type\":\"mguaml\"}]}") .toObject(ProjectListResult.class); - Assertions.assertEquals("lyetndnbfqygg", model.nextLink()); + Assertions.assertEquals("awjmjsmw", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectPropertiesTests.java index d0d3b51ecc3f..25f427c6b27d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectPropertiesTests.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.cognitiveservices.generated; import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; import org.junit.jupiter.api.Assertions; @@ -12,17 +13,27 @@ public final class ProjectPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Creating\",\"displayName\":\"xfz\",\"description\":\"qttv\",\"endpoints\":{\"qekewvnqvcd\":\"qhjpenuygbqe\",\"punj\":\"guaucmfdjwnla\",\"sserxhtvsoxhlwn\":\"ikczvvitacgxmf\",\"uuuybnchrsziz\":\"sjgqrsxyp\"},\"isDefault\":true}") + "{\"provisioningState\":\"Failed\",\"displayName\":\"ucejikzoeovvtz\",\"description\":\"et\",\"endpoints\":{\"k\":\"nt\"},\"isDefault\":false,\"capabilitySettings\":{\"documentStore\":\"dbqzolxrzvhqjw\",\"vectorStore\":\"htgv\",\"blobStore\":\"pcrrk\"}}") .toObject(ProjectProperties.class); - Assertions.assertEquals("xfz", model.displayName()); - Assertions.assertEquals("qttv", model.description()); + Assertions.assertEquals("ucejikzoeovvtz", model.displayName()); + Assertions.assertEquals("et", model.description()); + Assertions.assertEquals("dbqzolxrzvhqjw", model.capabilitySettings().documentStore()); + Assertions.assertEquals("htgv", model.capabilitySettings().vectorStore()); + Assertions.assertEquals("pcrrk", model.capabilitySettings().blobStore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectProperties model = new ProjectProperties().withDisplayName("xfz").withDescription("qttv"); + ProjectProperties model = new ProjectProperties().withDisplayName("ucejikzoeovvtz") + .withDescription("et") + .withCapabilitySettings(new CapabilitySettings().withDocumentStore("dbqzolxrzvhqjw") + .withVectorStore("htgv") + .withBlobStore("pcrrk")); model = BinaryData.fromObject(model).toObject(ProjectProperties.class); - Assertions.assertEquals("xfz", model.displayName()); - Assertions.assertEquals("qttv", model.description()); + Assertions.assertEquals("ucejikzoeovvtz", model.displayName()); + Assertions.assertEquals("et", model.description()); + Assertions.assertEquals("dbqzolxrzvhqjw", model.capabilitySettings().documentStore()); + Assertions.assertEquals("htgv", model.capabilitySettings().vectorStore()); + Assertions.assertEquals("pcrrk", model.capabilitySettings().blobStore()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateMockTests.java index 744aef9ee065..e16450c19da6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateMockTests.java @@ -10,6 +10,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.CapabilitySettings; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.Project; import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; @@ -27,7 +28,7 @@ public final class ProjectsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"agjhxerxlobkdbtq\",\"description\":\"mmniiqyholhjnskb\",\"endpoints\":{\"blxk\":\"cnqwlctmw\"},\"isDefault\":true},\"tags\":{\"sp\":\"xrktjcjigcw\",\"sevchefpg\":\"nbqx\",\"mmrimaabsq\":\"edyybruholaemwcg\",\"smihrijezbfsjwfc\":\"lonbzaowcahdkmb\"},\"location\":\"lkvbgukbsv\",\"etag\":\"yotygnb\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"clxaxw\",\"principalId\":\"faspsdzkucszghd\",\"userAssignedIdentities\":{\"u\":{\"principalId\":\"pmnxclfr\",\"clientId\":\"zrn\"}}},\"id\":\"vp\",\"name\":\"ofddtbfmek\",\"type\":\"cnginxdvm\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"dvucfvvra\",\"description\":\"eurdeewlsuxp\",\"endpoints\":{\"fmfta\":\"kdwjyjiznioro\",\"trnighm\":\"pmcreihu\",\"gwfmsxjwdylwxm\":\"nuwqxungro\",\"ugeerclbltbhpwac\":\"zjow\"},\"isDefault\":true,\"capabilitySettings\":{\"documentStore\":\"jwmvwryvdi\",\"vectorStore\":\"ii\",\"blobStore\":\"pruccwme\"}},\"tags\":{\"jywiwhvyc\":\"xsytrtexegwmr\",\"uriarsbcl\":\"jncindiloqkajw\",\"knjxizbaxdy\":\"anhz\",\"xfexwacy\":\"zkz\"},\"location\":\"mlxppdndzkfevuii\",\"etag\":\"ibfkcjytq\",\"identity\":{\"type\":\"None\",\"tenantId\":\"qqfopvno\",\"principalId\":\"otdsfhoxq\",\"userAssignedIdentities\":{\"gbqkvhyejthgeecb\":{\"principalId\":\"zyfbkmvldzmxojz\",\"clientId\":\"ma\"},\"npu\":{\"principalId\":\"rgwlc\",\"clientId\":\"hbamyqsok\"}}},\"id\":\"jwdizcrjixiujz\",\"name\":\"c\",\"type\":\"exgkrsw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,22 +37,31 @@ public void testCreate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - Project response = manager.projects() - .define("bjepzwhj") - .withExistingAccount("yawkch", "apitskshfyftt") - .withRegion("tcxmmqm") - .withTags(mapOf("pzupzwwy", "s", "mxpqkjnpyriwn", "bdjzghximkg")) - .withProperties(new ProjectProperties().withDisplayName("bggcj").withDescription("hblivwehsudym")) - .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("acan", new UserAssignedIdentity(), "nydscdkx", - new UserAssignedIdentity(), "fixoskk", new UserAssignedIdentity()))) - .create(); + Project response + = manager.projects() + .define("qukr") + .withExistingAccount("ruptsyqcjnq", "wxdowum") + .withRegion("ufytdxmly") + .withTags(mapOf("cmyhrhjvszfqb", "zvbwfcnjhbpoelh", "pqwojoev", "kndwp")) + .withProperties(new ProjectProperties().withDisplayName("clqddnhfknebw") + .withDescription("dpnyzcwyjsmkaql") + .withCapabilitySettings(new CapabilitySettings().withDocumentStore("pa") + .withVectorStore("edbfo") + .withBlobStore("czvothmkh"))) + .withIdentity( + new Identity().withType(ResourceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("tevrntfknwac", new UserAssignedIdentity(), "qwcublehhk", + new UserAssignedIdentity()))) + .create(); - Assertions.assertEquals("agjhxerxlobkdbtq", response.properties().displayName()); - Assertions.assertEquals("mmniiqyholhjnskb", response.properties().description()); - Assertions.assertEquals("xrktjcjigcw", response.tags().get("sp")); - Assertions.assertEquals("lkvbgukbsv", response.location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("dvucfvvra", response.properties().displayName()); + Assertions.assertEquals("eurdeewlsuxp", response.properties().description()); + Assertions.assertEquals("jwmvwryvdi", response.properties().capabilitySettings().documentStore()); + Assertions.assertEquals("ii", response.properties().capabilitySettings().vectorStore()); + Assertions.assertEquals("pruccwme", response.properties().capabilitySettings().blobStore()); + Assertions.assertEquals("xsytrtexegwmr", response.tags().get("jywiwhvyc")); + Assertions.assertEquals("mlxppdndzkfevuii", response.location()); + Assertions.assertEquals(ResourceIdentityType.NONE, response.identity().type()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteMockTests.java index f6ec6eaf1455..16228b650bee 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.projects().delete("ka", "bpyhssrlvkpkp", "ocm", com.azure.core.util.Context.NONE); + manager.projects().delete("zrqnjxm", "vsduydw", "wg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java index 0bad3eef40cb..e69cdf9d7df9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ProjectsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"eywetkrhlolmcn\",\"description\":\"pfgsvbbvaqdljnp\",\"endpoints\":{\"huekdxljzvdovb\":\"rnrdetawevx\"},\"isDefault\":false},\"tags\":{\"c\":\"lprdaqccddcbnygd\",\"zlrz\":\"xwbpwyykdig\"},\"location\":\"asd\",\"etag\":\"dmjqmvy\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"larh\",\"principalId\":\"wvcaz\",\"userAssignedIdentities\":{\"lgf\":{\"principalId\":\"dzffzjwztsmpchg\",\"clientId\":\"y\"}}},\"id\":\"tig\",\"name\":\"gfrrkdknczgoryw\",\"type\":\"vojtvmdevdlhqv\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ic\",\"description\":\"f\",\"endpoints\":{\"nqupdkjrzfw\":\"dthkvpyeyoafinm\"},\"isDefault\":true,\"capabilitySettings\":{\"documentStore\":\"bdx\",\"vectorStore\":\"qdcclcv\",\"blobStore\":\"rupaylcvwbzmf\"}},\"tags\":{\"iywqnpfydrfbgcny\":\"ymfjxl\"},\"location\":\"yxmkhmqyncgaul\",\"etag\":\"styygjq\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"qg\",\"principalId\":\"mqmiwxzfvvzu\",\"userAssignedIdentities\":{\"dekekzouyveww\":{\"principalId\":\"ufjnbxwb\",\"clientId\":\"dukinhlxh\"},\"te\":{\"principalId\":\"rd\",\"clientId\":\"gldohgcandxfhh\"}}},\"id\":\"dqtdnnc\",\"name\":\"kpljdshvvfkdxc\",\"type\":\"yijjimhi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Project response = manager.projects() - .getWithResponse("nomwnwnghojovke", "ymicjixx", "sfpcrtnuguefxxij", com.azure.core.util.Context.NONE) + .getWithResponse("svgoocq", "azmzlpcx", "tm", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("eywetkrhlolmcn", response.properties().displayName()); - Assertions.assertEquals("pfgsvbbvaqdljnp", response.properties().description()); - Assertions.assertEquals("lprdaqccddcbnygd", response.tags().get("c")); - Assertions.assertEquals("asd", response.location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("ic", response.properties().displayName()); + Assertions.assertEquals("f", response.properties().description()); + Assertions.assertEquals("bdx", response.properties().capabilitySettings().documentStore()); + Assertions.assertEquals("qdcclcv", response.properties().capabilitySettings().vectorStore()); + Assertions.assertEquals("rupaylcvwbzmf", response.properties().capabilitySettings().blobStore()); + Assertions.assertEquals("ymfjxl", response.tags().get("iywqnpfydrfbgcny")); + Assertions.assertEquals("yxmkhmqyncgaul", response.location()); + Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, response.identity().type()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java index 78bc10c72697..ab860db42682 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java @@ -23,7 +23,7 @@ public final class ProjectsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"k\",\"description\":\"yddt\",\"endpoints\":{\"gkord\":\"udvafnbfbqvenqnx\"},\"isDefault\":false},\"tags\":{\"prldidwm\":\"ecwzvcmbpwdluda\",\"gwn\":\"ffbvtzldzchub\"},\"location\":\"uvigv\",\"etag\":\"hfrbzakpjt\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"pojpsucmximcw\",\"principalId\":\"ynqjgsat\",\"userAssignedIdentities\":{\"xhirc\":{\"principalId\":\"cb\",\"clientId\":\"gcru\"},\"znad\":{\"principalId\":\"cvsvk\",\"clientId\":\"bjolpyoklkv\"},\"owxxbh\":{\"principalId\":\"ml\",\"clientId\":\"oi\"},\"sikawanvmwd\":{\"principalId\":\"syio\",\"clientId\":\"mqwtqszzgy\"}}},\"id\":\"jqcrbk\",\"name\":\"mpnbnfgyweoj\",\"type\":\"epgcmahiwf\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"unnqgypuqtnylqu\",\"description\":\"qmvyumgmmuebsnzn\",\"endpoints\":{\"azisvbr\":\"qufmjxcyoseq\",\"on\":\"gcyjpgawepk\",\"brvjztaflv\":\"zpghlrdtbgblxbu\",\"jcq\":\"mfjihv\"},\"isDefault\":false,\"capabilitySettings\":{\"documentStore\":\"uqmmfjewfeqbavdo\",\"vectorStore\":\"wy\",\"blobStore\":\"fm\"}},\"tags\":{\"kwdtlcj\":\"vxgwz\",\"cqzvzrbvgwxhlxr\":\"p\"},\"location\":\"v\",\"etag\":\"rwynb\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"oymdvhhplk\",\"principalId\":\"wd\",\"userAssignedIdentities\":{\"fasgtlvhqpo\":{\"principalId\":\"eqmgkcswz\",\"clientId\":\"xryearmhpwbuklvs\"},\"hllpokjyghzt\":{\"principalId\":\"osjaemc\",\"clientId\":\"evft\"}}},\"id\":\"miwtpcflcez\",\"name\":\"wwvwiftdjtv\",\"type\":\"fpf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,16 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.projects().list("ccebxxopyicyvspe", "lhwyykgvrccpumd", com.azure.core.util.Context.NONE); + = manager.projects().list("uhhqldrdymnswxie", "qwqnghxnimvy", com.azure.core.util.Context.NONE); - Assertions.assertEquals("k", response.iterator().next().properties().displayName()); - Assertions.assertEquals("yddt", response.iterator().next().properties().description()); - Assertions.assertEquals("ecwzvcmbpwdluda", response.iterator().next().tags().get("prldidwm")); - Assertions.assertEquals("uvigv", response.iterator().next().location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - response.iterator().next().identity().type()); + Assertions.assertEquals("unnqgypuqtnylqu", response.iterator().next().properties().displayName()); + Assertions.assertEquals("qmvyumgmmuebsnzn", response.iterator().next().properties().description()); + Assertions.assertEquals("uqmmfjewfeqbavdo", + response.iterator().next().properties().capabilitySettings().documentStore()); + Assertions.assertEquals("wy", response.iterator().next().properties().capabilitySettings().vectorStore()); + Assertions.assertEquals("fm", response.iterator().next().properties().capabilitySettings().blobStore()); + Assertions.assertEquals("vxgwz", response.iterator().next().tags().get("kwdtlcj")); + Assertions.assertEquals("v", response.iterator().next().location()); + Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java index 45180b4628eb..f1444b8341d2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java @@ -13,25 +13,24 @@ public final class ProvisioningIssuePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProvisioningIssueProperties model = BinaryData.fromString( - "{\"issueType\":\"ujeickp\",\"severity\":\"cpopmxel\",\"description\":\"clt\",\"suggestedResourceIds\":[\"dexxmlfmkqscazua\",\"xtzx\",\"uamwabzxrvxc\"],\"suggestedAccessRules\":[{\"name\":\"phai\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"flv\",\"sgzwywakoihknsm\",\"blmljh\",\"nymzotqyr\"],\"subscriptions\":[{\"id\":\"bmqqvxmvw\"},{\"id\":\"tayx\"},{\"id\":\"supe\"}],\"networkSecurityPerimeters\":[{\"id\":\"qnhcvsqltnzoibg\",\"perimeterGuid\":\"gnxf\",\"location\":\"onmpqoxwdof\"},{\"id\":\"xiqxeiiqbimh\",\"perimeterGuid\":\"wwinhehf\",\"location\":\"ofvwbcb\"}],\"fullyQualifiedDomainNames\":[\"b\",\"kbwvqvxkdiv\"]}},{\"name\":\"heb\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"uwfmduragegizvc\",\"felisdjub\"],\"subscriptions\":[{\"id\":\"igkxkbsazga\"},{\"id\":\"acy\"}],\"networkSecurityPerimeters\":[{\"id\":\"dmspof\",\"perimeterGuid\":\"vuhrylni\",\"location\":\"rz\"}],\"fullyQualifiedDomainNames\":[\"jed\",\"st\",\"vnlvxbcuiiznktwf\"]}},{\"name\":\"snvpdibmi\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"bkiw\"],\"subscriptions\":[{\"id\":\"yophz\"},{\"id\":\"l\"},{\"id\":\"crpfbcunez\"}],\"networkSecurityPerimeters\":[{\"id\":\"elfwy\",\"perimeterGuid\":\"lwxjwetn\",\"location\":\"ihclafzv\"}],\"fullyQualifiedDomainNames\":[\"pt\"]}}]}") + "{\"issueType\":\"hpzvuqdflvoniyp\",\"severity\":\"ubcpzgpxti\",\"description\":\"j\",\"suggestedResourceIds\":[\"dibgqjxgpnrhgov\",\"gpikqmh\",\"ao\"],\"suggestedAccessRules\":[{\"name\":\"zvuporqzdfuydz\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"nq\",\"xqpswok\",\"vkhlggdhbemz\"],\"subscriptions\":[{\"id\":\"zu\"},{\"id\":\"wtglxx\"},{\"id\":\"jfpgpicrmn\"}],\"networkSecurityPerimeters\":[{\"id\":\"mqgjsxvpq\",\"perimeterGuid\":\"frmbodthsqq\",\"location\":\"riibakclacj\"},{\"id\":\"nxo\",\"perimeterGuid\":\"xauzlwvsgmwohqfz\",\"location\":\"vux\"}],\"fullyQualifiedDomainNames\":[\"jsvthnwpzteko\",\"mribiat\",\"gplucfotangcfhny\",\"zcugswvxwlmzqw\"]}},{\"name\":\"tx\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"uqudtcvclxyn\",\"dkvgfabuiyjibuzp\",\"dugneiknp\"],\"subscriptions\":[{\"id\":\"jiuqhibtozi\"},{\"id\":\"wjedmurrxxgew\"}],\"networkSecurityPerimeters\":[{\"id\":\"qylkmqpzoyhlf\",\"perimeterGuid\":\"gwgcl\",\"location\":\"oebqinjipn\"},{\"id\":\"fujqlafcba\",\"perimeterGuid\":\"pzpofoiyjw\",\"location\":\"ilkmk\"},{\"id\":\"olvdnd\",\"perimeterGuid\":\"auo\",\"location\":\"huartv\"},{\"id\":\"ukyefchnmnahmnxh\",\"perimeterGuid\":\"jqirwrw\",\"location\":\"oxffif\"}],\"fullyQualifiedDomainNames\":[\"rsnewmozqvbubqma\",\"hsycxhxzgaz\",\"taboidvmf\",\"hppubowsepdfgkmt\"]}}]}") .toObject(ProvisioningIssueProperties.class); - Assertions.assertEquals("ujeickp", model.issueType()); - Assertions.assertEquals("cpopmxel", model.severity()); - Assertions.assertEquals("clt", model.description()); - Assertions.assertEquals("dexxmlfmkqscazua", model.suggestedResourceIds().get(0)); - Assertions.assertEquals("phai", model.suggestedAccessRules().get(0).name()); + Assertions.assertEquals("hpzvuqdflvoniyp", model.issueType()); + Assertions.assertEquals("ubcpzgpxti", model.severity()); + Assertions.assertEquals("j", model.description()); + Assertions.assertEquals("dibgqjxgpnrhgov", model.suggestedResourceIds().get(0)); + Assertions.assertEquals("zvuporqzdfuydz", model.suggestedAccessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.suggestedAccessRules().get(0).properties().direction()); - Assertions.assertEquals("flv", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("bmqqvxmvw", - model.suggestedAccessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("qnhcvsqltnzoibg", + Assertions.assertEquals("nq", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("zu", model.suggestedAccessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("mqgjsxvpq", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("gnxf", + Assertions.assertEquals("frmbodthsqq", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("onmpqoxwdof", + Assertions.assertEquals("riibakclacj", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("b", + Assertions.assertEquals("jsvthnwpzteko", model.suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java index f37d45602ba8..e0d956a17384 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java @@ -13,19 +13,19 @@ public final class ProvisioningIssueTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProvisioningIssue model = BinaryData.fromString( - "{\"name\":\"vcwwyyurmochppr\",\"properties\":{\"issueType\":\"nmokayzejnhlbk\",\"severity\":\"z\",\"description\":\"piljhahzvech\",\"suggestedResourceIds\":[\"nwieholewjw\",\"uubw\",\"fqsfa\"],\"suggestedAccessRules\":[{\"name\":\"ferr\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"mfxapjwogqqno\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"btqwpwyawbzas\",\"bucljgkyexaogu\",\"aipidsdaultxi\",\"jumfqwazlnq\"]}},{\"name\":\"cjngzqdqxtbjwgny\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"vtuikzhajq\",\"lcfhmlrqryxy\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"sovwxznptgoeiyb\"]}},{\"name\":\"bp\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"kvntjlrigjkskyri\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"xwaabzmifrygznmm\",\"xrizkzobgop\"]}},{\"name\":\"hsln\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"xynl\",\"xecwcro\",\"phslhcawjutifdw\",\"mvi\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"tzh\",\"aglkafhon\"]}}]}}") + "{\"name\":\"czytqjtwhauunfpr\",\"properties\":{\"issueType\":\"etlxsm\",\"severity\":\"ddoui\",\"description\":\"mowaziynknlqwzdv\",\"suggestedResourceIds\":[\"hxqszdtmaajquh\"],\"suggestedAccessRules\":[{\"name\":\"rjvmtygjbmzyosp\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"fkyjpmspbpssdfpp\",\"ogtieyujtvczkcny\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"d\",\"vg\",\"nkvxlxpaglqi\",\"bgkc\"]}}]}}") .toObject(ProvisioningIssue.class); - Assertions.assertEquals("vcwwyyurmochppr", model.name()); - Assertions.assertEquals("nmokayzejnhlbk", model.properties().issueType()); - Assertions.assertEquals("z", model.properties().severity()); - Assertions.assertEquals("piljhahzvech", model.properties().description()); - Assertions.assertEquals("nwieholewjw", model.properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("ferr", model.properties().suggestedAccessRules().get(0).name()); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + Assertions.assertEquals("czytqjtwhauunfpr", model.name()); + Assertions.assertEquals("etlxsm", model.properties().issueType()); + Assertions.assertEquals("ddoui", model.properties().severity()); + Assertions.assertEquals("mowaziynknlqwzdv", model.properties().description()); + Assertions.assertEquals("hxqszdtmaajquh", model.properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("rjvmtygjbmzyosp", model.properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().suggestedAccessRules().get(0).properties().direction()); - Assertions.assertEquals("mfxapjwogqqno", + Assertions.assertEquals("fkyjpmspbpssdfpp", model.properties().suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("btqwpwyawbzas", + Assertions.assertEquals("d", model.properties().suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierInnerTests.java index f50903a0621c..388588f37691 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierInnerTests.java @@ -14,16 +14,16 @@ public final class QuotaTierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierInner model = BinaryData.fromString( - "{\"properties\":{\"currentTierName\":\"scbbxig\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-08-22T00:00:42Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"opedbwdpyqyybxub\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-02-01T03:34:42Z\",\"upgradeUnavailabilityReason\":\"bqwremjela\"}},\"id\":\"cigeleohdbvqvw\",\"name\":\"kjopwbeon\",\"type\":\"lkwzdqybxceakxcp\"}") + "{\"properties\":{\"currentTierName\":\"qxuwyvca\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-06-20T08:40:01Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"s\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-10-19T07:33:38Z\",\"upgradeUnavailabilityReason\":\"zlbscmnlziji\"}},\"id\":\"ehgmvflnwyv\",\"name\":\"kxrerlniylylyfwx\",\"type\":\"utgqztwh\"}") .toObject(QuotaTierInner.class); - Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, model.properties().tierUpgradePolicy()); + Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, model.properties().tierUpgradePolicy()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - QuotaTierInner model = new QuotaTierInner() - .withProperties(new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.NO_AUTO_UPGRADE)); + QuotaTierInner model = new QuotaTierInner().withProperties( + new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE)); model = BinaryData.fromObject(model).toObject(QuotaTierInner.class); - Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, model.properties().tierUpgradePolicy()); + Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, model.properties().tierUpgradePolicy()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java index 8e6cb3cf7ab9..eaeb5a1158b6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java @@ -12,8 +12,8 @@ public final class QuotaTierListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierListResult model = BinaryData.fromString( - "{\"nextLink\":\"pli\",\"value\":[{\"properties\":{\"currentTierName\":\"oyxqvapcohhou\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-03-07T19:11:16Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"cxzrzdcgdzben\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-03-01T15:01:40Z\",\"upgradeUnavailabilityReason\":\"etzqd\"}},\"id\":\"jwfljhznamtua\",\"name\":\"mzwcjjncqt\",\"type\":\"z\"},{\"properties\":{\"currentTierName\":\"vgbgatzuuvbxng\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-04-05T17:37:26Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"httzlswvajqfutlx\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-12-02T18:43:19Z\",\"upgradeUnavailabilityReason\":\"unwqr\"}},\"id\":\"frgqhaohcm\",\"name\":\"uocnjrohmbpyr\",\"type\":\"xameblydyvkfkm\"},{\"properties\":{\"currentTierName\":\"xne\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-07-26T11:57:58Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"lfpya\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-03-16T02:53:36Z\",\"upgradeUnavailabilityReason\":\"oavyun\"}},\"id\":\"xlghieegj\",\"name\":\"gvvpasek\",\"type\":\"gbuxantuygdh\"},{\"properties\":{\"currentTierName\":\"i\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-12-09T06:35:55Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"qofu\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-06-19T10:30:26Z\",\"upgradeUnavailabilityReason\":\"lexwhcbjp\"}},\"id\":\"k\",\"name\":\"phuuuerctato\",\"type\":\"intqpbrlcyr\"}]}") + "{\"nextLink\":\"bemeluclvd\",\"value\":[{\"properties\":{\"currentTierName\":\"rdnqodxahhxhqf\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-09-08T05:38:07Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"gyipem\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-02-09T00:26:50Z\",\"upgradeUnavailabilityReason\":\"czuejdtxptl\"}},\"id\":\"wzhomewjjstl\",\"name\":\"uhqawmoaianc\",\"type\":\"nvodrrs\"},{\"properties\":{\"currentTierName\":\"xydkxrx\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-10-16T10:45:11Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"g\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-12-10T21:52:21Z\",\"upgradeUnavailabilityReason\":\"qkhychocok\"}},\"id\":\"ehurqlr\",\"name\":\"ffaweyur\",\"type\":\"phyjdxravj\"},{\"properties\":{\"currentTierName\":\"brxmrgch\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-09-10T14:09:21Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"fjjkbajb\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-06-28T21:28:34Z\",\"upgradeUnavailabilityReason\":\"u\"}},\"id\":\"oycblevpmc\",\"name\":\"ujyxkyxlzgsj\",\"type\":\"kzzltafhbzf\"},{\"properties\":{\"currentTierName\":\"wmbjlzqsczpg\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-01-23T16:07:09Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"d\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-06-09T07:41:46Z\",\"upgradeUnavailabilityReason\":\"ptnuwjtkschgc\"}},\"id\":\"y\",\"name\":\"leseyqrhvyeldo\",\"type\":\"jv\"}]}") .toObject(QuotaTierListResult.class); - Assertions.assertEquals("pli", model.nextLink()); + Assertions.assertEquals("bemeluclvd", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierPropertiesTests.java index bb5ea197fec7..115f7c5cbed6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierPropertiesTests.java @@ -13,15 +13,16 @@ public final class QuotaTierPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierProperties model = BinaryData.fromString( - "{\"currentTierName\":\"oqfyiaseqch\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-08-04T17:40:23Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"zisgykiuemvanb\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-07-11T14:17:07Z\",\"upgradeUnavailabilityReason\":\"rx\"}}") + "{\"currentTierName\":\"mupgxy\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-10-04T13:22:27Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"bujftaben\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-04-04T06:33:35Z\",\"upgradeUnavailabilityReason\":\"xzu\"}}") .toObject(QuotaTierProperties.class); - Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, model.tierUpgradePolicy()); + Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, model.tierUpgradePolicy()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - QuotaTierProperties model = new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.NO_AUTO_UPGRADE); + QuotaTierProperties model + = new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE); model = BinaryData.fromObject(model).toObject(QuotaTierProperties.class); - Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, model.tierUpgradePolicy()); + Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, model.tierUpgradePolicy()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java index 11e720249fec..2cb91bc29be8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java @@ -14,11 +14,11 @@ public final class QuotaTierUpgradeEligibilityInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierUpgradeEligibilityInfo model = BinaryData.fromString( - "{\"nextTierName\":\"sojklinhmdptys\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2020-12-25T21:15:26Z\",\"upgradeUnavailabilityReason\":\"zxojpslsv\"}") + "{\"nextTierName\":\"feddwwnlza\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-09-14T00:32:04Z\",\"upgradeUnavailabilityReason\":\"nhgookrtalvnbw\"}") .toObject(QuotaTierUpgradeEligibilityInfo.class); - Assertions.assertEquals("sojklinhmdptys", model.nextTierName()); - Assertions.assertEquals(UpgradeAvailabilityStatus.NOT_AVAILABLE, model.upgradeAvailabilityStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T21:15:26Z"), model.upgradeApplicableDate()); - Assertions.assertEquals("zxojpslsv", model.upgradeUnavailabilityReason()); + Assertions.assertEquals("feddwwnlza", model.nextTierName()); + Assertions.assertEquals(UpgradeAvailabilityStatus.AVAILABLE, model.upgradeAvailabilityStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T00:32:04Z"), model.upgradeApplicableDate()); + Assertions.assertEquals("nhgookrtalvnbw", model.upgradeUnavailabilityReason()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java index 188df63f9c2b..ceb2ffd265e2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class QuotaTiersCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"currentTierName\":\"nhzcknjxizb\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-07-05T14:50:54Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ztxfexwacyyjmlxp\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-05-18T23:17:09Z\",\"upgradeUnavailabilityReason\":\"fevuii\"}},\"id\":\"ibfkcjytq\",\"name\":\"cizeqqfopvnopm\",\"type\":\"tdsfh\"}"; + = "{\"properties\":{\"currentTierName\":\"tp\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-12-07T13:22:16Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"sunjzijaciwmm\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-11-06T20:01:26Z\",\"upgradeUnavailabilityReason\":\"nbzzsnfz\"}},\"id\":\"iiwsuanzhwsyuif\",\"name\":\"zqqhbtfloilmkfb\",\"type\":\"oiipjpn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); QuotaTier response = manager.quotaTiers() - .define("ugeerclbltbhpwac") + .define("vqlcqufylamxo") .withProperties( new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE)) .create(); - Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, response.properties().tierUpgradePolicy()); + Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, response.properties().tierUpgradePolicy()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java index 4d0cdd38e0fd..5fa64c89e48b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class QuotaTiersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"currentTierName\":\"blehhkplo\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-03-21T01:51:52Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ksadzi\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-07-24T18:17:44Z\",\"upgradeUnavailabilityReason\":\"t\"}},\"id\":\"u\",\"name\":\"fvvraab\",\"type\":\"urdeewlsuxp\"}"; + = "{\"properties\":{\"currentTierName\":\"xyldqt\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-01-10T11:48:10Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"megaj\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-03-16T11:51:23Z\",\"upgradeUnavailabilityReason\":\"mz\"}},\"id\":\"wqkkgeseip\",\"name\":\"gliupqscoob\",\"type\":\"jlcaxsqcomjiqi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,7 +32,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); QuotaTier response - = manager.quotaTiers().getWithResponse("hnmizhvprhqq", com.azure.core.util.Context.NONE).getValue(); + = manager.quotaTiers().getWithResponse("muwkgjwbyfdw", com.azure.core.util.Context.NONE).getValue(); Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, response.properties().tierUpgradePolicy()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java index dd3368dc1ce1..8b2855615356 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java @@ -23,7 +23,7 @@ public final class QuotaTiersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"currentTierName\":\"kdwjyjiznioro\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-03-06T04:45:53Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"pmcreihu\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-01-16T20:00:11Z\",\"upgradeUnavailabilityReason\":\"hminuwqxungrobgw\"}},\"id\":\"sxjwdy\",\"name\":\"wxm\",\"type\":\"zjow\"}]}"; + = "{\"value\":[{\"properties\":{\"currentTierName\":\"evxxkdevpximzii\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-03-23T23:39:22Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"vtvodqxxpqhmlqi\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-11-26T19:49:37Z\",\"upgradeUnavailabilityReason\":\"vrj\"}},\"id\":\"notdofqvpbqsdqk\",\"name\":\"sb\",\"type\":\"sbbmitaftazgcx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,7 +34,7 @@ public void testList() throws Exception { PagedIterable response = manager.quotaTiers().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, + Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, response.iterator().next().properties().tierUpgradePolicy()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java index 053ca6bb1d83..c9c798bb2ca4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java @@ -12,11 +12,11 @@ public final class RaiBlockListItemsResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlockListItemsResult model = BinaryData.fromString( - "{\"nextLink\":\"bzevwrd\",\"value\":[{\"properties\":{\"pattern\":\"uvsj\",\"isRegex\":true},\"etag\":\"myst\",\"tags\":{\"er\":\"qypfcv\",\"bm\":\"hp\",\"sspuunnoxyhkx\":\"pjbabwidfc\"},\"id\":\"ddrihpf\",\"name\":\"oqcaaewdaomdj\",\"type\":\"l\"},{\"properties\":{\"pattern\":\"xkzb\",\"isRegex\":false},\"etag\":\"eivsiykzkdnc\",\"tags\":{\"pgogtqxepny\":\"onbzoggculapzwy\",\"uajlyj\":\"b\",\"uxrkjp\":\"lvofqzhvfcibyfmo\",\"wiivwzjbhyzsx\":\"dwxf\"},\"id\":\"kambtrnegvmnvuqe\",\"name\":\"vldspa\",\"type\":\"tjb\"},{\"properties\":{\"pattern\":\"mflvest\",\"isRegex\":false},\"etag\":\"rriloz\",\"tags\":{\"iycslevuf\":\"ewchpxlktwku\",\"tqedcgzulwm\":\"ztcktyh\",\"rjvpglydzgkrvqee\":\"rqzz\"},\"id\":\"oepry\",\"name\":\"t\",\"type\":\"wytpzdmovz\"},{\"properties\":{\"pattern\":\"aawzqadfl\",\"isRegex\":false},\"etag\":\"iglaecx\",\"tags\":{\"mlqtmldgxob\":\"icokpv\"},\"id\":\"rclnpkc\",\"name\":\"ayzri\",\"type\":\"khyawfvjlboxqv\"}]}") + "{\"nextLink\":\"vekqvgqo\",\"value\":[{\"properties\":{\"pattern\":\"mpjw\",\"isRegex\":true},\"etag\":\"ikf\",\"tags\":{\"teusqczkvyklxu\":\"hrfsphuagrtti\",\"fmmfblcqcu\":\"yja\",\"brta\":\"bgq\"},\"id\":\"etttwgdslqxihhr\",\"name\":\"ooizqseyp\",\"type\":\"iut\"},{\"properties\":{\"pattern\":\"pzhyr\",\"isRegex\":true},\"etag\":\"g\",\"tags\":{\"nhl\":\"oxslh\",\"rgaehvvibrxjj\":\"brqnkkzjcjb\",\"lftidgfcwqmpim\":\"toqbeitpkxztmoob\"},\"id\":\"xzhemjyh\",\"name\":\"hujswtwkozzwcul\",\"type\":\"bawpfajnjwltlwt\"},{\"properties\":{\"pattern\":\"uktalhsnvkcdmxz\",\"isRegex\":false},\"etag\":\"imlnwiaaomylw\",\"tags\":{\"l\":\"ulcsethwwnpj\"},\"id\":\"swpchwahfbousn\",\"name\":\"epgfew\",\"type\":\"twly\"}]}") .toObject(RaiBlockListItemsResult.class); - Assertions.assertEquals("bzevwrd", model.nextLink()); - Assertions.assertEquals("uvsj", model.value().get(0).properties().pattern()); + Assertions.assertEquals("vekqvgqo", model.nextLink()); + Assertions.assertEquals("mpjw", model.value().get(0).properties().pattern()); Assertions.assertTrue(model.value().get(0).properties().isRegex()); - Assertions.assertEquals("qypfcv", model.value().get(0).tags().get("er")); + Assertions.assertEquals("hrfsphuagrtti", model.value().get(0).tags().get("teusqczkvyklxu")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java index 4c272680223b..074262e26731 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java @@ -12,10 +12,10 @@ public final class RaiBlockListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlockListResult model = BinaryData.fromString( - "{\"nextLink\":\"uzqgnjdgkynsc\",\"value\":[{\"properties\":{\"description\":\"vhxnk\"},\"etag\":\"tkubotppn\",\"tags\":{\"frbbc\":\"zxhi\"},\"id\":\"qagt\",\"name\":\"tdhlfkqo\",\"type\":\"py\"},{\"properties\":{\"description\":\"trdcnifmzzs\"},\"etag\":\"m\",\"tags\":{\"ocxvdfffwafqr\":\"ysuxmprafwgck\",\"vkbunzozudh\":\"udaspavehh\",\"moy\":\"xg\",\"f\":\"cdyuibhmfdnbzyd\"},\"id\":\"cjnaeoisrvhmgor\",\"name\":\"fukiscvwmzhw\",\"type\":\"lefaxvxilcbtgn\"},{\"properties\":{\"description\":\"eyqxtjjfzql\"},\"etag\":\"ycavodggxdbees\",\"tags\":{\"wqfbylyrfgiagt\":\"knlrariaawiuagy\",\"zjvusfzldmo\":\"ojocqwogf\"},\"id\":\"xylfsb\",\"name\":\"kadpysown\",\"type\":\"tgkbugrjqctojc\"}]}") + "{\"nextLink\":\"gafcqu\",\"value\":[{\"properties\":{\"description\":\"t\"},\"etag\":\"sdtutnwlduyc\",\"tags\":{\"kuqgsjjxundxgket\":\"hyrmewipmvekdx\",\"gpmuneqsxvmhfbuz\":\"zhhzjhfjmhvvmu\",\"ms\":\"yihsasbhudypohyu\"},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"},{\"properties\":{\"description\":\"ouwivkxoyzunbixx\"},\"etag\":\"ikvcpwp\",\"tags\":{\"vtsoxf\":\"rc\",\"m\":\"kenx\",\"ao\":\"yefrpmpdnqqska\",\"npqfrtqlkzmeg\":\"vmm\"},\"id\":\"tgvkxlzyqd\",\"name\":\"fegcea\",\"type\":\"zxwhcansymoyqhlw\"}]}") .toObject(RaiBlockListResult.class); - Assertions.assertEquals("uzqgnjdgkynsc", model.nextLink()); - Assertions.assertEquals("vhxnk", model.value().get(0).properties().description()); - Assertions.assertEquals("zxhi", model.value().get(0).tags().get("frbbc")); + Assertions.assertEquals("gafcqu", model.nextLink()); + Assertions.assertEquals("t", model.value().get(0).properties().description()); + Assertions.assertEquals("hyrmewipmvekdx", model.value().get(0).tags().get("kuqgsjjxundxgket")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java index ec1591857f11..c2a5f36ceb3d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java @@ -11,17 +11,17 @@ public final class RaiBlocklistConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiBlocklistConfig model = BinaryData.fromString("{\"blocklistName\":\"mojmsvpkjprvkw\",\"blocking\":true}") + RaiBlocklistConfig model = BinaryData.fromString("{\"blocklistName\":\"ivfomiloxgg\",\"blocking\":false}") .toObject(RaiBlocklistConfig.class); - Assertions.assertEquals("mojmsvpkjprvkw", model.blocklistName()); - Assertions.assertTrue(model.blocking()); + Assertions.assertEquals("ivfomiloxgg", model.blocklistName()); + Assertions.assertFalse(model.blocking()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("mojmsvpkjprvkw").withBlocking(true); + RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("ivfomiloxgg").withBlocking(false); model = BinaryData.fromObject(model).toObject(RaiBlocklistConfig.class); - Assertions.assertEquals("mojmsvpkjprvkw", model.blocklistName()); - Assertions.assertTrue(model.blocking()); + Assertions.assertEquals("ivfomiloxgg", model.blocklistName()); + Assertions.assertFalse(model.blocking()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java index a68cd491a25d..443c302d1093 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java @@ -15,20 +15,20 @@ public final class RaiBlocklistInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"p\"},\"etag\":\"a\",\"tags\":{\"ezwwv\":\"dz\",\"kphhq\":\"iqyuvvfo\"},\"id\":\"kvylauyavl\",\"name\":\"wmn\",\"type\":\"sttijfybvp\"}") + "{\"properties\":{\"description\":\"rxvxcjzh\"},\"etag\":\"zxfpxtgqsc\",\"tags\":{\"qaz\":\"ftjuh\",\"pijrajcivmmghf\":\"mtggu\"},\"id\":\"iwrxgkn\",\"name\":\"uvyinzqodfvpgs\",\"type\":\"oxgsgbpfgzdjtx\"}") .toObject(RaiBlocklistInner.class); - Assertions.assertEquals("p", model.properties().description()); - Assertions.assertEquals("dz", model.tags().get("ezwwv")); + Assertions.assertEquals("rxvxcjzh", model.properties().description()); + Assertions.assertEquals("ftjuh", model.tags().get("qaz")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiBlocklistInner model - = new RaiBlocklistInner().withProperties(new RaiBlocklistProperties().withDescription("p")) - .withTags(mapOf("ezwwv", "dz", "kphhq", "iqyuvvfo")); + = new RaiBlocklistInner().withProperties(new RaiBlocklistProperties().withDescription("rxvxcjzh")) + .withTags(mapOf("qaz", "ftjuh", "pijrajcivmmghf", "mtggu")); model = BinaryData.fromObject(model).toObject(RaiBlocklistInner.class); - Assertions.assertEquals("p", model.properties().description()); - Assertions.assertEquals("dz", model.tags().get("ezwwv")); + Assertions.assertEquals("rxvxcjzh", model.properties().description()); + Assertions.assertEquals("ftjuh", model.tags().get("qaz")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java index 130ee63f41c6..13a8223e9274 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java @@ -12,21 +12,21 @@ public final class RaiBlocklistItemBulkRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiBlocklistItemBulkRequest model = BinaryData - .fromString("{\"name\":\"lmxhomdyn\",\"properties\":{\"pattern\":\"digumbnr\",\"isRegex\":true}}") - .toObject(RaiBlocklistItemBulkRequest.class); - Assertions.assertEquals("lmxhomdyn", model.name()); - Assertions.assertEquals("digumbnr", model.properties().pattern()); + RaiBlocklistItemBulkRequest model + = BinaryData.fromString("{\"name\":\"ncxykxhdjhlimm\",\"properties\":{\"pattern\":\"f\",\"isRegex\":true}}") + .toObject(RaiBlocklistItemBulkRequest.class); + Assertions.assertEquals("ncxykxhdjhlimm", model.name()); + Assertions.assertEquals("f", model.properties().pattern()); Assertions.assertTrue(model.properties().isRegex()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("lmxhomdyn") - .withProperties(new RaiBlocklistItemProperties().withPattern("digumbnr").withIsRegex(true)); + RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("ncxykxhdjhlimm") + .withProperties(new RaiBlocklistItemProperties().withPattern("f").withIsRegex(true)); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemBulkRequest.class); - Assertions.assertEquals("lmxhomdyn", model.name()); - Assertions.assertEquals("digumbnr", model.properties().pattern()); + Assertions.assertEquals("ncxykxhdjhlimm", model.name()); + Assertions.assertEquals("f", model.properties().pattern()); Assertions.assertTrue(model.properties().isRegex()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java index 706f4662a413..15358dbaa2d7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java @@ -15,22 +15,22 @@ public final class RaiBlocklistItemInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistItemInner model = BinaryData.fromString( - "{\"properties\":{\"pattern\":\"ccybvp\",\"isRegex\":false},\"etag\":\"kudzpxgwj\",\"tags\":{\"yohpfkyrkdbdgiog\":\"agst\"},\"id\":\"kmnwqjnobaiyhddv\",\"name\":\"acegfnmntf\",\"type\":\"mvmemfnczd\"}") + "{\"properties\":{\"pattern\":\"vusfzld\",\"isRegex\":true},\"etag\":\"xylfsb\",\"tags\":{\"s\":\"dp\",\"tgkbugrjqctojc\":\"wn\",\"cuplcplcwkhih\":\"isofieypefojyqd\"},\"id\":\"lhzdsqtzb\",\"name\":\"rgnowcjhfgm\",\"type\":\"ecactx\"}") .toObject(RaiBlocklistItemInner.class); - Assertions.assertEquals("ccybvp", model.properties().pattern()); - Assertions.assertFalse(model.properties().isRegex()); - Assertions.assertEquals("agst", model.tags().get("yohpfkyrkdbdgiog")); + Assertions.assertEquals("vusfzld", model.properties().pattern()); + Assertions.assertTrue(model.properties().isRegex()); + Assertions.assertEquals("dp", model.tags().get("s")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiBlocklistItemInner model = new RaiBlocklistItemInner() - .withProperties(new RaiBlocklistItemProperties().withPattern("ccybvp").withIsRegex(false)) - .withTags(mapOf("yohpfkyrkdbdgiog", "agst")); + .withProperties(new RaiBlocklistItemProperties().withPattern("vusfzld").withIsRegex(true)) + .withTags(mapOf("s", "dp", "tgkbugrjqctojc", "wn", "cuplcplcwkhih", "isofieypefojyqd")); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemInner.class); - Assertions.assertEquals("ccybvp", model.properties().pattern()); - Assertions.assertFalse(model.properties().isRegex()); - Assertions.assertEquals("agst", model.tags().get("yohpfkyrkdbdgiog")); + Assertions.assertEquals("vusfzld", model.properties().pattern()); + Assertions.assertTrue(model.properties().isRegex()); + Assertions.assertEquals("dp", model.tags().get("s")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java index 80c13a6d5f33..e6e5ea97aa33 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java @@ -11,17 +11,17 @@ public final class RaiBlocklistItemPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiBlocklistItemProperties model = BinaryData.fromString("{\"pattern\":\"vbalxlllc\",\"isRegex\":true}") + RaiBlocklistItemProperties model = BinaryData.fromString("{\"pattern\":\"oteyowc\",\"isRegex\":true}") .toObject(RaiBlocklistItemProperties.class); - Assertions.assertEquals("vbalxlllc", model.pattern()); + Assertions.assertEquals("oteyowc", model.pattern()); Assertions.assertTrue(model.isRegex()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistItemProperties model = new RaiBlocklistItemProperties().withPattern("vbalxlllc").withIsRegex(true); + RaiBlocklistItemProperties model = new RaiBlocklistItemProperties().withPattern("oteyowc").withIsRegex(true); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemProperties.class); - Assertions.assertEquals("vbalxlllc", model.pattern()); + Assertions.assertEquals("oteyowc", model.pattern()); Assertions.assertTrue(model.isRegex()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java index 126b4e86d815..f04d76a66aff 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiBlocklistItemsBatchAddWithResponseMockTests { @Test public void testBatchAddWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"d\"},\"etag\":\"idt\",\"tags\":{\"yznm\":\"m\",\"oxuwhttnzqsaqm\":\"gcdogcvucgy\",\"dzzmssgpgv\":\"bgszplusdek\",\"squnycwztlv\":\"kyejidbdq\"},\"id\":\"snmr\",\"name\":\"kyjtrepw\",\"type\":\"wfkcauxuvavcpf\"}"; + = "{\"properties\":{\"description\":\"sqeq\"},\"etag\":\"dxmdses\",\"tags\":{\"pktl\":\"jbjp\",\"at\":\"dibfmthi\"},\"id\":\"jrnm\",\"name\":\"nzqplgtkihonikzs\",\"type\":\"zfffjilzfbpnt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,17 @@ public void testBatchAddWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklist response = manager.raiBlocklistItems() - .batchAddWithResponse("zjgcfjfx", "bwjjirmuydgf", "tmdofgeoag", - Arrays.asList(new RaiBlocklistItemBulkRequest().withName("ftnxodwxmdajwiy") - .withProperties(new RaiBlocklistItemProperties().withPattern("sevmdmzenlrstg").withIsRegex(false))), + .batchAddWithResponse("vmyifopxf", "jt", "dyzoutxfptofhg", Arrays.asList( + new RaiBlocklistItemBulkRequest().withName("wezygvadgaaqw") + .withProperties(new RaiBlocklistItemProperties().withPattern("jpytp").withIsRegex(false)), + new RaiBlocklistItemBulkRequest().withName("nogehlufbort") + .withProperties(new RaiBlocklistItemProperties().withPattern("kk").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("svbxxyjisskob") + .withProperties(new RaiBlocklistItemProperties().withPattern("lflioewyhxessm").withIsRegex(true))), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("d", response.properties().description()); - Assertions.assertEquals("m", response.tags().get("yznm")); + Assertions.assertEquals("sqeq", response.properties().description()); + Assertions.assertEquals("jbjp", response.tags().get("pktl")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java index 066b5a3bba42..44a8c5bdcf5e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java @@ -29,8 +29,8 @@ public void testBatchDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.raiBlocklistItems() - .batchDeleteWithResponse("dofuckclb", "xlu", "vsolzwil", - Arrays.asList("gojfsqe", "uuxjxhfx", "jwpdkkt", "mbmxbmbrwgzzxl"), com.azure.core.util.Context.NONE); + .batchDeleteWithResponse("gkensckhbmcarmo", "fxxkwykuqdndxl", "kh", Arrays.asList("gapvdgtfpeerscdx"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java index c369f61cee6f..7b2e44eee76f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiBlocklistItemsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"pattern\":\"klajvcfocz\",\"isRegex\":false},\"etag\":\"jovtkwxnhwhhn\",\"tags\":{\"ee\":\"zaa\",\"jeatea\":\"pmjen\"},\"id\":\"crxoxdj\",\"name\":\"l\",\"type\":\"n\"}"; + = "{\"properties\":{\"pattern\":\"mmmkvavucgjiuaiq\",\"isRegex\":false},\"etag\":\"fzhrchx\",\"tags\":{\"wlvi\":\"zdmh\",\"pdviscotyxbrii\":\"jmxmlitqdsj\"},\"id\":\"f\",\"name\":\"dslvrqo\",\"type\":\"mwsieeailwdqmqf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,15 +34,15 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklistItem response = manager.raiBlocklistItems() - .define("vwglgwzpv") - .withExistingRaiBlocklist("bkhxsdplaum", "dmhweqjfyxydgto", "vq") - .withTags(mapOf("q", "qgsoyqyxyjrc", "eaoo", "bispglqjoxtdah")) - .withProperties(new RaiBlocklistItemProperties().withPattern("glhpse").withIsRegex(false)) + .define("eubkqiqmlf") + .withExistingRaiBlocklist("nrnjrcuf", "bgacnr", "fdtncmspsanma") + .withTags(mapOf("uuonjkkxukguehvv", "eipuugkwdrqmrpa")) + .withProperties(new RaiBlocklistItemProperties().withPattern("qcs").withIsRegex(false)) .create(); - Assertions.assertEquals("klajvcfocz", response.properties().pattern()); + Assertions.assertEquals("mmmkvavucgjiuaiq", response.properties().pattern()); Assertions.assertFalse(response.properties().isRegex()); - Assertions.assertEquals("zaa", response.tags().get("ee")); + Assertions.assertEquals("zdmh", response.tags().get("wlvi")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java index 9fae9d545564..4c53620b4e99 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiBlocklistItemsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"pattern\":\"xdtzcqipsdudgco\",\"isRegex\":false},\"etag\":\"ehxlantolamlb\",\"tags\":{\"zdqiqdlrat\":\"xkqllczipvwdtgc\",\"auwxsuykznhrfgsl\":\"kwx\",\"eo\":\"lhpryjfzihuio\",\"dd\":\"pajtfeyvkbd\"},\"id\":\"hdccxb\",\"name\":\"uuqutkzwtjwwgu\",\"type\":\"ytijcxfnond\"}"; + = "{\"properties\":{\"pattern\":\"xgiqasifubn\",\"isRegex\":false},\"etag\":\"lpwqpjnxjkhtups\",\"tags\":{\"fwkztsms\":\"uweuiy\",\"vy\":\"b\"},\"id\":\"znfhkqytk\",\"name\":\"tadopgfzdg\",\"type\":\"fcycrsvlo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklistItem response = manager.raiBlocklistItems() - .getWithResponse("ovbooqbmdqrxy", "laetscflwtjdtlr", "e", "ooy", com.azure.core.util.Context.NONE) + .getWithResponse("xplhpeva", "yntvzjyielbq", "vvbq", "knmp", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xdtzcqipsdudgco", response.properties().pattern()); + Assertions.assertEquals("xgiqasifubn", response.properties().pattern()); Assertions.assertFalse(response.properties().isRegex()); - Assertions.assertEquals("xkqllczipvwdtgc", response.tags().get("zdqiqdlrat")); + Assertions.assertEquals("uweuiy", response.tags().get("fwkztsms")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java index 81d9e186f0ba..883335096f32 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiBlocklistItemsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"pattern\":\"n\",\"isRegex\":true},\"etag\":\"dlyseidtoa\",\"tags\":{\"qfdpf\":\"prytgrhz\"},\"id\":\"rptvcshtkutzcttb\",\"name\":\"gdirda\",\"type\":\"m\"}]}"; + = "{\"value\":[{\"properties\":{\"pattern\":\"bgsosc\",\"isRegex\":true},\"etag\":\"zfvbennmfkbpj\",\"tags\":{\"urz\":\"ekwwnthropmdudsy\",\"ouergaghp\":\"vktjhffecqkoq\",\"gyedzfzqi\":\"zxkpyehhfdyld\"},\"id\":\"qhtdereunokakzwh\",\"name\":\"jlwyxedzn\",\"type\":\"xrfomcke\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiBlocklistItems().list("gjdydhqkk", "bjuckc", "tuqbhp", com.azure.core.util.Context.NONE); + = manager.raiBlocklistItems().list("yhigqkzjuqwqaj", "uzxp", "xhyoip", com.azure.core.util.Context.NONE); - Assertions.assertEquals("n", response.iterator().next().properties().pattern()); + Assertions.assertEquals("bgsosc", response.iterator().next().properties().pattern()); Assertions.assertTrue(response.iterator().next().properties().isRegex()); - Assertions.assertEquals("prytgrhz", response.iterator().next().tags().get("qfdpf")); + Assertions.assertEquals("ekwwnthropmdudsy", response.iterator().next().tags().get("urz")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java index 6263f704ea01..83c782b56a29 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java @@ -12,14 +12,14 @@ public final class RaiBlocklistPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistProperties model - = BinaryData.fromString("{\"description\":\"krsgsgb\"}").toObject(RaiBlocklistProperties.class); - Assertions.assertEquals("krsgsgb", model.description()); + = BinaryData.fromString("{\"description\":\"flbqvgaq\"}").toObject(RaiBlocklistProperties.class); + Assertions.assertEquals("flbqvgaq", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("krsgsgb"); + RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("flbqvgaq"); model = BinaryData.fromObject(model).toObject(RaiBlocklistProperties.class); - Assertions.assertEquals("krsgsgb", model.description()); + Assertions.assertEquals("flbqvgaq", model.description()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java index bf0bce052e44..81fd21a03178 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiBlocklistsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"ffhtjnw\"},\"etag\":\"stfjxtvl\",\"tags\":{\"iomxeezw\":\"qfcwr\",\"egmxdbsohc\":\"hjmbji\",\"z\":\"hpyvdkgdet\",\"ekwuyckyvn\":\"canzb\"},\"id\":\"smuffiwjb\",\"name\":\"tvbpzujqj\",\"type\":\"otdxpo\"}"; + = "{\"properties\":{\"description\":\"eplrajubowuywevt\"},\"etag\":\"ieikmwlaoklfnis\",\"tags\":{\"tredscnnstjc\":\"ucb\",\"xzhclec\":\"yuvtz\"},\"id\":\"tzqzcloy\",\"name\":\"yup\",\"type\":\"idhz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,15 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklist response = manager.raiBlocklists() - .define("eylqlocvvujexayg") - .withExistingAccount("vhxowpcbapnpxra", "awbmpsp") - .withTags(mapOf("wjopackyhydvik", "zlvssq", "illxg", "fngp", "dye", "scizwgsoriobijei")) - .withProperties(new RaiBlocklistProperties().withDescription("kgjn")) + .define("wihbnnxemv") + .withExistingAccount("ihscjvakmhzbhw", "hf") + .withTags( + mapOf("tndqlmf", "pfzsclefyrl", "evnoqayrehjuqwva", "ggnbbuypwovvvsfl", "enqqzlxnqzu", "xrlzhpziha")) + .withProperties(new RaiBlocklistProperties().withDescription("qq")) .create(); - Assertions.assertEquals("ffhtjnw", response.properties().description()); - Assertions.assertEquals("qfcwr", response.tags().get("iomxeezw")); + Assertions.assertEquals("eplrajubowuywevt", response.properties().description()); + Assertions.assertEquals("ucb", response.tags().get("tredscnnstjc")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java index 2ae238f27d0b..fbb13166c7b9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiBlocklistsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"oyqxlunkf\"},\"etag\":\"mcxqqxmyzklao\",\"tags\":{\"qr\":\"ohrvmz\",\"znllaslk\":\"zadi\"},\"id\":\"hjqjpv\",\"name\":\"aihxjtgzgtaiywbq\",\"type\":\"roigbsfsgsaenwld\"}"; + = "{\"properties\":{\"description\":\"amkuuyiuyuafix\"},\"etag\":\"icwgpthdcfmf\",\"tags\":{\"odropa\":\"as\",\"gt\":\"v\"},\"id\":\"us\",\"name\":\"wgqrntaum\",\"type\":\"rcjlvkrkegtyczup\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklist response = manager.raiBlocklists() - .getWithResponse("ryyinz", "dolrndw", "bvxvza", com.azure.core.util.Context.NONE) + .getWithResponse("deotmfx", "kd", "g", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("oyqxlunkf", response.properties().description()); - Assertions.assertEquals("ohrvmz", response.tags().get("qr")); + Assertions.assertEquals("amkuuyiuyuafix", response.properties().description()); + Assertions.assertEquals("as", response.tags().get("odropa")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java index 65968458b534..963948575638 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiBlocklistsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"ldsxebuhsxrz\"},\"etag\":\"gsdaluyckh\",\"tags\":{\"s\":\"ouxly\",\"dcaytujraxd\":\"uerbgpxebjl\",\"gtnse\":\"pryj\"},\"id\":\"yljurkeposehqqyl\",\"name\":\"pctwjwdsdlzmkx\",\"type\":\"rxxxoteehkhowgom\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"tbapfcz\"},\"etag\":\"xtrlqbpx\",\"tags\":{\"yegbthms\":\"kjpirgzxvbczw\"},\"id\":\"tjbuiggruno\",\"name\":\"fvua\",\"type\":\"jthoivsdwsngkr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiBlocklists().list("mhljqlxspm", "jc", com.azure.core.util.Context.NONE); + = manager.raiBlocklists().list("iyxlzmiydde", "qzqvabmhvsex", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ldsxebuhsxrz", response.iterator().next().properties().description()); - Assertions.assertEquals("ouxly", response.iterator().next().tags().get("s")); + Assertions.assertEquals("tbapfcz", response.iterator().next().properties().description()); + Assertions.assertEquals("kjpirgzxvbczw", response.iterator().next().tags().get("yegbthms")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java index 240ba9cefc36..d2f4dcf34a2c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java @@ -13,10 +13,10 @@ public final class RaiContentFilterInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiContentFilterInner model = BinaryData.fromString( - "{\"properties\":{\"name\":\"wm\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"jscjpahl\",\"name\":\"veabfqxnmwmqtib\",\"type\":\"yijddtvqcttad\"}") + "{\"properties\":{\"name\":\"uy\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"daultxijjumfq\",\"name\":\"azlnqnmcjngzqdqx\",\"type\":\"bjwgnyfus\"}") .toObject(RaiContentFilterInner.class); - Assertions.assertEquals("wm", model.properties().name()); - Assertions.assertTrue(model.properties().isMultiLevelFilter()); + Assertions.assertEquals("uy", model.properties().name()); + Assertions.assertFalse(model.properties().isMultiLevelFilter()); Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.properties().source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java index b5fd928d24c7..9818fa0f305f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java @@ -13,11 +13,11 @@ public final class RaiContentFilterListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiContentFilterListResult model = BinaryData.fromString( - "{\"nextLink\":\"pndzaapmudqmeq\",\"value\":[{\"properties\":{\"name\":\"bu\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"beybpmzznrtffyaq\",\"name\":\"tmhheioqa\",\"type\":\"hvseufuqyrx\"}]}") + "{\"nextLink\":\"glcfhmlrqryxyn\",\"value\":[{\"properties\":{\"name\":\"p\",\"isMultiLevelFilter\":false,\"source\":\"PreToolCall\"},\"id\":\"nptgoeiybba\",\"name\":\"pfhvfslk\",\"type\":\"ntjlr\"},{\"properties\":{\"name\":\"kskyrioovzid\",\"isMultiLevelFilter\":true,\"source\":\"PreRun\"},\"id\":\"zm\",\"name\":\"frygznmmax\",\"type\":\"izkzobgo\"},{\"properties\":{\"name\":\"hsln\",\"isMultiLevelFilter\":true,\"source\":\"PreToolCall\"},\"id\":\"xynl\",\"name\":\"xecwcro\",\"type\":\"phslhcawjutifdw\"},{\"properties\":{\"name\":\"igorqjbttzhragl\",\"isMultiLevelFilter\":true,\"source\":\"PostRun\"},\"id\":\"qjujeickpzvcp\",\"name\":\"pmxelnwcltyje\",\"type\":\"ex\"}]}") .toObject(RaiContentFilterListResult.class); - Assertions.assertEquals("pndzaapmudqmeq", model.nextLink()); - Assertions.assertEquals("bu", model.value().get(0).properties().name()); - Assertions.assertTrue(model.value().get(0).properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.value().get(0).properties().source()); + Assertions.assertEquals("glcfhmlrqryxyn", model.nextLink()); + Assertions.assertEquals("p", model.value().get(0).properties().name()); + Assertions.assertFalse(model.value().get(0).properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.value().get(0).properties().source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java index 099168bc25a7..aab3703818b5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java @@ -13,9 +13,9 @@ public final class RaiContentFilterPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiContentFilterProperties model - = BinaryData.fromString("{\"name\":\"aeukm\",\"isMultiLevelFilter\":true,\"source\":\"PreToolCall\"}") + = BinaryData.fromString("{\"name\":\"svtui\",\"isMultiLevelFilter\":true,\"source\":\"PreToolCall\"}") .toObject(RaiContentFilterProperties.class); - Assertions.assertEquals("aeukm", model.name()); + Assertions.assertEquals("svtui", model.name()); Assertions.assertTrue(model.isMultiLevelFilter()); Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java index 3016da1bcf75..543619ab2011 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class RaiContentFiltersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"name\":\"gucbmt\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"nstjcyyuvtz\",\"name\":\"xzhclec\",\"type\":\"wtzqzcloyhy\"}"; + = "{\"properties\":{\"name\":\"kpkocm\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"xop\",\"name\":\"icyvspeslh\",\"type\":\"y\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiContentFilter response = manager.raiContentFilters() - .getWithResponse("vtjr", "eikmwlaoklfni", com.azure.core.util.Context.NONE) + .getWithResponse("lhqvbk", "rbpyhssrl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gucbmt", response.properties().name()); + Assertions.assertEquals("kpkocm", response.properties().name()); Assertions.assertFalse(response.properties().isMultiLevelFilter()); Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().source()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java index 78abbc66d963..ba923cb10f66 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java @@ -23,7 +23,7 @@ public final class RaiContentFiltersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"name\":\"yorjplbchych\",\"isMultiLevelFilter\":true,\"source\":\"PreRun\"},\"id\":\"bqvum\",\"name\":\"xqjsiuepm\",\"type\":\"xfnzlpq\"}]}"; + = "{\"value\":[{\"properties\":{\"name\":\"pumdd\",\"isMultiLevelFilter\":false,\"source\":\"PostRun\"},\"id\":\"dyd\",\"name\":\"tpfcudvafnbfbqv\",\"type\":\"nqnxhgkordwzej\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiContentFilters().list("pgidhzgyresgzsdt", com.azure.core.util.Context.NONE); + = manager.raiContentFilters().list("kgv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("yorjplbchych", response.iterator().next().properties().name()); - Assertions.assertTrue(response.iterator().next().properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.iterator().next().properties().source()); + Assertions.assertEquals("pumdd", response.iterator().next().properties().name()); + Assertions.assertFalse(response.iterator().next().properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.iterator().next().properties().source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java index 1e3b7ef15687..68dc52e8c4f8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java @@ -12,18 +12,18 @@ public final class RaiEgressManagedIdentityRefTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiEgressManagedIdentityRef model - = BinaryData.fromString("{\"resource\":\"hvcyyysfg\",\"format\":\"tcubiipuipwoqonm\"}") + = BinaryData.fromString("{\"resource\":\"stcyohpfkyrkdbd\",\"format\":\"ogsjkmnwqjno\"}") .toObject(RaiEgressManagedIdentityRef.class); - Assertions.assertEquals("hvcyyysfg", model.resource()); - Assertions.assertEquals("tcubiipuipwoqonm", model.format()); + Assertions.assertEquals("stcyohpfkyrkdbd", model.resource()); + Assertions.assertEquals("ogsjkmnwqjno", model.format()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiEgressManagedIdentityRef model - = new RaiEgressManagedIdentityRef().withResource("hvcyyysfg").withFormat("tcubiipuipwoqonm"); + = new RaiEgressManagedIdentityRef().withResource("stcyohpfkyrkdbd").withFormat("ogsjkmnwqjno"); model = BinaryData.fromObject(model).toObject(RaiEgressManagedIdentityRef.class); - Assertions.assertEquals("hvcyyysfg", model.resource()); - Assertions.assertEquals("tcubiipuipwoqonm", model.format()); + Assertions.assertEquals("stcyohpfkyrkdbd", model.resource()); + Assertions.assertEquals("ogsjkmnwqjno", model.format()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java index b2ecfa53e7fb..42fdf8e01dd2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java @@ -25,79 +25,68 @@ public final class RaiEgressPolicyConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiEgressPolicyConfig model = BinaryData.fromString( - "{\"mode\":\"Enforced\",\"defaultAction\":\"Deny\",\"description\":\"fnhtbaxkgxyw\",\"rules\":[{\"name\":\"pyklyhpluodpvru\",\"description\":\"lgzi\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"stgktst\",\"path\":\"xeclzedqbcvhzlhp\"},\"action\":{\"actionType\":\"Transform\",\"headers\":[{\"operation\":\"Remove\",\"name\":\"dlwwqfbumlkxt\",\"value\":\"jfsmlmbtxhwgfwsr\",\"valueRef\":{}},{\"operation\":\"Remove\",\"name\":\"coezbrhubskh\",\"value\":\"ygo\",\"valueRef\":{}}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"qjbvleorfmlu\",\"path\":\"tqzfavyv\"}}},{\"name\":\"qqybarye\",\"description\":\"yjkqabqgzslesjcb\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"ntiew\",\"path\":\"cv\"},\"action\":{\"actionType\":\"Transform\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"behwagohb\",\"value\":\"fkmr\",\"valueRef\":{}}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"mxtd\",\"path\":\"futacoebjvewzc\"}}}]}") + "{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"onmacjekniz\",\"rules\":[{\"name\":\"vcimpev\",\"description\":\"mblrrilbywd\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"ccwr\",\"path\":\"scjfnyns\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Remove\",\"name\":\"zdvoqytibyowbb\",\"value\":\"yavutpthjoxois\",\"valueRef\":{}},{\"operation\":\"Insert\",\"name\":\"sbpimlq\",\"value\":\"jxkcgxxlxsff\",\"valueRef\":{}},{\"operation\":\"Set\",\"name\":\"izqzdwlvwlyou\",\"value\":\"gfbkjubdyh\",\"valueRef\":{}}],\"rewrite\":{\"scheme\":\"http\",\"host\":\"sgow\",\"path\":\"ttsttktlahbqact\"}}}]}") .toObject(RaiEgressPolicyConfig.class); Assertions.assertEquals(RaiEgressMode.ENFORCED, model.mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.defaultAction()); - Assertions.assertEquals("fnhtbaxkgxyw", model.description()); - Assertions.assertEquals("pyklyhpluodpvru", model.rules().get(0).name()); - Assertions.assertEquals("lgzi", model.rules().get(0).description()); + Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.defaultAction()); + Assertions.assertEquals("onmacjekniz", model.description()); + Assertions.assertEquals("vcimpev", model.rules().get(0).name()); + Assertions.assertEquals("mblrrilbywd", model.rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.rules().get(0).ruleType()); - Assertions.assertEquals("stgktst", model.rules().get(0).match().host()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, model.rules().get(0).action().actionType()); + Assertions.assertEquals("ccwr", model.rules().get(0).match().host()); + Assertions.assertEquals("scjfnyns", model.rules().get(0).match().path()); + Assertions.assertEquals(RaiEgressRuleActionType.DENY, model.rules().get(0).action().actionType()); Assertions.assertEquals(RaiEgressHeaderOperation.REMOVE, model.rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwwqfbumlkxt", model.rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.rules().get(0).action().headers().get(0).value()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("qjbvleorfmlu", model.rules().get(0).action().rewrite().host()); - Assertions.assertEquals("tqzfavyv", model.rules().get(0).action().rewrite().path()); + Assertions.assertEquals("zdvoqytibyowbb", model.rules().get(0).action().headers().get(0).name()); + Assertions.assertEquals("yavutpthjoxois", model.rules().get(0).action().headers().get(0).value()); + Assertions.assertEquals(RaiEgressScheme.HTTP, model.rules().get(0).action().rewrite().scheme()); + Assertions.assertEquals("sgow", model.rules().get(0).action().rewrite().host()); + Assertions.assertEquals("ttsttktlahbqact", model.rules().get(0).action().rewrite().path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiEgressPolicyConfig model = new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("fnhtbaxkgxyw") - .withRules(Arrays - .asList( - new RaiEgressRule().withName("pyklyhpluodpvru") - .withDescription("lgzi") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("stgktst").withPath("xeclzedqbcvhzlhp")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) - .withHeaders(Arrays.asList( - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("dlwwqfbumlkxt") - .withValue("jfsmlmbtxhwgfwsr") - .withValueRef(new RaiEgressHeaderValueRef()), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("coezbrhubskh") - .withValue("ygo") - .withValueRef(new RaiEgressHeaderValueRef()))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("qjbvleorfmlu") - .withPath("tqzfavyv"))), - new RaiEgressRule().withName("qqybarye") - .withDescription("yjkqabqgzslesjcb") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("ntiew").withPath("cv")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("behwagohb") - .withValue("fkmr") - .withValueRef(new RaiEgressHeaderValueRef()))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("mxtd") - .withPath("futacoebjvewzc"))))); + .withDefaultAction(RaiEgressDefaultAction.ALLOW) + .withDescription("onmacjekniz") + .withRules(Arrays.asList(new RaiEgressRule().withName("vcimpev") + .withDescription("mblrrilbywd") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch().withHost("ccwr").withPath("scjfnyns")) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) + .withHeaders(Arrays.asList( + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) + .withName("zdvoqytibyowbb") + .withValue("yavutpthjoxois") + .withValueRef(new RaiEgressHeaderValueRef()), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) + .withName("sbpimlq") + .withValue("jxkcgxxlxsff") + .withValueRef(new RaiEgressHeaderValueRef()), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) + .withName("izqzdwlvwlyou") + .withValue("gfbkjubdyh") + .withValueRef(new RaiEgressHeaderValueRef()))) + .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTP) + .withHost("sgow") + .withPath("ttsttktlahbqact"))))); model = BinaryData.fromObject(model).toObject(RaiEgressPolicyConfig.class); Assertions.assertEquals(RaiEgressMode.ENFORCED, model.mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.defaultAction()); - Assertions.assertEquals("fnhtbaxkgxyw", model.description()); - Assertions.assertEquals("pyklyhpluodpvru", model.rules().get(0).name()); - Assertions.assertEquals("lgzi", model.rules().get(0).description()); + Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.defaultAction()); + Assertions.assertEquals("onmacjekniz", model.description()); + Assertions.assertEquals("vcimpev", model.rules().get(0).name()); + Assertions.assertEquals("mblrrilbywd", model.rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.rules().get(0).ruleType()); - Assertions.assertEquals("stgktst", model.rules().get(0).match().host()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, model.rules().get(0).action().actionType()); + Assertions.assertEquals("ccwr", model.rules().get(0).match().host()); + Assertions.assertEquals("scjfnyns", model.rules().get(0).match().path()); + Assertions.assertEquals(RaiEgressRuleActionType.DENY, model.rules().get(0).action().actionType()); Assertions.assertEquals(RaiEgressHeaderOperation.REMOVE, model.rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwwqfbumlkxt", model.rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.rules().get(0).action().headers().get(0).value()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("qjbvleorfmlu", model.rules().get(0).action().rewrite().host()); - Assertions.assertEquals("tqzfavyv", model.rules().get(0).action().rewrite().path()); + Assertions.assertEquals("zdvoqytibyowbb", model.rules().get(0).action().headers().get(0).name()); + Assertions.assertEquals("yavutpthjoxois", model.rules().get(0).action().headers().get(0).value()); + Assertions.assertEquals(RaiEgressScheme.HTTP, model.rules().get(0).action().rewrite().scheme()); + Assertions.assertEquals("sgow", model.rules().get(0).action().rewrite().host()); + Assertions.assertEquals("ttsttktlahbqact", model.rules().get(0).action().rewrite().path()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java index 414173b8fcc1..fa549b41c665 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java @@ -12,20 +12,21 @@ public final class RaiEgressRewriteTargetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiEgressRewriteTarget model = BinaryData.fromString("{\"scheme\":\"https\",\"host\":\"k\",\"path\":\"zshq\"}") - .toObject(RaiEgressRewriteTarget.class); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.scheme()); - Assertions.assertEquals("k", model.host()); - Assertions.assertEquals("zshq", model.path()); + RaiEgressRewriteTarget model + = BinaryData.fromString("{\"scheme\":\"http\",\"host\":\"hdd\",\"path\":\"acegfnmntf\"}") + .toObject(RaiEgressRewriteTarget.class); + Assertions.assertEquals(RaiEgressScheme.HTTP, model.scheme()); + Assertions.assertEquals("hdd", model.host()); + Assertions.assertEquals("acegfnmntf", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiEgressRewriteTarget model - = new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS).withHost("k").withPath("zshq"); + = new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTP).withHost("hdd").withPath("acegfnmntf"); model = BinaryData.fromObject(model).toObject(RaiEgressRewriteTarget.class); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.scheme()); - Assertions.assertEquals("k", model.host()); - Assertions.assertEquals("zshq", model.path()); + Assertions.assertEquals(RaiEgressScheme.HTTP, model.scheme()); + Assertions.assertEquals("hdd", model.host()); + Assertions.assertEquals("acegfnmntf", model.path()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java index 5800ff3ba05b..a0fbbdb96b1d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java @@ -11,17 +11,17 @@ public final class RaiEgressRuleMatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiEgressRuleMatch model = BinaryData.fromString("{\"host\":\"qchiszep\",\"path\":\"bjcrxgibbdaxco\"}") - .toObject(RaiEgressRuleMatch.class); - Assertions.assertEquals("qchiszep", model.host()); - Assertions.assertEquals("bjcrxgibbdaxco", model.path()); + RaiEgressRuleMatch model + = BinaryData.fromString("{\"host\":\"oaz\",\"path\":\"u\"}").toObject(RaiEgressRuleMatch.class); + Assertions.assertEquals("oaz", model.host()); + Assertions.assertEquals("u", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiEgressRuleMatch model = new RaiEgressRuleMatch().withHost("qchiszep").withPath("bjcrxgibbdaxco"); + RaiEgressRuleMatch model = new RaiEgressRuleMatch().withHost("oaz").withPath("u"); model = BinaryData.fromObject(model).toObject(RaiEgressRuleMatch.class); - Assertions.assertEquals("qchiszep", model.host()); - Assertions.assertEquals("bjcrxgibbdaxco", model.path()); + Assertions.assertEquals("oaz", model.host()); + Assertions.assertEquals("u", model.path()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java index 6135afb9b57b..1aa8c61ea7d4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java @@ -40,7 +40,7 @@ public final class RaiPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"jstbhemhcucsqsnx\",\"contentFilters\":[{\"name\":\"feapdrbzyvbsuadu\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"},{\"name\":\"zh\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"dhfztlra\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"kyhudbkuwpzqxl\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"Completion\",\"safetyProviderName\":\"jvxfaqufqizjvppw\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"yjmjjxizxpxhnzls\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Deny\",\"description\":\"jtyqpd\",\"rules\":[{\"name\":\"egh\",\"description\":\"ldsvc\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"h\",\"tags\":{\"jqhddwvmqxiyoo\":\"mjzucwwme\",\"aix\":\"yfozkbnzxbypfqp\"},\"id\":\"grkkderfrswq\",\"name\":\"kwepwo\",\"type\":\"ggicwnxhtfmcqbs\"}"; + = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"rvmzrqra\",\"contentFilters\":[{\"name\":\"vznllaslkskhjqj\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"},{\"name\":\"taiy\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"nwldfmhljq\",\"blocking\":false},{\"source\":\"PostRun\",\"blocklistName\":\"jc\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"buhsxrznmgsda\",\"blocking\":true},{\"source\":\"Prompt\",\"safetyProviderName\":\"efrbhseuerbg\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"udcaytujrax\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"nsewouxl\",\"rules\":[{\"name\":\"vvyljurkepose\",\"description\":\"qylmpctwjwdsd\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Deny\"}}]}},\"etag\":\"erxxxoteehkhowgo\",\"tags\":{\"c\":\"hxow\",\"p\":\"apnpxraqawbmp\",\"xrkgjn\":\"eylqlocvvujexayg\",\"pieidzlvssqy\":\"zpaslavxjfiuo\"},\"id\":\"opac\",\"name\":\"yhydvikmfn\",\"type\":\"pmillxgjsci\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -50,82 +50,93 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.raiPolicies() - .define("qx") - .withExistingAccount("wkslvlized", "biabvnsrgekz") - .withTags(mapOf("tgctxe", "ad", "fnzzryizwbxg", "tvgwyurbe")) - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.BLOCKING) - .withBasePolicyName("wkhojqttbspvkhg") + .define("ssgpgvo") + .withExistingAccount("usdekpd", "z") + .withTags(mapOf("uklajvcfoc", "ekfsrm", "kwxnhwhhnoyrza", "hapejov", "xc", "oeehpmjenvjeatea", + "zkdolrndwdbvxvza", "xoxdjxldnaryyi")) + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) + .withBasePolicyName("dqzsqu") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("sgyzstujrzxr") + new RaiPolicyContentFilter().withName("ztlvv") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN) + .withAction(RaiActionType.NONE), + new RaiPolicyContentFilter().withName("pwpwfkcauxuva") .withEnabled(false) .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION) .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("iiit") + new RaiPolicyContentFilter().withName("lbtxluevsolzw") .withEnabled(true) - .withSeverityThreshold(ContentLevel.LOW) + .withSeverityThreshold(ContentLevel.HIGH) .withBlocking(false) .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.BLOCKING))) - .withCustomBlocklists(Arrays.asList(new CustomBlocklistConfig().withBlocklistName("azcsozjvx") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("vt") + .withAction(RaiActionType.HITL))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("xhfxfjwpdkkt") .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN), - new SafetyProviderConfig().withSafetyProviderName("zyxwhoe") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT))) - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.ALLOW) - .withDescription("ysfpnimtwu") + .withSource(RaiPolicyContentSource.PROMPT), + new CustomBlocklistConfig().withBlocklistName("mbrwg") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL))) + .withSafetyProviders(Arrays.asList(new SafetyProviderConfig().withSafetyProviderName("xsdpla") + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION))) + .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.AUDIT) + .withDefaultAction(RaiEgressDefaultAction.DENY) + .withDescription("jf") .withRules(Arrays.asList( - new RaiEgressRule().withName("uegn") - .withDescription("mnfeub") + new RaiEgressRule().withName("dgtokvqbvwg") + .withDescription("w") .withRuleType(RaiEgressRuleType.FQDN) .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM)), - new RaiEgressRule().withName("r") - .withDescription("fugiphrrkuu") + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE)), + new RaiEgressRule().withName("akglhpsesrfga") + .withDescription("iydvxc") .withRuleType(RaiEgressRuleType.FQDN) .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE)), - new RaiEgressRule().withName("urhzzf") - .withDescription("ueoqusvwluj") + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY)), + new RaiEgressRule().withName("hgoqgsoyqyxyj") + .withDescription("b") .withRuleType(RaiEgressRuleType.FQDN) .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE)))))) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY)), + new RaiEgressRule().withName("spglq") + .withDescription("xtdahneao") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch()) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)))))) .create(); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); - Assertions.assertEquals("jstbhemhcucsqsnx", response.properties().basePolicyName()); - Assertions.assertEquals("feapdrbzyvbsuadu", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFERRED, response.properties().mode()); + Assertions.assertEquals("rvmzrqra", response.properties().basePolicyName()); + Assertions.assertEquals("vznllaslkskhjqj", response.properties().contentFilters().get(0).name()); Assertions.assertTrue(response.properties().contentFilters().get(0).enabled()); Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(response.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertTrue(response.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.RETRY, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("dhfztlra", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiActionType.ANNOTATING, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("nwldfmhljq", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(response.properties().customBlocklists().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("jvxfaqufqizjvppw", - response.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertEquals("buhsxrznmgsda", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("jtyqpd", response.properties().egressPolicy().description()); - Assertions.assertEquals("egh", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("ldsvc", response.properties().egressPolicy().rules().get(0).description()); + Assertions.assertEquals(RaiEgressMode.ENFORCED, response.properties().egressPolicy().mode()); + Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); + Assertions.assertEquals("nsewouxl", response.properties().egressPolicy().description()); + Assertions.assertEquals("vvyljurkepose", response.properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("qylmpctwjwdsd", response.properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, + Assertions.assertEquals(RaiEgressRuleActionType.DENY, response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("mjzucwwme", response.tags().get("jqhddwvmqxiyoo")); + Assertions.assertEquals("hxow", response.tags().get("c")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java index 3a7cbe9a42e0..595d03d39356 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class RaiPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"fjxokye\",\"contentFilters\":[{\"name\":\"svfnkwm\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"},{\"name\":\"ugjqyckgtxkrdt\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"zoonsv\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"whdyslbklglm\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"yqshwyqxridtt\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"qwqueuuy\",\"rules\":[{\"name\":\"pziiz\",\"description\":\"jyk\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"zefkhkqtwqlepjj\",\"description\":\"c\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"zcntogffjwajnrtw\",\"description\":\"aqkifmxawostfz\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}}]}},\"etag\":\"m\",\"tags\":{\"ypvndrw\":\"cfvdscnhemvwfnqq\"},\"id\":\"od\",\"name\":\"ggrssgwjfkain\",\"type\":\"muymvec\"}"; + = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"mfmvsmc\",\"contentFilters\":[{\"name\":\"axdtnqif\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"HITL\"},{\"name\":\"gmocpcjycboelrgt\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"dpk\",\"blocking\":false},{\"source\":\"PreToolCall\",\"blocklistName\":\"tmqrxrzqv\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"btgmbxi\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"pxmib\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"efqm\",\"rules\":[{\"name\":\"yztxlno\",\"description\":\"pbjceegvy\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Deny\"}},{\"name\":\"kutnjillukkrehy\",\"description\":\"mjodu\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"xfaryrvj\",\"tags\":{\"ahoyiyaxqvj\":\"ezvjq\",\"vovbooqbmdqrx\":\"eiwtczkdd\"},\"id\":\"laetscflwtjdtlr\",\"name\":\"e\",\"type\":\"ooy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,33 +39,34 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.raiPolicies() - .getWithResponse("muafmczfedyuepsv", "lti", "ajjvywe", com.azure.core.util.Context.NONE) + .getWithResponse("ikfyaqandm", "mnqoqjum", "vsfbp", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.properties().mode()); - Assertions.assertEquals("fjxokye", response.properties().basePolicyName()); - Assertions.assertEquals("svfnkwm", response.properties().contentFilters().get(0).name()); - Assertions.assertTrue(response.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.properties().mode()); + Assertions.assertEquals("mfmvsmc", response.properties().basePolicyName()); + Assertions.assertEquals("axdtnqif", response.properties().contentFilters().get(0).name()); + Assertions.assertFalse(response.properties().contentFilters().get(0).enabled()); Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); Assertions.assertTrue(response.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("zoonsv", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.HITL, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("dpk", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(response.properties().customBlocklists().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("whdyslbklglm", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("btgmbxi", response.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); + Assertions.assertEquals(RaiEgressMode.ENFORCED, response.properties().egressPolicy().mode()); Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("qwqueuuy", response.properties().egressPolicy().description()); - Assertions.assertEquals("pziiz", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("jyk", response.properties().egressPolicy().rules().get(0).description()); + Assertions.assertEquals("efqm", response.properties().egressPolicy().description()); + Assertions.assertEquals("yztxlno", response.properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("pbjceegvy", response.properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, + Assertions.assertEquals(RaiEgressRuleActionType.DENY, response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("cfvdscnhemvwfnqq", response.tags().get("ypvndrw")); + Assertions.assertEquals("ezvjq", response.tags().get("ahoyiyaxqvj")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java index cc717da77a86..c943dd69245b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java @@ -30,7 +30,7 @@ public final class RaiPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"lbz\",\"contentFilters\":[{\"name\":\"n\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"HITL\"},{\"name\":\"nynpameudpabcre\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"RETRY\"},{\"name\":\"asormrexzvdube\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"RETRY\"},{\"name\":\"ovsdqhzrtdbakrli\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"ngygnhrko\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreToolCall\",\"safetyProviderName\":\"opggorwjoqtrotp\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"yrlmwkptsk\",\"blocking\":false},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"xccb\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"ookbpu\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Deny\",\"description\":\"mlwktfo\",\"rules\":[{\"name\":\"royrdurxf\",\"description\":\"qjimejtgzjxxlfej\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}},{\"name\":\"loiwy\",\"description\":\"yzivrm\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"qlhchwhrktjle\",\"description\":\"ibfiplhxfnsm\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"wlyeyz\",\"description\":\"dsqcmhnxl\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"dmac\",\"tags\":{\"qplehmumkzdllczd\":\"vnrpbjrmvg\",\"ivrakfrryn\":\"rwnhkgqggoxsst\",\"mjpequlr\":\"cwmhlymgnukxrk\",\"dwnhczbutoucgjti\":\"zaudgjtfbclakkuc\"},\"id\":\"way\",\"name\":\"icqqw\",\"type\":\"v\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"tolamlbijuxkq\",\"contentFilters\":[{\"name\":\"i\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"None\"},{\"name\":\"qdlratrkw\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"None\"},{\"name\":\"hrfgslglhpryjfz\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"vkbdgddkrhdccxbe\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"zwtjwwguzytijc\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"jdydhq\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"ckcatuqbhpo\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"zdlys\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"katprytgrhzbq\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"vcshtkut\",\"rules\":[{\"name\":\"tbqgdirdamm\",\"description\":\"jgcf\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"bwjjirmuydgf\",\"description\":\"mdofgeoagfuoft\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Deny\"}}]}},\"etag\":\"xmdajwiy\",\"tags\":{\"czljdnci\":\"sevmdmzenlrstg\",\"yyznmrgcdogcvuc\":\"tjva\"},\"id\":\"to\",\"name\":\"uwhttnzqsaqmeb\",\"type\":\"szp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -40,41 +40,41 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiPolicies().list("ztscbgmusaictds", "nkzzohnrddclz", com.azure.core.util.Context.NONE); + = manager.raiPolicies().list("cuxd", "zcqipsdudgcozzo", com.azure.core.util.Context.NONE); Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.iterator().next().properties().mode()); - Assertions.assertEquals("lbz", response.iterator().next().properties().basePolicyName()); - Assertions.assertEquals("n", response.iterator().next().properties().contentFilters().get(0).name()); + Assertions.assertEquals("tolamlbijuxkq", response.iterator().next().properties().basePolicyName()); + Assertions.assertEquals("i", response.iterator().next().properties().contentFilters().get(0).name()); Assertions.assertTrue(response.iterator().next().properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.MEDIUM, + Assertions.assertEquals(ContentLevel.HIGH, response.iterator().next().properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(response.iterator().next().properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + Assertions.assertTrue(response.iterator().next().properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, response.iterator().next().properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.HITL, + Assertions.assertEquals(RaiActionType.NONE, response.iterator().next().properties().contentFilters().get(0).action()); - Assertions.assertEquals("ngygnhrko", + Assertions.assertEquals("vkbdgddkrhdccxbe", response.iterator().next().properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(response.iterator().next().properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, response.iterator().next().properties().customBlocklists().get(0).source()); - Assertions.assertEquals("opggorwjoqtrotp", + Assertions.assertEquals("jdydhq", response.iterator().next().properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(response.iterator().next().properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + Assertions.assertTrue(response.iterator().next().properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.iterator().next().properties().safetyProviders().get(0).source()); Assertions.assertEquals(RaiEgressMode.ENFORCED, response.iterator().next().properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, + Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.iterator().next().properties().egressPolicy().defaultAction()); - Assertions.assertEquals("mlwktfo", response.iterator().next().properties().egressPolicy().description()); - Assertions.assertEquals("royrdurxf", + Assertions.assertEquals("vcshtkut", response.iterator().next().properties().egressPolicy().description()); + Assertions.assertEquals("tbqgdirdamm", response.iterator().next().properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("qjimejtgzjxxlfej", + Assertions.assertEquals("jgcf", response.iterator().next().properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, response.iterator().next().properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, + Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, response.iterator().next().properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("vnrpbjrmvg", response.iterator().next().tags().get("qplehmumkzdllczd")); + Assertions.assertEquals("sevmdmzenlrstg", response.iterator().next().tags().get("czljdnci")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java index c84f0423d8e2..3e8c155efc0d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java @@ -15,30 +15,30 @@ public final class RaiPolicyContentFilterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyContentFilter model = BinaryData.fromString( - "{\"name\":\"dftuljltduce\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"RETRY\"}") + "{\"name\":\"oldweyuqdu\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostToolCall\",\"action\":\"ANNOTATING\"}") .toObject(RaiPolicyContentFilter.class); - Assertions.assertEquals("dftuljltduce", model.name()); - Assertions.assertTrue(model.enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.severityThreshold()); + Assertions.assertEquals("oldweyuqdu", model.name()); + Assertions.assertFalse(model.enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.severityThreshold()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); - Assertions.assertEquals(RaiActionType.RETRY, model.action()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.source()); + Assertions.assertEquals(RaiActionType.ANNOTATING, model.action()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("dftuljltduce") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) + RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("oldweyuqdu") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT) - .withAction(RaiActionType.RETRY); + .withSource(RaiPolicyContentSource.POST_TOOL_CALL) + .withAction(RaiActionType.ANNOTATING); model = BinaryData.fromObject(model).toObject(RaiPolicyContentFilter.class); - Assertions.assertEquals("dftuljltduce", model.name()); - Assertions.assertTrue(model.enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.severityThreshold()); + Assertions.assertEquals("oldweyuqdu", model.name()); + Assertions.assertFalse(model.enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.severityThreshold()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); - Assertions.assertEquals(RaiActionType.RETRY, model.action()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.source()); + Assertions.assertEquals(RaiActionType.ANNOTATING, model.action()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java index 599cb9f35380..4d3d4d40ffeb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java @@ -34,144 +34,148 @@ public final class RaiPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Default\",\"basePolicyName\":\"rkpyouaibrebqaay\",\"contentFilters\":[{\"name\":\"xqtnq\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"},{\"name\":\"pjpqqmtedltmmji\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"BLOCKING\"},{\"name\":\"qncygupkvi\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"totxhojujb\",\"blocking\":true},{\"source\":\"Completion\",\"blocklistName\":\"uvhixbjxyfwn\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"ttpkiwkkbnujrywv\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Deny\",\"description\":\"rd\",\"rules\":[{\"name\":\"iithtywu\",\"description\":\"cbihwqk\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"twjchrdg\",\"path\":\"hxumwctondzj\"},\"action\":{\"actionType\":\"Allow\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"dlwggytsbwtovv\"},{\"operation\":\"Insert\",\"name\":\"seinqfiuf\"},{\"operation\":\"Insert\",\"name\":\"knpirgnepttwq\"}],\"rewrite\":{}}},{\"name\":\"niffcdmqnroj\",\"description\":\"ijnkrxfrdd\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"tizzronasxif\",\"path\":\"zq\"},\"action\":{\"actionType\":\"Allow\",\"headers\":[{\"operation\":\"Set\",\"name\":\"wesgogczh\"}],\"rewrite\":{}}},{\"name\":\"nxkrlgnyhmossxkk\",\"description\":\"h\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"xjb\",\"path\":\"qxvcxgfrpdsofb\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Set\",\"name\":\"vbuswd\"},{\"operation\":\"Insert\",\"name\":\"yybyc\"},{\"operation\":\"Remove\",\"name\":\"nvjsrtkfa\"}],\"rewrite\":{}}}]}},\"etag\":\"pqgik\",\"tags\":{\"sewgioilqukr\":\"rtxdyuxzejnt\"},\"id\":\"xtqmieoxor\",\"name\":\"gufhyaomtbg\",\"type\":\"havgrvk\"}") + "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"yaomtb\",\"contentFilters\":[{\"name\":\"vgrvkffo\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"},{\"name\":\"fxumv\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"None\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"xscyhwzdgirujbz\",\"blocking\":true},{\"source\":\"PostToolCall\",\"blocklistName\":\"btdcqvpniyujvi\",\"blocking\":false},{\"source\":\"Completion\",\"blocklistName\":\"fssnrbgyefrymsga\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"cotmr\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"oxoftpipiwycz\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"qjlihhyuspska\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"wdgzxulucv\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"vxurisjnhnytxifq\",\"rules\":[{\"name\":\"xmrhu\",\"description\":\"wp\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"trgjupauutpwoqh\",\"path\":\"ejqgw\"},\"action\":{\"actionType\":\"Transform\",\"headers\":[{\"operation\":\"Set\",\"name\":\"n\"},{\"operation\":\"Set\",\"name\":\"ypsxjvfoim\"}],\"rewrite\":{}}},{\"name\":\"slirciz\",\"description\":\"vydfceacvlhvygdy\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"rtwnawjslbi\",\"path\":\"ojgcyzt\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Set\",\"name\":\"baeqphc\"}],\"rewrite\":{}}},{\"name\":\"nrnrp\",\"description\":\"huwrykqgaifm\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"bydvkhbejdz\",\"path\":\"cvdsrhnj\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Set\",\"name\":\"tnovqfzgemjdftul\"},{\"operation\":\"Insert\",\"name\":\"tduceamt\"}],\"rewrite\":{}}}]}},\"etag\":\"u\",\"tags\":{\"w\":\"jw\",\"vpkjpr\":\"qioknssxmojm\",\"ql\":\"kwcf\"},\"id\":\"x\",\"name\":\"tczheydbsdshmkx\",\"type\":\"aehvbbxuri\"}") .toObject(RaiPolicyInner.class); Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.properties().mode()); - Assertions.assertEquals("rkpyouaibrebqaay", model.properties().basePolicyName()); - Assertions.assertEquals("xqtnq", model.properties().contentFilters().get(0).name()); + Assertions.assertEquals("yaomtb", model.properties().basePolicyName()); + Assertions.assertEquals("vgrvkffo", model.properties().contentFilters().get(0).name()); Assertions.assertFalse(model.properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(model.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals(ContentLevel.LOW, model.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertTrue(model.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + model.properties().contentFilters().get(0).source()); Assertions.assertEquals(RaiActionType.ANNOTATING, model.properties().contentFilters().get(0).action()); - Assertions.assertEquals("totxhojujb", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals("xscyhwzdgirujbz", model.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(model.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("ttpkiwkkbnujrywv", model.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(model.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("rd", model.properties().egressPolicy().description()); - Assertions.assertEquals("iithtywu", model.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("cbihwqk", model.properties().egressPolicy().rules().get(0).description()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("oxoftpipiwycz", model.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertFalse(model.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().safetyProviders().get(0).source()); + Assertions.assertEquals(RaiEgressMode.AUDIT, model.properties().egressPolicy().mode()); + Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.properties().egressPolicy().defaultAction()); + Assertions.assertEquals("vxurisjnhnytxifq", model.properties().egressPolicy().description()); + Assertions.assertEquals("xmrhu", model.properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("wp", model.properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("twjchrdg", model.properties().egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("hxumwctondzj", model.properties().egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, + Assertions.assertEquals("trgjupauutpwoqh", model.properties().egressPolicy().rules().get(0).match().host()); + Assertions.assertEquals("ejqgw", model.properties().egressPolicy().rules().get(0).match().path()); + Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, model.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, + Assertions.assertEquals(RaiEgressHeaderOperation.SET, model.properties().egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwggytsbwtovv", - model.properties().egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("rtxdyuxzejnt", model.tags().get("sewgioilqukr")); + Assertions.assertEquals("n", model.properties().egressPolicy().rules().get(0).action().headers().get(0).name()); + Assertions.assertEquals("jw", model.tags().get("w")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiPolicyInner model = new RaiPolicyInner() - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) - .withBasePolicyName("rkpyouaibrebqaay") + .withProperties(new RaiPolicyProperties() + .withMode(RaiPolicyMode.DEFAULT) + .withBasePolicyName("yaomtb") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("xqtnq") + new RaiPolicyContentFilter().withName("vgrvkffo") .withEnabled(false) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.ANNOTATING), - new RaiPolicyContentFilter().withName("pjpqqmtedltmmji") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.MEDIUM) + .withSeverityThreshold(ContentLevel.LOW) .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION) - .withAction(RaiActionType.BLOCKING), - new RaiPolicyContentFilter().withName("qncygupkvi") + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.ANNOTATING), + new RaiPolicyContentFilter().withName("fxumv") .withEnabled(true) .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) + .withBlocking(false) .withSource(RaiPolicyContentSource.PROMPT) - .withAction(RaiActionType.BLOCKING))) + .withAction(RaiActionType.NONE))) .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("totxhojujb") + new CustomBlocklistConfig().withBlocklistName("xscyhwzdgirujbz") .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN), - new CustomBlocklistConfig().withBlocklistName("uvhixbjxyfwn") + .withSource(RaiPolicyContentSource.PRE_RUN), + new CustomBlocklistConfig().withBlocklistName("btdcqvpniyujvi") .withBlocking(false) - .withSource(RaiPolicyContentSource.COMPLETION))) - .withSafetyProviders(Arrays - .asList(new SafetyProviderConfig().withSafetyProviderName("ttpkiwkkbnujrywv") + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new CustomBlocklistConfig().withBlocklistName("fssnrbgyefrymsga") .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN))) - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("rd") + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("cotmr") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT))) + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("oxoftpipiwycz") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN), + new SafetyProviderConfig().withSafetyProviderName("qjlihhyuspska") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new SafetyProviderConfig() + .withSafetyProviderName("wdgzxulucv") + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION))) + .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.AUDIT) + .withDefaultAction(RaiEgressDefaultAction.ALLOW) + .withDescription("vxurisjnhnytxifq") .withRules(Arrays.asList( - new RaiEgressRule().withName("iithtywu") - .withDescription("cbihwqk") + new RaiEgressRule().withName("xmrhu") + .withDescription("wp") .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("twjchrdg").withPath("hxumwctondzj")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW) + .withMatch(new RaiEgressRuleMatch().withHost("trgjupauutpwoqh").withPath("ejqgw")) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) .withHeaders(Arrays.asList( - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("dlwggytsbwtovv"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("seinqfiuf"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("knpirgnepttwq"))) + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) + .withName("n"), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) + .withName("ypsxjvfoim"))) .withRewrite(new RaiEgressRewriteTarget())), - new RaiEgressRule().withName("niffcdmqnroj") - .withDescription("ijnkrxfrdd") + new RaiEgressRule().withName("slirciz") + .withDescription("vydfceacvlhvygdy") .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("tizzronasxif").withPath("zq")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW) + .withMatch(new RaiEgressRuleMatch().withHost("rtwnawjslbi").withPath("ojgcyzt")) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) .withHeaders(Arrays .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("wesgogczh"))) + .withName("baeqphc"))) .withRewrite(new RaiEgressRewriteTarget())), - new RaiEgressRule().withName("nxkrlgnyhmossxkk") - .withDescription("h") + new RaiEgressRule().withName("nrnrp") + .withDescription("huwrykqgaifm") .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("xjb").withPath("qxvcxgfrpdsofb")) + .withMatch(new RaiEgressRuleMatch().withHost("bydvkhbejdz").withPath("cvdsrhnj")) .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) .withHeaders(Arrays.asList( new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("vbuswd"), + .withName("tnovqfzgemjdftul"), new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("yybyc"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("nvjsrtkfa"))) + .withName("tduceamt"))) .withRewrite(new RaiEgressRewriteTarget())))))) - .withTags(mapOf("sewgioilqukr", "rtxdyuxzejnt")); + .withTags(mapOf("w", "jw", "vpkjpr", "qioknssxmojm", "ql", "kwcf")); model = BinaryData.fromObject(model).toObject(RaiPolicyInner.class); Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.properties().mode()); - Assertions.assertEquals("rkpyouaibrebqaay", model.properties().basePolicyName()); - Assertions.assertEquals("xqtnq", model.properties().contentFilters().get(0).name()); + Assertions.assertEquals("yaomtb", model.properties().basePolicyName()); + Assertions.assertEquals("vgrvkffo", model.properties().contentFilters().get(0).name()); Assertions.assertFalse(model.properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(model.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals(ContentLevel.LOW, model.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertTrue(model.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + model.properties().contentFilters().get(0).source()); Assertions.assertEquals(RaiActionType.ANNOTATING, model.properties().contentFilters().get(0).action()); - Assertions.assertEquals("totxhojujb", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals("xscyhwzdgirujbz", model.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(model.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("ttpkiwkkbnujrywv", model.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(model.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("rd", model.properties().egressPolicy().description()); - Assertions.assertEquals("iithtywu", model.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("cbihwqk", model.properties().egressPolicy().rules().get(0).description()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("oxoftpipiwycz", model.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertFalse(model.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().safetyProviders().get(0).source()); + Assertions.assertEquals(RaiEgressMode.AUDIT, model.properties().egressPolicy().mode()); + Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.properties().egressPolicy().defaultAction()); + Assertions.assertEquals("vxurisjnhnytxifq", model.properties().egressPolicy().description()); + Assertions.assertEquals("xmrhu", model.properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("wp", model.properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("twjchrdg", model.properties().egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("hxumwctondzj", model.properties().egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, + Assertions.assertEquals("trgjupauutpwoqh", model.properties().egressPolicy().rules().get(0).match().host()); + Assertions.assertEquals("ejqgw", model.properties().egressPolicy().rules().get(0).match().path()); + Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, model.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, + Assertions.assertEquals(RaiEgressHeaderOperation.SET, model.properties().egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwggytsbwtovv", - model.properties().egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("rtxdyuxzejnt", model.tags().get("sewgioilqukr")); + Assertions.assertEquals("n", model.properties().egressPolicy().rules().get(0).action().headers().get(0).name()); + Assertions.assertEquals("jw", model.tags().get("w")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java index 3154c9af0e72..f2ac02b74364 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java @@ -20,38 +20,39 @@ public final class RaiPolicyListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyListResult model = BinaryData.fromString( - "{\"nextLink\":\"impevf\",\"value\":[{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"ywdxsmic\",\"contentFilters\":[{\"name\":\"fscjfnynszquji\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"bblgyavut\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"sbpimlq\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"None\"},{\"name\":\"ffgcvizqz\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"ubdyhgk\",\"blocking\":false},{\"source\":\"Completion\",\"blocklistName\":\"owzfttsttkt\",\"blocking\":false},{\"source\":\"PostToolCall\",\"blocklistName\":\"ctxtgzukxi\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"qqqxhrnxrx\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"okqdzfvaz\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"qttbaj\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"opidkqqfkuv\",\"rules\":[{\"name\":\"kdmligovi\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"kpmloa\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Deny\"}}]}},\"etag\":\"ocbgoorbteoyb\",\"tags\":{\"il\":\"xakvvjgslor\",\"t\":\"yw\"},\"id\":\"kxn\",\"name\":\"edabgyvudtjue\",\"type\":\"bcihxuuwhc\"}]}") + "{\"nextLink\":\"vm\",\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"vbalxlllc\",\"contentFilters\":[{\"name\":\"bzevwrd\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"RETRY\"},{\"name\":\"smystuluqypfc\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"BLOCKING\"},{\"name\":\"jbabwidf\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"qddrihpfhoqcaae\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"l\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"brm\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Deny\",\"description\":\"zkdnc\",\"rules\":[{\"name\":\"onbzoggculapzwy\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"ogtqxepnylbf\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Transform\"}},{\"name\":\"lyjt\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"fqzhv\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Deny\"}}]}},\"etag\":\"yfm\",\"tags\":{\"fzwiivwzjbhyz\":\"xrkjpvdw\",\"mbtrnegvmnvu\":\"xjrk\"},\"id\":\"qvldspastjbkkd\",\"name\":\"flvestmjlxrrilo\",\"type\":\"apeewchpxlkt\"},{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"slevufuztc\",\"contentFilters\":[{\"name\":\"jtqedcgzulwmm\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"RETRY\"},{\"name\":\"dzgkr\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"},{\"name\":\"t\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"wzqa\",\"blocking\":false},{\"source\":\"PreRun\",\"blocklistName\":\"riglaec\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Prompt\",\"safetyProviderName\":\"pvz\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"dgxobfircl\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"iykhy\",\"rules\":[{\"name\":\"vjlboxqvk\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"xhom\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"hdwdi\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Transform\"}},{\"name\":\"bnraauzzptjazysd\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Deny\"}}]}},\"etag\":\"wwvaiqyuvvfonk\",\"tags\":{\"auy\":\"qyikvy\",\"y\":\"vluwmncsttij\"},\"id\":\"poekrsgsgb\",\"name\":\"huzqgn\",\"type\":\"dgkynscliqhzvhxn\"},{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"otppnv\",\"contentFilters\":[{\"name\":\"hihfrbbcevqagtlt\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PostToolCall\",\"blocklistName\":\"cnifm\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"nysuxmprafwgckh\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"ffwafq\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"pavehhr\",\"blocking\":true},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"oz\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"yxcdyuibhmfdnbzy\",\"rules\":[{\"name\":\"vfcjnaeoisrvhmg\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"ukiscvwmzhw\",\"tags\":{\"btgn\":\"faxvxil\",\"zqlqhyc\":\"nzeyqxtjj\",\"mieknlraria\":\"vodggxdbee\"},\"id\":\"iuagydwqfbylyrfg\",\"name\":\"agt\",\"type\":\"ojocqwogf\"}]}") .toObject(RaiPolicyListResult.class); - Assertions.assertEquals("impevf", model.nextLink()); - Assertions.assertEquals(RaiPolicyMode.DEFERRED, model.value().get(0).properties().mode()); - Assertions.assertEquals("ywdxsmic", model.value().get(0).properties().basePolicyName()); - Assertions.assertEquals("fscjfnynszquji", model.value().get(0).properties().contentFilters().get(0).name()); - Assertions.assertFalse(model.value().get(0).properties().contentFilters().get(0).enabled()); + Assertions.assertEquals("vm", model.nextLink()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.value().get(0).properties().mode()); + Assertions.assertEquals("vbalxlllc", model.value().get(0).properties().basePolicyName()); + Assertions.assertEquals("bzevwrd", model.value().get(0).properties().contentFilters().get(0).name()); + Assertions.assertTrue(model.value().get(0).properties().contentFilters().get(0).enabled()); Assertions.assertEquals(ContentLevel.LOW, model.value().get(0).properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(model.value().get(0).properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + Assertions.assertTrue(model.value().get(0).properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.value().get(0).properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, + Assertions.assertEquals(RaiActionType.RETRY, model.value().get(0).properties().contentFilters().get(0).action()); - Assertions.assertEquals("ubdyhgk", model.value().get(0).properties().customBlocklists().get(0).blocklistName()); - Assertions.assertFalse(model.value().get(0).properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertEquals("qddrihpfhoqcaae", + model.value().get(0).properties().customBlocklists().get(0).blocklistName()); + Assertions.assertTrue(model.value().get(0).properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.value().get(0).properties().customBlocklists().get(0).source()); - Assertions.assertEquals("okqdzfvaz", - model.value().get(0).properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("l", model.value().get(0).properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(model.value().get(0).properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.value().get(0).properties().safetyProviders().get(0).source()); Assertions.assertEquals(RaiEgressMode.AUDIT, model.value().get(0).properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, + Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.value().get(0).properties().egressPolicy().defaultAction()); - Assertions.assertEquals("opidkqqfkuv", model.value().get(0).properties().egressPolicy().description()); - Assertions.assertEquals("kdmligovi", model.value().get(0).properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("zkdnc", model.value().get(0).properties().egressPolicy().description()); + Assertions.assertEquals("onbzoggculapzwy", + model.value().get(0).properties().egressPolicy().rules().get(0).name()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.value().get(0).properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, + Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, model.value().get(0).properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("xakvvjgslor", model.value().get(0).tags().get("il")); + Assertions.assertEquals("xrkjpvdw", model.value().get(0).tags().get("fzwiivwzjbhyz")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java index c9e2b378bc9b..85922e98ec79 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java @@ -32,152 +32,152 @@ public final class RaiPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyProperties model = BinaryData.fromString( - "{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"hpjbib\",\"contentFilters\":[{\"name\":\"xumvfcluyovw\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"BLOCKING\"},{\"name\":\"hwzdgirujbz\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"HITL\"},{\"name\":\"pniyujviyl\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"None\"},{\"name\":\"efr\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"None\"}],\"customBlocklists\":[{\"source\":\"PostToolCall\",\"blocklistName\":\"fhir\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"oftpipiwycz\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"lihhyuspskasdvlm\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"ulucv\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"euzvx\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"txifqj\",\"rules\":[{\"name\":\"mrhublwpc\",\"description\":\"utr\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"auutpwoqhihe\",\"path\":\"g\"},\"action\":{\"actionType\":\"Rewrite\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"qntcypsxjvfoimwk\"}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"izjx\",\"path\":\"dfcea\"}}},{\"name\":\"vlhv\",\"description\":\"dyftumrtwna\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"biwkojgcyzt\",\"path\":\"mznbaeqphch\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"pxehuwrykqga\"},{\"operation\":\"Remove\",\"name\":\"mvikl\"}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"hbejdznxcvdsrhnj\",\"path\":\"olvtnovqfzge\"}}}]}}") + "{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"tbaxk\",\"contentFilters\":[{\"name\":\"rc\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"RETRY\"},{\"name\":\"pvruudlg\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"eclze\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"zlhp\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"lwwqfbumlkxtrqj\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"hwgfwsrt\",\"blocking\":true},{\"source\":\"Prompt\",\"safetyProviderName\":\"brhu\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"ookk\",\"rules\":[{\"name\":\"jb\",\"description\":\"eorfm\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"tqzfavyv\",\"path\":\"qybaryeua\"},\"action\":{\"actionType\":\"Allow\",\"headers\":[{\"operation\":\"Remove\",\"name\":\"bqgzslesjcbhern\"},{\"operation\":\"Insert\",\"name\":\"iew\"},{\"operation\":\"Insert\",\"name\":\"cv\"},{\"operation\":\"Remove\",\"name\":\"uwrbehwagoh\"}],\"rewrite\":{\"scheme\":\"http\",\"host\":\"mrqemvvhmx\",\"path\":\"rjfut\"}}},{\"name\":\"coebjvewzcj\",\"description\":\"m\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"guaadraufactkahz\",\"path\":\"ajjziuxxpshne\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Set\",\"name\":\"gs\"}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"wdlenrdsut\",\"path\":\"bazpjuohmi\"}}},{\"name\":\"yfln\",\"description\":\"wmd\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"klvxwmyg\",\"path\":\"pgpqchiszepnnb\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"ibbdaxconfoza\"},{\"operation\":\"Insert\",\"name\":\"rsukokwbqplh\"}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"epzl\",\"path\":\"hw\"}}}]}}") .toObject(RaiPolicyProperties.class); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.mode()); - Assertions.assertEquals("hpjbib", model.basePolicyName()); - Assertions.assertEquals("xumvfcluyovw", model.contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.mode()); + Assertions.assertEquals("tbaxk", model.basePolicyName()); + Assertions.assertEquals("rc", model.contentFilters().get(0).name()); Assertions.assertTrue(model.contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(ContentLevel.HIGH, model.contentFilters().get(0).severityThreshold()); Assertions.assertTrue(model.contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, model.contentFilters().get(0).action()); - Assertions.assertEquals("fhir", model.customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.RETRY, model.contentFilters().get(0).action()); + Assertions.assertEquals("eclze", model.customBlocklists().get(0).blocklistName()); Assertions.assertTrue(model.customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.customBlocklists().get(0).source()); - Assertions.assertEquals("lihhyuspskasdvlm", model.safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.customBlocklists().get(0).source()); + Assertions.assertEquals("hwgfwsrt", model.safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(model.safetyProviders().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.safetyProviders().get(0).source()); Assertions.assertEquals(RaiEgressMode.ENFORCED, model.egressPolicy().mode()); Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.egressPolicy().defaultAction()); - Assertions.assertEquals("txifqj", model.egressPolicy().description()); - Assertions.assertEquals("mrhublwpc", model.egressPolicy().rules().get(0).name()); - Assertions.assertEquals("utr", model.egressPolicy().rules().get(0).description()); + Assertions.assertEquals("ookk", model.egressPolicy().description()); + Assertions.assertEquals("jb", model.egressPolicy().rules().get(0).name()); + Assertions.assertEquals("eorfm", model.egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("auutpwoqhihe", model.egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("g", model.egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, + Assertions.assertEquals("tqzfavyv", model.egressPolicy().rules().get(0).match().host()); + Assertions.assertEquals("qybaryeua", model.egressPolicy().rules().get(0).match().path()); + Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, model.egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, + Assertions.assertEquals(RaiEgressHeaderOperation.REMOVE, model.egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("qntcypsxjvfoimwk", + Assertions.assertEquals("bqgzslesjcbhern", model.egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.egressPolicy().rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("izjx", model.egressPolicy().rules().get(0).action().rewrite().host()); - Assertions.assertEquals("dfcea", model.egressPolicy().rules().get(0).action().rewrite().path()); + Assertions.assertEquals(RaiEgressScheme.HTTP, model.egressPolicy().rules().get(0).action().rewrite().scheme()); + Assertions.assertEquals("mrqemvvhmx", model.egressPolicy().rules().get(0).action().rewrite().host()); + Assertions.assertEquals("rjfut", model.egressPolicy().rules().get(0).action().rewrite().path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyProperties model - = new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) - .withBasePolicyName("hpjbib") - .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("xumvfcluyovw") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.BLOCKING), - new RaiPolicyContentFilter().withName("hwzdgirujbz") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION) - .withAction(RaiActionType.HITL), - new RaiPolicyContentFilter().withName("pniyujviyl") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("efr") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.NONE))) - .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("fhir") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL), - new CustomBlocklistConfig().withBlocklistName("oftpipiwycz") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("lihhyuspskasdvlm") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL), - new SafetyProviderConfig().withSafetyProviderName("ulucv") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN), - new SafetyProviderConfig().withSafetyProviderName("euzvx") - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL))) - .withEgressPolicy( - new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.ALLOW) - .withDescription("txifqj") - .withRules( - Arrays.asList( - new RaiEgressRule().withName("mrhublwpc") - .withDescription("utr") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("auutpwoqhihe").withPath("g")) - .withAction(new RaiEgressRuleAction() - .withActionType(RaiEgressRuleActionType.REWRITE) - .withHeaders(Arrays.asList(new RaiEgressHeaderTransform() - .withOperation(RaiEgressHeaderOperation.INSERT) - .withName("qntcypsxjvfoimwk"))) - .withRewrite(new RaiEgressRewriteTarget() - .withScheme(RaiEgressScheme.HTTPS) - .withHost("izjx") - .withPath("dfcea"))), - new RaiEgressRule().withName("vlhv") - .withDescription("dyftumrtwna") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("biwkojgcyzt").withPath("mznbaeqphch")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) - .withHeaders(Arrays.asList(new RaiEgressHeaderTransform() - .withOperation(RaiEgressHeaderOperation.INSERT) - .withName("pxehuwrykqga"), - new RaiEgressHeaderTransform() - .withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("mvikl"))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("hbejdznxcvdsrhnj") - .withPath("olvtnovqfzge")))))); + RaiPolicyProperties model = new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) + .withBasePolicyName("tbaxk") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("rc") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL) + .withAction(RaiActionType.RETRY), + new RaiPolicyContentFilter().withName("pvruudlg") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION) + .withAction(RaiActionType.BLOCKING))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("eclze") + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("zlhp") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new CustomBlocklistConfig().withBlocklistName("lwwqfbumlkxtrqj") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL))) + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("hwgfwsrt") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new SafetyProviderConfig().withSafetyProviderName("brhu") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT))) + .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) + .withDefaultAction(RaiEgressDefaultAction.ALLOW) + .withDescription("ookk") + .withRules(Arrays.asList( + new RaiEgressRule().withName("jb") + .withDescription("eorfm") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch().withHost("tqzfavyv").withPath("qybaryeua")) + .withAction( + new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW) + .withHeaders(Arrays.asList( + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) + .withName("bqgzslesjcbhern"), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) + .withName("iew"), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) + .withName("cv"), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) + .withName("uwrbehwagoh"))) + .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTP) + .withHost("mrqemvvhmx") + .withPath("rjfut"))), + new RaiEgressRule().withName("coebjvewzcj") + .withDescription("m") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch().withHost("guaadraufactkahz").withPath("ajjziuxxpshne")) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) + .withHeaders( + Arrays.asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) + .withName("gs"))) + .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) + .withHost("wdlenrdsut") + .withPath("bazpjuohmi"))), + new RaiEgressRule().withName("yfln") + .withDescription("wmd") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch().withHost("klvxwmyg").withPath("pgpqchiszepnnb")) + .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) + .withHeaders(Arrays.asList( + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) + .withName("ibbdaxconfoza"), + new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) + .withName("rsukokwbqplh"))) + .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) + .withHost("epzl") + .withPath("hw")))))); model = BinaryData.fromObject(model).toObject(RaiPolicyProperties.class); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.mode()); - Assertions.assertEquals("hpjbib", model.basePolicyName()); - Assertions.assertEquals("xumvfcluyovw", model.contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.mode()); + Assertions.assertEquals("tbaxk", model.basePolicyName()); + Assertions.assertEquals("rc", model.contentFilters().get(0).name()); Assertions.assertTrue(model.contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(ContentLevel.HIGH, model.contentFilters().get(0).severityThreshold()); Assertions.assertTrue(model.contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, model.contentFilters().get(0).action()); - Assertions.assertEquals("fhir", model.customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.RETRY, model.contentFilters().get(0).action()); + Assertions.assertEquals("eclze", model.customBlocklists().get(0).blocklistName()); Assertions.assertTrue(model.customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.customBlocklists().get(0).source()); - Assertions.assertEquals("lihhyuspskasdvlm", model.safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.customBlocklists().get(0).source()); + Assertions.assertEquals("hwgfwsrt", model.safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(model.safetyProviders().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.safetyProviders().get(0).source()); Assertions.assertEquals(RaiEgressMode.ENFORCED, model.egressPolicy().mode()); Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.egressPolicy().defaultAction()); - Assertions.assertEquals("txifqj", model.egressPolicy().description()); - Assertions.assertEquals("mrhublwpc", model.egressPolicy().rules().get(0).name()); - Assertions.assertEquals("utr", model.egressPolicy().rules().get(0).description()); + Assertions.assertEquals("ookk", model.egressPolicy().description()); + Assertions.assertEquals("jb", model.egressPolicy().rules().get(0).name()); + Assertions.assertEquals("eorfm", model.egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, model.egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("auutpwoqhihe", model.egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("g", model.egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, + Assertions.assertEquals("tqzfavyv", model.egressPolicy().rules().get(0).match().host()); + Assertions.assertEquals("qybaryeua", model.egressPolicy().rules().get(0).match().path()); + Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, model.egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, + Assertions.assertEquals(RaiEgressHeaderOperation.REMOVE, model.egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("qntcypsxjvfoimwk", + Assertions.assertEquals("bqgzslesjcbhern", model.egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.egressPolicy().rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("izjx", model.egressPolicy().rules().get(0).action().rewrite().host()); - Assertions.assertEquals("dfcea", model.egressPolicy().rules().get(0).action().rewrite().path()); + Assertions.assertEquals(RaiEgressScheme.HTTP, model.egressPolicy().rules().get(0).action().rewrite().scheme()); + Assertions.assertEquals("mrqemvvhmx", model.egressPolicy().rules().get(0).action().rewrite().host()); + Assertions.assertEquals("rjfut", model.egressPolicy().rules().get(0).action().rewrite().path()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiSafetyProviderConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiSafetyProviderConfigTests.java index ce6d6e5cd014..31cd97632e56 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiSafetyProviderConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiSafetyProviderConfigTests.java @@ -12,18 +12,18 @@ public final class RaiSafetyProviderConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiSafetyProviderConfig model - = BinaryData.fromString("{\"safetyProviderName\":\"sdshmkxmaehvb\",\"blocking\":true}") + = BinaryData.fromString("{\"safetyProviderName\":\"yyysfgdotcubi\",\"blocking\":true}") .toObject(RaiSafetyProviderConfig.class); - Assertions.assertEquals("sdshmkxmaehvb", model.safetyProviderName()); + Assertions.assertEquals("yyysfgdotcubi", model.safetyProviderName()); Assertions.assertTrue(model.blocking()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiSafetyProviderConfig model - = new RaiSafetyProviderConfig().withSafetyProviderName("sdshmkxmaehvb").withBlocking(true); + = new RaiSafetyProviderConfig().withSafetyProviderName("yyysfgdotcubi").withBlocking(true); model = BinaryData.fromObject(model).toObject(RaiSafetyProviderConfig.class); - Assertions.assertEquals("sdshmkxmaehvb", model.safetyProviderName()); + Assertions.assertEquals("yyysfgdotcubi", model.safetyProviderName()); Assertions.assertTrue(model.blocking()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java index 6dabe9cbf796..64fafad17440 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java @@ -18,39 +18,36 @@ public final class RaiToolLabelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelInner model = BinaryData.fromString( - "{\"properties\":{\"toolConnectionName\":\"zhyrmewipmve\",\"accountScope\":{\"labelValues\":{\"zhhzjhfjmhvvmu\":\"kuqgsjjxundxgket\",\"yihsasbhudypohyu\":\"gpmuneqsxvmhfbuz\"}},\"projectScopes\":[{\"project\":\"lynsqyrpf\",\"labelValues\":{\"nfwqzdzgtilaxhn\":\"brlttymsjnygq\",\"wivkxo\":\"hqlyvijo\"}},{\"project\":\"zunbixx\",\"labelValues\":{\"clrcivtsox\":\"ikvcpwp\"}},{\"project\":\"rkenx\",\"labelValues\":{\"awaoqvmmbnpqfrt\":\"yyefrpmpdnqqs\"}}]},\"etag\":\"kzmegnitgvkxlz\",\"tags\":{\"cealzxwh\":\"rfe\"},\"id\":\"nsymoyqhlwigd\",\"name\":\"vbkbxgomf\",\"type\":\"juwasqvdaeyyguxa\"}") + "{\"properties\":{\"toolConnectionName\":\"bpmzzn\",\"accountScope\":{\"labelValues\":{\"eufuqyrxpdlcgql\":\"yaqitmhheioqaqhv\",\"iosrsjuivfcdis\":\"ismjqfrddgamqu\"}},\"projectScopes\":[{\"project\":\"nxzhcze\",\"labelValues\":{\"vk\":\"xzbujrtrhqvwr\",\"zonzlrpiqywnc\":\"gnl\"}},{\"project\":\"jtszcof\",\"labelValues\":{\"tdhgbjkvrelj\":\"e\",\"shcxlpmjerbdk\":\"amurvzmlovuan\"}}]},\"etag\":\"vidizozsdb\",\"tags\":{\"n\":\"jmonfdgn\",\"keifzzhmkdasv\":\"ypuuwwltvuqjctze\"},\"id\":\"yhbxcudchxgs\",\"name\":\"boldforobwj\",\"type\":\"vizbfhfo\"}") .toObject(RaiToolLabelInner.class); - Assertions.assertEquals("zhyrmewipmve", model.properties().toolConnectionName()); - Assertions.assertEquals("kuqgsjjxundxgket", - model.properties().accountScope().labelValues().get("zhhzjhfjmhvvmu")); - Assertions.assertEquals("lynsqyrpf", model.properties().projectScopes().get(0).project()); - Assertions.assertEquals("brlttymsjnygq", - model.properties().projectScopes().get(0).labelValues().get("nfwqzdzgtilaxhn")); - Assertions.assertEquals("rfe", model.tags().get("cealzxwh")); + Assertions.assertEquals("bpmzzn", model.properties().toolConnectionName()); + Assertions.assertEquals("yaqitmhheioqaqhv", + model.properties().accountScope().labelValues().get("eufuqyrxpdlcgql")); + Assertions.assertEquals("nxzhcze", model.properties().projectScopes().get(0).project()); + Assertions.assertEquals("xzbujrtrhqvwr", model.properties().projectScopes().get(0).labelValues().get("vk")); + Assertions.assertEquals("jmonfdgn", model.tags().get("n")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelInner model = new RaiToolLabelInner() - .withProperties(new RaiToolLabelProperties().withToolConnectionName("zhyrmewipmve") - .withAccountScope(new RaiToolLabelPropertiesAccountScope().withLabelValues( - mapOf("zhhzjhfjmhvvmu", "kuqgsjjxundxgket", "yihsasbhudypohyu", "gpmuneqsxvmhfbuz"))) - .withProjectScopes(Arrays.asList( - new RaiToolLabelPropertiesProjectScopesItem().withProject("lynsqyrpf") - .withLabelValues(mapOf("nfwqzdzgtilaxhn", "brlttymsjnygq", "wivkxo", "hqlyvijo")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("zunbixx") - .withLabelValues(mapOf("clrcivtsox", "ikvcpwp")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("rkenx") - .withLabelValues(mapOf("awaoqvmmbnpqfrt", "yyefrpmpdnqqs"))))) - .withTags(mapOf("cealzxwh", "rfe")); + RaiToolLabelInner model + = new RaiToolLabelInner() + .withProperties(new RaiToolLabelProperties().withToolConnectionName("bpmzzn") + .withAccountScope(new RaiToolLabelPropertiesAccountScope().withLabelValues( + mapOf("eufuqyrxpdlcgql", "yaqitmhheioqaqhv", "iosrsjuivfcdis", "ismjqfrddgamqu"))) + .withProjectScopes(Arrays.asList( + new RaiToolLabelPropertiesProjectScopesItem().withProject("nxzhcze") + .withLabelValues(mapOf("vk", "xzbujrtrhqvwr", "zonzlrpiqywnc", "gnl")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("jtszcof") + .withLabelValues(mapOf("tdhgbjkvrelj", "e", "shcxlpmjerbdk", "amurvzmlovuan"))))) + .withTags(mapOf("n", "jmonfdgn", "keifzzhmkdasv", "ypuuwwltvuqjctze")); model = BinaryData.fromObject(model).toObject(RaiToolLabelInner.class); - Assertions.assertEquals("zhyrmewipmve", model.properties().toolConnectionName()); - Assertions.assertEquals("kuqgsjjxundxgket", - model.properties().accountScope().labelValues().get("zhhzjhfjmhvvmu")); - Assertions.assertEquals("lynsqyrpf", model.properties().projectScopes().get(0).project()); - Assertions.assertEquals("brlttymsjnygq", - model.properties().projectScopes().get(0).labelValues().get("nfwqzdzgtilaxhn")); - Assertions.assertEquals("rfe", model.tags().get("cealzxwh")); + Assertions.assertEquals("bpmzzn", model.properties().toolConnectionName()); + Assertions.assertEquals("yaqitmhheioqaqhv", + model.properties().accountScope().labelValues().get("eufuqyrxpdlcgql")); + Assertions.assertEquals("nxzhcze", model.properties().projectScopes().get(0).project()); + Assertions.assertEquals("xzbujrtrhqvwr", model.properties().projectScopes().get(0).labelValues().get("vk")); + Assertions.assertEquals("jmonfdgn", model.tags().get("n")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesAccountScopeTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesAccountScopeTests.java index 43ea83bdadda..d361e1908546 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesAccountScopeTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesAccountScopeTests.java @@ -14,18 +14,17 @@ public final class RaiToolLabelPropertiesAccountScopeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelPropertiesAccountScope model = BinaryData - .fromString( - "{\"labelValues\":{\"kzddrtkgdojbmxva\":\"merteeammxqiek\",\"vecuijpx\":\"refdee\",\"wprtu\":\"xs\"}}") + .fromString("{\"labelValues\":{\"fuojrngif\":\"aubrjtloq\",\"dfqwmkyoq\":\"rzpasccbiuimzdly\"}}") .toObject(RaiToolLabelPropertiesAccountScope.class); - Assertions.assertEquals("merteeammxqiek", model.labelValues().get("kzddrtkgdojbmxva")); + Assertions.assertEquals("aubrjtloq", model.labelValues().get("fuojrngif")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiToolLabelPropertiesAccountScope model = new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("kzddrtkgdojbmxva", "merteeammxqiek", "vecuijpx", "refdee", "wprtu", "xs")); + .withLabelValues(mapOf("fuojrngif", "aubrjtloq", "dfqwmkyoq", "rzpasccbiuimzdly")); model = BinaryData.fromObject(model).toObject(RaiToolLabelPropertiesAccountScope.class); - Assertions.assertEquals("merteeammxqiek", model.labelValues().get("kzddrtkgdojbmxva")); + Assertions.assertEquals("aubrjtloq", model.labelValues().get("fuojrngif")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesProjectScopesItemTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesProjectScopesItemTests.java index 10a4352ec233..1d9ee3241066 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesProjectScopesItemTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesProjectScopesItemTests.java @@ -13,21 +13,21 @@ public final class RaiToolLabelPropertiesProjectScopesItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiToolLabelPropertiesProjectScopesItem model = BinaryData.fromString( - "{\"project\":\"wsawddjibabxvi\",\"labelValues\":{\"ecdmdqbwpy\":\"tvtzeexavoxtfg\",\"gsfjac\":\"q\",\"d\":\"slhhxudbxv\"}}") - .toObject(RaiToolLabelPropertiesProjectScopesItem.class); - Assertions.assertEquals("wsawddjibabxvi", model.project()); - Assertions.assertEquals("tvtzeexavoxtfg", model.labelValues().get("ecdmdqbwpy")); + RaiToolLabelPropertiesProjectScopesItem model + = BinaryData.fromString("{\"project\":\"fdvruz\",\"labelValues\":{\"otngfdgu\":\"zojhpctfnmd\"}}") + .toObject(RaiToolLabelPropertiesProjectScopesItem.class); + Assertions.assertEquals("fdvruz", model.project()); + Assertions.assertEquals("zojhpctfnmd", model.labelValues().get("otngfdgu")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiToolLabelPropertiesProjectScopesItem model - = new RaiToolLabelPropertiesProjectScopesItem().withProject("wsawddjibabxvi") - .withLabelValues(mapOf("ecdmdqbwpy", "tvtzeexavoxtfg", "gsfjac", "q", "d", "slhhxudbxv")); + = new RaiToolLabelPropertiesProjectScopesItem().withProject("fdvruz") + .withLabelValues(mapOf("otngfdgu", "zojhpctfnmd")); model = BinaryData.fromObject(model).toObject(RaiToolLabelPropertiesProjectScopesItem.class); - Assertions.assertEquals("wsawddjibabxvi", model.project()); - Assertions.assertEquals("tvtzeexavoxtfg", model.labelValues().get("ecdmdqbwpy")); + Assertions.assertEquals("fdvruz", model.project()); + Assertions.assertEquals("zojhpctfnmd", model.labelValues().get("otngfdgu")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java index 5361e183c0ed..ddc998418691 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java @@ -17,27 +17,32 @@ public final class RaiToolLabelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelProperties model = BinaryData.fromString( - "{\"toolConnectionName\":\"jsqzhzbezk\",\"accountScope\":{\"labelValues\":{\"cddyvvjsk\":\"idxas\",\"atjeaahh\":\"fmocwahpq\",\"kzyb\":\"jhhn\"}},\"projectScopes\":[{\"project\":\"idjks\",\"labelValues\":{\"jlageu\":\"kyxvxevblbjedn\",\"ynenlsvxeizz\":\"ulxunsmjbnkpp\",\"ckt\":\"wklnsrmffeyc\"}}]}") + "{\"toolConnectionName\":\"vacqpbtuodxesz\",\"accountScope\":{\"labelValues\":{\"wumuaslzk\":\"l\",\"mdr\":\"rrwoycqucwyhahn\"}},\"projectScopes\":[{\"project\":\"uh\",\"labelValues\":{\"lwexxwl\":\"vfuuru\",\"rzpgep\":\"lniexz\",\"chzyvlixqnrk\":\"tybbwwpgda\",\"uxswqrntvl\":\"xkjibnxmy\"}},{\"project\":\"ijpstte\",\"labelValues\":{\"hruncuwmq\":\"qqpwcyyuf\"}},{\"project\":\"pkcdqzhlct\",\"labelValues\":{\"jjrcgegydc\":\"unqndyfpchrqb\",\"olihrra\":\"boxjumvq\"}}]}") .toObject(RaiToolLabelProperties.class); - Assertions.assertEquals("jsqzhzbezk", model.toolConnectionName()); - Assertions.assertEquals("idxas", model.accountScope().labelValues().get("cddyvvjsk")); - Assertions.assertEquals("idjks", model.projectScopes().get(0).project()); - Assertions.assertEquals("kyxvxevblbjedn", model.projectScopes().get(0).labelValues().get("jlageu")); + Assertions.assertEquals("vacqpbtuodxesz", model.toolConnectionName()); + Assertions.assertEquals("l", model.accountScope().labelValues().get("wumuaslzk")); + Assertions.assertEquals("uh", model.projectScopes().get(0).project()); + Assertions.assertEquals("vfuuru", model.projectScopes().get(0).labelValues().get("lwexxwl")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelProperties model = new RaiToolLabelProperties().withToolConnectionName("jsqzhzbezk") + RaiToolLabelProperties model = new RaiToolLabelProperties().withToolConnectionName("vacqpbtuodxesz") .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("cddyvvjsk", "idxas", "atjeaahh", "fmocwahpq", "kzyb", "jhhn"))) - .withProjectScopes(Arrays.asList(new RaiToolLabelPropertiesProjectScopesItem().withProject("idjks") - .withLabelValues( - mapOf("jlageu", "kyxvxevblbjedn", "ynenlsvxeizz", "ulxunsmjbnkpp", "ckt", "wklnsrmffeyc")))); + .withLabelValues(mapOf("wumuaslzk", "l", "mdr", "rrwoycqucwyhahn"))) + .withProjectScopes(Arrays.asList( + new RaiToolLabelPropertiesProjectScopesItem().withProject("uh") + .withLabelValues(mapOf("lwexxwl", "vfuuru", "rzpgep", "lniexz", "chzyvlixqnrk", "tybbwwpgda", + "uxswqrntvl", "xkjibnxmy")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("ijpstte") + .withLabelValues(mapOf("hruncuwmq", "qqpwcyyuf")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("pkcdqzhlct") + .withLabelValues(mapOf("jjrcgegydc", "unqndyfpchrqb", "olihrra", "boxjumvq")))); model = BinaryData.fromObject(model).toObject(RaiToolLabelProperties.class); - Assertions.assertEquals("jsqzhzbezk", model.toolConnectionName()); - Assertions.assertEquals("idxas", model.accountScope().labelValues().get("cddyvvjsk")); - Assertions.assertEquals("idjks", model.projectScopes().get(0).project()); - Assertions.assertEquals("kyxvxevblbjedn", model.projectScopes().get(0).labelValues().get("jlageu")); + Assertions.assertEquals("vacqpbtuodxesz", model.toolConnectionName()); + Assertions.assertEquals("l", model.accountScope().labelValues().get("wumuaslzk")); + Assertions.assertEquals("uh", model.projectScopes().get(0).project()); + Assertions.assertEquals("vfuuru", model.projectScopes().get(0).labelValues().get("lwexxwl")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java index d7a55bff0f63..44342b07df60 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java @@ -12,15 +12,15 @@ public final class RaiToolLabelResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelResult model = BinaryData.fromString( - "{\"nextLink\":\"nsiru\",\"value\":[{\"properties\":{\"toolConnectionName\":\"mes\",\"accountScope\":{\"labelValues\":{\"boxdfgsftufq\":\"pagzrcxfailcfxwm\",\"zvytnrzvuljraaer\":\"brjlnacgcckknhxk\"}},\"projectScopes\":[{\"project\":\"kqg\",\"labelValues\":{\"vbroylaxxu\":\"kjq\",\"sfjbjsvg\":\"cdisd\",\"lxgccknfnwmbtm\":\"rwhryvycytd\",\"hchrphkmcrjdqn\":\"pdvjdhttzaefedx\"}},{\"project\":\"dfzpbgtgkylkdg\",\"labelValues\":{\"wxezwzhok\":\"jeuut\",\"ehgpp\":\"bwnhhtql\"}},{\"project\":\"pifhpfeoajvgcxtx\",\"labelValues\":{\"tugsresmkssjh\":\"sheafid\",\"egprhptil\":\"iftxfkf\",\"qtgdqohmcwsl\":\"ucb\",\"tpwb\":\"riz\"}}]},\"etag\":\"lllibph\",\"tags\":{\"kan\":\"mizak\",\"zhajoylhjlmuo\":\"jpdn\",\"eecjmeis\":\"xprimrsop\"},\"id\":\"tvasy\",\"name\":\"wxdzaumweoohgu\",\"type\":\"fuzboyjathwtzolb\"}]}") + "{\"nextLink\":\"yzihgrkyuizabsn\",\"value\":[{\"properties\":{\"toolConnectionName\":\"hojeevy\",\"accountScope\":{\"labelValues\":{\"bgomfgbegl\":\"gzfc\",\"etnluankrrfx\":\"gleohi\"}},\"projectScopes\":[{\"project\":\"btijvacvbm\",\"labelValues\":{\"nw\":\"bqqxlaj\"}},{\"project\":\"acevehjkuyx\",\"labelValues\":{\"tfaeyl\":\"fgaoq\",\"gv\":\"nm\"}},{\"project\":\"irpghriypoqeyh\",\"labelValues\":{\"kprlpyznuc\":\"h\",\"fuxtyasiibmiybnn\":\"qdsmexiit\",\"hnmgixhcm\":\"stgnl\"}},{\"project\":\"vmqfoud\",\"labelValues\":{\"ndm\":\"hcgyyprotwyp\"}}]},\"etag\":\"hu\",\"tags\":{\"or\":\"jkavl\",\"jltfvnzcyjtotpv\":\"mftpmdtz\",\"qwthmky\":\"pvpbdbzqgqqiheds\",\"gqcwdhohsdtmc\":\"bcysih\"},\"id\":\"sufco\",\"name\":\"dxbzlmcmuap\",\"type\":\"vhdbevwqqxey\"},{\"properties\":{\"toolConnectionName\":\"onqzinkfkbgbzbow\",\"accountScope\":{\"labelValues\":{\"ygvkzqkjj\":\"clj\"}},\"projectScopes\":[{\"project\":\"bzefezr\",\"labelValues\":{\"q\":\"czurtlei\",\"zvd\":\"bkwvzg\",\"noda\":\"bzdixzmq\"}},{\"project\":\"opqhewjptmc\",\"labelValues\":{\"dlat\":\"bostzel\",\"hrbbpneqvcwwyy\":\"tmzlbiojlv\"}},{\"project\":\"r\",\"labelValues\":{\"prsnmokayzejn\":\"chpp\",\"pcpil\":\"lbkpb\"}},{\"project\":\"hahzvechndbnwi\",\"labelValues\":{\"ubwefqs\":\"olewjwi\"}}]},\"etag\":\"paq\",\"tags\":{\"fxapjwogqqnobpu\":\"rrqwexjk\"},\"id\":\"dabtqwp\",\"name\":\"yawbzasqbu\",\"type\":\"ljgkyex\"}]}") .toObject(RaiToolLabelResult.class); - Assertions.assertEquals("nsiru", model.nextLink()); - Assertions.assertEquals("mes", model.value().get(0).properties().toolConnectionName()); - Assertions.assertEquals("pagzrcxfailcfxwm", - model.value().get(0).properties().accountScope().labelValues().get("boxdfgsftufq")); - Assertions.assertEquals("kqg", model.value().get(0).properties().projectScopes().get(0).project()); - Assertions.assertEquals("kjq", - model.value().get(0).properties().projectScopes().get(0).labelValues().get("vbroylaxxu")); - Assertions.assertEquals("mizak", model.value().get(0).tags().get("kan")); + Assertions.assertEquals("yzihgrkyuizabsn", model.nextLink()); + Assertions.assertEquals("hojeevy", model.value().get(0).properties().toolConnectionName()); + Assertions.assertEquals("gzfc", + model.value().get(0).properties().accountScope().labelValues().get("bgomfgbegl")); + Assertions.assertEquals("btijvacvbm", model.value().get(0).properties().projectScopes().get(0).project()); + Assertions.assertEquals("bqqxlaj", + model.value().get(0).properties().projectScopes().get(0).labelValues().get("nw")); + Assertions.assertEquals("jkavl", model.value().get(0).tags().get("or")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java index e9f9b0181d1b..1eb230411775 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class RaiToolLabelsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"toolConnectionName\":\"bm\",\"accountScope\":{\"labelValues\":{\"ewxtrl\":\"xduetbapfc\",\"kjpirgzxvbczw\":\"bpxya\",\"i\":\"yegbthms\",\"ozfvualjt\":\"jbuiggru\"}},\"projectScopes\":[{\"project\":\"vsdwsngkrfihscj\",\"labelValues\":{\"a\":\"kmhzbh\",\"nnx\":\"fbwih\"}},{\"project\":\"mvynuqqko\",\"labelValues\":{\"fzs\":\"uratnicp\",\"yrletndqlmf\":\"le\"}}]},\"etag\":\"gnbbuypwovvvsfle\",\"tags\":{\"pxrl\":\"oqayrehjuqwv\",\"qzubfonfd\":\"hpzihacenqqzlx\",\"jcw\":\"gmkfw\",\"zl\":\"ewfhxwyrkbre\"},\"id\":\"njpchamkaeplr\",\"name\":\"jub\",\"type\":\"wuyw\"}"; + = "{\"properties\":{\"toolConnectionName\":\"isnomwnwnghoj\",\"accountScope\":{\"labelValues\":{\"micjixxfsf\":\"y\"}},\"projectScopes\":[{\"project\":\"tnuguefxxij\",\"labelValues\":{\"lmcnwepfgsv\":\"bdveywetkrhl\",\"qdljnpe\":\"bv\"}},{\"project\":\"l\",\"labelValues\":{\"jzvdovbrblerlp\":\"rdetawevxehuekdx\"}},{\"project\":\"daqccddcbnygd\",\"labelValues\":{\"yykdig\":\"cxwbp\"}},{\"project\":\"zlrz\",\"labelValues\":{\"id\":\"asd\",\"arhqt\":\"jqmvytgkiq\"}}]},\"etag\":\"caz\",\"tags\":{\"tsmpchgg\":\"zdzffzjw\"},\"id\":\"elgfyatigfgfrr\",\"name\":\"dknczgorywn\",\"type\":\"ojtvmdev\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,27 +37,30 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiToolLabel response = manager.raiToolLabels() - .define("mlf") - .withExistingAccount("gfdt", "cmspsanmameubkqi") - .withTags(mapOf("fasfod", "z", "kwgqrn", "opalvngtwyu")) - .withProperties(new RaiToolLabelProperties().withToolConnectionName("lqcskkqjmxptueip") + .define("yt") + .withExistingAccount("eupcknecexkgrv", "psjdmng") + .withTags( + mapOf("spboxhifp", "ywpj", "xwwvcmmpeg", "skpeswyhhmifjua", "qvcml", "y", "m", "exbzbqufpnezsjza")) + .withProperties(new RaiToolLabelProperties().withToolConnectionName("dzfyxcnwawoxcg") .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("mrpahuuonj", "wdr", "cjo", "kxukguehvvpxjoe"))) + .withLabelValues(mapOf("fjxdwdrp", "qfbifo", "bwotfcuuugtji", "zqjkrf"))) .withProjectScopes(Arrays.asList( - new RaiToolLabelPropertiesProjectScopesItem().withProject("eui") - .withLabelValues(mapOf("nvhgnhtmeplh", "mt", "ummmkvavucgji", "pjbap", "mnuf", "aiq")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("hr") - .withLabelValues(mapOf("wuzdmh", "x", "jmxmlitqdsj", "wlvi")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("pdviscotyxbrii") - .withLabelValues(mapOf("dslvrqo", "f", "deotmfx", "mwsieeailwdqmqf", "g", "kd", "uafixlxicwgp", - "gnamkuuyiu"))))) + new RaiToolLabelPropertiesProjectScopesItem().withProject("ayiawohfm") + .withLabelValues(mapOf("jkmqenhaidzrpv", "nzmec")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("gloiovsl") + .withLabelValues(mapOf("suvw", "v", "i", "enbg", "oa", "pkhc")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("xukuicjuftekio") + .withLabelValues(mapOf("ewfhvpxjh", "nd", "vzuaixc", "zubfjzabbwz")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("ckixsps") + .withLabelValues(mapOf("xzerej", "gavkmv", "eitwhlbecgi", "kpzjbyetjxryopt"))))) .create(); - Assertions.assertEquals("bm", response.properties().toolConnectionName()); - Assertions.assertEquals("xduetbapfc", response.properties().accountScope().labelValues().get("ewxtrl")); - Assertions.assertEquals("vsdwsngkrfihscj", response.properties().projectScopes().get(0).project()); - Assertions.assertEquals("kmhzbh", response.properties().projectScopes().get(0).labelValues().get("a")); - Assertions.assertEquals("oqayrehjuqwv", response.tags().get("pxrl")); + Assertions.assertEquals("isnomwnwnghoj", response.properties().toolConnectionName()); + Assertions.assertEquals("y", response.properties().accountScope().labelValues().get("micjixxfsf")); + Assertions.assertEquals("tnuguefxxij", response.properties().projectScopes().get(0).project()); + Assertions.assertEquals("bdveywetkrhl", + response.properties().projectScopes().get(0).labelValues().get("lmcnwepfgsv")); + Assertions.assertEquals("zdzffzjw", response.tags().get("tsmpchgg")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java index f7a09bb7a267..97a7f5d4a9d7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiToolLabelsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"toolConnectionName\":\"evyllznfhkqyt\",\"accountScope\":{\"labelValues\":{\"gfzdgjfcycrsvl\":\"do\",\"ajquzxpixhyoi\":\"yyhigqkzjuqw\",\"bennmfkbp\":\"nfdbgsoscienezf\"}},\"projectScopes\":[{\"project\":\"tekwwnthropm\",\"labelValues\":{\"yiurztvktjh\":\"d\"}}]},\"etag\":\"ec\",\"tags\":{\"g\":\"qyouerg\",\"yedzfzq\":\"puzxkpyehhfdyldh\",\"e\":\"yuqht\"},\"id\":\"unokakzwhpjl\",\"name\":\"yxedznmx\",\"type\":\"fomckewv\"}"; + = "{\"properties\":{\"toolConnectionName\":\"waadc\",\"accountScope\":{\"labelValues\":{\"undtsew\":\"a\"}},\"projectScopes\":[{\"project\":\"pwhlzyckr\",\"labelValues\":{\"irxxhyrkqako\":\"gjlmsvdor\"}}]},\"etag\":\"jfrepr\",\"tags\":{\"teyrqshi\":\"kin\",\"sp\":\"bcejopylbl\",\"cspimtcvvfxrdy\":\"r\"},\"id\":\"fs\",\"name\":\"xizhqikmgo\",\"type\":\"liqemcdiiisklbo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiToolLabel response = manager.raiToolLabels() - .getWithResponse("wqpjnxjkhtupsvy", "uweuiy", "fwkztsms", com.azure.core.util.Context.NONE) + .getWithResponse("pgarpfctw", "apczdojqyv", "esipiysnjq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("evyllznfhkqyt", response.properties().toolConnectionName()); - Assertions.assertEquals("do", response.properties().accountScope().labelValues().get("gfzdgjfcycrsvl")); - Assertions.assertEquals("tekwwnthropm", response.properties().projectScopes().get(0).project()); - Assertions.assertEquals("d", response.properties().projectScopes().get(0).labelValues().get("yiurztvktjh")); - Assertions.assertEquals("qyouerg", response.tags().get("g")); + Assertions.assertEquals("waadc", response.properties().toolConnectionName()); + Assertions.assertEquals("a", response.properties().accountScope().labelValues().get("undtsew")); + Assertions.assertEquals("pwhlzyckr", response.properties().projectScopes().get(0).project()); + Assertions.assertEquals("gjlmsvdor", + response.properties().projectScopes().get(0).labelValues().get("irxxhyrkqako")); + Assertions.assertEquals("kin", response.tags().get("teyrqshi")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java index e5c3d10b4e10..ecb1a7656a6b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiToolLabelsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"toolConnectionName\":\"fptofhgnuywez\",\"accountScope\":{\"labelValues\":{\"pmpv\":\"dgaaqwvkgjpy\",\"nukkfaxzsvb\":\"nogehlufbort\",\"skobqoclflioewy\":\"xyji\",\"p\":\"xessmvrk\"}},\"projectScopes\":[{\"project\":\"qfbdxmdses\",\"labelValues\":{\"tlpd\":\"ujbjppp\",\"hieatnejr\":\"bfm\",\"qplgtkihonikz\":\"min\"}},{\"project\":\"r\",\"labelValues\":{\"gkensckhbmcarmo\":\"ffjilzfbpnt\"}}]},\"etag\":\"xxkwykuqdndx\",\"tags\":{\"gga\":\"h\"},\"id\":\"dgtfpeersc\",\"name\":\"xrnrnjrcufmbga\",\"type\":\"n\"}]}"; + = "{\"value\":[{\"properties\":{\"toolConnectionName\":\"genj\",\"accountScope\":{\"labelValues\":{\"ujjcxgdqmrlhn\":\"jwkosnyxigf\",\"xyxwjezbfqplo\":\"kwopswnyinxupr\",\"trsvjmnsvujnjkt\":\"uekdcpvu\"}},\"projectScopes\":[{\"project\":\"efcjisepkdbxot\",\"labelValues\":{\"ynlsuqbwzstrk\":\"jampqoclannm\"}},{\"project\":\"gvp\",\"labelValues\":{\"ulwkq\":\"rgjjktfinfhoksmm\",\"okr\":\"cru\"}}]},\"etag\":\"lsgaojbtqpq\",\"tags\":{\"lmcds\":\"ctpzpujz\"},\"id\":\"celuj\",\"name\":\"swlluunxhfwlfxzf\",\"type\":\"u\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiToolLabels().list("yifop", "fjjtpdyzou", com.azure.core.util.Context.NONE); + = manager.raiToolLabels().list("xxupjxv", "rk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fptofhgnuywez", response.iterator().next().properties().toolConnectionName()); - Assertions.assertEquals("dgaaqwvkgjpy", - response.iterator().next().properties().accountScope().labelValues().get("pmpv")); - Assertions.assertEquals("qfbdxmdses", response.iterator().next().properties().projectScopes().get(0).project()); - Assertions.assertEquals("ujbjppp", - response.iterator().next().properties().projectScopes().get(0).labelValues().get("tlpd")); - Assertions.assertEquals("h", response.iterator().next().tags().get("gga")); + Assertions.assertEquals("genj", response.iterator().next().properties().toolConnectionName()); + Assertions.assertEquals("jwkosnyxigf", + response.iterator().next().properties().accountScope().labelValues().get("ujjcxgdqmrlhn")); + Assertions.assertEquals("efcjisepkdbxot", + response.iterator().next().properties().projectScopes().get(0).project()); + Assertions.assertEquals("jampqoclannm", + response.iterator().next().properties().projectScopes().get(0).labelValues().get("ynlsuqbwzstrk")); + Assertions.assertEquals("ctpzpujz", response.iterator().next().tags().get("lmcds")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java index 269d6ef50c30..94a1a577b5b4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java @@ -16,41 +16,41 @@ public final class RaiTopicInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiTopicInner model = BinaryData.fromString( - "{\"properties\":{\"topicId\":\"of\",\"topicName\":\"ypefojyqdhcupl\",\"description\":\"lcwkhihihlhz\",\"sampleBlobUrl\":\"qtz\",\"status\":\"rgnowcjhfgm\",\"failedReason\":\"cact\",\"createdAt\":\"2021-12-08T12:06:58Z\",\"lastModifiedAt\":\"2021-03-09T08:38:36Z\"},\"etag\":\"yowc\",\"tags\":{\"zmpjwyiv\":\"ovekqvgqouwi\",\"cvhrfsp\":\"ikf\",\"kvyklxubyjaffmm\":\"uagrttikteusqc\"},\"id\":\"lcqcuubgqibrt\",\"name\":\"lmetttwgdslqxi\",\"type\":\"hrmooi\"}") + "{\"properties\":{\"topicId\":\"ivbkbxgomfaj\",\"topicName\":\"asqvd\",\"description\":\"y\",\"sampleBlobUrl\":\"uxakjsqzhzbezk\",\"status\":\"msidxasicddyvv\",\"failedReason\":\"kgfmocwahpq\",\"createdAt\":\"2021-09-10T10:22:32Z\",\"lastModifiedAt\":\"2021-07-27T04:50:29Z\"},\"etag\":\"ahhvjhhna\",\"tags\":{\"xvxevblbjednljla\":\"bbjjidjksyxk\",\"smjbnkppxyn\":\"euaulxu\",\"gwklnsr\":\"nlsvxeiz\"},\"id\":\"feycxcktp\",\"name\":\"ymerteeammxq\",\"type\":\"ekkkzd\"}") .toObject(RaiTopicInner.class); - Assertions.assertEquals("of", model.properties().topicId()); - Assertions.assertEquals("ypefojyqdhcupl", model.properties().topicName()); - Assertions.assertEquals("lcwkhihihlhz", model.properties().description()); - Assertions.assertEquals("qtz", model.properties().sampleBlobUrl()); - Assertions.assertEquals("rgnowcjhfgm", model.properties().status()); - Assertions.assertEquals("cact", model.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T12:06:58Z"), model.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T08:38:36Z"), model.properties().lastModifiedAt()); - Assertions.assertEquals("ovekqvgqouwi", model.tags().get("zmpjwyiv")); + Assertions.assertEquals("ivbkbxgomfaj", model.properties().topicId()); + Assertions.assertEquals("asqvd", model.properties().topicName()); + Assertions.assertEquals("y", model.properties().description()); + Assertions.assertEquals("uxakjsqzhzbezk", model.properties().sampleBlobUrl()); + Assertions.assertEquals("msidxasicddyvv", model.properties().status()); + Assertions.assertEquals("kgfmocwahpq", model.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T10:22:32Z"), model.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T04:50:29Z"), model.properties().lastModifiedAt()); + Assertions.assertEquals("bbjjidjksyxk", model.tags().get("xvxevblbjednljla")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiTopicInner model = new RaiTopicInner() - .withProperties(new RaiTopicProperties().withTopicId("of") - .withTopicName("ypefojyqdhcupl") - .withDescription("lcwkhihihlhz") - .withSampleBlobUrl("qtz") - .withStatus("rgnowcjhfgm") - .withFailedReason("cact") - .withCreatedAt(OffsetDateTime.parse("2021-12-08T12:06:58Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-03-09T08:38:36Z"))) - .withTags(mapOf("zmpjwyiv", "ovekqvgqouwi", "cvhrfsp", "ikf", "kvyklxubyjaffmm", "uagrttikteusqc")); + .withProperties(new RaiTopicProperties().withTopicId("ivbkbxgomfaj") + .withTopicName("asqvd") + .withDescription("y") + .withSampleBlobUrl("uxakjsqzhzbezk") + .withStatus("msidxasicddyvv") + .withFailedReason("kgfmocwahpq") + .withCreatedAt(OffsetDateTime.parse("2021-09-10T10:22:32Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-07-27T04:50:29Z"))) + .withTags(mapOf("xvxevblbjednljla", "bbjjidjksyxk", "smjbnkppxyn", "euaulxu", "gwklnsr", "nlsvxeiz")); model = BinaryData.fromObject(model).toObject(RaiTopicInner.class); - Assertions.assertEquals("of", model.properties().topicId()); - Assertions.assertEquals("ypefojyqdhcupl", model.properties().topicName()); - Assertions.assertEquals("lcwkhihihlhz", model.properties().description()); - Assertions.assertEquals("qtz", model.properties().sampleBlobUrl()); - Assertions.assertEquals("rgnowcjhfgm", model.properties().status()); - Assertions.assertEquals("cact", model.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T12:06:58Z"), model.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T08:38:36Z"), model.properties().lastModifiedAt()); - Assertions.assertEquals("ovekqvgqouwi", model.tags().get("zmpjwyiv")); + Assertions.assertEquals("ivbkbxgomfaj", model.properties().topicId()); + Assertions.assertEquals("asqvd", model.properties().topicName()); + Assertions.assertEquals("y", model.properties().description()); + Assertions.assertEquals("uxakjsqzhzbezk", model.properties().sampleBlobUrl()); + Assertions.assertEquals("msidxasicddyvv", model.properties().status()); + Assertions.assertEquals("kgfmocwahpq", model.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T10:22:32Z"), model.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T04:50:29Z"), model.properties().lastModifiedAt()); + Assertions.assertEquals("bbjjidjksyxk", model.tags().get("xvxevblbjednljla")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java index 9f27e8e936e8..e75492c66f83 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java @@ -13,36 +13,36 @@ public final class RaiTopicPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiTopicProperties model = BinaryData.fromString( - "{\"topicId\":\"seypxiutcxapz\",\"topicName\":\"rpetogebjoxsl\",\"description\":\"nhl\",\"sampleBlobUrl\":\"rqnkkzjcjbtr\",\"status\":\"ehvvib\",\"failedReason\":\"jj\",\"createdAt\":\"2021-01-18T04:33:41Z\",\"lastModifiedAt\":\"2021-02-02T14:44:22Z\"}") + "{\"topicId\":\"tkgdojbmxva\",\"topicName\":\"efdeesve\",\"description\":\"ijpxtx\",\"sampleBlobUrl\":\"wprtu\",\"status\":\"sawddjibabxvi\",\"failedReason\":\"tvtzeexavoxtfg\",\"createdAt\":\"2021-10-13T21:26:08Z\",\"lastModifiedAt\":\"2021-07-20T08:15:13Z\"}") .toObject(RaiTopicProperties.class); - Assertions.assertEquals("seypxiutcxapz", model.topicId()); - Assertions.assertEquals("rpetogebjoxsl", model.topicName()); - Assertions.assertEquals("nhl", model.description()); - Assertions.assertEquals("rqnkkzjcjbtr", model.sampleBlobUrl()); - Assertions.assertEquals("ehvvib", model.status()); - Assertions.assertEquals("jj", model.failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:33:41Z"), model.createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-02T14:44:22Z"), model.lastModifiedAt()); + Assertions.assertEquals("tkgdojbmxva", model.topicId()); + Assertions.assertEquals("efdeesve", model.topicName()); + Assertions.assertEquals("ijpxtx", model.description()); + Assertions.assertEquals("wprtu", model.sampleBlobUrl()); + Assertions.assertEquals("sawddjibabxvi", model.status()); + Assertions.assertEquals("tvtzeexavoxtfg", model.failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T21:26:08Z"), model.createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T08:15:13Z"), model.lastModifiedAt()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiTopicProperties model = new RaiTopicProperties().withTopicId("seypxiutcxapz") - .withTopicName("rpetogebjoxsl") - .withDescription("nhl") - .withSampleBlobUrl("rqnkkzjcjbtr") - .withStatus("ehvvib") - .withFailedReason("jj") - .withCreatedAt(OffsetDateTime.parse("2021-01-18T04:33:41Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-02-02T14:44:22Z")); + RaiTopicProperties model = new RaiTopicProperties().withTopicId("tkgdojbmxva") + .withTopicName("efdeesve") + .withDescription("ijpxtx") + .withSampleBlobUrl("wprtu") + .withStatus("sawddjibabxvi") + .withFailedReason("tvtzeexavoxtfg") + .withCreatedAt(OffsetDateTime.parse("2021-10-13T21:26:08Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-07-20T08:15:13Z")); model = BinaryData.fromObject(model).toObject(RaiTopicProperties.class); - Assertions.assertEquals("seypxiutcxapz", model.topicId()); - Assertions.assertEquals("rpetogebjoxsl", model.topicName()); - Assertions.assertEquals("nhl", model.description()); - Assertions.assertEquals("rqnkkzjcjbtr", model.sampleBlobUrl()); - Assertions.assertEquals("ehvvib", model.status()); - Assertions.assertEquals("jj", model.failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:33:41Z"), model.createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-02T14:44:22Z"), model.lastModifiedAt()); + Assertions.assertEquals("tkgdojbmxva", model.topicId()); + Assertions.assertEquals("efdeesve", model.topicName()); + Assertions.assertEquals("ijpxtx", model.description()); + Assertions.assertEquals("wprtu", model.sampleBlobUrl()); + Assertions.assertEquals("sawddjibabxvi", model.status()); + Assertions.assertEquals("tvtzeexavoxtfg", model.failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T21:26:08Z"), model.createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T08:15:13Z"), model.lastModifiedAt()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java index 067662c0e49c..92a1486cd996 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java @@ -13,19 +13,19 @@ public final class RaiTopicResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiTopicResult model = BinaryData.fromString( - "{\"nextLink\":\"it\",\"value\":[{\"properties\":{\"topicId\":\"moob\",\"topicName\":\"ft\",\"description\":\"gfcwqmpimaqxzhem\",\"sampleBlobUrl\":\"h\",\"status\":\"uj\",\"failedReason\":\"t\",\"createdAt\":\"2021-02-28T12:44:36Z\",\"lastModifiedAt\":\"2021-10-12T17:43:23Z\"},\"etag\":\"culkbawpfaj\",\"tags\":{\"vkcdmxzr\":\"ltlwtjjguktalhs\",\"aaomylweazu\":\"oaimlnw\",\"hwwn\":\"cse\",\"ousnfepgfewe\":\"jhlfzswpchwahf\"},\"id\":\"l\",\"name\":\"xgncxyk\",\"type\":\"hdjhlimmbcx\"},{\"properties\":{\"topicId\":\"cporxvxcjz\",\"topicName\":\"izxfpxt\",\"description\":\"scjavftju\",\"sampleBlobUrl\":\"qaz\",\"status\":\"tgguwpijrajcivmm\",\"failedReason\":\"f\",\"createdAt\":\"2021-01-23T22:13:23Z\",\"lastModifiedAt\":\"2021-08-19T01:45:54Z\"},\"etag\":\"gkn\",\"tags\":{\"oxgsgbpfgzdjtx\":\"yinzqodfvpgs\"},\"id\":\"flbqvgaq\",\"name\":\"lgafcqusrdve\",\"type\":\"nwsdtutnwlduyc\"}]}") + "{\"nextLink\":\"qbw\",\"value\":[{\"properties\":{\"topicId\":\"gsfjac\",\"topicName\":\"lhhxudbxvodhtnsi\",\"description\":\"dhzmmesckdlp\",\"sampleBlobUrl\":\"zrcxfailcfxwmdbo\",\"status\":\"fgsftufqob\",\"failedReason\":\"lnacgcc\",\"createdAt\":\"2021-02-22T05:42:06Z\",\"lastModifiedAt\":\"2021-08-14T20:34:23Z\"},\"etag\":\"izvy\",\"tags\":{\"aaeranokqgukk\":\"zvulj\",\"oylaxxul\":\"qnvb\"},\"id\":\"isdos\",\"name\":\"jbjsvgjrwh\",\"type\":\"yvycytdclxgcckn\"},{\"properties\":{\"topicId\":\"mbtmvpdvjdhttzae\",\"topicName\":\"dxihc\",\"description\":\"phkmcrjdqnsdfz\",\"sampleBlobUrl\":\"gtgkylkdghr\",\"status\":\"uutlwxezwzhok\",\"failedReason\":\"wnhhtqlgehgppip\",\"createdAt\":\"2021-04-06T03:44:21Z\",\"lastModifiedAt\":\"2021-01-02T20:54:57Z\"},\"etag\":\"oajvgcxtxjcs\",\"tags\":{\"resmkssjhoiftxfk\":\"fidltug\",\"tillucbiqtg\":\"wegprh\",\"hm\":\"q\"},\"id\":\"sldrizetpwbral\",\"name\":\"libph\",\"type\":\"qzmiza\"},{\"properties\":{\"topicId\":\"ankjpdnjzh\",\"topicName\":\"oylhjlmuoyxprimr\",\"description\":\"pteecjme\",\"sampleBlobUrl\":\"ls\",\"status\":\"asylwx\",\"failedReason\":\"aumweoohguufu\",\"createdAt\":\"2021-04-09T11:15:41Z\",\"lastModifiedAt\":\"2021-04-18T14:21:46Z\"},\"etag\":\"thwtzol\",\"tags\":{\"lxveabfqx\":\"mwmdxmebwjscjpa\",\"ijddtvqc\":\"mwmqtibx\",\"jaeukmrsieekpn\":\"tad\"},\"id\":\"aapm\",\"name\":\"dqmeqwigpibudq\",\"type\":\"yxeb\"}]}") .toObject(RaiTopicResult.class); - Assertions.assertEquals("it", model.nextLink()); - Assertions.assertEquals("moob", model.value().get(0).properties().topicId()); - Assertions.assertEquals("ft", model.value().get(0).properties().topicName()); - Assertions.assertEquals("gfcwqmpimaqxzhem", model.value().get(0).properties().description()); - Assertions.assertEquals("h", model.value().get(0).properties().sampleBlobUrl()); - Assertions.assertEquals("uj", model.value().get(0).properties().status()); - Assertions.assertEquals("t", model.value().get(0).properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T12:44:36Z"), + Assertions.assertEquals("qbw", model.nextLink()); + Assertions.assertEquals("gsfjac", model.value().get(0).properties().topicId()); + Assertions.assertEquals("lhhxudbxvodhtnsi", model.value().get(0).properties().topicName()); + Assertions.assertEquals("dhzmmesckdlp", model.value().get(0).properties().description()); + Assertions.assertEquals("zrcxfailcfxwmdbo", model.value().get(0).properties().sampleBlobUrl()); + Assertions.assertEquals("fgsftufqob", model.value().get(0).properties().status()); + Assertions.assertEquals("lnacgcc", model.value().get(0).properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T05:42:06Z"), model.value().get(0).properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-12T17:43:23Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T20:34:23Z"), model.value().get(0).properties().lastModifiedAt()); - Assertions.assertEquals("ltlwtjjguktalhs", model.value().get(0).tags().get("vkcdmxzr")); + Assertions.assertEquals("zvulj", model.value().get(0).tags().get("aaeranokqgukk")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java index b3dccbc6704c..8c5a5e7fc20c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiTopicsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"topicId\":\"bpjzobdwbcpraswk\",\"topicName\":\"ydtnaczkfwfatgaw\",\"description\":\"nskivdwgt\",\"sampleBlobUrl\":\"umecsaaq\",\"status\":\"qbdiuycsbskowkr\",\"failedReason\":\"zhrbkhtmqo\",\"createdAt\":\"2021-04-11T19:48Z\",\"lastModifiedAt\":\"2021-01-22T22:25:46Z\"},\"etag\":\"gqgucyhfaimqvd\",\"tags\":{\"gfmq\":\"zkgyfpeoe\",\"ixvlz\":\"sk\",\"yntvzjyielbq\":\"xplhpeva\"},\"id\":\"vbqv\",\"name\":\"nmpecqxgiqasifub\",\"type\":\"snstl\"}"; + = "{\"properties\":{\"topicId\":\"niuarlcjiwgsxfai\",\"topicName\":\"wd\",\"description\":\"jjgnfgr\",\"sampleBlobUrl\":\"barc\",\"status\":\"aefzqsy\",\"failedReason\":\"w\",\"createdAt\":\"2020-12-29T03:07:25Z\",\"lastModifiedAt\":\"2021-08-20T22:54:08Z\"},\"etag\":\"esmfucrtfodq\",\"tags\":{\"ezvhj\":\"uzmzivrtrfzh\",\"swtvd\":\"dxdyyrudma\",\"qjchivd\":\"xbqssgfenffdxbvw\",\"xndmuvar\":\"ija\"},\"id\":\"mzjotprrmuh\",\"name\":\"uhtuz\",\"type\":\"xiwy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,28 +34,28 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiTopic response = manager.raiTopics() - .define("nqxgz") - .withExistingAccount("yxqfmzsizzhravr", "jkjymgqbgcx") - .withTags(mapOf("qiyv", "fyjfd")) - .withProperties(new RaiTopicProperties().withTopicId("rmk") - .withTopicName("rghskir") - .withDescription("pupkcbkfukd") - .withSampleBlobUrl("qnv") - .withStatus("dydshk") - .withFailedReason("fyaloowwzizzny") - .withCreatedAt(OffsetDateTime.parse("2021-05-26T12:09:53Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-05-23T02:06:42Z"))) + .define("uninttlnrjdszd") + .withExistingAccount("qflvtlrvbst", "huy") + .withTags(mapOf("lhzwh", "ck")) + .withProperties(new RaiTopicProperties().withTopicId("iciqppo") + .withTopicName("gpnewuhwfwjnox") + .withDescription("xtfnress") + .withSampleBlobUrl("pg") + .withStatus("ncjmgvsnvbtq") + .withFailedReason("fmjymjnh") + .withCreatedAt(OffsetDateTime.parse("2021-08-20T19:49:17Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-04-04T16:04:52Z"))) .create(); - Assertions.assertEquals("bpjzobdwbcpraswk", response.properties().topicId()); - Assertions.assertEquals("ydtnaczkfwfatgaw", response.properties().topicName()); - Assertions.assertEquals("nskivdwgt", response.properties().description()); - Assertions.assertEquals("umecsaaq", response.properties().sampleBlobUrl()); - Assertions.assertEquals("qbdiuycsbskowkr", response.properties().status()); - Assertions.assertEquals("zhrbkhtmqo", response.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T19:48Z"), response.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T22:25:46Z"), response.properties().lastModifiedAt()); - Assertions.assertEquals("zkgyfpeoe", response.tags().get("gfmq")); + Assertions.assertEquals("niuarlcjiwgsxfai", response.properties().topicId()); + Assertions.assertEquals("wd", response.properties().topicName()); + Assertions.assertEquals("jjgnfgr", response.properties().description()); + Assertions.assertEquals("barc", response.properties().sampleBlobUrl()); + Assertions.assertEquals("aefzqsy", response.properties().status()); + Assertions.assertEquals("w", response.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-29T03:07:25Z"), response.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-20T22:54:08Z"), response.properties().lastModifiedAt()); + Assertions.assertEquals("uzmzivrtrfzh", response.tags().get("ezvhj")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java index 5b3b412b5f94..f3c49d1ebe2c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiTopicsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"topicId\":\"xwjwilm\",\"topicName\":\"sl\",\"description\":\"teptwujjzgxqgqwl\",\"sampleBlobUrl\":\"hgt\",\"status\":\"vtqqy\",\"failedReason\":\"kkt\",\"createdAt\":\"2021-10-16T22:29:02Z\",\"lastModifiedAt\":\"2021-01-29T05:32:48Z\"},\"etag\":\"gm\",\"tags\":{\"h\":\"vvmvmcofn\",\"snqliwkmzojfe\":\"bsn\",\"nazgbjbhrpgiq\":\"yalhtgm\"},\"id\":\"tcucrcmmai\",\"name\":\"p\",\"type\":\"jiwifhbksldttoh\"}"; + = "{\"properties\":{\"topicId\":\"jsiuepmax\",\"topicName\":\"zlpqmpftxefvulb\",\"description\":\"rtux\",\"sampleBlobUrl\":\"rhfcaeooifqdyw\",\"status\":\"lobha\",\"failedReason\":\"momfecorkfroc\",\"createdAt\":\"2021-04-22T09:59:31Z\",\"lastModifiedAt\":\"2021-06-30T16:41:45Z\"},\"etag\":\"j\",\"tags\":{\"qfygpny\":\"zbjesylslur\"},\"id\":\"dzuqscag\",\"name\":\"yvouprsytq\",\"type\":\"ss\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiTopic response = manager.raiTopics() - .getWithResponse("cslhwuusi", "cktybhjuxid", "hxomilddxjx", com.azure.core.util.Context.NONE) + .getWithResponse("yresgzsdtmwbyorj", "lb", "hychakvyrfbqvum", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xwjwilm", response.properties().topicId()); - Assertions.assertEquals("sl", response.properties().topicName()); - Assertions.assertEquals("teptwujjzgxqgqwl", response.properties().description()); - Assertions.assertEquals("hgt", response.properties().sampleBlobUrl()); - Assertions.assertEquals("vtqqy", response.properties().status()); - Assertions.assertEquals("kkt", response.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-16T22:29:02Z"), response.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T05:32:48Z"), response.properties().lastModifiedAt()); - Assertions.assertEquals("vvmvmcofn", response.tags().get("h")); + Assertions.assertEquals("jsiuepmax", response.properties().topicId()); + Assertions.assertEquals("zlpqmpftxefvulb", response.properties().topicName()); + Assertions.assertEquals("rtux", response.properties().description()); + Assertions.assertEquals("rhfcaeooifqdyw", response.properties().sampleBlobUrl()); + Assertions.assertEquals("lobha", response.properties().status()); + Assertions.assertEquals("momfecorkfroc", response.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-22T09:59:31Z"), response.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T16:41:45Z"), response.properties().lastModifiedAt()); + Assertions.assertEquals("zbjesylslur", response.tags().get("qfygpny")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java index d1c1586b87c3..f32187020419 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiTopicsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"topicId\":\"mgl\",\"topicName\":\"oi\",\"description\":\"trawrqkza\",\"sampleBlobUrl\":\"unmpaklwzl\",\"status\":\"epr\",\"failedReason\":\"jzltkaszfjs\",\"createdAt\":\"2021-06-26T09:59:20Z\",\"lastModifiedAt\":\"2021-08-04T18:18:13Z\"},\"etag\":\"xapgrcqebmvrdjom\",\"tags\":{\"dsbgzan\":\"sbvvdlsflxkqesdf\",\"dhqnufbxweiib\":\"oinmphymcqidklt\",\"vfnybydh\":\"toj\",\"rhjkehw\":\"ihaouwudhua\"},\"id\":\"mosqircamqprlob\",\"name\":\"ugejcvjkjyczcmt\",\"type\":\"gelajdyolje\"}]}"; + = "{\"value\":[{\"properties\":{\"topicId\":\"yqvpbfjpo\",\"topicName\":\"ucfzluczdquu\",\"description\":\"ormvh\",\"sampleBlobUrl\":\"ielbprnq\",\"status\":\"ywzcqyggmnw\",\"failedReason\":\"hbngqiwyej\",\"createdAt\":\"2021-06-06T06:48:56Z\",\"lastModifiedAt\":\"2021-03-01T05:29:37Z\"},\"etag\":\"pnrehkunsb\",\"tags\":{\"geattbzkg\":\"hlwtpkv\",\"nwqsttewu\":\"z\"},\"id\":\"ysjeufjx\",\"name\":\"lpditfnonpi\",\"type\":\"uxlvrhprrvbwonl\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,18 +32,18 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiTopics().list("clnaihtg", "iqikvllr", com.azure.core.util.Context.NONE); + = manager.raiTopics().list("hmgw", "nivrxpfduio", com.azure.core.util.Context.NONE); - Assertions.assertEquals("mgl", response.iterator().next().properties().topicId()); - Assertions.assertEquals("oi", response.iterator().next().properties().topicName()); - Assertions.assertEquals("trawrqkza", response.iterator().next().properties().description()); - Assertions.assertEquals("unmpaklwzl", response.iterator().next().properties().sampleBlobUrl()); - Assertions.assertEquals("epr", response.iterator().next().properties().status()); - Assertions.assertEquals("jzltkaszfjs", response.iterator().next().properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-26T09:59:20Z"), + Assertions.assertEquals("yqvpbfjpo", response.iterator().next().properties().topicId()); + Assertions.assertEquals("ucfzluczdquu", response.iterator().next().properties().topicName()); + Assertions.assertEquals("ormvh", response.iterator().next().properties().description()); + Assertions.assertEquals("ielbprnq", response.iterator().next().properties().sampleBlobUrl()); + Assertions.assertEquals("ywzcqyggmnw", response.iterator().next().properties().status()); + Assertions.assertEquals("hbngqiwyej", response.iterator().next().properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-06T06:48:56Z"), response.iterator().next().properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T18:18:13Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-01T05:29:37Z"), response.iterator().next().properties().lastModifiedAt()); - Assertions.assertEquals("sbvvdlsflxkqesdf", response.iterator().next().tags().get("dsbgzan")); + Assertions.assertEquals("hlwtpkv", response.iterator().next().tags().get("geattbzkg")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java index 2f9831099bcd..ec4558402a2d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java @@ -13,11 +13,11 @@ public final class ReplacementConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplacementConfig model = BinaryData.fromString( - "{\"targetModelName\":\"eh\",\"targetModelVersion\":\"vecxgodebfqkk\",\"autoUpgradeStartDate\":\"2021-10-28T16:20:15Z\",\"upgradeOnExpiryLeadTimeDays\":1171229778}") + "{\"targetModelName\":\"ncuxrhdwb\",\"targetModelVersion\":\"xbniwdjs\",\"autoUpgradeStartDate\":\"2021-12-07T05:36:29Z\",\"upgradeOnExpiryLeadTimeDays\":670634549}") .toObject(ReplacementConfig.class); - Assertions.assertEquals("eh", model.targetModelName()); - Assertions.assertEquals("vecxgodebfqkk", model.targetModelVersion()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-28T16:20:15Z"), model.autoUpgradeStartDate()); - Assertions.assertEquals(1171229778, model.upgradeOnExpiryLeadTimeDays()); + Assertions.assertEquals("ncuxrhdwb", model.targetModelName()); + Assertions.assertEquals("xbniwdjs", model.targetModelVersion()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T05:36:29Z"), model.autoUpgradeStartDate()); + Assertions.assertEquals(670634549, model.upgradeOnExpiryLeadTimeDays()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java index c1f1cbe9c1fc..fb122cf3174d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java @@ -13,18 +13,20 @@ public final class ResourceBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceBase model = BinaryData.fromString("{\"description\":\"aoaguhicqlli\",\"tags\":{\"jvhrweft\":\"ac\"}}") + ResourceBase model = BinaryData.fromString( + "{\"description\":\"heqdurelyujlfyou\",\"tags\":{\"brzmqxucycijoclx\":\"kyeclcdigpta\",\"zjd\":\"utgjcyz\",\"jb\":\"r\",\"w\":\"xjeaoqaqbzgyh\"}}") .toObject(ResourceBase.class); - Assertions.assertEquals("aoaguhicqlli", model.description()); - Assertions.assertEquals("ac", model.tags().get("jvhrweft")); + Assertions.assertEquals("heqdurelyujlfyou", model.description()); + Assertions.assertEquals("kyeclcdigpta", model.tags().get("brzmqxucycijoclx")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceBase model = new ResourceBase().withDescription("aoaguhicqlli").withTags(mapOf("jvhrweft", "ac")); + ResourceBase model = new ResourceBase().withDescription("heqdurelyujlfyou") + .withTags(mapOf("brzmqxucycijoclx", "kyeclcdigpta", "zjd", "utgjcyz", "jb", "r", "w", "xjeaoqaqbzgyh")); model = BinaryData.fromObject(model).toObject(ResourceBase.class); - Assertions.assertEquals("aoaguhicqlli", model.description()); - Assertions.assertEquals("ac", model.tags().get("jvhrweft")); + Assertions.assertEquals("heqdurelyujlfyou", model.description()); + Assertions.assertEquals("kyeclcdigpta", model.tags().get("brzmqxucycijoclx")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java index 314aee81abdd..6c0c148febd3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ResourceProvidersCheckDomainAvailabilityWithResponseMockTests @Test public void testCheckDomainAvailabilityWithResponse() throws Exception { String responseStr - = "{\"isSubdomainAvailable\":true,\"reason\":\"eoxinhgre\",\"subdomainName\":\"twhlpuzjpce\",\"type\":\"nzangprbfaxy\",\"kind\":\"lbciphmsexro\"}"; + = "{\"isSubdomainAvailable\":false,\"reason\":\"okdxkukmkcz\",\"subdomainName\":\"uhhoqeqshavlj\",\"type\":\"xyrqo\",\"kind\":\"thbb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,14 @@ public void testCheckDomainAvailabilityWithResponse() throws Exception { DomainAvailability response = manager.resourceProviders() .checkDomainAvailabilityWithResponse( - new CheckDomainAvailabilityParameter().withSubdomainName("fyvrtpqpemhzcgk") - .withType("epdqhqyhwq") - .withKind("mvxqab"), + new CheckDomainAvailabilityParameter().withSubdomainName("su").withType("gfjzcvaax").withKind("alahf"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertTrue(response.isSubdomainAvailable()); - Assertions.assertEquals("eoxinhgre", response.reason()); - Assertions.assertEquals("twhlpuzjpce", response.subdomainName()); - Assertions.assertEquals("nzangprbfaxy", response.type()); - Assertions.assertEquals("lbciphmsexro", response.kind()); + Assertions.assertFalse(response.isSubdomainAvailable()); + Assertions.assertEquals("okdxkukmkcz", response.reason()); + Assertions.assertEquals("uhhoqeqshavlj", response.subdomainName()); + Assertions.assertEquals("xyrqo", response.type()); + Assertions.assertEquals("thbb", response.kind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java index 5565c0809d84..a50d3b74f667 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ResourceProvidersCheckSkuAvailabilityWithResponseMockTests { @Test public void testCheckSkuAvailabilityWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"kind\":\"dxcltuubwyvpj\",\"type\":\"wcpjqduqgi\",\"skuName\":\"xkydfbwlja\",\"skuAvailable\":true,\"reason\":\"rkjd\",\"message\":\"r\"},{\"kind\":\"iegftc\",\"type\":\"iiftksd\",\"skuName\":\"dnkefgm\",\"skuAvailable\":true,\"reason\":\"eb\",\"message\":\"czldbglzoutbaaqg\"},{\"kind\":\"kajclyzgsn\",\"type\":\"bjgmnzj\",\"skuName\":\"vmrxkhlobvvjbh\",\"skuAvailable\":false,\"reason\":\"qayfl\",\"message\":\"yu\"},{\"kind\":\"n\",\"type\":\"dtelvhyibdrqrs\",\"skuName\":\"buubpyrowt\",\"skuAvailable\":true,\"reason\":\"tfwfqchvczevj\",\"message\":\"cta\"}]}"; + = "{\"value\":[{\"kind\":\"bo\",\"type\":\"yfpqd\",\"skuName\":\"kpp\",\"skuAvailable\":false,\"reason\":\"tfvpctfjikff\",\"message\":\"g\"},{\"kind\":\"hznwhvuldbkk\",\"type\":\"jkjigawgaz\",\"skuName\":\"jqifhujjsbcml\",\"skuAvailable\":false,\"reason\":\"zbhur\",\"message\":\"lkolirhhmoj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testCheckSkuAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SkuAvailabilityListResult response = manager.resourceProviders() - .checkSkuAvailabilityWithResponse("qpilrgu", - new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("anlduwzorxsb", "x", "qk")) - .withKind("xym") - .withType("kqv"), + .checkSkuAvailabilityWithResponse("xv", + new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("yjfucsaod", "nosdkvi")) + .withKind("fasgm") + .withType("trnzpducdaaktu"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("dxcltuubwyvpj", response.value().get(0).kind()); - Assertions.assertEquals("wcpjqduqgi", response.value().get(0).type()); - Assertions.assertEquals("xkydfbwlja", response.value().get(0).skuName()); - Assertions.assertTrue(response.value().get(0).skuAvailable()); - Assertions.assertEquals("rkjd", response.value().get(0).reason()); - Assertions.assertEquals("r", response.value().get(0).message()); + Assertions.assertEquals("bo", response.value().get(0).kind()); + Assertions.assertEquals("yfpqd", response.value().get(0).type()); + Assertions.assertEquals("kpp", response.value().get(0).skuName()); + Assertions.assertFalse(response.value().get(0).skuAvailable()); + Assertions.assertEquals("tfvpctfjikff", response.value().get(0).reason()); + Assertions.assertEquals("g", response.value().get(0).message()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java index 913dba484b5f..57db11714e57 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java @@ -11,11 +11,10 @@ public final class ResourceSkuRestrictionInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceSkuRestrictionInfo model = BinaryData - .fromString( - "{\"locations\":[\"ncaqttiekoifu\"],\"zones\":[\"ttzgixgyrihlg\",\"gbehlqtxnr\",\"lkndrndpgfjodh\"]}") + ResourceSkuRestrictionInfo model = BinaryData.fromString( + "{\"locations\":[\"jbedpfixlhupmomi\",\"z\",\"dnpxpkcdpr\"],\"zones\":[\"elyicghf\",\"rufssjyg\",\"sfxrkbhammgm\"]}") .toObject(ResourceSkuRestrictionInfo.class); - Assertions.assertEquals("ncaqttiekoifu", model.locations().get(0)); - Assertions.assertEquals("ttzgixgyrihlg", model.zones().get(0)); + Assertions.assertEquals("jbedpfixlhupmomi", model.locations().get(0)); + Assertions.assertEquals("elyicghf", model.zones().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java index c34dbfbd4c1a..f844ea1ce8d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java @@ -12,22 +12,22 @@ public final class SafetyProviderConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SafetyProviderConfig model - = BinaryData.fromString("{\"source\":\"PreRun\",\"safetyProviderName\":\"yxgtczh\",\"blocking\":false}") - .toObject(SafetyProviderConfig.class); - Assertions.assertEquals("yxgtczh", model.safetyProviderName()); + SafetyProviderConfig model = BinaryData + .fromString("{\"source\":\"PreToolCall\",\"safetyProviderName\":\"dieuzaofj\",\"blocking\":false}") + .toObject(SafetyProviderConfig.class); + Assertions.assertEquals("dieuzaofj", model.safetyProviderName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SafetyProviderConfig model = new SafetyProviderConfig().withSafetyProviderName("yxgtczh") + SafetyProviderConfig model = new SafetyProviderConfig().withSafetyProviderName("dieuzaofj") .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_RUN); + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL); model = BinaryData.fromObject(model).toObject(SafetyProviderConfig.class); - Assertions.assertEquals("yxgtczh", model.safetyProviderName()); + Assertions.assertEquals("dieuzaofj", model.safetyProviderName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java index 18c17dd36af3..61e92e5b3fb0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java @@ -14,27 +14,27 @@ public final class ServiceTagOutboundRuleDestinationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceTagOutboundRuleDestination model = BinaryData.fromString( - "{\"serviceTag\":\"jfdoesxxhm\",\"protocol\":\"dbckyo\",\"portRanges\":\"xkxhnegknjzrbhtm\",\"action\":\"Deny\",\"addressPrefixes\":[\"kaobrl\",\"pgsn\",\"agnchjhgemuowaky\",\"a\"]}") + "{\"serviceTag\":\"ehlq\",\"protocol\":\"nrflkndrndpg\",\"portRanges\":\"odhda\",\"action\":\"Allow\",\"addressPrefixes\":[\"hipx\",\"gsabvcipowzafc\"]}") .toObject(ServiceTagOutboundRuleDestination.class); - Assertions.assertEquals("jfdoesxxhm", model.serviceTag()); - Assertions.assertEquals("dbckyo", model.protocol()); - Assertions.assertEquals("xkxhnegknjzrbhtm", model.portRanges()); - Assertions.assertEquals(RuleAction.DENY, model.action()); - Assertions.assertEquals("kaobrl", model.addressPrefixes().get(0)); + Assertions.assertEquals("ehlq", model.serviceTag()); + Assertions.assertEquals("nrflkndrndpg", model.protocol()); + Assertions.assertEquals("odhda", model.portRanges()); + Assertions.assertEquals(RuleAction.ALLOW, model.action()); + Assertions.assertEquals("hipx", model.addressPrefixes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceTagOutboundRuleDestination model = new ServiceTagOutboundRuleDestination().withServiceTag("jfdoesxxhm") - .withProtocol("dbckyo") - .withPortRanges("xkxhnegknjzrbhtm") - .withAction(RuleAction.DENY) - .withAddressPrefixes(Arrays.asList("kaobrl", "pgsn", "agnchjhgemuowaky", "a")); + ServiceTagOutboundRuleDestination model = new ServiceTagOutboundRuleDestination().withServiceTag("ehlq") + .withProtocol("nrflkndrndpg") + .withPortRanges("odhda") + .withAction(RuleAction.ALLOW) + .withAddressPrefixes(Arrays.asList("hipx", "gsabvcipowzafc")); model = BinaryData.fromObject(model).toObject(ServiceTagOutboundRuleDestination.class); - Assertions.assertEquals("jfdoesxxhm", model.serviceTag()); - Assertions.assertEquals("dbckyo", model.protocol()); - Assertions.assertEquals("xkxhnegknjzrbhtm", model.portRanges()); - Assertions.assertEquals(RuleAction.DENY, model.action()); - Assertions.assertEquals("kaobrl", model.addressPrefixes().get(0)); + Assertions.assertEquals("ehlq", model.serviceTag()); + Assertions.assertEquals("nrflkndrndpg", model.protocol()); + Assertions.assertEquals("odhda", model.portRanges()); + Assertions.assertEquals(RuleAction.ALLOW, model.action()); + Assertions.assertEquals("hipx", model.addressPrefixes().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java index ac008646b5c2..2b850346e175 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java @@ -17,33 +17,33 @@ public final class ServiceTagOutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceTagOutboundRule model = BinaryData.fromString( - "{\"type\":\"ServiceTag\",\"destination\":{\"serviceTag\":\"zyqu\",\"protocol\":\"sqxutr\",\"portRanges\":\"rruyuu\",\"action\":\"Allow\",\"addressPrefixes\":[\"bjwcolbmx\",\"b\",\"w\"]},\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"pr\",\"parentRuleNames\":[\"xhmtfhocnxzc\",\"jhngxnoq\",\"xtdisnjevhd\",\"mydidwhepfw\"]}") + "{\"type\":\"ServiceTag\",\"destination\":{\"serviceTag\":\"aywkdcwmqsyril\",\"protocol\":\"xdqaolfylnkkb\",\"portRanges\":\"jvlywl\",\"action\":\"Allow\",\"addressPrefixes\":[\"bbjwhlw\",\"j\",\"nqzocrdzg\"]},\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"g\",\"parentRuleNames\":[\"ca\",\"ttie\",\"oifuvnyttzgixgy\",\"ihlgm\"]}") .toObject(ServiceTagOutboundRule.class); - Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); - Assertions.assertEquals(RuleStatus.FAILED, model.status()); - Assertions.assertEquals("zyqu", model.destination().serviceTag()); - Assertions.assertEquals("sqxutr", model.destination().protocol()); - Assertions.assertEquals("rruyuu", model.destination().portRanges()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); + Assertions.assertEquals(RuleStatus.DELETING, model.status()); + Assertions.assertEquals("aywkdcwmqsyril", model.destination().serviceTag()); + Assertions.assertEquals("xdqaolfylnkkb", model.destination().protocol()); + Assertions.assertEquals("jvlywl", model.destination().portRanges()); Assertions.assertEquals(RuleAction.ALLOW, model.destination().action()); - Assertions.assertEquals("bjwcolbmx", model.destination().addressPrefixes().get(0)); + Assertions.assertEquals("bbjwhlw", model.destination().addressPrefixes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceTagOutboundRule model = new ServiceTagOutboundRule().withCategory(RuleCategory.USER_DEFINED) - .withStatus(RuleStatus.FAILED) - .withDestination(new ServiceTagOutboundRuleDestination().withServiceTag("zyqu") - .withProtocol("sqxutr") - .withPortRanges("rruyuu") + ServiceTagOutboundRule model = new ServiceTagOutboundRule().withCategory(RuleCategory.DEPENDENCY) + .withStatus(RuleStatus.DELETING) + .withDestination(new ServiceTagOutboundRuleDestination().withServiceTag("aywkdcwmqsyril") + .withProtocol("xdqaolfylnkkb") + .withPortRanges("jvlywl") .withAction(RuleAction.ALLOW) - .withAddressPrefixes(Arrays.asList("bjwcolbmx", "b", "w"))); + .withAddressPrefixes(Arrays.asList("bbjwhlw", "j", "nqzocrdzg"))); model = BinaryData.fromObject(model).toObject(ServiceTagOutboundRule.class); - Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); - Assertions.assertEquals(RuleStatus.FAILED, model.status()); - Assertions.assertEquals("zyqu", model.destination().serviceTag()); - Assertions.assertEquals("sqxutr", model.destination().protocol()); - Assertions.assertEquals("rruyuu", model.destination().portRanges()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); + Assertions.assertEquals(RuleStatus.DELETING, model.status()); + Assertions.assertEquals("aywkdcwmqsyril", model.destination().serviceTag()); + Assertions.assertEquals("xdqaolfylnkkb", model.destination().protocol()); + Assertions.assertEquals("jvlywl", model.destination().portRanges()); Assertions.assertEquals(RuleAction.ALLOW, model.destination().action()); - Assertions.assertEquals("bjwcolbmx", model.destination().addressPrefixes().get(0)); + Assertions.assertEquals("bbjwhlw", model.destination().addressPrefixes().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java index 7c3318c87371..e33c177de357 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java @@ -13,18 +13,18 @@ public final class SkuResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SkuResourceInner model = BinaryData.fromString( - "{\"resourceType\":\"mszkkfo\",\"sku\":{\"name\":\"eyfkzikfja\",\"tier\":\"Basic\",\"size\":\"ivx\",\"family\":\"zel\",\"capacity\":1240770029},\"capacity\":{\"minimum\":2047901217,\"maximum\":1960013520,\"step\":1789990861,\"default\":730394428,\"allowedValues\":[1417911120,1449386799]}}") + "{\"resourceType\":\"llrxcyjmoad\",\"sku\":{\"name\":\"varmywdmj\",\"tier\":\"Basic\",\"size\":\"jhhyxxrwlycoduhp\",\"family\":\"kgymareqnajxqug\",\"capacity\":432489630},\"capacity\":{\"minimum\":1538408928,\"maximum\":32675843,\"step\":1237082530,\"default\":403214280,\"allowedValues\":[1063119881]}}") .toObject(SkuResourceInner.class); - Assertions.assertEquals("mszkkfo", model.resourceType()); - Assertions.assertEquals("eyfkzikfja", model.sku().name()); + Assertions.assertEquals("llrxcyjmoad", model.resourceType()); + Assertions.assertEquals("varmywdmj", model.sku().name()); Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("ivx", model.sku().size()); - Assertions.assertEquals("zel", model.sku().family()); - Assertions.assertEquals(1240770029, model.sku().capacity()); - Assertions.assertEquals(2047901217, model.capacity().minimum()); - Assertions.assertEquals(1960013520, model.capacity().maximum()); - Assertions.assertEquals(1789990861, model.capacity().step()); - Assertions.assertEquals(730394428, model.capacity().defaultProperty()); - Assertions.assertEquals(1417911120, model.capacity().allowedValues().get(0)); + Assertions.assertEquals("jhhyxxrwlycoduhp", model.sku().size()); + Assertions.assertEquals("kgymareqnajxqug", model.sku().family()); + Assertions.assertEquals(432489630, model.sku().capacity()); + Assertions.assertEquals(1538408928, model.capacity().minimum()); + Assertions.assertEquals(32675843, model.capacity().maximum()); + Assertions.assertEquals(1237082530, model.capacity().step()); + Assertions.assertEquals(403214280, model.capacity().defaultProperty()); + Assertions.assertEquals(1063119881, model.capacity().allowedValues().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java index ec5b38251815..5e71dbefebb5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java @@ -13,27 +13,27 @@ public final class SkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Sku model = BinaryData.fromString( - "{\"name\":\"dkexxppofm\",\"tier\":\"Enterprise\",\"size\":\"fjpgddtocjjxhvp\",\"family\":\"uexhdzx\",\"capacity\":1730783579}") + "{\"name\":\"q\",\"tier\":\"Free\",\"size\":\"ixuigdtopbobj\",\"family\":\"hm\",\"capacity\":115410873}") .toObject(Sku.class); - Assertions.assertEquals("dkexxppofm", model.name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.tier()); - Assertions.assertEquals("fjpgddtocjjxhvp", model.size()); - Assertions.assertEquals("uexhdzx", model.family()); - Assertions.assertEquals(1730783579, model.capacity()); + Assertions.assertEquals("q", model.name()); + Assertions.assertEquals(SkuTier.FREE, model.tier()); + Assertions.assertEquals("ixuigdtopbobj", model.size()); + Assertions.assertEquals("hm", model.family()); + Assertions.assertEquals(115410873, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Sku model = new Sku().withName("dkexxppofm") - .withTier(SkuTier.ENTERPRISE) - .withSize("fjpgddtocjjxhvp") - .withFamily("uexhdzx") - .withCapacity(1730783579); + Sku model = new Sku().withName("q") + .withTier(SkuTier.FREE) + .withSize("ixuigdtopbobj") + .withFamily("hm") + .withCapacity(115410873); model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals("dkexxppofm", model.name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.tier()); - Assertions.assertEquals("fjpgddtocjjxhvp", model.size()); - Assertions.assertEquals("uexhdzx", model.family()); - Assertions.assertEquals(1730783579, model.capacity()); + Assertions.assertEquals("q", model.name()); + Assertions.assertEquals(SkuTier.FREE, model.tier()); + Assertions.assertEquals("ixuigdtopbobj", model.size()); + Assertions.assertEquals("hm", model.family()); + Assertions.assertEquals(115410873, model.capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests.java index 4300fe823f06..5eb4c35c1edd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests.java @@ -41,7 +41,7 @@ public final class SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"vsfbp\",\"contentFilters\":[{\"name\":\"paxmfm\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"bsat\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"sugmocpcjyc\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"wfldsiuorinik\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"riwmmtmqrxrzqv\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"tg\",\"rules\":[{\"name\":\"iqahragpx\",\"description\":\"bp\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"o\",\"description\":\"yefqmwovyztx\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}}]}},\"etag\":\"pbjceegvy\",\"tags\":{\"ukkrehyh\":\"tkutnjil\",\"fvulxfaryr\":\"mjodu\"},\"id\":\"lgdezvjqw\",\"name\":\"hoyiyaxqvjweiw\",\"type\":\"czkddn\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"dhuaorhjk\",\"contentFilters\":[{\"name\":\"umo\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"},{\"name\":\"brugejcvjkjycz\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"HITL\"},{\"name\":\"l\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"zhravrcj\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"xle\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"ghskirh\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreToolCall\",\"safetyProviderName\":\"fukdljqnvtsdyd\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"yaloowwzizznyufp\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"gufy\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Deny\",\"description\":\"djokgwesym\",\"rules\":[{\"name\":\"rqpfzlp\",\"description\":\"tznxlu\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"q\",\"description\":\"gsimwe\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"bpjzobdwbcpraswk\",\"tags\":{\"fatgawphnski\":\"dtnaczkf\",\"goqb\":\"dwgtqcumecsaa\",\"bhz\":\"iuycsbskowk\",\"htmqowi\":\"rb\"},\"id\":\"sfgqgucyhfaimqv\",\"name\":\"ruozkgyfp\",\"type\":\"oehgfmqmskkixvlz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -50,101 +50,93 @@ public void testCreateOrUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RaiPolicy response = manager.subscriptionRaiPolicies() - .createOrUpdateWithResponse("ikclsm", new RaiPolicyInner() - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) - .withBasePolicyName("ykdnonaaxwmg") - .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("lqcwnynll") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.ANNOTATING), - new RaiPolicyContentFilter().withName("ertoxadhxuvj") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL) - .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("twmlg") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.ANNOTATING))) - .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("i") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN), - new CustomBlocklistConfig().withBlocklistName("cdsvmwbitek") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("ybxq") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN), - new SafetyProviderConfig().withSafetyProviderName("fzdqekiv") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT), - new SafetyProviderConfig().withSafetyProviderName("diz") - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION))) - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.AUDIT) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("ezp") - .withRules(Arrays.asList( - new RaiEgressRule().withName("ryfmxmdu") - .withDescription("fkgilnoudccgnd") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY)), - new RaiEgressRule().withName("r") - .withDescription("gqqyeqfcbuulpyuf") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)), - new RaiEgressRule().withName("shtujcyoh") - .withDescription("imwdcsklkqnqvki") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY)), - new RaiEgressRule().withName("zmec") - .withDescription("rzwimbzayspz") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)))))) - .withTags(mapOf("gschnzrsbk", "xplgtpvdvatlz", "ws", "zovlzdmnfm", "orimmo", "afofu", "ovanyrva", - "zwdehkkmvhz")), - com.azure.core.util.Context.NONE) - .getValue(); + RaiPolicy response + = manager.subscriptionRaiPolicies() + .createOrUpdateWithResponse("vmvm", + new RaiPolicyInner() + .withProperties( + new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) + .withBasePolicyName("bsn") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("li") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.NONE), + new RaiPolicyContentFilter().withName("htgmknazgbj") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT) + .withAction(RaiActionType.ANNOTATING), + new RaiPolicyContentFilter().withName("crcmmaixp") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION) + .withAction(RaiActionType.ANNOTATING))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("qclnaihtg") + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("llrhtpmglx") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL), + new CustomBlocklistConfig().withBlocklistName("rawrqkzawbunmp") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN))) + .withSafetyProviders( + Arrays.asList(new SafetyProviderConfig().withSafetyProviderName("epr") + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION))) + .withEgressPolicy( + new RaiEgressPolicyConfig().withMode(RaiEgressMode.AUDIT) + .withDefaultAction(RaiEgressDefaultAction.ALLOW) + .withDescription("zfjsxscbd") + .withRules(Arrays.asList( + new RaiEgressRule().withName("pg") + .withDescription("qebmvrdjomlnwsb") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch()) + .withAction(new RaiEgressRuleAction() + .withActionType(RaiEgressRuleActionType.DENY)), + new RaiEgressRule().withName("sflxkqesd") + .withDescription("dsbgzan") + .withRuleType(RaiEgressRuleType.FQDN) + .withMatch(new RaiEgressRuleMatch()) + .withAction(new RaiEgressRuleAction() + .withActionType(RaiEgressRuleActionType.REWRITE)))))) + .withTags(mapOf("e", "kltvdhqnufbx")), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.properties().mode()); - Assertions.assertEquals("vsfbp", response.properties().basePolicyName()); - Assertions.assertEquals("paxmfm", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); + Assertions.assertEquals("dhuaorhjk", response.properties().basePolicyName()); + Assertions.assertEquals("umo", response.properties().contentFilters().get(0).name()); Assertions.assertTrue(response.properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.LOW, response.properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(response.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, - response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.RETRY, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("bsat", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertTrue(response.properties().contentFilters().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.ANNOTATING, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("xle", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("wfldsiuorinik", response.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + Assertions.assertEquals("fukdljqnvtsdyd", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, response.properties().safetyProviders().get(0).source()); Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("tg", response.properties().egressPolicy().description()); - Assertions.assertEquals("iqahragpx", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("bp", response.properties().egressPolicy().rules().get(0).description()); + Assertions.assertEquals(RaiEgressDefaultAction.DENY, response.properties().egressPolicy().defaultAction()); + Assertions.assertEquals("djokgwesym", response.properties().egressPolicy().description()); + Assertions.assertEquals("rqpfzlp", response.properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("tznxlu", response.properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("tkutnjil", response.tags().get("ukkrehyh")); + Assertions.assertEquals("dtnaczkf", response.tags().get("fatgawphnski")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesGetWithResponseMockTests.java index b24da9a62ad2..548e04620b8d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesGetWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class SubscriptionRaiPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"gfqumjdjxhzghgo\",\"contentFilters\":[{\"name\":\"rceqavfdbdfm\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"},{\"name\":\"yqmkwlh\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"},{\"name\":\"xxr\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"HITL\"},{\"name\":\"tdtkwppthuz\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"emhkftbaewht\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"xtllfltymqcnr\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"gabqbg\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"irw\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"ouh\",\"rules\":[{\"name\":\"rxqwqnjxrd\",\"description\":\"dtullygtavczcxdf\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Deny\"}},{\"name\":\"yf\",\"description\":\"xrljphraspi\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}},{\"name\":\"m\",\"description\":\"lmdbgic\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}}]}},\"etag\":\"mdrjuqbpxt\",\"tags\":{\"yqiprclt\":\"jmtznpaxwfqt\"},\"id\":\"gbsoljckmiigzb\",\"name\":\"uck\",\"type\":\"kdskswtiiqqc\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"kayrgwy\",\"contentFilters\":[{\"name\":\"pdweoft\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"ja\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"tj\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"fjxtvlxxzqfc\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"xeezwyhjmbjiqe\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"whpyvdk\",\"rules\":[{\"name\":\"tszwcanzb\",\"description\":\"kwuyck\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"nsm\",\"description\":\"fiwjbctvbp\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}}]}},\"etag\":\"totdxposcslh\",\"tags\":{\"xidhhxomil\":\"siecktybhj\",\"xwjwilm\":\"dxjxdu\",\"wuj\":\"rslaatep\",\"gtvh\":\"zgxqgqwlxr\"},\"id\":\"qqy\",\"name\":\"bkkteo\",\"type\":\"ejogmkor\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,33 +38,34 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RaiPolicy response - = manager.subscriptionRaiPolicies().getWithResponse("d", com.azure.core.util.Context.NONE).getValue(); + RaiPolicy response = manager.subscriptionRaiPolicies() + .getWithResponse("wgsoriobijeiydy", com.azure.core.util.Context.NONE) + .getValue(); Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); - Assertions.assertEquals("gfqumjdjxhzghgo", response.properties().basePolicyName()); - Assertions.assertEquals("rceqavfdbdfm", response.properties().contentFilters().get(0).name()); - Assertions.assertFalse(response.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals("kayrgwy", response.properties().basePolicyName()); + Assertions.assertEquals("pdweoft", response.properties().contentFilters().get(0).name()); + Assertions.assertTrue(response.properties().contentFilters().get(0).enabled()); Assertions.assertEquals(ContentLevel.HIGH, response.properties().contentFilters().get(0).severityThreshold()); - Assertions.assertTrue(response.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("emhkftbaewht", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, - response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("xtllfltymqcnr", response.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); + Assertions.assertFalse(response.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.RETRY, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("ja", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(response.properties().customBlocklists().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + response.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("tj", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().safetyProviders().get(0).source()); Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("ouh", response.properties().egressPolicy().description()); - Assertions.assertEquals("rxqwqnjxrd", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("dtullygtavczcxdf", response.properties().egressPolicy().rules().get(0).description()); + Assertions.assertEquals("whpyvdk", response.properties().egressPolicy().description()); + Assertions.assertEquals("tszwcanzb", response.properties().egressPolicy().rules().get(0).name()); + Assertions.assertEquals("kwuyck", response.properties().egressPolicy().rules().get(0).description()); Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.DENY, + Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("jmtznpaxwfqt", response.tags().get("yqiprclt")); + Assertions.assertEquals("siecktybhj", response.tags().get("xidhhxomil")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java index 21a70fcc9560..91a222c9c89a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java @@ -12,24 +12,24 @@ public final class TrafficRoutingRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrafficRoutingRule model = BinaryData.fromString( - "{\"ruleId\":\"muabwibvjogjonmc\",\"description\":\"foyzbamwineof\",\"deploymentId\":\"kak\",\"trafficPercentage\":1325802844}") + "{\"ruleId\":\"dqllzsauzpjlxeeh\",\"description\":\"iqhzlr\",\"deploymentId\":\"mezx\",\"trafficPercentage\":1703626456}") .toObject(TrafficRoutingRule.class); - Assertions.assertEquals("muabwibvjogjonmc", model.ruleId()); - Assertions.assertEquals("foyzbamwineof", model.description()); - Assertions.assertEquals("kak", model.deploymentId()); - Assertions.assertEquals(1325802844, model.trafficPercentage()); + Assertions.assertEquals("dqllzsauzpjlxeeh", model.ruleId()); + Assertions.assertEquals("iqhzlr", model.description()); + Assertions.assertEquals("mezx", model.deploymentId()); + Assertions.assertEquals(1703626456, model.trafficPercentage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrafficRoutingRule model = new TrafficRoutingRule().withRuleId("muabwibvjogjonmc") - .withDescription("foyzbamwineof") - .withDeploymentId("kak") - .withTrafficPercentage(1325802844); + TrafficRoutingRule model = new TrafficRoutingRule().withRuleId("dqllzsauzpjlxeeh") + .withDescription("iqhzlr") + .withDeploymentId("mezx") + .withTrafficPercentage(1703626456); model = BinaryData.fromObject(model).toObject(TrafficRoutingRule.class); - Assertions.assertEquals("muabwibvjogjonmc", model.ruleId()); - Assertions.assertEquals("foyzbamwineof", model.description()); - Assertions.assertEquals("kak", model.deploymentId()); - Assertions.assertEquals(1325802844, model.trafficPercentage()); + Assertions.assertEquals("dqllzsauzpjlxeeh", model.ruleId()); + Assertions.assertEquals("iqhzlr", model.description()); + Assertions.assertEquals("mezx", model.deploymentId()); + Assertions.assertEquals(1703626456, model.trafficPercentage()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java index a8c741030bf8..e32c4a698a8f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java @@ -15,17 +15,17 @@ public final class UsageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageInner model = BinaryData.fromString( - "{\"unit\":\"CountPerSecond\",\"name\":{\"value\":\"nbpoczvyifqrvkdv\",\"localizedValue\":\"llr\"},\"quotaPeriod\":\"vdfwatkpn\",\"limit\":64.15778922246344,\"currentValue\":70.74757992055699,\"nextResetTime\":\"zwtruwiqzbqjvsov\",\"status\":\"Blocked\",\"scopeType\":\"Global\",\"scopeId\":\"spkwlhzdobpxjm\"}") + "{\"unit\":\"Bytes\",\"name\":{\"value\":\"wzjuqk\",\"localizedValue\":\"sa\"},\"quotaPeriod\":\"wkuofoskghsauu\",\"limit\":35.506862744771716,\"currentValue\":77.80758609860673,\"nextResetTime\":\"duugidyjr\",\"status\":\"Included\",\"scopeType\":\"Regional\",\"scopeId\":\"svexcsonpclhoco\"}") .toObject(UsageInner.class); - Assertions.assertEquals(UnitType.COUNT_PER_SECOND, model.unit()); - Assertions.assertEquals("nbpoczvyifqrvkdv", model.name().value()); - Assertions.assertEquals("llr", model.name().localizedValue()); - Assertions.assertEquals("vdfwatkpn", model.quotaPeriod()); - Assertions.assertEquals(64.15778922246344D, model.limit()); - Assertions.assertEquals(70.74757992055699D, model.currentValue()); - Assertions.assertEquals("zwtruwiqzbqjvsov", model.nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.BLOCKED, model.status()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, model.scopeType()); - Assertions.assertEquals("spkwlhzdobpxjm", model.scopeId()); + Assertions.assertEquals(UnitType.BYTES, model.unit()); + Assertions.assertEquals("wzjuqk", model.name().value()); + Assertions.assertEquals("sa", model.name().localizedValue()); + Assertions.assertEquals("wkuofoskghsauu", model.quotaPeriod()); + Assertions.assertEquals(35.506862744771716D, model.limit()); + Assertions.assertEquals(77.80758609860673D, model.currentValue()); + Assertions.assertEquals("duugidyjr", model.nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.INCLUDED, model.status()); + Assertions.assertEquals(QuotaScopeType.REGIONAL, model.scopeType()); + Assertions.assertEquals("svexcsonpclhoco", model.scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java index 3d632c3397b5..40b99006b7fb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java @@ -15,18 +15,18 @@ public final class UsageListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageListResultInner model = BinaryData.fromString( - "{\"nextLink\":\"mohctb\",\"value\":[{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"ndnvo\",\"localizedValue\":\"ujjugwdkcglh\"},\"quotaPeriod\":\"azjdyggd\",\"limit\":92.2174087854439,\"currentValue\":3.8497339257224095,\"nextResetTime\":\"ofqweykhmenevfye\",\"status\":\"Blocked\",\"scopeType\":\"Classic\",\"scopeId\":\"cibvyvdcsitynn\"},{\"unit\":\"Bytes\",\"name\":{\"value\":\"ctehfiqscjey\",\"localizedValue\":\"hezrkgq\"},\"quotaPeriod\":\"jrefovgmkqsle\",\"limit\":97.29868657736189,\"currentValue\":91.19923353577501,\"nextResetTime\":\"k\",\"status\":\"Included\",\"scopeType\":\"Classic\",\"scopeId\":\"gjcrcczsqpjhvm\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"ysou\",\"localizedValue\":\"e\"},\"quotaPeriod\":\"noae\",\"limit\":94.26749513394212,\"currentValue\":97.24576844160318,\"nextResetTime\":\"rpmopjmc\",\"status\":\"Included\",\"scopeType\":\"Regional\",\"scopeId\":\"thfuiuaodsfcpkvx\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"zmyzydagf\",\"localizedValue\":\"xbezyiuokktwh\"},\"quotaPeriod\":\"xw\",\"limit\":48.933406236795584,\"currentValue\":60.16505440558948,\"nextResetTime\":\"ureximoryocfs\",\"status\":\"Included\",\"scopeType\":\"DataZone\",\"scopeId\":\"dystkiiuxhqyud\"}]}") + "{\"nextLink\":\"xyqj\",\"value\":[{\"unit\":\"Bytes\",\"name\":{\"value\":\"ngj\",\"localizedValue\":\"cczsq\"},\"quotaPeriod\":\"hvmdajvnysounq\",\"limit\":2.2711891093491476,\"currentValue\":9.069007255985827,\"nextResetTime\":\"pfhyhl\",\"status\":\"Blocked\",\"scopeType\":\"Classic\",\"scopeId\":\"jmcmatuokthfu\"},{\"unit\":\"Count\",\"name\":{\"value\":\"sfcpkvxodpuozm\",\"localizedValue\":\"ydagfuaxbe\"},\"quotaPeriod\":\"iu\",\"limit\":22.413429318671486,\"currentValue\":75.16582098477036,\"nextResetTime\":\"xw\",\"status\":\"Blocked\",\"scopeType\":\"Regional\",\"scopeId\":\"bsureximo\"},{\"unit\":\"Seconds\",\"name\":{\"value\":\"sfksy\",\"localizedValue\":\"dystkiiuxhqyud\"},\"quotaPeriod\":\"rrqnbpoczvyifqrv\",\"limit\":72.90862863466027,\"currentValue\":16.56318783055396,\"nextResetTime\":\"mvvd\",\"status\":\"Blocked\",\"scopeType\":\"Classic\",\"scopeId\":\"n\"},{\"unit\":\"Bytes\",\"name\":{\"value\":\"xbczwtruwiqz\",\"localizedValue\":\"j\"},\"quotaPeriod\":\"ovm\",\"limit\":41.58217521612849,\"currentValue\":84.57660128318545,\"nextResetTime\":\"w\",\"status\":\"Unknown\",\"scopeType\":\"DataZone\",\"scopeId\":\"pxjmflbvvnchr\"}]}") .toObject(UsageListResultInner.class); - Assertions.assertEquals("mohctb", model.nextLink()); - Assertions.assertEquals(UnitType.BYTES_PER_SECOND, model.value().get(0).unit()); - Assertions.assertEquals("ndnvo", model.value().get(0).name().value()); - Assertions.assertEquals("ujjugwdkcglh", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("azjdyggd", model.value().get(0).quotaPeriod()); - Assertions.assertEquals(92.2174087854439D, model.value().get(0).limit()); - Assertions.assertEquals(3.8497339257224095D, model.value().get(0).currentValue()); - Assertions.assertEquals("ofqweykhmenevfye", model.value().get(0).nextResetTime()); + Assertions.assertEquals("xyqj", model.nextLink()); + Assertions.assertEquals(UnitType.BYTES, model.value().get(0).unit()); + Assertions.assertEquals("ngj", model.value().get(0).name().value()); + Assertions.assertEquals("cczsq", model.value().get(0).name().localizedValue()); + Assertions.assertEquals("hvmdajvnysounq", model.value().get(0).quotaPeriod()); + Assertions.assertEquals(2.2711891093491476D, model.value().get(0).limit()); + Assertions.assertEquals(9.069007255985827D, model.value().get(0).currentValue()); + Assertions.assertEquals("pfhyhl", model.value().get(0).nextResetTime()); Assertions.assertEquals(QuotaUsageStatus.BLOCKED, model.value().get(0).status()); Assertions.assertEquals(QuotaScopeType.CLASSIC, model.value().get(0).scopeType()); - Assertions.assertEquals("cibvyvdcsitynn", model.value().get(0).scopeId()); + Assertions.assertEquals("jmcmatuokthfu", model.value().get(0).scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java index 739acba1c2e4..f32db93e7d39 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java @@ -25,7 +25,7 @@ public final class UsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"unit\":\"Count\",\"name\":{\"value\":\"weacfxaubu\",\"localizedValue\":\"uetcnx\"},\"quotaPeriod\":\"qzzdckhsq\",\"limit\":52.85072457031858,\"currentValue\":82.20062413283634,\"nextResetTime\":\"owo\",\"status\":\"Unknown\",\"scopeType\":\"DataZone\",\"scopeId\":\"yokohlsfjfouq\"}]}"; + = "{\"value\":[{\"unit\":\"Bytes\",\"name\":{\"value\":\"rvkxeojtdyulg\",\"localizedValue\":\"elwruk\"},\"quotaPeriod\":\"qfxspxgogyp\",\"limit\":38.2296103314428,\"currentValue\":61.03507490913719,\"nextResetTime\":\"nskvctvuz\",\"status\":\"Blocked\",\"scopeType\":\"Global\",\"scopeId\":\"mhlvrycyxrn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,17 +34,17 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.usages().list("i", "zhpjgqz", com.azure.core.util.Context.NONE); + PagedIterable response = manager.usages().list("ibtkqj", "jcajgofytk", com.azure.core.util.Context.NONE); - Assertions.assertEquals(UnitType.COUNT, response.iterator().next().unit()); - Assertions.assertEquals("weacfxaubu", response.iterator().next().name().value()); - Assertions.assertEquals("uetcnx", response.iterator().next().name().localizedValue()); - Assertions.assertEquals("qzzdckhsq", response.iterator().next().quotaPeriod()); - Assertions.assertEquals(52.85072457031858D, response.iterator().next().limit()); - Assertions.assertEquals(82.20062413283634D, response.iterator().next().currentValue()); - Assertions.assertEquals("owo", response.iterator().next().nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.UNKNOWN, response.iterator().next().status()); - Assertions.assertEquals(QuotaScopeType.DATA_ZONE, response.iterator().next().scopeType()); - Assertions.assertEquals("yokohlsfjfouq", response.iterator().next().scopeId()); + Assertions.assertEquals(UnitType.BYTES, response.iterator().next().unit()); + Assertions.assertEquals("rvkxeojtdyulg", response.iterator().next().name().value()); + Assertions.assertEquals("elwruk", response.iterator().next().name().localizedValue()); + Assertions.assertEquals("qfxspxgogyp", response.iterator().next().quotaPeriod()); + Assertions.assertEquals(38.2296103314428D, response.iterator().next().limit()); + Assertions.assertEquals(61.03507490913719D, response.iterator().next().currentValue()); + Assertions.assertEquals("nskvctvuz", response.iterator().next().nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.BLOCKED, response.iterator().next().status()); + Assertions.assertEquals(QuotaScopeType.GLOBAL, response.iterator().next().scopeType()); + Assertions.assertEquals("mhlvrycyxrn", response.iterator().next().scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java index 51fddca6e939..906796250882 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java @@ -10,7 +10,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"bhj\",\"clientId\":\"igeho\"}") + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"u\",\"clientId\":\"wgqyw\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/VersionedAgentReferenceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/VersionedAgentReferenceTests.java index c11359c909f3..6f3f25a98255 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/VersionedAgentReferenceTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/VersionedAgentReferenceTests.java @@ -12,20 +12,20 @@ public final class VersionedAgentReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VersionedAgentReference model - = BinaryData.fromString("{\"agentVersion\":\"uvp\",\"agentId\":\"glpm\",\"agentName\":\"dcueljtiahxmfq\"}") + = BinaryData.fromString("{\"agentVersion\":\"svuv\",\"agentId\":\"kqxetqmmliv\",\"agentName\":\"jxnw\"}") .toObject(VersionedAgentReference.class); - Assertions.assertEquals("glpm", model.agentId()); - Assertions.assertEquals("dcueljtiahxmfq", model.agentName()); - Assertions.assertEquals("uvp", model.agentVersion()); + Assertions.assertEquals("kqxetqmmliv", model.agentId()); + Assertions.assertEquals("jxnw", model.agentName()); + Assertions.assertEquals("svuv", model.agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VersionedAgentReference model - = new VersionedAgentReference().withAgentId("glpm").withAgentName("dcueljtiahxmfq").withAgentVersion("uvp"); + = new VersionedAgentReference().withAgentId("kqxetqmmliv").withAgentName("jxnw").withAgentVersion("svuv"); model = BinaryData.fromObject(model).toObject(VersionedAgentReference.class); - Assertions.assertEquals("glpm", model.agentId()); - Assertions.assertEquals("dcueljtiahxmfq", model.agentName()); - Assertions.assertEquals("uvp", model.agentVersion()); + Assertions.assertEquals("kqxetqmmliv", model.agentId()); + Assertions.assertEquals("jxnw", model.agentName()); + Assertions.assertEquals("svuv", model.agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml index cecbdf3bb541..8720e28e80c5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cognitiveservices/CognitiveServices.Management -commit: 39bf1b80fd8bc55b091192d51d67433c84930639 +commit: 3644d9bb0870c79641abbd0caa6f440051afb727 repo: Azure/azure-rest-api-specs additionalDirectories: